body {
    background-color: #d8c3a5; 
    color: #ddd;
    font-family: courier;
    display: grid;
    align-content: center;
    justify-content: center;
    height: 100vh;
    overflow: hidden;
}

h1 {
    font-size: 30pt;
    font-weight: normal;
    text-align: center;
    color: #263238;
}

#grid {
    margin-left: auto;
    margin-right: auto;
}

#grid tr td {
    border: 1px solid #fff;
    background-color: #c3c0c0;
    width: 50px;
    height: 50px;
    text-align: center;
    font-size: 25pt;
    border-radius: 5px;
}

#grid tr td.active {
    background-color: #333;
}

#grid tr td.mine {
    background-color: #d84315;
}

#grid tr td.flag {
    background-color: #ffd700; /* Giallo per rappresentare la bandiera */
    color: #263238; /* Colore del testo della bandiera */
}

.button-container {
    display: flex;
    justify-content: center;
}

button {
    margin: 12px;
    padding: 10px 20px;
    border: none;
    outline: none;
    cursor: pointer;
    border-radius: 5px;
    background: linear-gradient(to right, #344859, #5680a7); 
    color: #fff;
    font-size: 16pt;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

button:hover {
    background: linear-gradient(to right, #344859, #5680a7); 
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

button:active {
    background: linear-gradient(to right, #344859, #426484); 
    box-shadow: 0 3px 4px rgba(0, 0, 0, 0.2);
    transform: translateY(1px);
}
@media only screen and (max-width: 700px) {
    h1 {
        font-size: 0pt;
        font-weight: normal;
        text-align: center;
        color: #263238;
    }
    button {
        margin: 8px;
        padding: 8px 13px;
        border: none;
        outline: none;
        cursor: pointer;
        border-radius: 5px;
        background: linear-gradient(to right, #344859, #5680a7); 
        color: #fff;
        font-size: 13pt;
        font-weight: bold;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        transition: 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    }
    
  }
    

