/* RETRO GAMING TRIVIA THEME */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Exo+2:wght@300;400;700&family=Press+Start+2P&display=swap');

/* Cyberpunk Gaming Background */
body {
    font-family: 'Exo 2', sans-serif;
    background: 
        linear-gradient(135deg, #0a0a23 0%, #1a1a3a 30%, #2d1b69 60%, #0f0f2a 100%),
        repeating-linear-gradient(
            90deg,
            transparent 0px,
            rgba(0, 255, 255, 0.03) 1px,
            transparent 2px,
            transparent 40px
        ),
        repeating-linear-gradient(
            0deg,
            transparent 0px,
            rgba(255, 0, 255, 0.03) 1px,
            transparent 2px,
            transparent 40px
        );
    margin: 0;
    padding: 20px;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    animation: matrixRain 20s linear infinite;
}

/* Digital grid overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(90deg, rgba(0, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 0, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
    pointer-events: none;
    z-index: 1;
    animation: gridPulse 4s ease-in-out infinite;
}

@keyframes matrixRain {
    0% { background-position: 0% 0%, 0px 0px, 0px 0px; }
    100% { background-position: 0% 0%, 40px 40px, -40px 40px; }
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.1; }
}

#wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: 
        linear-gradient(135deg, rgba(13, 13, 35, 0.95) 0%, rgba(25, 25, 60, 0.98) 100%);
    border: 2px solid #00ffff;
    border-radius: 15px;
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.5),
        inset 0 0 30px rgba(0, 255, 255, 0.1),
        0 0 40px rgba(255, 0, 255, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    padding: 40px;
    position: relative;
    z-index: 10;
    backdrop-filter: blur(5px);
}

/* Gaming title badge */
#wrapper::before {
    content: '◆ CYBER TRIVIA ◆';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(45deg, #ff0080, #00ffff);
    color: #000;
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    padding: 8px 20px;
    border: 2px solid #fff;
    border-radius: 8px;
    z-index: 15;
    font-weight: bold;
    text-shadow: 1px 1px 0 rgba(255,255,255,0.8);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.8);
    animation: neonPulse 2s ease-in-out infinite alternate;
}

@keyframes neonPulse {
    0% { box-shadow: 0 0 15px rgba(0, 255, 255, 0.8); }
    100% { box-shadow: 0 0 25px rgba(255, 0, 255, 0.8); }
}

h1 {
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    font-size: 3em;
    color: #00ffff;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow: 
        0 0 10px #00ffff,
        0 0 20px #00ffff,
        0 0 30px #ff0080,
        2px 2px 0 #000;
    margin: 0 0 30px 0;
    position: relative;
    animation: textGlow 3s ease-in-out infinite alternate;
}

@keyframes textGlow {
    0% { 
        text-shadow: 
            0 0 10px #00ffff,
            0 0 20px #00ffff,
            0 0 30px #ff0080,
            2px 2px 0 #000;
    }
    100% { 
        text-shadow: 
            0 0 15px #ff0080,
            0 0 25px #ff0080,
            0 0 35px #00ffff,
            2px 2px 0 #000;
    }
}

h1::after {
    content: '▲ ▼ ◆';
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.3em;
    color: #ff0080;
    text-shadow: 0 0 10px #ff0080;
    animation: symbolSpin 4s linear infinite;
}

@keyframes symbolSpin {
    0% { transform: translateX(-50%) rotateY(0deg); }
    100% { transform: translateX(-50%) rotateY(360deg); }
}
button {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 1.2em;
    background: 
        linear-gradient(45deg, #ff0080, #00ffff),
        linear-gradient(135deg, rgba(0,0,0,0.3), transparent);
    color: #000;
    border: 2px solid #fff;
    border-radius: 8px;
    padding: 15px 30px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 3px;
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.6),
        inset 0 0 10px rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.8);
    overflow: hidden;
}

button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 
        0 0 30px rgba(255, 0, 128, 0.8),
        0 0 40px rgba(0, 255, 255, 0.6),
        inset 0 0 15px rgba(255, 255, 255, 0.3);
    background: 
        linear-gradient(45deg, #00ffff, #ff0080),
        linear-gradient(135deg, rgba(0,0,0,0.3), transparent);
}

button:hover::before {
    left: 100%;
}

button:active {
    transform: translateY(0) scale(1.02);
    box-shadow: 
        0 0 15px rgba(0, 255, 255, 0.6),
        inset 0 0 10px rgba(0, 0, 0, 0.3);
}

table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    margin: 20px 0;
    background: rgba(13, 13, 35, 0.9);
    border: 2px solid #00ffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 
        0 0 25px rgba(0, 255, 255, 0.4),
        inset 0 0 20px rgba(255, 0, 255, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 5;
    backdrop-filter: blur(5px);
}

th {
    background: 
        linear-gradient(45deg, #ff0080, #00ffff),
        linear-gradient(135deg, rgba(0,0,0,0.3), transparent);
    color: #000;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 1.1em;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 18px 15px;
    border-bottom: 2px solid #fff;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
}

th::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: repeating-linear-gradient(
        90deg,
        #ff0080 0px,
        #ff0080 5px,
        #00ffff 5px,
        #00ffff 10px
    );
    animation: borderScroll 2s linear infinite;
}

@keyframes borderScroll {
    0% { background-position: 0px 0px; }
    100% { background-position: 10px 0px; }
}

