@import url("https://fonts.googleapis.com/css2?family=Concert+One&display=swap");
*,
*::before,
*::after {
  box-sizing: border-box;
  font-family: "Concert One", cursive;
}
#loader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: black;
  z-index: 200;
  color: orangered;
  text-align: center;
  font-size: 48px;
  padding: 20px;
}

.fade-in {
  opacity: 0;
  animation: fadeIn 2s ease-in forwards;
}
b {
  color: rgb(255, 208, 0);
  font-size: 100px;
}
body {
  font-size: 20px;
  display: flex;
  background-color: #d88771;
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  justify-content: center;
  align-items: center;
  animation-name: example;
  animation-duration: 60s;
}

#container {
  width: 800px;
  height: 600px;
  border-radius: 5px;
  box-shadow: 0 2.8px 2.2px rgba(0, 0, 0, 0.308),
    0 6.7px 5.3px rgba(0, 0, 0, 0.335), 0 12.5px 10px rgba(0, 0, 0, 0.06),
    0 22.3px 17.9px rgba(0, 0, 0, 0.363), 0 41.8px 33.4px rgba(0, 0, 0, 0.086),
    0 100px 80px rgba(0, 0, 0, 0.404);
  position: relative;
  background-color: #d6bf73;
  background-image: url(Stuffs/img/pic.png);
  background-repeat: no-repeat;
  background-position: bottom;
  background-size: 30% 40%;
}
#start {
  color: #494949 !important;
  text-transform: uppercase;
  text-decoration: none;
  background: #ffffff;
  border: 4px solid #494949 !important;
  font-size: 60px;
  font-weight: bold;
  padding: 20px 40px;
  margin-top: 50px;
  margin-left: 160px;
  transition: all 0.4s ease 0s;
  animation: shake 1s;
  animation-iteration-count: infinite;
}
#start:hover {
  color: #ffffff !important;
  background: #f6b93b;
  border-color: #f6b93b !important;
  transition: all 0.4s ease 0s;
}

#qImg {
  width: 180px;
  height: 180px;
  position: absolute;
  right: 610px;
  top: 110px;
}
#qImg img {
  width: 180px;
  height: 180px;
  border-top-left-radius: 5px;
}

#question {
  width: 800px;
  height: 100px;
  position: absolute;
  right: 0;
  top: 0;
}
#question p {
  margin: 0;
  padding: 15px;
  font-size: 30px;
}

#choices {
  width: 580px;
  position: absolute;
  right: 0;
  top: 100px;
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 35px;
  margin: 10px 10px;
  transition: all 0.4s ease 0s;
  animation: drop 2s ease;
}
.choice {
  color: #494949 !important;
  text-transform: uppercase;
  text-decoration: none;
  background: #ffffff;
  padding: 20px;
  border: 4px solid #494949 !important;
  display: inline-block;
  transition: all 0.4s ease 0s;
  font-size: 25px;
}
.choice:hover {
  color: #ffffff !important;
  background: #f6b93b;
  border-color: #f6b93b !important;
  transition: all 0.4s ease 0s;
}

#timer {
  position: absolute;
  height: 100px;
  width: 200px;
  bottom: 0px;
  text-align: center;
}
#counter {
  font-size: 3em;
}

#progress {
  width: 500px;
  position: absolute;
  bottom: 0px;
  right: 0px;
  padding: 5px;
  text-align: right;
}
.prog {
  width: 10px;
  height: 10px;
  border: 1px solid #000;
  display: inline-block;
  border-radius: 50%;
  margin-left: 5px;
  margin-right: 5px;
}
#scoreContainer {
  margin: 20px auto;
  background-color: white;
  opacity: 0.9;
  height: 550px;
  width: 700px;
  border-radius: 5px;
  box-shadow: 0px 5px 15px 0px;
  position: relative;
  display: none;
  transition: all 0.4s ease 0s;
  animation: drop 2s ease;
}
#scoreContainer img {
  position: absolute;
  top: 200px;
  left: 325px;
}
#scoreContainer p {
  position: absolute;
  display: block;
  width: 59px;
  height: 59px;
  top: 230px;
  left: 325px;
  font-size: 1.5em;
  font-weight: bold;
  text-align: center;
}
footer {
  position: absolute;
  bottom: 10px;
  width: 100%;
  height: 50px;
  text-align: center;
  opacity: 0.5;
  font-size: 20px;
}
@keyframes shake {
  0% {
    transform: translate(1px, 1px) rotate(0deg);
  }
  10% {
    transform: translate(-1px, -2px) rotate(-1deg);
  }
  20% {
    transform: translate(-3px, 0px) rotate(1deg);
  }
  30% {
    transform: translate(3px, 2px) rotate(0deg);
  }
  40% {
    transform: translate(1px, -1px) rotate(1deg);
  }
  50% {
    transform: translate(-1px, 2px) rotate(-1deg);
  }
  60% {
    transform: translate(-3px, 1px) rotate(0deg);
  }
  70% {
    transform: translate(3px, 1px) rotate(-1deg);
  }
  80% {
    transform: translate(-1px, -1px) rotate(1deg);
  }
  90% {
    transform: translate(1px, 2px) rotate(0deg);
  }
  100% {
    transform: translate(1px, -2px) rotate(-1deg);
  }
}
@keyframes example {
  0% {
    background-color: #6d53e0;
  }
  10% {
    background-color: #53e0d4;
  }
  20% {
    background-color: #db4cb0;
  }
  35% {
    background-color: #dbbc54;
  }
  50% {
    background-color: #53a9db;
  }
  60% {
    background-color: #3149d4;
  }
  75% {
    background-color: #50d487;
  }
  100% {
    background-color: #d88771;
  }
}
@keyframes drop {
  0% {
    opacity: 0;
    transform: translateX(-80px);
  }
  100% {
    opacity: 1;
    transform: translateY(0px);
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@media screen and (max-width: 1600px) {
  #loader {
    font-size: 32px;
  }
  b {
    font-size: 40px;
  }
  footer {
    height: 10px;
  }
}
@media screen and (max-width: 1000px) {
  #loader {
    font-size: 22px;
  }
  b {
    font-size: 30px;
  }
  #container {
    width: 400px;
    height: 500px;
  }
  #start {
    font-size: 20px;
    margin: 100px;
  }
  #questions {
    width: 200px;
  }
  #choices {
    width: 180px;
    left: 100px;
    gap: 5px;
    bottom: 200px;
  }
  .choice {
    font-size: 20px;
    padding: 5px;
  }
  #question {
    width: 350px;
    height: 30px;
    position: absolute;
    top: 10px;
  }
  #question p {
    margin: 0;
    padding: 15px;
    font-size: 20px;
  }
  #scoreContainer {
    background-color: white;
    opacity: 0.9;
    height: 200px;
    width: 200px;
    opacity: 1;
  }
  #scoreContainer p {
    top: 0px;
    left: 60px;
  }
  #scoreContainer img {
    position: absolute;
    top: 100px;
    left: 60px;
  }
  footer {
    font-size: 15px;
  }
  #qImg {
    display: none;
  }
}
