/* 🌌 Full Page Styling */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: #121212;
    color: white;
    font-family: "Press Start 2P", system-ui;   
    height: 100vh;
    margin: 0;
    text-align: center;
    line-height: 1.25;
    touch-action: manipulation;
    
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

}

/* 🏆 Game Title */
h1 {
    font-size: 3rem;
    font-family: "Press Start 2P", system-ui;
    text-transform: uppercase;
    color: #0f0;
    text-shadow: 2px 2px 5px #0f0;
    line-height: 1.5;
}

/* 🎲 Game Board Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 100px);
    grid-template-rows: repeat(3, 100px);
    gap: 10px;
    justify-content: center;
    margin: 20px auto;
    background-color: #222;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

/* 🔲 Game Cells */
.cell {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    color: white;
    font-size: 2.5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease-in-out;
}

/* 🖱️ Hover Effect */

.cell:hover {
    background-color: #0f0;
    transform: scale(1.1);
    transform: rotate(10deg);
  }


  /* ❌ ⭕ Player Tokens */
.token {
    width: 100%;
    height: auto; 
    transition: transform 0.3s ease-in-out;
}



/* 🎭 Move Message */
#moveMessage {
    text-align: center;
    font-size: 1.5rem;
    color: #fff;
    margin-top: 15px;
}

/* ⚠️ Error/Notices Message */
#notices {
    text-align: center;
    font-size: 1.2rem;
    color: red;
    font-weight: bold;
    margin-top: 10px;
}


button {
    font-family: "Press Start 2P", system-ui;
    font-size: 1.5rem;
    background-color: #0f0;
    color: black;
    border: none;
    border-radius: 5px;
    padding: 1rem 2rem;
}

@media (max-width: 600px) {
    html {
      font-size: 12px; /* Smaller overall text size on phones */
    }
  

    .grid {
      grid-template-columns: repeat(3, 80px);
      grid-template-rows: repeat(3, 80px);
      gap: 8px;
    }
  
    .cell {
      width: 80px;
      height: 80px;
      font-size: 1.5rem;
    }
    
    h1 {
      font-size: 2rem;
    }
  }