@import "shared.css";

.index-page {
  background-color: #0a004b;
  color: #ffffff;
}

h1 {
  line-height: 54px;
  font-size: 48px;
}

p {
  font-size: 18px;
  margin: 25px 0;
}

header {
  margin: 60px 95px 60px 95px;
  position: relative;
}

a {
  color: #4483ff;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #ffffff;
}

header .logo img {
  height: 38px;
}

header .find-out-more {
  position: absolute;
  bottom: 2px;
  right: 0;
  font-size: 16px;
  font-weight: bold;
}

.wrapper {
  display: flex;
  justify-content: center;
}

.contents {
  width: 90%;
}

#graphic {
  position: relative;
  margin: 0 30px 30px 60px;
  width: 50%;
  max-width: 600px;
  height: fit-content;
}

#graphic .brain {
  object-fit: contain;
  width: 100%;
}

#graphic .question {
  position: absolute;
  left: calc(-37 / 600 * 100%);
  top: 25%;
  width: 70%;

  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
  opacity: 0;
  transform: translateY(-50px);
}

#graphic .answers {
  position: absolute;
  left: 0;
  width: 70%;
  top: calc(25% + 170 / 600 * 100%);

  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
  opacity: 0;
  transform: translateY(-50px);
}

#graphic.question-1 .question-1,
#graphic.question-2 .question-2,
#graphic.question-3 .question-3,
#graphic.question-4 .question-4 {
  opacity: 1;
  transform: translateY(0px);
}

#graphic.answer-1 .answer-1,
#graphic.answer-2 .answer-2,
#graphic.answer-3 .answer-3,
#graphic.answer-4 .answer-4 {
  opacity: 1;
  transform: translateY(0px);
}

main {
  position: relative;
  width: 50%;
  max-width: 600px;
  margin: 30px 0px 45px 0px;
}

main ul {
  margin: 30px 0;
  list-style-position: inside;
  line-height: 40px;
}

main ul li {
  font-size: 18px;
  font-weight: bold;
}

#to-remember {
  transition: color 0.2s;
  color: #4483ff;
  font-size: 14px;
  margin-top: 25px;
}

#to-remember:hover {
  color: #ffffff;
}

#home-panel {
  display: none;
}

main.home #home-panel {
  display: block;
}

#register-panel {
  display: none;
}

main.register #register-panel {
  display: block;
}

#remember-panel {
  display: none;
}

main.remember #remember-panel {
  display: block;
}

#success-panel {
  display: none;
}

main.success #success-panel {
  display: block;
}

#success-form input[type="submit"] {
  margin: 40px 0;
}

.close-button {
  position: absolute;
  color: #ffffff;
  font-size: 32px;
  top: 14px;
  right: 0;
}

footer {
  margin: 60px 60px 40px;
  padding-top: 30px;
  border-top: solid 1px rgba(255, 255, 255, 0.2);
  position: relative;
}

footer .links a {
  font-size: 12px;
  text-decoration: none;
  margin-right: 20px;
}

footer .text {
  margin-top: 20px;
}

footer .text small {
  display: block;
  font-size: 12px;
  opacity: 0.7;
  line-height: 2;
}

.social-links {
  position: absolute;
  top: 54px;
  right: 263px;
}

.share p {
  font-size: 16px;
  font-weight: bold;
  margin: 55px 0 15px;
}

.share .round {
  margin-right: 9px;
}

.mrs {
  position: absolute;
  top: 54px;
  right: 0px;
  width: 90px;
  height: 48px;
}

#privacy-modal {
  z-index: 100;
  position: fixed;
  top: 50%;
  left: 50%;
  background-color: #ffffff;
  color: #0a004b;
  width: 600px;
  height: 700px;
  max-width: 90vw;
  max-height: 90vh;
  padding: 40px;
  overflow-y: auto;
  transform: translate(-50%, -50%);
  opacity: 0;
  visibility: hidden;
  transition: visibility 0s linear 0.1s, opacity 0.3s ease;
}

#privacy-modal.open {
   visibility: visible;
   opacity: 1;
   transition-delay: 0s;
 }

#privacy-modal .close-button {
  color: #0a004b;
  right: 14px;
}

#modal-overlay {
  z-index: 99;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #0a004bb3;
  opacity: 0;
  visibility: hidden;
  transition: visibility 0s linear 0.1s, opacity 0.3s ease;
}

#modal-overlay.open {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}

@media screen and (max-width: 1300px) {
  .social-links {
    display: block;
    position: static;
    margin-top: 42px;
  }

  .mrs {
    top: inherit;
    bottom: 0;
  }
}

@media screen and (max-width: 1150px) {
  header {
    margin: 60px 66px 60px 66px;
    position: relative;
  }

  .wrapper {
    flex-direction: column;
    margin-left: 66px;
  }

  #graphic {
    width: 100%;
    max-width: inherit;
    margin: 0 0 30px;
  }

  main {
    width: inherit;
    max-width: inherit;
    margin: 0px 90px 90px 0px;
  }
}

@media screen and (max-width: 780px) {
  header {
    margin: 30px 30px 60px 30px;
    position: relative;
  }

  header .logo img {
    height: 31px;
  }

  .find-out-more {
    display: none;
  }

  h1 {
    line-height: 42px;
    font-size: 36px;
  }

  p {
    font-size: 16px;
  }

  main {
    margin: 0;
  }

  main ul li {
    font-size: 16px;
  }

  .wrapper {
    flex-direction: column;
    margin: 33px;
  }

  footer {
    margin: 60px 30px 40px;
  }
}
