/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Styles */
body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
    background-color: #222;
    transition: background-color 0.5s ease;
}

/* Game Container */
.game-container {
    padding: 40px;
    border-radius: 20px;
    width: 600px;
    background: linear-gradient(45deg, purple, deeppink);
    box-shadow: 0px 0px 20px rgba(255, 0, 255, 0.8);
    transition: all 0.5s ease;
}

h1 {
    font-size: 42px;
    color: white;
    margin-bottom: 20px;
}

#question {
    font-size: 28px;
    font-weight: bold;
    color: white;
    margin-bottom: 20px;
}

/* Option Buttons */
.option-btn {
    width: 100%;
    padding: 20px;
    font-size: 24px;
    font-weight: bold;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    background-color: black;
    color: white;
    transition: all 0.3s ease;
}

.option-btn:hover {
    transform: scale(1.05);
}

.option-btn:active {
    transform: scale(0.95);
}

/* OR Text */
.or-text {
    font-size: 24px;
    font-weight: bold;
    color: white;
    margin: 10px 0;
}

/* Result */
.hidden {
    display: none;
}

/* Inline Popup */
.inline-popup {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    border-radius: 5px;
    color: white;
    font-size: 16px;
    background-color: #ff4444;
    animation: fadeInOut 3s ease-in-out;
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { opacity: 0; }
}

/* Dark Mode */
body.dark-mode {
    background-color: #111;
}

body.dark-mode .game-container {
    background: linear-gradient(45deg, #8a2be2, #ff1493);
}

body.dark-mode .option-btn {
    background-color: black;
    color: white;
}

body.dark-mode .or-text {
    color: white;
}

/* Light Mode */
body.light-mode {
    background-color: white;
}

body.light-mode .game-container {
    background: linear-gradient(45deg, #ff99cc, #d599ff);
    box-shadow: 0px 0px 20px rgba(255, 150, 255, 0.8);
}

body.light-mode .option-btn {
    background-color: white;
    border: 2px solid black;
    color: black;
}

/* Toggle Switch */
.toggle-container {
    position: absolute;
    top: 20px;
    left: 20px;
}

#mode-toggle {
    display: none;
}

.toggle-label {
    width: 50px;
    height: 25px;
    background: white;
    border-radius: 50px;
    display: inline-block;
    position: relative;
    cursor: pointer;
}

.toggle-label::after {
    content: "";
    width: 20px;
    height: 20px;
    background: black;
    border-radius: 50%;
    position: absolute;
    top: 2.5px;
    left: 3px;
    transition: 0.3s ease;
}

#mode-toggle:checked + .toggle-label {
    background: black;
}

#mode-toggle:checked + .toggle-label::after {
    left: 27px;
    background: white;
}
