@font-face {
  font-family: Dosis;
  src: url(assets/Dosis-VariableFont_wght.ttf);
}

* {
  margin: 0;
  font-family: "Dosis", "Arial Narrow", Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}

body {
  background-color: #444;
  transition: all 0.5s;
  background-image: url(assets/bg3.jpg);
  background-size: cover;
  background-position: center;
}

.center {
  display: flex;
  align-items: center;
  justify-content: center;
}

#start-page {
  color: #ffffffdd;
  text-shadow: 0 -2px 2px rgba(0, 0, 0, 1);
  background-image: url(assets/astronaut.png);
  background-size: cover;
  background-position: center;
}

#model-page {
  display: none;
}

.start-page-mask {
  background-color: rgba(0, 0, 0, 0.7);
}

.enter-button {
  border: 3px solid white;
  background-color: white;
  color: #555;
  font-weight: bold;
  padding: 5px;
  width: 100px;
  height: 50px;
  border-radius: 50px;
  margin-top: 30px;
  font-size: 19px;
  line-height: 32px;
  display: inline-block;
  cursor: pointer;
  opacity: 0.7;
  text-shadow: none;
}

.enter-button:hover {
  opacity: 1;
}

.start-page-text {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  font-size: 40px;
  width: 70%;
  margin-left: 15%;
}

.start-page-text div div {
  margin-bottom: 15px;
}

.ingredient {
  position: absolute;
  width: 2000px;
  height: 1000px;
  background: radial-gradient(#00000033, #00000000, #00000000);
  left: -1000px;
  bottom: -500px;
  z-index: 10;
  pointer-events: none;
}

.ingredient2 {
  position: absolute;
  width: 2000px;
  height: 1000px;
  background: radial-gradient(#ffffff22, #ffffff00, #ffffff00);
  right: -500px;
  top: -500px;
  z-index: 10;
  pointer-events: none;
}

#title {
  color: #ffffffcc;
  position: absolute;
  top: 67%;
  width: 1000px;
  text-align: center;
  left: calc(50% - 500px);
  font-size: 38px;
  text-transform: uppercase;
  font-weight: bold;
  text-shadow: 2px -2px 1px rgba(0, 0, 0, 0.2);
  white-space: pre-wrap;
}

#credit {
  opacity: 0.8;
  font-size: 14px;
  position: absolute;
  top: 75.7%;
  width: 600px;
  left: calc(50% - 300px);
  text-align: center;
  color: #ffffffcc;
  text-shadow: 0 0 3px rgba(0, 0, 0, 1);
}

#description {
  color: white;
  position: absolute;
  top: 70%;
  width: 300px;
  text-align: center;
  left: calc(50% - 150px);
  font-size: 20px;
  border: 1px solid red;
}

#prev-btn {
  position: absolute;
  right: 30px;
  color: white;
  top: calc(50% - 75px);
  cursor: pointer;
  background-image: url(./assets/prev.png);
  background-position: center;
  background-size: contain;
  width: 50px;
  height: 50px;
  opacity: 0.5;
  transition: all 0.2s;
}

#next-btn {
  position: absolute;
  right: 30px;
  color: white;
  top: calc(50% + 55px);
  cursor: pointer;
  background-image: url(./assets/next.png);
  background-position: center;
  background-size: contain;
  width: 50px;
  height: 50px;
  opacity: 0.5;
  transition: all 0.2s;
}

#prev-btn:hover,
#next-btn:hover {
  opacity: 1;
}

#info-button {
  font-weight: bold;
  background-color: white;
  text-align: center;
  width: 70px;
  height: 70px;
  position: absolute;
  right: 20px;
  color: #777;
  top: calc(50% - 20px);
  border-radius: 50%;
  padding-top: 25px;
  transition: all 0.2s;
  cursor: pointer;
  opacity: 0.7;
}

#info-button:hover {
  opacity: 1;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
  transform: scale(1.1);
  cursor: pointer;
}

.counter {
  display: inline-block;
  border-right: 3px solid white;
  padding-right: 10px;
  height: 30px;
  line-height: 30px;
  margin-top: 12px;
  font-size: 30px;
  vertical-align: top;
  margin-right: 20px;
}

.bottom-text {
  position: absolute;
  bottom: 36px;
  left: calc(50% - 200px);
  width: 400px;
  text-align: center;
  color: white;
  opacity: 0.7;
}

#info-page {
  display: none;
  color: white;
  height: 100vh;
  text-align: center;
  color: #ffffffdd;
  background-image: url(./assets/1400.jpg)
}

.info-page-mask {
  background-color: rgba(30, 29, 29, 0.7);
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#info-page .close-button {
  transition: 0.5s all;
  border: 3px solid #aed3e3;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: inline-block;
  font-size: 50px;
  line-height: 35px;
  cursor: pointer;
}

#info-page .close-button:hover {
  transform: rotate(20deg);
}

.model-name {
  margin-top: 20px;
  font-weight: bold;
  font-size: 30px;
}

.model-desc {
  font-size: 20px;
  margin-top: 20px;
  width: 550px;
  margin-bottom: 50px;
}

.model-links {
  display: flex;
  justify-content: space-between;
}

.key-cf,
.video-link,
.vocabulary {
  width: 180px;
  color: #aed3e3;
  line-height: 40px;
  cursor: pointer;
}

.video-link {
  width: 100px;
  background-color: #aed3e3;
  color: rgb(54, 53, 53);
  font-weight: bold;
  line-height: 40px;
  border-radius: 40px;
}

#info-page2 {
  color: white;
  height: 100vh;
  display: none;
  background-color: #444;
}

#info-page2 .back-button {
  border: 3px solid #aed3e3;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  background-image: url("/assets/back.png");
  background-size: 50%;
  background-repeat: no-repeat;
  background-position: center;
}

#info-page2 .inner {
  width: 700px;
  height: 300px;
  display: flex;
  justify-content: space-between;
}

#info-page2 .left {
  width: 300px;
}

.menu {
  margin-top: 20px;
}

.menu div {
  font-size: 18px;
  margin-bottom: 10px;
  cursor: pointer;
  color: #aaa;
  font-weight: bold;
}

.menu .selected {
  color: white;
}

#info-page2 .texts {
  color: #bbb;
  width: 432px;
  padding-top: 60px;
  font-size: 18px;
}

#info-page2 .info-text {
  margin: 10px 0;
  font-size: 16px;
}

@media screen and (max-width: 450px) {
  #title {
    font-size: 25px;
  }
  #credit {
    font-size: 15px;
    width: 90%;
    left: 5%;
    top: 70%;
  }
  .start-page-text {
    font-size: 30px;
    width: 90%;
    margin-left: 5%;
  }
  .model-desc {
    width: 70%;
    margin-left: 15%;
  }

  .model-links {
    display: block;
  }

  .key-cf,
  .video-link,
  .vocabulary {
    margin: auto;
    margin-bottom: 20px;
  }

  #info-page2 .inner {
    width: 80%;
    margin-bottom: 150px;
  }

  #info-page2 .texts {
    padding-left: 20px;
  }

  #info-page2 .info-text {
    font-size: 20px;
  }
}
