.difficulty-toggle-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.toggle-label {
    font-weight: bold;
    font-size: 14px;
}

.difficulty-toggle {
    width: 60px;
    height: 26px;
    border-radius: 13px;
    background-color: #4CAF50; /* ON (Easy) */
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.difficulty-toggle.hard-mode {
    background-color: #f44336; /* OFF (Hard) */
}

.difficulty-toggle .toggle-thumb {
    width: 26px;
    height: 26px;
    background-color: #fff;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
    text-align: center;
    line-height: 26px;
    font-size: 10px;
    font-weight: bold;
    color: #4CAF50;
    transition: left 0.3s ease, color 0.3s ease;
}

.difficulty-toggle.hard-mode .toggle-thumb {
    left: 34px;
    color: #f44336;
}


.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0;
    right: 0; bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:checked + .slider:before {
    transform: translateX(26px);
}


.tic-tac-toe-container {
    font-family: Arial, sans-serif;
    text-align: center;
    margin: 20px auto;
}

.status {
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: bold;
}

.board {
    display: grid;
    grid-template-columns: repeat(3, 60px);
    grid-template-rows: repeat(3, 60px);
    gap: 10px;
    justify-content: center;
    margin: 20px auto;
}

.cell {
    width: 60px;
    height: 60px;
    background-color: #f9f9f9;
    border: 2px solid #444;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 10px;
    transition: background-color 0.3s;
}

.cell:hover {
    background-color: #e6e6e6;
}

#restart-btn {
    margin-top: 15px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
}
