body {
    font-family: 'Courier New', monospace;
    margin: 0;
    padding: 0;
    background-color: #222;
    color: #fff;
    transition: background-color 0.5s, color 0.5s;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #333;
    box-shadow: 0 0 10px #ff00ff;
}

h1 {
    font-size: 2.5rem;
    color: #ff66cc;
    text-shadow: 0 0 5px #00ff00;
}

button {
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    background-color: #ff66cc;
    color: #282c34;
    box-shadow: 0 0 10px #ff66cc;
    transition: 0.3s;
    border-radius: 5px;
}

button:hover {
    background-color: #96eb96;
    color: black;
    transform: scale(1.1);
    box-shadow: 0 0 30px #96eb96;
}

.dark-mode {
    background-color: #1a1a1a;
    color: #66ff66;
}

.light-mode {
    background-color: #f0f0f0;
    color: #2b2b2b;
}
#game-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    grid-template-rows: repeat(3, 1fr); 
    gap: 5px;
    max-width: 395px; 
    margin: 40px auto;
    padding: 20px;
    background-color: #000;
    border: 5px solid #ff00ff;
    box-shadow: 0 0 20px #ff66cc;
    border-radius: 10px;
}

.cell {
    width: 120px; 
    height: 120px; 
    background-color: #333;
    border: 3px solid #ff66cc;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    border-radius: 8px;
}

.cell:hover {
    background-color: #ff66cc;
    color: black;
    transform: scale(1.1);
}

.popup {
    text-align: center;
    background-color: #222;
    padding: 20px;
    border: 5px solid #ff66cc;
    margin: 40px auto;
    max-width: 400px;
    box-shadow: 0 0 20px #00ff00;
    border-radius: 10px;
}

.popup h2 {
    color: #ff66cc;
    text-shadow: 0 0 5px #00ff00;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.5s;
}

.modal-content {
    background: #222;
    padding: 30px;
    text-align: center;
    border: 5px solid #ff66cc;
    color: #00ff00;
    font-size: 2em;
    box-shadow: 0 0 20px #ff66cc;
    border-radius: 10px;
    animation: pulse 1s infinite alternate;
}

#result-message {
    font-size: 2.5em;
    color: #ff66cc;
    text-shadow: 0 0 10px #00ff00;
}

#restartGame {
    margin-top: 20px;
    font-size: 1.2em;
    padding: 10px 20px;
    background-color: #66ff66;
    border: 2px solid #ff66cc;
    color: black;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
    border-radius: 5px;
}

#restartGame:hover {
    background-color: #ff66cc;
    border-color: #66ff66;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 10px #ff66cc;
    }
    100% {
        box-shadow: 0 0 20px #66ff66;
    }
}

footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    text-align: center;
    margin: 40px;
    font-size: 1.2rem;
    color: #ff66cc;
    text-shadow: 0 0 5px #00ff00;
}

.made-with {
    background-color: rgba(34, 34, 34, 0.9);
    color: #ff66cc;
    text-align: center;
    padding: 15px;
    margin: 20px auto;
    border: 2px solid #ff66cc;
    border-radius: 10px;
    box-shadow: 0 0 10px #ff00ff;
    max-width: 300px;
    font-size: 1.2rem;
    animation: fadeIn 1s ease-in;
}

.made-with:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px #00ff6a;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

footer div {
    background-color: rgba(34, 34, 34, 0.9);
    padding: 15px;
    border: 2px solid #ff66cc;
    border-radius: 10px;
    box-shadow: 0 0 10px #ff00ff;
    width: 350px;
    height: 280px;
    transition: background-color 0.3s, transform 0.3s;
    margin: 0 10px;
}

footer div:hover {
    background-color: #ff66cc;
    transform: scale(1.05);
}

footer h2 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ff66cc;
    text-shadow: 0 0 5px #00ff00;
    background-color: rgba(61, 55, 55, 0.8);
    padding: 10px;
    border-radius: 5px;
}

footer ul {
    list-style: none;
    padding: 0;
    font-size: 1rem;
}

footer li {
    padding: 5px 0;
    transition: color 0.3s;
}

footer li:hover {
    color: #66ff66;
}

.github p {
    margin: 10px 0;
}

.github a {
    color: #ff66cc;
    text-decoration: none;
    transition: color 0.3s;
}

.github a:hover {
    color: #66ff66;
}

.light-mode body {
    background-color: #f0f0f0;
    color: #2b2b2b;
}

.light-mode header {
    background-color: #e0e0e0;
}

.light-mode #game-board {
    background-color: #fff;
}

.light-mode .cell {
    background-color: #f8f8f8;
    border: 3px solid #ff66cc;
}

.light-mode .cell:hover {
    background-color: #ff66cc;
}

.light-mode .popup {
    background-color: #f9f9f9;
}

.light-mode .modal-content {
    background: #fff;
}

.light-mode #restartGame {
    background-color: #66ff66;
}

.light-mode .made-with {
    background-color: rgba(255, 255, 255, 0.9);
    color: #2b2b2b;
}

.light-mode footer div {
    background-color: rgba(255, 255, 255, 0.9);
}

.light-mode footer h2 {
    background-color: rgba(255, 255, 255, 0.8);
}
@media screen and (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    #game-board {
        max-width: 350px;
        gap: 5px;
    }

    .cell {
        width: 100px;
        height: 100px;
        font-size: 1.5rem;
    }

    button {
        font-size: 0.8rem;
        padding: 5px 10px;
    }

    footer {
        flex-direction: column;
    }

    footer div {
        width: 85%;
        margin: 3%;
    }

    footer h2 {
        font-size: 1.2rem;
    }

    footer ul {
        font-size: 0.8rem;
    }
}
