* {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
}

html {
  font-size: 50%;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  color: #222;
  background-color: white;
}

.backgroundImage {
  background-image: url("Sprial\ Gif.gif");
  background-size: 100% 100%;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
}

.backgroundGradient {
  background-image: radial-gradient(white, rgb(255, 0, 0));
  background-size: 100% 100%;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
}

main {
  height: 65vh;
  color: #222;
}

.active {
  display: inherit;
}

.deactive {
  display: none;
}

#Home {
  margin: 8%;
}

h1 {
  font-size: 4rem;
  text-align: center;
  margin: 10px 0;
  margin-bottom: 50px;
}

#scoreBox {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

#prevScores {
  display: inline-block;
  color: #fa3f3f;
  text-align: center;
  font-weight: bold;
  background-color: #000000bb;
  background-size: cover;
  font-size: 20px;
  width: 220px;
}

#Home h1 {
  color: #fa3f3f;
  font-size: 7rem;
  height: 10rem;
  animation-name: animateTitle;
  animation-duration: 2s;
  animation-delay: -1s;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

@keyframes animateTitle {
  from {
    font-size: 7rem;
    transform: rotate(-5deg);
  }

  to {
    font-size: 8rem;
    transform: rotate(5deg);
  }
}

/* Buttons */
.selbtn,
.seledbtn,
.btn {
  border: none;
  background-color: #222;
  color: #eee;
  font-size: 2rem;
  font-weight: bold;
  padding: 2rem 3rem;
  margin: auto;
  display: block;
  cursor: pointer;
  width: 150px;
  margin-top: 10px;

  animation-name: buttonHoverIn;
  animation-duration: 0.2s;
  animation-fill-mode: forwards;
}

.seledbtn {
  background-color: #555;
}

.selbtn:hover,
.seledbtn:hover,
.btn:hover {
  background-color: #777;
  animation-name: buttonHoverOut;

}

@keyframes buttonHoverIn {
  from {
    transform: scaleX(108%);
  }

  to {
    transform: scaleX(100%);
  }
}

@keyframes buttonHoverOut {
  from {
    transform: scaleX(100%);
  }

  to {
    transform: scaleX(108%);
  }
}

#checkBtn {
  margin: 0px 0px;
  width: 80px;
}

#Play {
  margin-top: 40px;
  width: 200px;
}

/* Guess Box */
#guessBox {
  display: flex;
  flex-direction: row;
  justify-content: center;
  height: 80px;
  margin-top: 100px;
}

#guess {
  background-color: inherit;
  border: 2px solid #222;
  font-size: 5rem;
  width: 500px;
  text-align: center;
  display: block;
}

#guess::-webkit-outer-spin-button,
#guess::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

/* Timer */
#timerSpan {
  width: 100%;
  height: 40px;
  display: flex;
  justify-content: flex-start;
}

#timer {
  width: 100%;
  height: 100%;
  color: #222;
  background-color: #000000aa;
}

/* Game Stats */
#gameStats {
  width: 100%;
  font-size: 20px;
  display: flex;
  justify-content: space-evenly;
  margin-bottom: 10%;
  margin-top: 10px;
}

/* Conversion Chart */
#conversionChart {
  position: fixed;
  font-weight: bold;
  right: 20px;
  font-size: 16px;
  display: inherit;
  text-align: center;
}