* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}

body {
  width: 100%;
  height: 100vh;
  background: linear-gradient(to right bottom, #08203e, #557c93);
  color: #ffffff;
  display: grid;
  place-items: center;
}

.container {
  width: 80%;
  max-width: 850px;
  text-align: center;
  padding: 30px;
  display: none;
}

.container h1 {
  font-size: 36px;
  margin-bottom: 40px;
  text-decoration: underline;
  text-underline-offset: 8px;
}

.container .question {
  font-size: 26px;
  margin-top: 20px;
}

.container .choices {
  margin-top: 20px;
}

.choice {
  font-size: 20px;
  background-color: aliceblue;
  color: black;
  margin: 10px auto;
  padding: 10px;
  border-radius: 8px;
  text-align: left;
  width: 60%;
  cursor: pointer;
  opacity: 0;
  transform: translateY(50%);
  animation: fade-in 0.5s ease forwards;
}

.choice:hover {
  background-color: bisque;
}

.choice.selected {
  background-color: #007bff;
  color: white;
}

.btn {
  width: 60%;
  font-size: 20px;
  padding: 12px 20px;
  font-weight: 600;
  margin: 20px auto 0 auto;
  background-color: #006400;
  color: #ffffff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.btn:hover {
  background-color: #08780c;
}

.scoreCard {
  font-size: 24px;
  margin-top: 20px;
}

.alert {
  background-color: #5d9b63;
  border-radius: 5px;
  width: 100%;
  padding: 12px;
  position: absolute;
  top: 0;
  display: none;
}

.startBtn {
  width: 14%;
  padding-block: 20px;
  text-align: center;
}

.timer {
  position: absolute;
  top: 20px;
  right: 20px;
  height: 72px;
  width: 72px;
  border-radius: 50%;
  font-size: 24px;
  font-weight: 600;
  background-color: #08203e;
  padding: 12px;
  border: 2px solid #ff0000;
  display: grid;
  place-items: center;
  animation: pulse 1s ease-in-out infinite;
}

h3 {
  color: red;
}

/* adding animation to .timer */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  20% {
    transform: scale(1.05);
  }
  40% {
    transform: scale(1.1);
  }
  80% {
    transform: scale(1.01);
  }
  100% {
    transform: scale(1);
  }
}
/* adding animation to .choices */
@keyframes fade-in {
  0% {
    opacity: 0;
    transform: translateY(50%);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media screen and (max-width: 900px) {
  .container {
    width: 100%;
    margin-top: 50px;
  }
  .container h1 {
    font-size: 24px;
  }
  .container .question {
    font-size: 21px;
  }
  .timer {
    width: 50px;
    height: 50px;
    font-size: 20px;
    place-items: center;
  }
  .startBtn {
    width: 30%;
  }
}
