body {
  background: url("../bg/inzm32.png");
  background-size: 100%;
  padding: 0;
  margin: 0;
}

* {
  font-family: "Genshin";
}

.exit {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-right: 2em;
  width: 20%;
  position: absolute;
  right: 0;
  top: 1.75em;
}

.exit a {
  text-decoration: none;
  background: #ece5d8;
  padding: 11px;
  display: flex;
  align-items: center;
  border-radius: 50%;
  outline: 5px solid rgba(255, 255, 255, .5);
  transition: all .3s ease;
}

.exit a img {
  transition: all .3s ease;
}

.exit a:hover {
  outline: 5px solid white;
  filter: drop-shadow(0px 0px 5px white);
}

.exit a:active {
  background: #aa9187;
  outline: none;
  filter: drop-shadow(0px 0px 5px #aa9187);
}

.exit a:active>img {
  filter: contrast(1.86) grayscale(1) invert(1);
}

#hi {
  align-items: center !important;
}

.contents {
  display: flex;
  align-items: center;
  justify-content: center;
}

#gnsn {
  background: url("genshin/bookbg.png");
  width: 100em;
  height: 59.875em;
  background-size: contain;
}

#gnsn > .inner {
  display: flex;
}

.inner > .half1, .inner > .half2 {
  width: 50%;
  display: flex;
  align-items: center;
  flex-direction: column;
}


.profile {
  background-image: url("genshin/prof.png");
  background-size: contain;
  background-repeat: no-repeat;
  height: 59.875em;
  width: 44em;
  position: relative;
  right: 0em;
  z-index: 1;
}

.profpic {
  position: absolute;
  left: 0%;
  right: 0%;
  top: 13.75%;
  user-select: none;
}

.profpic img {
  width: 200px;
  border-radius: 50%;
  border: 10px solid #f0ebe1;
  outline: 2px solid #c1ad91;
  image-rendering: -webkit-optimize-contrast;
}

.text {
  font-family: "Genshin";
  position: absolute;
  left: 0;
  right: 0;
  top: 40%;
  letter-spacing: -1px;
}

.name {
  font-size: 38px;
}

.ar,
.wl {
  color: white;
  display: flex;
  width: 85%;
  margin: auto;
  padding: 12px 15px;
  font-size: 31px;
  letter-spacing: 0;
  text-align: left;
}

.ar {
  background: #a7b982;
  margin-top: 1.45em;
  margin-bottom: .35em;
}

.wl {
  background: #cdbba5;
  margin-bottom: 1em;
}

.ar > .half1, .wl > .half1 {
  width: 50%;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
}

.ar > .half2, .wl > .half2 {
  width: 50%;
  display: flex;
  align-items: flex-end;
  flex-direction: column;
}

.textbox {
  border: 2px solid #e0d7c9;
  width: 86.85%;
  height: 8.25em;
  margin: auto;
  padding: 10px;
  text-align: left;
  color: #7e6e5c;
  font-size: 27px;
  line-height: 1.125em;
}

.textbox p {
  margin-block-start: 0;
}


.dots {
  position: absolute;
  left: 3.75%;
  top: 2.9%;
  background: #ece5d8;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  font-family: "Genshin";
  color: #3b4255;
  font-size: 45px;
  font-weight: bold;
  line-height: .7em;
  border: 3px solid #ece5d8;
  transition: .1s all ease;
  user-select: none;
}

.dots:hover {
  border: 3px solid #dbd6cc;
  outline: 5px solid #fff;
  box-shadow: 0px 0px 4px 5px #FFFFFF;
}

.dots:active {
  background: #ab9992;
  outline: none;
  border: 3px solid #ab9992;
  box-shadow: none;
  color: white;
}


img {
  max-width: 100%;
}

.topnav {
  margin-top: 2.5em;
  margin-bottom: 1em;
  user-select: none;
  width: 89.5%;
}

#divider {
  margin-top: .55em;
  width: 97%;
  user-select: none;
}

.arrow {
  display: inline;
  vertical-align: middle;
  position: relative;
  width: 100%;
  margin-top: 5px;
}

#toggle {
  background: #dccaa8;
  border-radius: 50px;
  display: inline-block;
  width: 79%;
  margin: auto;
  padding: 4px 3px;
}

#toggle button {
  font-size: 28px;
  border-radius: 50px;
  border: #dccaa8;
  background: none;
  padding: 10px 65.5px;
  color: #f7f3ec;
  letter-spacing: -1px;
}

#toggle button:focus {
  background: #f7f3ec;
  outline: 3px solid #efe9dd;
  outline-offset: -4px;
  color: #7e6a5a;
  box-shadow: 0px 2px 5px 0px #caba9b;
}

#toggle button:first-child {
  margin-right: 10px;
}

.stats {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90%;
  height: auto;
  margin-bottom: 0em;
  margin-top: .75em;
}

.stat {
  width: 355px;
  height: 120px;
  font-family: "genshin";
  color: #495366;
  padding-top: 7px;
  padding-left: 5.5em;
  font-size: 26px;
  text-align: left;
  line-height: 1.125em;
  letter-spacing: -1px;
}

.stat span {
  font-size: 41px;
  line-height: 1.125em;
}

.achievement {
  background-image: url("genshin/achievement.png");
  background-size: contain;
  background-repeat: no-repeat;
}

