body {
    background-color: #222;
    color: #fff;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

.container {
    text-align: center;
    padding: 20px;
}

h1 {
    font-size: 48px;
    color: #f39c12;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
}

.mode-selection {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

button {
    font-size: 24px;
    padding: 10px 20px;
    cursor: pointer;
    border: none;
    background-color: #f39c12;
    color: #030303;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #e67e22;
}

.game-board {
    display: grid;
    grid-template-columns: repeat(3, 100px);
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
    align-items: center;
}

.cell {
    width: 100px;
    height: 100px;
    background-color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 36px;
    cursor: pointer;
    border: 2px solid transparent; /* Initial border color */
    transition: border-color 0.3s ease; /* Transition for border color */
}

.cell:hover {
    border-color: white; /* Border color change on hover */
}

.winning-pattern {
    color: #e74c3c;
    animation: strikeAnimation 0.5s ease-in-out 3;
}

@keyframes strikeAnimation {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.hidden {
    display: none;
}

p {
    font-size: 35px;
    font-weight: bold;
    margin-top: 20px;
}

.dark-mode-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    cursor: pointer;
    z-index: 1000;
}

.dark-mode-icon {
    font-size: 24px;
}

body.light-mode {
    background-color: #fff;
    color: #333;
}

.light-mode .cell {
    background-color: #b6b3b3;
    border: 1px solid #ddd;
}

.dark-mode .cell {
    background-color: #333;
}
/* Add this new class for draw condition */
.draw-pattern {
    border-color: white;
    transition: border-color 0.3s ease; /* Ensure smooth transition */
}
