html { -webkit-text-size-adjust: 100%; }

:root {
  --pie-size:25px;
}

body {
  background-color:white;
  font-family: 'Barlow Condensed', sans-serif;
  margin:0;
}


body section,
body title,
body entry,
body head,
body description,
body misc * {
  display:block;
}

styleSelection {
  display: block;
  text-align: center;
  padding:0 0 5px 0;
  margin:0;
  background-color: black;
}

styleSelection a {
  color:white;
  background: none;
  padding:5px;
}

styleSelection a#nb {
  background-color: #666;
}

goal {
  text-align: center;
  display: block;
  font-size: 25px;
  font-weight: 600;
  margin:3% 10%;
  text-transform: uppercase;
}

goal subsection {
  display: block;
  font-weight: 400;
  text-transform: none;
}

content {
  position:relative;
}

name {
  position: absolute;
  left: 0;
  top: 50px;
  font-size: 40px;
  font-weight: 600;
  opacity: 0.5;
  white-space: pre;
}

name > name1 {
  writing-mode: tb;
  transform: rotate(180deg);
  position: absolute;
  left: 0;
  top: 0;
}

content > misc {
  float:right;
  width: 30%;
  border-left:5px solid black;
  padding-left: 10px;
  margin-left:10px;
  z-index:1000;
  position:relative;
}

body section {
  margin:3% 10%
}

body section > title {
  font-size: 30px;
  font-weight: 600;
}

section header {
  margin-top:8px;
}

section header > * {
  display:inline;
  font-weight: 200;
  font-size: 20px;
  margin-right:10px;
}

section header > date {
  font-weight: 600;
}

section header > place {
  font-weight: 400;
}

section header > location {
  font-style: italic;
}

body entry description {
  margin-left: 1.5em;
  display: list-item;
}

body content a {
  background-image: url(external.svg);
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 1em 1em;
  padding-right: 1.5em;
  color: darkgray;
  display: inline;
}

content > skills {
  clear:both;
  margin-top:50px;
  float:right;
  width: 30%;
  border-left:5px solid black;
  padding-left: 10px;
  margin-left:10px;

}

skill {
  display:block
}

skill > label {
  vertical-align: super;
  width: 100px;
  margin:10px;
  display: inline-block;
}

skill > value {
  position:relative;
  width:var(--pie-size);
  height:var(--pie-size);
  background-color: #eee;
  border-radius: 100%;
  display: inline-block;
  overflow: hidden;
}

skill > value > value {
  position:absolute;
  width:var(--pie-size);
  height:var(--pie-size);
  transform: translate(0, -50%) rotate(90deg) rotate(0deg);
  transform-origin: 50% 100%;
  overflow: hidden;
}

skill > value.over50 > value {
  overflow: visible;
}

skill > value > value:before,
skill > value > value:after {
  position:absolute;
  content:'';
  width:var(--pie-size);
  height:var(--pie-size);
}

skill > value > value:before {
  --degrees: calc((var(--value) / 100) * 360);
  background-color: black;
  transform: translate(0, 100%) rotate(calc((var(--degrees) * 1deg)));
  transform-origin: 50% 0%;
}

skill > value > value:after {
  background-color: black;
}

skill > value.under50 > value:after {
  opacity: 0;
}

@media (max-width: 750px) {
  content > misc,
  content > skills {
    float:none;
    display: block;
    padding: 5% 20%;
    margin:0;
    width: 100%;
    box-sizing: border-box;
    border-width: 0;
  }
  content > misc > misc,
  content > skills > skills {
    border:5px solid black;
    display: block;
    width: 100%;
    padding: 20px;
    margin:0;
  }
  content > skills > skills {
    text-align: center;
  }
  content > skills > skills > skill {
    display: inline-block;
    text-align: left;
    padding: 3px 10px;
    box-shadow: 1px 1px 5px rgb(0 0 0 / 10%);
  }
  name {
    left: 0;
  }

  goal {
    font-size: 20px;
  }

  content section > title {
    font-size: 25px;
    font-weight: 600;
  }
}
