:root {
  --primary-color: rgb(52, 79, 121);
  --secondary-color: rgb(241, 228, 162);
  --header-bg: #275e10;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: var(--primary-color);
  box-sizing: border-box;
  height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  user-select: none;
}
@media (min-width: 768px) {
  body {
    height: 93vh;
  }
}

.container {
  position: relative;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  width: 100vw;
  height: 100vh;
  box-shadow: 0px 6px 30px 0px rgba(0, 0, 0, 0.3);
}
@media (min-width: 768px) {
  .container {
    width: 900px;
    height: 600px;
  }
}
.container .test-screen {
  display: flex;
  flex-direction: column;
}
.container .test-screen .content {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

/* options-screen */
.options-screen {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100vw;
  height: 100vh;
  background-color: #38465c;
  color: rgb(188, 206, 212);
  text-align: center;
  z-index: 30;
  h3 {
    font-weight: 300;
    font-size: 1.4rem;
    margin-bottom: 1rem;
  }

  .options-wrapper {
    padding: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;

    .option-number{
      flex: 1;
      display: flex;
      justify-content: center;
      align-items: center;
      min-width: 5rem;
      border: 1px solid rgb(188, 206, 212);
      border-radius: .6rem;
      padding: .5rem;
    }
  }

  .clear-cache{
    width: 100%;
    gap: .3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    svg{
      font-size: 1.2rem;
    }
    margin-top: 1.8rem;
    border: 1px solid rgb(188, 206, 212);
    /* border-radius: .6rem; */
    padding: 1rem 2rem;
    cursor: pointer;
    font-size: small;
  }
}

@media (min-width: 768px) {
  .options-screen{
    width: 900px;
    height: 600px;
  }
}

.container .test-screen .question {
  font-size: 1.2rem;
  z-index: 20;
}
@media (min-width: 768px) {
  .container .test-screen .question {
    font-size: 2rem;
  }
}
.container .test-screen .answers {
  padding: 2.1rem;
  height: fit-content;
  overflow-y: auto;
}
.container .test-screen .answer {
  position: relative;
  font-size: 1.2rem;
  margin-bottom: 20px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 1rem;
}
@media (min-width: 768px) {
  .container .test-screen .answer {
    font-size: 1.2rem;
  }
  .tap-to-continue{
    display: none;
    width: 0vw;
    height: 0vh;
  }
}
.container .test-screen .answer input[type=radio] {
  display: none;
}
.container .test-screen .answer span {
  width: 1rem;
  height: 1rem;
  border: 2px solid var(--primary-color);
  border-radius: 25%;
  transition: all 0.2s ease-in-out;
}
.container .test-screen .answer input[type=radio]:checked + span.success {
  width: 0.6rem;
  height: 1.5rem;
  border-radius: 0;
  margin-right: 0.45rem;
  transform: rotate(45deg) translateY(-0.3rem);
  border-color: green;
  border-top-color: transparent;
  border-left-color: transparent;
}
.container .test-screen .answer input[type=radio]:checked + span.failed {
  border-color: transparent;
  transform: rotate(90deg) translateY(-0.3rem);
}
.container .test-screen .answer input[type=radio]:checked + span.failed::before {
  position: absolute;
  top: 0.1rem;
  left: 0.52rem;
  background-color: red;
  content: "";
  width: 0.1rem;
  height: 1.53rem;
  transform: rotate(45deg);
}
.container .test-screen .answer input[type=radio]:checked + span.failed::after {
  position: absolute;
  top: 0.1rem;
  left: 0.52rem;
  background-color: red;
  content: "";
  width: 0.1rem;
  height: 1.53rem;
  transform: rotate(-45deg);
}
.tap-to-continue{
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  font-size: 1.5rem;
  z-index: 10;
}

.container h1 {
  margin: 0;
  padding: 1.5rem;
  text-align: center;
  color: white;
  font-weight: 300;
  background-color: var(--header-bg);
}

@media (min-width: 768px) {
  .container h1 {
    font-size: 1.8rem;
    padding: 2.1rem;
  }
}

.result {
  display: none;
}
.result div {
  padding-top: 3rem;
  font-size: 1.5rem;
  text-align: center;
}
.result div .correct {
  color: green;
}
.result div .wrong {
  color: red;
}
.result div .score {
  color: rgb(52, 105, 121);
}

.btn-container,
button.start {
  position: absolute;
  bottom: 0;
  width: 100%;
}

.btn-container {
  display: flex;
  z-index: 30;
}

button {
  color: white;
  background-color: #38465c;
  border: none;
  cursor: pointer;
  
  font-size: 1.5rem;
  padding: 0.6rem 2.1rem;
}

@media (min-width: 768px) {
   button{ 
    font-size: 1.8rem;
    padding: 1.2rem 2.1rem;
  }
}

button.submit {
  flex: 1;
  background-color: rgba(28, 136, 32, 0.726);
  transition: all 0.2s ease-in-out;
}
button.submit:hover {
  background-color: rgb(28, 136, 31);
}

.info {
  background-color: rgba(62, 96, 115, 0.9);
  color: whitesmoke;
  padding: 0.6rem;
  font-size: 1.4rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.succeed,
.failed {
  padding: 0.6rem;
  font-size: 1.4rem;
  display: flex;
  justify-content: center;
  align-items: center;
}
.succeed{
  color: green;
  background-color: #c0eeb8;
}
.failed{
  color: rgb(163, 8, 8);
  background-color: #eeb8b8;
}

.warning {
  background-color: rgb(0, 149, 255) !important;
}