/*
 * Copyright (c) 2025-2026 Evolution Creek Software. All rights reserved.
 *
 * Unauthorized copying, linking, or other unintended use of this file
 * (in part or in whole) is strictly prohibited.
 */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}


#grid {
  width: clamp(200px, 60vw, 350px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: clamp(10px, 0.5vw, 20px);
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  margin-top: 2.5rem;
}

#grid div {
  width: 100%;
  box-sizing: border-box;
  aspect-ratio: 1/1;
  overflow: hidden;
  border: 2px solid saddlebrown;
  font-family: "Sniglet", system-ui;
  font-weight: normal;
  border-radius: 4px;
  font-size: clamp(40px, 2vw, 3.5rem);
  display: flex;
  background-color: blanchedalmond;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s ease;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

@keyframes zoomAnimation {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.zoom{
  animation: zoomAnimation 0.2s ease;
}

@media (hover: hover) and (pointer: fine){
  #grid div:hover {
    background-color: lightcyan;
    transform: scale(1.05);
  }

  .button:hover{
    background-color: peru;
  }
}

#scoreBoard {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
  font-family: 'Caveat', cursive;
  font-size: 30px;
  justify-content: center;
  text-align: center;
}

.score {
  min-width: 80px;
}

#statusMessage{
  font-family: 'Caveat', cursive;
  font-size: clamp(24px, 4vw, 40px);
  text-align: center;
  margin-top: 1rem;
  padding: 0 1rem;
  box-sizing: border-box;
}

#buttons{
  display: flex;
  gap: 2.5rem;
  margin-top: 0.3rem;
  margin-bottom: 2rem;
}

.button {
  margin-top: 20px;
  width: min(200px, 30vw);
  display: flex;
  color: black;
  font-family: 'Caveat', cursive;
  white-space: nowrap;
  justify-content: center;
  align-items: center;
  font-size: 30px;
  padding: 0.5em 1em;
  border: 2px solid black;
  border-radius: 10px;
  cursor: pointer;
  background-color: moccasin;
  color: black;
  transition: background-color 0.4s ease, border-color, 0.4s ease, color 0.4s ease, box-shadow 0.4s ease, transform 0.2s ease;
}

#lifetimeStats {
  display: flex;
  width: 95vw;
  gap: 2rem;
  margin-top: 0.25rem;
  font-family: 'Caveat', cursive;
  font-size: clamp(20px, 3vw, 30px);
  justify-content: center;
  text-align: center;
}

@media (max-width: 600px) {

  #grid {
    width: 90vw;
    gap: clamp(5px, 2vw, 10px);
  }

  #grid div {
    font-size: 50px;
    line-height: 1;
  }

  #scoreBoard{
    font-size: 30px;
    width: 95vw;
  }

  #statusMessage{
    font-size: 40px;
  }

  #buttons{
    max-width: 90vw;
  }

  .button{
    width: 35vw;
    font-size: 25px;
    padding: 0.5em 0.5em;
    border-radius: 10px;
  }

}