.spiral {
  background-image: url("genshin/spiral.png");
  background-size: contain;
  background-repeat: no-repeat;
}

.spiral text {
  padding-top: .7em;
  display: block;
}

.charaTitle {
  color: #84603d;
  font-family: Genshin;
  font-size: 31px;
  letter-spacing: -1px;
  word-spacing: 5px;
  text-align: left;
  width: 97%;
  margin-bottom: 0em;
  margin-top: .5em;
  margin-left: 1.65em;
}

.charalist {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  user-select: none;
  justify-content: center;
  align-items: center;
  margin-top: .5em;
}

.chara {
  width: 155px;
  height: 195px;
  background: #e9e5dc;
  color: #495366;
  font-family: Genshin;
  font-size: 26px;
  box-shadow: 0px 1px 6px 3px #e9e4dc;
  margin: .5em;
  transition: all .1s ease;
}

.chara:hover {
  transform: scale(1.05);
  outline: 4px solid #fff;
}

.chara:active {
  transform: scale(1);
}

.chara img {
  image-rendering: -webkit-optimize-contrast;
}

.charalist .chara:nth-child(n+1):nth-child(-n+4) {
  margin-top: 0;
}

.charalist .chara:nth-child(4n+1) {
  margin-left: 0;
}

.charalist .chara:nth-child(4n+4) {
  margin-right: 0;
}

.fivestar {
  outline: 1px solid #e0d6c9;
  border-radius: 8px;
}

.fourstar {
  outline: 1px solid #dfd6d5;
  border-radius: 8px;
}

.charaicon {
  height: 155px;
  width: 155px;
  border-radius: 8px;
  border-bottom-right-radius: 20%;
  position: relative;
  overflow: hidden;
  margin-bottom: .25em;
}

.vision {
  position: absolute;
  top: 5px;
  left: 5px;
}

.vision img {
  height: 37px;
}

.go {
  background-image: url("genshin/icon/5star.png");
}

.shi {
  background-image: url("genshin/icon/4star.png");
}

@media only screen and (max-height: 575.98px) and (orientation: landscape) {
  .chara {
    width: 80px;
    height: 120px;
    background: #e9e5dc;
    color: #495366;
    font-family: Genshin;
    font-size: 1.125em;
    box-shadow: 0px 1px 6px 3px #e9e4dc;
    margin: .5em;
    transition: all .1s ease;
  }

  .charaicon {
    height: 80px;
    width: 80px;
    border-radius: 8px;
    border-bottom-right-radius: 20%;
    position: relative;
    overflow: hidden;
    margin-bottom: .25em;
  }
}

@media screen and (max-width: 1920px) {
  #toggle {
    width: 80%;
  }

  #toggle button {
    padding: 10px 47px;
  }
  
  .dots {
    height: 45px;
    width: 45px;
  }

  .profpic img {
    width: 165px;
    border-radius: 50%;
    border: 10px solid #f0ebe1;
    outline: 2px solid #c1ad91;
    image-rendering: -webkit-optimize-contrast;
  }

  .text {
    position: absolute;
    top: 41%;
  }
}

@media only screen and (max-height: 575.98px) and (orientation: landscape) {
  .dots {
    position: absolute;
    left: 3.75%;
    top: 2.9%;
    background: #ece5d8;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    font-family: "Genshin";
    color: #3b4255;
    font-size: 2em;
    font-weight: bold;
    line-height: .7em;
    border: 3px solid #ece5d8;
    transition: .1s all ease;
    user-select: none;
  }

  .dots:hover {
    border: 3px solid #dbd6cc;
    outline: 5px solid #fff;
    box-shadow: 0px 0px 4px 5px #FFFFFF;
  }

  .dots:active {
    background: #ab9992;
    outline: none;
    border: 3px solid #ab9992;
    box-shadow: none;
    color: white;
  }

  .profile {
    background-image: url("genshin/prof.png");
    background-size: contain;
    background-repeat: no-repeat;
    height: 20em;
    width: 22em;
    margin-left: 10px;
    position: relative;
  }

  .profpic {
    position: absolute;
    left: 0%;
    right: 0%;
    top: 13.75%;
    user-select: none;
  }

  .profpic img {
    width: 200px;
    border-radius: 50%;
    border: 10px solid #f0ebe1;
    outline: 2px solid #c1ad91;
    image-rendering: -webkit-optimize-contrast;
  }

  .text {
    font-family: "Genshin";
    position: absolute;
    left: 0;
    right: 0;
    top: 40%;
    letter-spacing: -1px;
  }

  .name {
    font-size: 1.675em;
  }

  .ar,
  .wl {
    color: white;
    display: flex;
    width: 87%;
    margin: auto;
    padding: 12px 15px;
    font-size: 1.375em;
    letter-spacing: 0;
  }

  .ar {
    background: #a7b982;
    margin-top: 1.45em;
    margin-bottom: .35em;
  }

  .wl {
    background: #cdbba5;
    margin-bottom: 1em;
  }

  .half1 {
    width: 50%;
    text-align: left;
  }

  .half2 {
    width: 50%;
    text-align: right;
  }

  .textbox {
    border: 2px solid #e0d7c9;
    width: 86.85%;
    height: 8.25em;
    margin: auto;
    padding: 10px;
    text-align: left;
    color: #7e6e5c;
    font-size: 1.2em;
  }
}

@font-face {
  font-family: "Genshin";
  src: url("genshin/genshin.ttf");
}