@import url("https://fonts.googleapis.com/css2?family=Dosis:wght@400;500;600;700;800&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&display=swap");

* {
  box-sizing: border-box;
}

html,
input,
select {
  font-family: "Roboto", sans-serif !important;
  font-size: 10px;
  color: #ffffff;
}

body {
  padding: 0px;
  margin: 0px;
  background-image: url("../images/male_background.jpg");
  background-size: cover;
  background-position: center;
}

input,
select {
  font-size: 1.3rem;
  color: black;
}

input::placeholder {
  color: black;
}

.hidden {
  visibility: hidden;
}

button {
  background-color: #00ac59;
  border: 5px solid white;
  border-radius: 5px;
  color: #ffffff;
  padding: 10px 20px;
  width: 100%;
  max-width: 300px;
  margin-top: 20px;
  font-size: 1.3rem;
}

.greenOverlay {
  background-color: rgba(0, 167, 88, 0.5);
}

.fullGreenOverlay {
  background-color: rgba(0, 167, 88, 1);
}

.navbar {
  display: flex;
  justify-content: space-between;
  padding: 10px 30px;
  position: absolute;
  top: 0px;
  width: 100%;
  border-bottom: 2px solid white;
  font-size: 2rem;
  background-color: #00ac59;
}

.navbar a {
  color: #ffffff;
  text-decoration: none;
}

.loginContainer {
  max-width: 680px;
  width: 90%;
  position: relative;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  min-height: 100vh;
}

.signupContainer {
  max-width: 680px;
  width: 90%;
  position: relative;
  margin: 0px auto;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  min-height: 100vh;
  padding: 100px 0px;
}

.gameContainer {
  max-width: 680px;
  width: 90%;
  position: relative;
  margin: 0px auto;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  min-height: 100vh;
  padding: 100px 0px;
}

.loginLogo {
  max-width: 200px;
  width: 90%;
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.loginLogo img {
  max-width: 200px;
  width: 90%;
}

#login {
  max-width: 300px;
  width: 90%;
  display: flex;
  flex-direction: column;
}

#login input {
  width: 100%;
  border: 0px;
  padding: 1rem 1.5rem;
  margin: 1rem 0rem;
  border-radius: 3px;
}

.forgotPass {
  width: 100%;
  text-align: center;
  margin-top: 20px;
}

.forgotPass a {
  color: #ffffff;
  display: block;
  text-decoration: none;
}

#signup {
  max-width: 300px;
  width: 90%;
  display: flex;
  flex-direction: column;
}

#signup input,
#signup select {
  width: 100%;
  border: 0px;
  padding: 1rem 1.5rem;
  margin: 1rem 0rem;
  border-radius: 3px;
}

select:disabled {
  color: red;
  font-weight: bold;
}

option {
  padding: 0;
}

.gameHeader {
  font-size: 4rem;
  font-family: "Roboto";
  text-align: center;
}

.gameSum {
  font-size: 15rem;
  font-family: "Dosis";
  font-weight: 900;
  text-align: center;
  margin-bottom: 50px;
  display: flex;
  justify-content: space-evenly;
  gap: 10px;
  padding: 20px;
  border-radius: 20px;
}

.gameSum span {
  display: block;
}

.testCorrect {
  background-color: #40ca40;
}

.answer {
  background-color: transparent;
  border: none;
  font-size: 15rem;
  font-family: "Dosis" !important;
  font-weight: 900;
  text-align: left;
  color: #ffffff;
  /* border: 1px solid white;
  background-color: #ffffff; */
  border-radius: 4px;
}

.keyboard {
  position: relative;
  margin: 0 auto;
  max-width: 400px;
  width: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.keyboard .key {
  max-width: 120px;
  width: 100%;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
  font-size: 2rem;
  font-family: "Dosis";
  font-weight: 900;
  text-align: center;
  background-color: #ffffff;
  border-radius: 4px;
  color: #00ac59;
  margin: 6px;
}

.keyboard .key:active {
  background-color: #00ac59;
  color: #ffffff;
}

.keyboard .key:hover {
  cursor: pointer;
}

.round-time-bar {
  margin: 1rem;
  overflow: hidden;
  position: fixed;
  bottom: 0px;
  z-index: 99;
  width: 100%;
}
.round-time-bar div {
  height: 5px;
  animation: roundtime calc(var(--duration) * 1s) steps(var(--duration)) forwards;
  transform-origin: left center;
  background: white;
}

.round-time-bar[data-style="smooth"] div {
  animation: roundtime calc(var(--duration) * 1s) linear forwards;
}

.gameSumOverlay {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  background-color: #00ac59;
  width: 100vw;
  height: 100vh;
  justify-content: center;
  align-items: center;
  display: none;
}

.gameSumOverlay .gameSum {
  font-size: 18rem;
}

.gameSumOverlay .answerOverlay {
  background-color: transparent;
  border: none;
  font-size: 18rem;
  font-family: "Dosis" !important;
  font-weight: 900;
  text-align: left;
  color: #ffffff;
  /* border: 1px solid white;
  background-color: #ffffff; */
  border-radius: 4px;
}

@keyframes roundtime {
  to {
    /* More performant than `width` */
    transform: scaleX(0);
  }
}
