/*
 * 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.
 */

@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes rotate {
  to {
    --angle: 360deg;
  }
}

#grid {
  width: min(500px, 90vw);
  display: grid;
  position: relative;
  margin-top: 2rem;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(12, 1fr);
  aspect-ratio: 1/1;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.cell {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  overflow: visible;
  font-family: 'Salsa', cursive;
  font-weight: normal;
  font-size: 1.4rem;
  display: flex;
  justify-content: center;
  background-color: white;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s ease, color 0.3s;
  z-index: 5;
  touch-action: none;
  user-select: none;
  padding: 0.1em 0;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.thick-bottom {
  border-bottom: 3px solid saddlebrown;
}

.thick-top {
  border-top: 3px solid saddlebrown;
}

.thick-right {
  border-right: 3px solid saddlebrown;
}

.thick-left {
  border-left: 3px solid saddlebrown;
}

.top-left {
  border-top-left-radius: 10px;
}

.top-right {
  border-top-right-radius: 10px;
}

.bottom-left {
  border-bottom-left-radius: 10px;
}

.bottom-right {
  border-bottom-right-radius: 10px;
}

.hidden {
  display: none;
}

@keyframes zoomAnimation {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.zoom{
  animation: zoomAnimation 0.4s ease;
}

@media (hover: hover) and (pointer: fine){
  #grid div:hover {
    background-color: burlywood;
  }
}

#themeDiv {
  display: flex;
  gap: 2rem;
  margin-top: 0.5rem;
  font-family: 'Caveat', cursive;
  font-size: clamp(20px, 3vw, 30px);
  justify-content: center;
  text-align: center;
}

#scoreBoardDiv {
  display: flex;
  gap: 2rem;
  margin-top: 0.5rem;
  font-family: 'Caveat', cursive;
  font-size: clamp(20px, 3vw, 30px);
  justify-content: center;
  text-align: center;
}

.theme {
  min-width: 80px;
}

#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;
}

#buttons{
  display: flex;
  gap: 2.5rem;
  max-width: 90vw;
  display: flex;
  gap: 2.5rem;
  margin-bottom: 0.5rem;
  margin-top: 0.5rem;
}

.button {
  width: 190px;
  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;
  background-color: moccasin;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.button:active{
  transform: scale(0.95);
}

@media (hover: hover) and (pointer: fine) {
  .button:hover{
    background-color: peru;
  }
}

@media (max-width: 600px) {

  #grid {
    width: 97vw;
  }

  .cell {
    font-size: 20px;
    line-height: 1;
  }

  #themeDiv{
    font-size: min(30px, 5vw);
    width: 90vw;
  }

  #scoreBoardDiv{
    font-size: min(30px, 5vw);
    width: 90vw;
  }

  #lifetimeStats {
    font-size: min(28px, 5vw);
    gap: 1rem;
  }

  #buttons{
    max-width: 95vw;
    gap: 1rem;
  }

  .button{
    width: 150px;
    font-size: 25px;
    padding: 0.5em 0.5em;
    border-radius: 10px;
  }

  .button:hover{
    width: 150px;
  }
}
