@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@200;300;400;500;600;700;800;900&family=Roboto+Slab:wght@100;300;400;500;600;700;800;900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
  border: none;
}

html {
  font-size: 62.5%;
  height: 100%;
  box-sizing: border-box;
}

body {
  background-color: rgba(187, 185, 185, 0.726);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: column;
  min-height: 100%;
}

.hidden {
  opacity: 0;
  transition: all 0.5s;
}

.main-heading {
  font-family: 'Roboto Slab', serif;
  text-align: center;
  margin: 2rem auto;
  font-weight: 800;
  font-size: 2.8rem;
}

.container {
  position: relative;
  top: 50%;
}

.app-container {
  border: 2px solid rgba(68, 68, 68, 0.8);
  font-family: 'Nunito', sans-serif;
  background-image: linear-gradient(
    to right bottom,
    #426aa6,
    #3a8ac2,
    #3babd9,
    #4eccea,
    #70ecf8
  );
  max-width: 90vw;
  /* min-height: 50vh; */
  max-height: fit-content;
  margin: 2rem auto 5rem;
  font-size: 2.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  /* justify-content: space-between; */
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 1rem 5rem rgba(0, 0, 0, 0.3);
}

.modal {
  width: 85%;
  min-height: fit-content;
  max-height: 90%;
  background-color: rgba(116, 151, 226, 1);
  position: absolute;
  /* top: 50%; */
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 3rem 5rem rgba(0, 0, 0, 0.3);
  z-index: -1;
  border-radius: 5px;
  padding: 4rem;
  border: 2px solid rgb(54, 48, 48);
  transition: all 0.5s;
}

.modal__answer-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal__section-1 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  justify-self: center;
  align-items: center;
  min-width: 50%;
  max-width: 50%;
  border-right: 3px dashed #222;
  padding-right: 3rem;
  margin-right: 3rem;
}

