/* General Body Styling */
body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(120deg, #f6d365, #fda085);
}

/* Container Styling */
.container {
    text-align: center;
    background: #ffffff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 450px;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

.container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3);
}

/* Heading Styling */
h1 {
    margin-bottom: 20px;
    font-size: 2.8em;
    color: #444;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Board Styling */
.board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
}

/* Cell Styling */
.cell {
    width: 100%;
    height: 100px;
    background: #f7f9fc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3em;
    font-weight: 800;
    color: #ff6b81;
    cursor: pointer;
    border-radius: 12px;
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
    position: relative;
}

.cell::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15);
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: 12px;
}

.cell.clicked::after {
    opacity: 1;
}

.cell:hover {
    background: #ffe66d;
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Button Styling */
button {
    padding: 14px 28px;
    font-size: 1.4em;
    cursor: pointer;
    border: none;
    border-radius: 10px;
    background-color: #667eea;
    color: #fff;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
    margin-top: 20px;
}

button:hover {
    background-color: #764ba2;
    transform: scale(1.1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

button:active {
    background-color: #575fcf;
}

/* Status Styling */
#status {
    font-size: 1.6em;
    font-weight: 700;
    margin-top: 20px;
    color: #444;
    text-transform: uppercase;
    position: relative;
    padding: 12px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f8efba, #e1eec3);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
    animation: fadeInUp 0.8s ease-in-out;
    overflow: hidden;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#status.win {
    color: #27ae60;
    background: linear-gradient(135deg, #d4fc79, #96e6a1);
}

#status.draw {
    color: #e67e22;
    background: linear-gradient(135deg, #f6d365, #fda085);
}
