@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800&display=swap");

* {
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
}

:root {
  --black: black;
  --white: white;
  --lightgray: #9f9f9f;
  --darkgray: #7a7a7a;
  --orange: #f69906;
  --shadegray: #313131;
}
::-webkit-scrollbar {
  width: 5px;
  background-color: rgb(202, 200, 200);
}
::-webkit-scrollbar-thumb {
  background-color: var(--darkgray);
  width: 4px;
  border-radius: 10px;
}

header {
  padding: 1rem;
  background-color: var(--darkgray);
  display: flex;
  justify-content: space-around;
  align-items: center;
  text-transform: uppercase;
  position: sticky;
  top: 0;
}

.score {
  padding: 0.7rem 2rem;
  color: var(--white);
  background-color: var(--lightgray);
  display: flex;
  justify-content: space-between;
}

.lives,
.chances {
  display: flex;
  justify-content: center;
  padding-right: 1rem;
  align-items: center;
}

.start {
  padding: 0.7rem 2rem;
  color: var(--white);
  background-color: var(--lightgray);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 20px;
  font-weight: 400;
  font-size: medium;
  box-shadow: 1px 1px 5px var(--black);
  cursor: pointer;
}

main {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem 0px;
}

section {
  padding: 0.1rem;
  display: grid;
  width: 75%;
  grid-template-columns: repeat(auto-fit, minmax(5rem, 5rem));
  grid-auto-rows: minmax(5rem, 5rem);
  gap: 9px;
  margin: 5px;
}

button {
  background-color: rgb(250, 249, 246);
  border-radius: 50px;
  color: var(--black);
  font-weight: 200;
  font-size: large;
  box-shadow: 1px 1px 4px var(--black);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
}

summary {
  width: auto;
  height: 40vh;
  margin: 80px auto;
  border-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

h1 {
  font-size: 5rem;
  text-align: center;
  color: var(--shadegray);
  font-weight: 400;
}

.correct {
  background-color: #04aa6d;
  font-weight: 600;
  color: var(--white);
}

.wrong {
  background-color: #aa1111;
  font-weight: 600;
  color: var(--white);
}

.status {
  padding: 1em;
  color: white;
  font-weight: 600;
}

.hidden {
  display: none;
}

.game-over {
  cursor: not-allowed;
}

.timer {
  padding: 1rem;
  background-color: red;
}

@media only screen and (max-width: 800px) and (min-width: 461px) {
  h1 {
    font-size: 3rem;
    font-weight: 700;
  }

  section {
    width: 80%;
    grid-template-columns: repeat(auto-fit, minmax(1fr, 1fr));
    grid-auto-rows: minmax(5rem, 5rem);
  }
}

/* mobile */
@media only screen and (max-width: 460px) {
  h1 {
    font-size: 2.5rem;
    font-weight: 700;
  }

  .score {
    padding: 0.5rem 0.5rem;
    font-size: small;
  }

  .large {
    display: none;
  }

  .small {
    display: block;
  }
  .start {
    margin-right: 0.5rem;
    width: auto;
    padding: 0.3rem 1rem;
    font-size: small;
  }

  .start:hover {
    width: auto;
    height: 30%;
  }

  section {
    grid-template-columns: repeat(auto-fit, minmax(3.5rem, 3.5rem));
    grid-auto-rows: minmax(3.5rem, 3.5rem);
  }

  summary {
    width: auto;
  }
}