.modal__section-2 {
  min-width: 50%;
  max-width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section__2__heading {
  margin-bottom: 1rem;
  font-family: 'Nunito', sans-serif;
  display: flexbox;
  font-size: 2.2rem;
  font-weight: 800;
  text-align: center;
}

.modal__answer-exp {
  border: 1px solid rgba(133, 92, 92, 0.575);
  border-radius: 4px;
  padding: 2rem;
  font-family: 'Nunito', sans-serif;
  text-align: left;
  font-size: 1.6rem;
}

.span__title1 {
  font-weight: 800;
}
.span__title2 {
  font-weight: 700;
}
.span__title3 {
  font-weight: 600;
}

.nowrap {
  white-space: nowrap;
}

.modal__close {
  position: absolute;
  font-size: 5rem;
  color: rgb(28, 13, 65);
  top: -9px;
  right: 9px;
  cursor: pointer;
  background: none;
  border: none;
}

/* .modal__btn-close {
  font-family: 'Nunito', sans-serif;
  position: absolute;
  bottom: -61px;
  left: 50%;
  transform: translate(-50%);
  background-color: #cbe95e;
  padding: 1rem;
  border-radius: 3px;
  font-size: 1.5rem;
  font-weight: bold;
  border: 2px solid rgb(54, 48, 48);
  cursor: pointer;
} */

.modal__heading {
  margin-bottom: 2.3rem;
  font-family: 'Roboto Slab', serif;
  font-size: 3rem;
  text-align: center;
}

.modal__text-label {
  font-family: 'Nunito', sans-serif;
  display: inline-block;
  font-weight: bold;
  font-size: 2rem;
  margin: 1.8rem 0 0.5rem;
}

.modal__text {
  font-family: 'Nunito', sans-serif;
  font-size: 1.5rem;
}

.overlay {
  backdrop-filter: blur(3px);
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  background-color: rgba(0, 0, 0, 0.6);
  transition: all 0.5s;
}

form {
  display: flex;
  flex-direction: column;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.question {
  margin-top: 2rem;
  padding: 1.5rem 4.5rem;
  font-weight: bold;
  text-align: justify;
  line-height: 1.3;
}

.answer {
  background-color: violet;
  padding: 1rem;
  border: 3px dashed #222;
  margin: 1rem auto;
  max-width: 60%;
  min-width: 30%;
  border-radius: 0.5rem;
}

.answer:focus {
  outline: none;
}

.answer::placeholder {
  font-family: 'Nunito', sans-serif;
  text-transform: capitalize;
  color: #666;
  font-weight: bold;
  text-align: center;
}

.submit-answer {
  font-family: inherit;
  margin: 2rem auto;
  min-width: 20%;
  max-width: 50%;
  background-color: #cbe95e;
  padding: 1rem;
  border-radius: 2rem;
  font-size: 1.5rem;
  font-weight: bold;
  border: 3px ridge indigo;
  cursor: pointer;
}

.notice {
  font-family: 'Nunito', sans-serif;
  padding: 2rem;
  background-color: rgb(241, 96, 43);
  text-align: center;
  font-weight: bold;
  font-size: 1.7rem;
  border-radius: 5px;
  border: 2px double #222;
  margin: 2rem 2rem 1.5rem;
}

.footer {
  font-family: 'Roboto Slab', serif;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  font-size: 1.4rem;
  text-align: center;
}

a:link {
  color: red;
  font-family: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:active {
  color: black;
}

a:visited {
  color: purple;
}

@media screen and (max-width: 800px) {
  .section__2__heading {
    font-size: 1.9rem;
  }

  .modal__close {
    font-size: 4rem;
    top: -5px;
    right: 9px;
  }

  .modal__heading {
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-size: 2.2rem;
  }

  .modal__text-label {
    font-size: 1.7rem;
  }
  .modal__text {
    font-size: 1.4rem;
  }
  .modal__answer-exp {
    padding: 1rem;
    font-size: 1.4rem;
  }

  body {
    overflow: scroll;
  }
  .question {
    font-size: 2.3rem;
  }
  .notice {
    font-size: 1.3rem;
  }
  .modal {
    position: absolute;
    overflow-y: scroll;
    top: 50%;
    padding: 0.9rem;
  }
  .modal__answer-container {
    flex-direction: column;
  }
  .modal__section-1 {
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 3px dashed #222;
    border-right: none;
    padding-right: 0;
    margin-right: 0;
    min-width: 90%;
    max-width: 90%;
  }
  .modal__section-2 {
    min-width: 90%;
    max-width: 90%;
  }
}
@media screen and (max-width: 700px) {
  .question {
    font-size: 2.1rem;
  }
  .notice {
    font-size: 1.3rem;
  }
}
@media screen and (max-width: 600px) {
  .question {
    font-size: 1.5rem;
    padding: 1.5rem 3rem;
  }
  .main-heading {
    font-size: 2.4rem;
  }
  .footer {
    font-size: 1.2rem;
  }
  .submit-answer {
    font-size: 1.3rem;
  }
}
@media screen and (max-width: 500px) {
  .question {
    font-size: 1.45rem;
    padding: 1.5rem 3rem;
  }
  .main-heading {
    font-size: 2rem;
  }
}
@media screen and (max-width: 400px) {
  .question {
    font-size: 1.15rem;
    padding: 1.5rem 1.5rem;
  }
  .main-heading {
    font-size: 1.8rem;
  }
  .answer {
    max-width: 47%;
  }
  .answer::placeholder {
    font-size: 1.1rem;
  }
}

@media screen and (max-width: 320px) {
  .question {
    font-size: 1rem;
    text-align: left;
    padding: 1.5rem 1.5rem;
  }
  .main-heading {
    font-size: 1.5rem;
  }
  .footer {
    font-size: 1rem;
  }
  .submit-answer {
    font-size: 0.9rem;
  }
  .answer::placeholder {
    font-size: 0.8rem;
  }
  .notice {
    font-size: 1rem;
  }
}
