*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
  padding: 0;
}
:root {
  --size: max(1vw, 1vh);
  --bg-clr: #ecdcb0;
  --box-clr: #c1d7ae;
  --clr-red: #e26d5a;
  --clr-green: #29524a;
  --clr-black: hsl(0, 0%, 5%, 0.75);
}

body {
  min-height: 100vh;
  /* overflow: hidden; */
  background-color: var(--bg-clr);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  transition: background-color 1s;
}
.scores {
  width: 90%;
  margin: 0 auto;
  font-weight: bold;
  padding-top: 2rem;
  padding-bottom: 1rem;

  display: flex;
  justify-content: space-between;
  color: var(--clr-black);
  font-size: clamp(1rem, 5vw, 2rem);
}

.grid-container {
  margin: 0 auto;
  user-select: none;
  font-size: clamp(1rem, 6vw, 3rem);

  color: white;
  gap: 2vw;
  width: min(90vw, 75vh);
  aspect-ratio: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(5, 1fr);
  position: relative;
  /* background-color: red; */
}

.reset .icon {
  /* position: absolute; */
  /* top: ;
  left: 50%; */

  background: url(./rotate-right-solid.svg) no-repeat;
  background-size: 2rem;
  border-radius: 50%;
  background-position: center;
  width: 4rem;
  background-color: var(--box-clr);
  padding: 0.25rem;
  aspect-ratio: 1;
  transform: rotate(0deg);
  margin: 1rem auto;
  transition: transform 0.5s ease-in-out;
  opacity: 0.75;
  /* outline: 1px solid red; */
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.rotate-div {
  animation: rotate 0.5s ease-in-out;
}

.box {
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  background-color: var(--box-clr);
  transition: background-color 500ms;
  opacity: 0.75;
}

.level {
  position: absolute;
  opacity: 0.5;
  width: 100%;
  height: 100%;
  font-family: monospace;
  /* background-color: greenyellow; */
  text-align: center;
  font-size: min(50vw, 50vh);
  display: grid;
  place-content: center;
  /* top: calc(50% ); */
  /* left: calc(50%); */
  z-index: -1;
}
.red {
  background-color: var(--clr-red);
}

.green {
  background-color: var(--clr-green);
}

footer {
  text-align: center;
  background-color: black;
  font-style: italic;
  padding-block: 0.5rem;
  padding-bottom: 0.75rem;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

a {
  color: skyblue;
  font-size: clamp(0rem, 4vw, 1rem);
}

a:hover,
a:focus {
  color: royalblue;
  outline: none;
}