td {
    padding: 15px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
    background: rgba(25, 25, 60, 0.6);
    font-weight: 500;
    position: relative;
    font-size: 1em;
    color: #fff;
    transition: all 0.3s ease;
}

td:nth-child(even) {
    background: rgba(35, 35, 80, 0.6);
}

td:hover {
    background: rgba(255, 0, 128, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
    color: #00ffff;
}

/* Cyberpunk radio buttons */
input[type="radio"] {
    width: 18px;
    height: 18px;
    border: 2px solid #00ffff;
    border-radius: 3px;
    background: rgba(13, 13, 35, 0.8);
    cursor: pointer;
    position: relative;
    margin-right: 12px;
    box-shadow: 
        0 0 10px rgba(0, 255, 255, 0.3),
        inset 0 0 5px rgba(255, 0, 255, 0.2);
    transition: all 0.3s ease;
}

input[type="radio"]:checked {
    background: 
        radial-gradient(circle, #ff0080, #00ffff);
    border-color: #fff;
    box-shadow: 
        0 0 20px rgba(255, 0, 128, 0.8),
        0 0 15px rgba(0, 255, 255, 0.6),
        inset 0 0 10px rgba(255, 255, 255, 0.3);
    animation: radioGlow 1.5s ease-in-out infinite alternate;
}

@keyframes radioGlow {
    0% { box-shadow: 0 0 20px rgba(255, 0, 128, 0.8), 0 0 15px rgba(0, 255, 255, 0.6), inset 0 0 10px rgba(255, 255, 255, 0.3); }
    100% { box-shadow: 0 0 30px rgba(0, 255, 255, 0.8), 0 0 25px rgba(255, 0, 128, 0.6), inset 0 0 15px rgba(255, 255, 255, 0.5); }
}

input[type="radio"]:checked::after {
    content: "◆";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000;
    font-size: 10px;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

label {
    font-family: 'Exo 2', sans-serif;
    font-weight: 400;
    font-size: 1em;
    cursor: pointer;
    padding: 12px 18px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: inline-block;
    background: 
        linear-gradient(135deg, rgba(25, 25, 60, 0.8), rgba(35, 35, 80, 0.9));
    border: 1px solid rgba(0, 255, 255, 0.4);
    margin: 8px 0;
    position: relative;
    box-shadow: 
        0 0 10px rgba(0, 255, 255, 0.2),
        inset 0 0 20px rgba(255, 0, 255, 0.1);
    color: #fff;
    backdrop-filter: blur(3px);
}

label:hover {
    background: 
        linear-gradient(135deg, rgba(255, 0, 128, 0.3), rgba(0, 255, 255, 0.3));
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 
        0 0 20px rgba(255, 0, 128, 0.4),
        0 0 15px rgba(0, 255, 255, 0.4),
        inset 0 0 25px rgba(255, 255, 255, 0.1);
    border-color: #ff0080;
}

/* Clean answer options */
.answer-option {
    margin: 12px 0;
    position: relative;
}

#quiz-container {
    position: relative;
    background: 
        linear-gradient(135deg, rgba(13, 13, 35, 0.95) 0%, rgba(25, 25, 60, 0.98) 100%);
    border: 2px solid #00ffff;
    border-radius: 12px;
    padding: 35px;
    margin: 30px 0;
    box-shadow: 
        0 0 30px rgba(0, 255, 255, 0.4),
        inset 0 0 25px rgba(255, 0, 255, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    z-index: 5;
    backdrop-filter: blur(8px);
    overflow: hidden;
}

#quiz-container::before {
    content: "⬢ NEURAL QUIZ ⬢";
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(45deg, #ff0080, #00ffff);
    color: #000;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 0.9em;
    padding: 8px 20px;
    border: 2px solid #fff;
    border-radius: 8px;
    z-index: 10;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 20px rgba(255, 0, 128, 0.6);
    animation: containerPulse 3s ease-in-out infinite alternate;
}

@keyframes containerPulse {
    0% { box-shadow: 0 0 20px rgba(255, 0, 128, 0.6); }
    100% { box-shadow: 0 0 30px rgba(0, 255, 255, 0.8); }
}

#quiz-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            45deg,
            transparent 0px,
            rgba(0, 255, 255, 0.1) 1px,
            transparent 2px,
            transparent 20px
        );
    pointer-events: none;
    z-index: 1;
}

.answer-option {
    margin: 10px 0;
    position: relative;
    z-index: 2;
}

#result {
    margin-top: 20px;
    padding: 20px;
    border-radius: 8px;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    text-align: center;
    font-size: 1.3em;
    border: 2px solid #00ffff;
    background: 
        linear-gradient(45deg, rgba(0, 255, 255, 0.2), rgba(255, 0, 255, 0.2));
    box-shadow: 
        0 0 25px rgba(0, 255, 255, 0.5),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    color: #00ffff;
    position: relative;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    animation: resultGlow 2s ease-in-out infinite alternate;
}

@keyframes resultGlow {
    0% { 
        box-shadow: 0 0 25px rgba(0, 255, 255, 0.5), inset 0 0 20px rgba(255, 255, 255, 0.1);
        text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
    }
    100% { 
        box-shadow: 0 0 35px rgba(255, 0, 255, 0.6), inset 0 0 25px rgba(255, 255, 255, 0.2);
        text-shadow: 0 0 15px rgba(255, 0, 255, 0.8);
    }
}