/* style.css */

/* Import font Orbitron dari Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');

/* Body & Animated Background */
body {
    font-family: 'Orbitron', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background: linear-gradient(270deg, #0f2027, #203a43, #2c5364);
    background-size: 600% 600%;
    animation: gradientBG 15s ease infinite;
    color: #fff;
}

@keyframes gradientBG {
    0% {background-position: 0% 50%;}
    50% {background-position: 100% 50%;}
    100% {background-position: 0% 50%;}
}

/* Quiz Container */
.quiz-container {
    background: rgba(0,0,0,0.85);
    padding: 35px 40px;
    border-radius: 25px;
    max-width: 720px;
    width: 100%;
    margin-top: 50px;
    box-shadow: 0 0 50px #00fff7, 0 0 100px #00fff7 inset;
    border: 2px solid #00fff7;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

/* Neon glow particle effect */
.quiz-container::before {
    content: '';
    position: absolute;
    width: 300%;
    height: 300%;
    background: radial-gradient(circle, rgba(0,255,247,0.15), transparent 70%);
    top: -100%;
    left: -100%;
    animation: rotateBG 20s linear infinite;
    z-index: 0;
}

@keyframes rotateBG {
    0% { transform: rotate(0deg);}
    100% { transform: rotate(360deg);}
}

.quiz-container * {
    position: relative;
    z-index: 1;
}

/* Hidden Class */
.hidden { display: none; }

/* Titles */
h2 {
    text-align: center;
    font-size: 2.2rem;
    color: #00fff7;
    text-shadow: 0 0 15px #00fff7, 0 0 30px #00fff7;
    margin-bottom: 25px;
}

/* Input Fields */
input[type="text"] {
    width: 100%;
    padding: 14px;
    margin: 12px 0;
    border-radius: 20px;
    border: 2px solid #00fff7;
    background: rgba(255,255,255,0.05);
    color: #00fff7;
    font-size: 16px;
    outline: none;
    box-shadow: 0 0 15px #00fff7 inset;
    transition: all 0.3s ease;
}

input[type="text"]:focus {
    background: rgba(255,255,255,0.1);
    box-shadow: 0 0 25px #00fff7 inset;
}

/* Buttons */
button {
    display: inline-block;
    padding: 14px 28px;
    margin-top: 12px;
    border: none;
    border-radius: 20px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(45deg, #ff007f, #ff7f00, #ff00ff);
    background-size: 200% 200%;
    animation: btnGradient 3s ease infinite;
    box-shadow: 0 0 15px #ff007f, 0 0 30px #ff7f00 inset;
    transition: all 0.3s ease;
}

button:hover {
    transform: scale(1.08);
    box-shadow: 0 0 25px #ff00ff, 0 0 50px #ff7f00 inset;
}

@keyframes btnGradient {
    0% {background-position: 0% 50%;}
    50% {background-position: 100% 50%;}
    100% {background-position: 0% 50%;}
}

/* Options buttons */
#options button {
    width: 100%;
    margin: 10px 0;
    text-align: left;
    background: linear-gradient(45deg, #00f7ff, #007fff, #00ffea);
    background-size: 200% 200%;
    animation: btnOptions 3s ease infinite;
    box-shadow: 0 0 15px #00f7ff, 0 0 30px #007fff inset;
    border-radius: 20px;
    font-weight: bold;
}

#options button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px #00fff7, 0 0 50px #007fff inset;
}

@keyframes btnOptions {
    0% {background-position: 0% 50%;}
    50% {background-position: 100% 50%;}
    100% {background-position: 0% 50%;}
}

/* Leaderboard Table */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 25px;
    text-align: center;
    font-size: 16px;
}

th, td {
    padding: 14px;
    border: 2px solid #00fff7;
}

th {
    background: linear-gradient(45deg, #ff007f, #ff7f00, #ff00ff);
    color: #fff;
    text-shadow: 0 0 5px #000;
}

td {
    background: rgba(0,255,247,0.15);
    color: #fff;
}

.audio-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-family: sans-serif;
}

#audioContainer #toggleAudioBtn {
    background: #00f7ff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 0 12px #00f7ff;
    transition: transform 0.3s ease;
}

#audioContainer #toggleAudioBtn:hover {
    transform: scale(1.1);
}

.audio-controls {
    display: none; /* default hidden */
    flex-direction: row;
    gap: 6px;
    margin-top: 5px;
    background: rgba(0, 0, 0, 0.6);
    padding: 6px 10px;
    border-radius: 12px;
    box-shadow: 0 0 10px #00f7ff;
    backdrop-filter: blur(6px);
}

.audio-controls button {
    background: linear-gradient(45deg, #00f7ff, #007fff);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.audio-controls button:hover {
    transform: scale(1.1);
}

.audio-slider {
    width: 100px;
    cursor: pointer;
    border-radius: 5px;
}

/* Responsive */
@media(max-width: 720px){
    .quiz-container {
        padding: 25px;
    }
    button {
        font-size: 14px;
        padding: 12px 20px;
    }
}

