* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
    background-color: #F9A826;
    color: #2c2c2c;
    line-height: 1.6;
}

header {
    padding: 20px 40px;
    background: #f3951d;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo-text a {
    color: white;
    font-size: 28px;
    font-weight: 700;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: white;
    font-weight: 500;
    font-size: 18px;
    text-decoration: none;
}

.nav-links a:hover {
    opacity: 0.7;
}

.menu-icon {
    font-size: 32px;
    color: white;
    display: none;
    cursor: pointer;
}

.mobile-menu {
    position: absolute;
    top: 75px;
    right: 0;
    width: 100%;
    display: none;
    flex-direction: column;
    text-align: center;
    background: #f3951d;
    padding: 20px 0;
}

.mobile-menu a {
    font-size: 22px;
    color: white;
}

.mobile-menu.open {
    display: flex;
}


main {
    max-width: 600px;
    margin: auto;
    MARGIN-TOP: 130px;
    padding: 1rem;
}

.game-container {
    background: #fff3e0;
    border-radius: 14px;
    padding: 1.8rem;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15);
    text-align: center;
    border: 3px solid #f7a01f;
}

.game-info h2 {
    color: #d35400;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
    font-weight: 700;
}

#status {
    font-size: 1.25rem;
    font-weight: 600;
    color: #6e3b00;
    margin-bottom: 1rem;
}

.score-board {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.2rem;
}

.score {
    background: #f7a01f;
    padding: 0.8rem 1.3rem;
    border-radius: 10px;
    color: white;
    min-width: 110px;
}

.score span:first-child {
    font-weight: bold;
    text-transform: uppercase;
}

.score span:last-child {
    font-size: 1.7rem;
    margin-top: 0.2rem;
}


.board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 12px;
    margin: 0 auto 1.5rem;
    max-width: 310px;
}

.cell {
    background-color: #fff;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.7rem;
    font-weight: 700;
    border-radius: 12px;
    border: 3px solid #f7a01f;
    cursor: pointer;
    transition: 0.25s;
}

.cell:hover {
    background-color: #ffe0b2;
}

.cell.x {
    color: #e65100;
}

.cell.o {
    color: #f57c00;
}

.winning-cell {
    background-color: #d5f5e3;
    border-color: #27ae60;
}


.controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

button {
    padding: 0.8rem 1.5rem;
    border: none;
    font-size: 1rem;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.25s;
}

#reset-btn {
    background-color: #e67e22;
    color: white;
}

#reset-btn:hover {
    background-color: #cf6d15;
}

#new-game-btn {
    background-color: #2ecc71;
    color: white;
}

#new-game-btn:hover {
    background-color: #27ae60;
}


footer {
    margin-top: 100px;
    background: #f3951d;
    padding: 25px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.ieee-logo {
    width: 250px;
    max-width: 90%;
}


@media (max-width: 900px) {

    .nav-links {
        display: none;
    }

    .menu-icon {
        display: block;
    }

    .logo-text {
        font-size: 24px;
    }

    .top-title {
        font-size: 45px;
    }

    .stage-title {
        font-size: 26px;
    }

    footer {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}
