/* * {
  outline: 1px solid red;
} */
body {
  background-color: rgba(214, 200, 252, 0.253);
}
.container {
  margin-top: 20px;
}
.row {
  display: flex;
  margin: 30px;

  justify-content: center;
}
/* nav bar */
.nav-items ul {
  display: none;
}
/* input page */
.input-container {
  margin: 0;
  padding: 10px;
  width: 100%;
  height: 100%;
  text-align: center;
  background-color: rgba(216, 216, 216, 0.692);
  position: fixed;
  top: 0;
  display: flex;
  z-index: 1;
  justify-content: center;
}

.subhover {
  margin: 4px;
  border: 1px solid rgba(122, 101, 124, 0.671);
  box-shadow: 0px 3px 8px #8f7394;
  color: rgb(81, 77, 110);
  border-radius: 1px;
  background-color: rgb(255, 243, 243);
}

.input-div {
  margin: auto auto;
  background-color: rgba(178, 139, 194, 0.87);
  padding: 10px;
  height: 140px;
  font-size: 14px;
  display: flex;
  justify-content: center;
  flex-direction: column;
  color: rgba(27, 23, 27, 0.74);
  border: 2px solid rgb(253, 247, 247);
}
.input-div p {
  margin: 0px;
}
.name {
  margin: 5px;
}
.input {
  width: 40%;
}

/* logo */
.logo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-image: linear-gradient(
    rgb(251, 218, 253),
    rgba(254, 241, 255, 0.253)
  );
  border: 3px solid rgba(123, 131, 247, 0.26);
  border-bottom: none;
  border-radius: 10px;
  border-bottom-left-radius: 1px;
  border-bottom-right-radius: 1px;
  margin-top: 0;

  /* border-bottom: 2px solid blue; */
}
.logo img {
  width: 200px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-top: 30px;
  animation: rotating-logo;
  animation-duration: 1s;
}

.logo h1 {
  text-align: center;
  margin-top: 20px;
  position: relative;
  top: -40px;
  /* right: 70px; */
  bottom: 100px;
  color: rgb(113, 99, 212);
  text-shadow: 3px 3px 2px rgb(247, 157, 250);
  font-family: "Merriweather Sans", sans-serif;
  letter-spacing: 7px;
  font-weight: 900;
}

/* questions */
.ans {
  display: flex;
  flex-direction: column;
  height: 400px;
  border-radius: 10px;
  background: linear-gradient(
    rgba(254, 246, 255, 0.253),
    rgba(251, 218, 253, 0.753)
  );
  border: 3px solid rgba(123, 131, 247, 0.185);
  border-top: none;
  border-top-left-radius: 1px;
  border-top-right-radius: 1px;
}
#question {
  text-align: center;
  font-size: 20px;
  padding: 40px;
  color: rgb(153, 146, 212);
  font-family: "Alfa Slab One", cursive;
}
#answer {
  text-align: center;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

#answer button {
  color: rgb(112, 107, 194);
  font-size: 15px;
  width: 40%;
  height: 70px;
  margin: 30px;
  border-radius: 4%;
  border: 1px solid black;
  font-family: "Alfa Slab One", cursive;
  letter-spacing: 2px;
}
#scores {
  justify-content: space-around;
  width: 250px;
  height: 150px;
  text-align: center;
  margin: 0 auto;
  height: 50px;
  background-color: white;
  font-size: 9px;
  padding: 2px;
  padding-bottom: 10px;
  border-radius: 12%;
  font-family: "Merriweather Sans";
  background: linear-gradient(
    rgba(251, 218, 253, 0.753),
    rgba(254, 246, 255, 0.253),
    rgba(251, 218, 253, 0.753)
  );
  box-shadow: 5px 5px 8px #f2d8f7;
  color: rgb(109, 105, 160);
}
#player1,
#player2 {
  background-color: rgba(250, 248, 248, 0.027);
  width: 30%;
  border-bottom: 1px solid rgba(48, 41, 85, 0.315);
}
.line {
  margin: 10px;
  margin-bottom: 0;
  outline: 1px solid rgba(0, 0, 0, 0.247);
}
/* winner */
.wincon {
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.514);
  position: fixed;
  top: 0;
  display: none;
}
.winner {
  display: flex;
  flex-direction: column;
  background-color: rgb(161, 136, 194);
  text-align: center;
  width: 50%;
  margin: 40% auto;
  border: 2px solid rgba(139, 108, 211, 0.568);
  border-radius: 10px;
  box-shadow: 4px 4px 4px black;
}
.winner h4,
.winner p {
  color: rgb(245, 245, 245);
  font-size: 80%;
}
.winner p {
  color: #29152c;
}
/* reset button */
.reset,
#reset {
  margin: 10px auto;
  border: 1px solid rgba(106, 87, 107, 0.671);
  box-shadow: 0px 6px 8px #8f7394;
  color: rgb(153, 146, 212);
  border-radius: 2px;
}
#correctAns {
  display: none;
}
/* allbutton hover */
button:hover {
  box-shadow: 0px 6px 8px #403442;
  transform: translateY(-4px);
}
.subhover:hover {
  box-shadow: 2px 2px 4px rgb(25, 25, 31);
}

/* media qureies */
@media (min-width: 320px) and (max-width: 680px) {
  #answer {
    margin-right: 0;
    margin-left: 0;
  }

  #answer button {
    margin-top: 0;
    height: 30px;
    font-size: 10px;
    width: 50%;
  }

  .logo h1 {
    font-size: 1rem;
  }
  .input-div {
    position: relative;
    right: 20px;
  }
}

/* keyframes */
@keyframes rotating-logo {
  0% {
    transform: rotate(90deg) scale(0.5) translate(-20, -20);
  }

  100% {
    transform: rotate(360deg) scale(1) translate(0, 0);
  }
}
