/* Varibles */
:root {
    --bg-color: #121212;
    --text-color: #ffffff;
    --cell-bg: #1e1e1e;
    --cell-hover: #292929;
    --button-bg: #333;
    --button-hover: #727272;
    --highlight-color: #4caf50;
}

/* Styling */
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    transition: background-color 0.5s, color 0.5s;
}

h1 {
    margin-bottom: 20px;
}

.board {
    display: grid;
    grid-template-columns: repeat(3, 100px);
    grid-template-rows: repeat(3, 100px);
    gap: 5px;
}

.cell {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    background-color: var(--cell-bg);
    border: 2px solid #333;
    cursor: pointer;
    transition: background-color 0.3s;
}

.cell:hover {
    background-color: var(--cell-hover);
}

.disabled:hover {
    cursor: not-allowed;
}

.highlight {
    background-color: var(--highlight-color) !important;
    color: white;
}

.message {
    margin-top: 20px;
    font-size: 1.2em;
}

.reset {
    margin-top: 10px;
    padding: 10px 20px;
    font-size: 1em;
    background-color: var(--button-bg);
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.reset:hover {
    background-color: var(--button-hover);
}

.theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--button-bg);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--text-color);
    transition: background-color 0.3s, transform 0.5s;
}

.theme-toggle:hover {
    background-color: var(--button-hover);
}

.backToHome {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--button-bg);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--text-color);
    transition: background-color 0.3s, transform 0.5s;
}

.backToHome:hover {
    background-color: var(--button-hover);
}
