body {
  position: relative;
  margin: 0;
  padding: 0;
}

.square-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(45px, 1fr)); /* Increased square size */
  grid-auto-rows: 45px; /* Increased square size */
  position: fixed;
  top: calc(2.5rem + 1rem); /* Header + Navbar height */
  left: 0;
  bottom: 0;
  width: 100%;
  height: calc(100% - 2.5rem - 1rem);
}

.square-grid-container div {
  border-radius: 10px;
  margin: 2px;
  opacity: 0;
  animation: fadeOut 1s ease-out forwards; /* Default fade out */
}

.square-grid-container div:nth-child(2n) {
  background-color: var(--green-color);
}

.square-grid-container div:nth-child(2n + 1) {
  background-color: var(--accent-color);
}

.square-grid-container div:nth-child(2n):hover {
  background-color: var(--green-color);
  animation: fadeInGreen 1s ease-in forwards; /* Even squares hover animation */
}

.square-grid-container div:nth-child(2n + 1):hover {
  background-color: var(--accent-color);
  animation: fadeInPurple 1s ease-in forwards; /* Odd squares hover animation */
}

.dont-show-square {
  z-index: 1;
  position: relative;
}

@keyframes fadeInGreen {
  0% {
    opacity: 0.4;
  }
  100% {
    opacity: 0.3;
  }
}

@keyframes fadeInPurple {
  0% {
    opacity: 0.4;
  }
  100% {
    opacity: 0.3;
  }
}

@keyframes fadeOut {
  0% {
    opacity: 0.3;
  }
  100% {
    opacity: 0;
  }
}
