* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: linear-gradient(135deg, #333, #555);
    color: #fff;
    font-family: 'Arial', sans-serif;
    text-align: center;
}

#container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    padding: 10px;
    background: linear-gradient(135deg, #d3bbb7, #b29e9e);
    border: 2px solid #222;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    height: 475px;
    width: 475px;      
}

#grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 10px;
    height: 100%;
    width: 100%;
}

.cell {
    width: 100%;
    height: 100%;
    background-color: #1f7a89;
    border-radius: 10px;
    border: 2px solid #a0c061;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5em;
    cursor: pointer;
    color: #fff;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cell:hover {
    background-color: #1a5fa2;
    transform: scale(1.05);
}

#turn {
    font-size: 30px;
    color: #fff;
    margin: 20px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.start-btn, .restart-btn {
    width: 120px;
    background: linear-gradient(135deg, #05d7f3, #03b3ca);
    color: white;
    padding: 12px 15px;
    text-align: center;
    text-decoration: none;
    font-size: 20px;
    margin: 20px 5px;
    cursor: pointer;
    border: 2px solid #222;
    border-radius: 8px;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.start-btn:hover, .restart-btn:hover {
    background-color: #028ba1;
    transform: translateY(-3px);
}

