:root {
  --background-1: #ddd;
  --background-2: #fff;
  --text-1: transparent;
  --text-2: transparent;
  --icon-1: transparent;
  --avatar-shadow: rgba(0, 0, 0, 0.5);
}
body.yz {
  --background-1: #ddd;
  --background-2: #fff;
  --text-1: #666;
  --text-2: #999;
  --icon-1: #333;
}

@media (prefers-color-scheme: light) {
  .light {
    display: none;
  }
}
@media (prefers-color-scheme: dark) {
  .dark {
    display: none;
  }
  :root {
    --background-1: #121212;
    --background-2: #323232;
    --text-1: transparent;
    --text-2: transparent;
    --icon-1: transparent;
    --border-shader: rgba(0, 0, 0, 0.5);
  }
  body.yz {
    --background-1: #121212;
    --background-2: #323232;
    --text-1: #999;
    --text-2: #666;
    --icon-1: #ccc;
  }
}
/* apply CSS varaible through var() */
a:any-link {
  text-decoration: none;
}
html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 0.2rem;
  transition: all 0.25s ease-in;
}
#header {
  display: none;
  background: rgba(0, 0, 0, 0);
  width: 100vw;
  height: 5vh;
}
#footer {
  display: none;
  background: rgba(0, 0, 0, 0);
  width: 80vw;
  height: 11vh;
  justify-content: space-evenly;
  align-items: center;
}
#footer .icons {
  width: 7vh;
  height: 7vh;
  font-size: 5vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--icon-1, #333);
}
.content-wrapper {
  background: var(--background-1, #ddd);
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: color 0.25s ease-in;
}
.card {
  background: var(--background-2, #fff);
  border: 1px solid rgba(0, 0, 0, 0.5);
  display: flex;
  transition: all 0.25s ease-in-out;
  position: relative;
  -webkit-animation: fadein 0.5s; /* Safari, Chrome and Opera > 12.1 */
  -moz-animation: fadein 0.5s; /* Firefox < 16 */
  -ms-animation: fadein 0.5s; /* Internet Explorer */
  -o-animation: fadein 0.5s; /* Opera < 12.1 */
  animation: fadein 0.5s;
}

.avatar-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  font-size: 2vw;
  flex-basis: 40%;
}
.avatar {
  border: 5px solid var(--background-2, #fff);
  border-radius: 50%;
  box-shadow: 0px 0px 5px var(--avatar-shadow);
  background-color: rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  transition: all 0.25s ease-in;
}
.avatar > i {
  font-size: 20vw;
  margin-top: 3vw;
}

.portrait-subline {
  display: none;
}
.context {
  flex-basis: 60%;
  flex: 1;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: flex-start;
  font-size: min(calc(2vw), calc(6vh));
}
.context > a {
 margin: 0 1rem;
}
.context i {
  margin-right: 0.5rem;
}
.context i.fa-mail {
}
.context i.fa-export {
  margin-top: 8px;
}

.context > div {
  padding: 0.5vw 0;
}
.context a > div {
  display: flex;
  align-items: center;
}
.note {
  font-size: small;
}
.card .note {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  font-size: min(calc(2vw), calc(6vh), calc(10px));
  text-align: right;
}
@media screen and (orientation: portrait) {
  .content-wrapper {
    flex-direction: column;
    justify-content: space-between;
  }
  .card {
    height: 75%;
    width: 75%;
    flex-direction: column;
  }
  .avatar {  
    width: min(50vw, 30vh);
    height: min(50vw, 30vh);
  }
  .avatar > i {
    font-size: 9em;
    margin-top: 35%;
    margin-left: 9%;
  }

  .avatar > i:before {
    content: '\f21b';
  }
  .avatar-container,
  .context {
    font-size: 3vh;
  }
  .portrait-subline {
    display: block;
    margin-top: 3rem;
    text-align: center;
  }
  .context {
    display: none;
  }
  #header {
    display: flex;
  }
  #footer {
    display: flex;
  }
}

@media screen and (orientation: landscape) {
  .card {
    width: 80vw;
    height: 100%;
    flex-direction: row;
    max-height: min(95vh,45vw);
  }
  .avatar {
    height: 100%;
    width: 100%;
    max-height: min(80vh,20vw);
    max-width: min(80vh,20vw);
    margin: auto;
  }
}

.light,
.dark {
  position: absolute;
  right: 5px;
  top: 7px;
  color: var(--icon-1, #333);
}
i.dark:before {
  content: '\f186';
}
i.light:before {
  content: '\f185';
}
body.yz .light:checked,
body.yz .light:checked + *,
body.yz .light:checked + * * {
  --background-1: #ddd;
  --background-2: #fff;
  --text-1: #666;
  --text-2: #999;
  --icon-1: #333;
}
body.yz .light:checked + * * i.light:before {
  content: '\f186';
}
body.yz .dark:checked,
body.yz .dark:checked + * + *,
body.yz .dark:checked + * + * * {
  --background-1: #121212;
  --background-2: #323232;
  --text-1: #999;
  --text-2: #666;
  --icon-1: #ccc;
}
body.yz .dark:checked + * + * * i.dark:before {
  content: '\f185';
}
@media screen and (orientation: landscape) and (max-width: 299px) {
  .avatar-container {
    display: none;
  }
  .card .note {
    right: 0rem;
    bottom: 0rem;
  }
  .context {
    padding-left: 1rem;
    padding-top: 1rem;
    justify-content: flex-start;
  }
}

@media screen and (orientation: landscape) and (max-width: 210px) {
  .context {
    flex-direction: row;
  }
  .context a div span {
    display: none;
  }
  .context a div i {
    font-size: 20vw;
  }
  .context a div {
    font-size: 20vw;
  }
  .note {
    display: none;
  }
  .context i.fa-export {
    margin-top: 2px;
  }
  .card {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0);
  }
  .light,
  .dark {
    right: 3px;
    top: 1px;
  }
}
@media (max-width: 210px) {
  .footer {
    flex-direction: column;
  }
}

@keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Firefox < 16 */
@-moz-keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Safari, Chrome and Opera > 12.1 */
@-webkit-keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Internet Explorer */
@-ms-keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Opera < 12.1 */
@-o-keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

body,
a:any-link,
body .context,
body .portrait-subline,
body .light:checked,
body .light:checked + *,
body .light:checked + * * {
  color: var(--text-1, #999);
  transition: color 0.25s ease-in;
}

/* body.yz,body.yz a:any-link,body.yz .context,body.yz .portrait-subline,body.yz .light:checked,body.yz .light:checked + *,body.yz .light:checked + * * {
  color: var(--text-1, #666) !important;
  transition: 0.3s ease-in;
} */
body.yz .note {
  color: var(--text-2, #666);
}
