/* Modern Mint Green Theme for HIIT Quiz */

:root {
    --primary-gradient: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
    --secondary-gradient: linear-gradient(135deg, #81ecec 0%, #74b9ff 100%);
    --success-gradient: linear-gradient(135deg, #55efc4 0%, #00b894 100%);
    --warning-gradient: linear-gradient(135deg, #fdcb6e 0%, #e17055 100%);
    --dark-bg: #2d3436;
    --card-bg: rgba(255, 255, 255, 0.98);
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --shadow-soft: 0 10px 40px rgba(0, 184, 148, 0.1);
    --shadow-hover: 0 20px 60px rgba(0, 184, 148, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #e0f7fa 0%, #b2dfdb 50%, #80cbc4 100%);
    background-attachment: fixed;
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    min-height: 100vh;
    color: #1a1a1a;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Header Styles */
header {
    background: rgba(255, 255, 255, 0.98);
    padding: 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 184, 148, 0.1);
    backdrop-filter: blur(10px);
    animation: slideDown 0.5s ease;
    position: relative;
}

header img {
    max-height: 70px;
    transition: transform 0.3s ease;
}

header img:hover {
    transform: scale(1.05);
}

.header-buttons {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
}

.header-buttons a {
    font-size: 14px;
    padding: 8px 16px;
}

/* Container Styles */
.container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px;
}

/* Rounds Grid */
.rounds-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.round-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 10px 40px rgba(0, 184, 148, 0.1);
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease;
    border: 2px solid transparent;
    width: 45%;
    text-align: center;
}

.round-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 184, 148, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.8);
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: rgba(255, 255, 255, 0.98);
    margin: 60px auto;
    padding: 30px;
    border-radius: 20px;
    max-width: 900px;
    color: #1a1a1a;
    box-shadow: 0 10px 40px rgba(0, 184, 148, 0.1);
    animation: fadeInUp 0.5s ease;
}

.modal h3 {
    background: linear-gradient(135deg, #81ecec 0%, #74b9ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 28px;
    text-align: center;
    margin-bottom: 20px;
}

.modal ol {
    font-size: 20px;
    line-height: 1.6;
    color: #4a4a4a;
}

.close-btn {
    background: linear-gradient(135deg, #81ecec 0%, #74b9ff 100%);
    color: white;
    float: right;
    padding: 8px 16px;
    font-size: 16px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(240, 147, 251, 0.4);
}

/* Leader Container */
.leader-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 20px;
}

.leader-card {
    width: 250px;
    text-align: center;
    animation: fadeInUp 0.5s ease;
}

.leader-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 184, 148, 0.1);
    transition: all 0.3s ease;
}

.leader-card img:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 60px rgba(0, 184, 148, 0.15);
}

.leader-card h4 {
    margin: 10px 0 5px;
    background: linear-gradient(135deg, #81ecec 0%, #74b9ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.leader-card p {
    font-size: 15px;
    color: #4a4a4a;
}

/* Section Headers */
.section-header {
    margin-top: 50px;
    font-size: 28px;
    font-weight: bold;
    color: #00b894;
    padding: 15px;
    border-radius: 15px;
    text-align: center;
    animation: fadeInUp 0.5s ease;
    background: white;
    box-shadow: 0 10px 40px rgba(0, 184, 148, 0.1);
    margin-bottom: 20px;
}

#morning {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    padding: 10px;
    border-radius: 15px;
    margin-bottom: 20px;
}

#evening {
    background: linear-gradient(135deg, #d299c2 0%, #fef9d7 100%);
    padding: 10px;
    border-radius: 15px;
    margin-bottom: 20px;
}

#extra {
    background: linear-gradient(135deg, #89f7fe 0%, #66a6ff 100%);
    padding: 10px;
    border-radius: 15px;
    margin-bottom: 20px;
}

/* Card Styles */
.session-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 10px 40px rgba(0, 184, 148, 0.1);
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease;
    border: 2px solid transparent;
}

.session-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 184, 148, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.round-card h3, .session-card h3 {
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.5em;
    margin-bottom: 15px;
}

.round-card p, .session-card p {
    color: #4a4a4a;
    margin: 10px 0;
    font-size: 0.95em;
}

/* Button Styles */
button, .btn {
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 184, 148, 0.4);
    text-decoration: none;
    display: inline-block;
}

button:hover, .btn:hover {
    background: linear-gradient(135deg, #00cec9 0%, #00b894 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 184, 148, 0.6);
}

button:active, .btn:active {
    transform: translateY(0);
}

.btn-success {
    background: linear-gradient(135deg, #55efc4 0%, #00b894 100%);
    box-shadow: 0 4px 15px rgba(85, 239, 196, 0.4);
}

.btn-success:hover {
    background: linear-gradient(135deg, #00b894 0%, #55efc4 100%);
    box-shadow: 0 6px 20px rgba(85, 239, 196, 0.6);
}

.btn-danger {
    background: linear-gradient(135deg, #ff7675 0%, #d63031 100%);
    box-shadow: 0 4px 15px rgba(255, 118, 117, 0.4);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #d63031 0%, #ff7675 100%);
    box-shadow: 0 6px 20px rgba(255, 118, 117, 0.6);
}

.btn-secondary {
    background: linear-gradient(135deg, #81ecec 0%, #74b9ff 100%);
    box-shadow: 0 4px 15px rgba(129, 236, 236, 0.4);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #74b9ff 0%, #81ecec 100%);
    box-shadow: 0 6px 20px rgba(129, 236, 236, 0.6);
}

/* Form Styles */
input[type="text"], 
input[type="password"], 
input[type="number"],
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

input[type="text"]:focus, 
input[type="password"]:focus, 
input[type="number"]:focus,
textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Quiz Page Styles */
.quiz-container {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 184, 148, 0.1);
    animation: fadeInUp 0.5s ease;
}

#teamName {
    background: white;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    font-size: 1.6em;
    color: #00695c;
    margin-bottom: 20px;
    box-shadow: 0 10px 40px rgba(0, 184, 148, 0.1);
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

#timer {
    background: linear-gradient(135deg, #fdcb6e 0%, #e17055 100%);
    color: white;
    padding: 15px 30px;
    border-radius: 15px;
    font-size: 2em;
    font-weight: bold;
    text-align: center;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(250, 112, 154, 0.4);
    animation: pulse 1s ease infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.question-box {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.question-box h3 {
    color: #1a1a1a;
    margin-bottom: 20px;
    font-size: 1.4em;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

#mediaContainer {
    margin: 20px 0;
    border-radius: 15px;
    overflow: hidden;
}

#mediaContainer img, 
#mediaContainer video {
    max-width: 100%;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

#mediaContainer audio {
    width: 100%;
    border-radius: 10px;
}

.options button {
    background: #ffffff;
    color: #000000;
    border: 2px solid #c0c0c0;
    padding: 15px 20px;
    margin: 10px 5px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
    font-weight: 700;
    width: calc(50% - 10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.options button:hover {
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.options button:hover {
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.options button.correct {
    background: linear-gradient(135deg, #55efc4 0%, #00b894 100%);
    color: white;
    border-color: transparent;
    animation: correctPulse 0.5s ease;
}

.options button.wrong {
    background: linear-gradient(135deg, #81ecec 0%, #74b9ff 100%);
    color: white;
    border-color: transparent;
    animation: wrongShake 0.5s ease;
}

@keyframes correctPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes wrongShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Flash Message */
#flashMessage {
    background: linear-gradient(135deg, #fdcb6e 0%, #e17055 100%);
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    margin: 15px 0;
    text-align: center;
    font-weight: 600;
    animation: slideDown 0.3s ease;
}

/* Score Section */
.score-section {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 10px 40px rgba(0, 184, 148, 0.1);
}

.team-score {
    background: white;
    border-radius: 10px;
    padding: 15px;
    margin: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.team-score:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.team-score .team-name {
    font-weight: 600;
    color: #1a1a1a;
}

.team-score .score {
    background: linear-gradient(135deg, #55efc4 0%, #00b894 100%);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
}

/* Tables */
table {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 184, 148, 0.1);
    width: 100%;
    margin: 20px 0;
}

th {
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

td {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
}

tr:hover td {
    background: rgba(102, 126, 234, 0.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .round-card, .session-card {
        padding: 20px;
    }
    
    .options button {
        width: 100%;
        margin: 5px 0;
    }
    
    header {
        padding: 10px 15px;
    }
    
    header img {
        max-height: 40px;
    }
}

/* Loading Animation */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(102, 126, 234, 0.3);
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Welcome Section */
.welcome {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 184, 148, 0.1);
}

.welcome h2 {
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2em;
    margin-bottom: 10px;
}

.welcome p {
    color: #4a4a4a;
    font-size: 1.1em;
}

/* Extra Rounds Section */
.extra-rounds {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 10px 40px rgba(0, 184, 148, 0.1);
}

.extra-rounds h3 {
    background: linear-gradient(135deg, #81ecec 0%, #74b9ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
}

/* Login Container */
.login-container {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    padding: 40px;
    max-width: 400px;
    margin: 100px auto;
    box-shadow: 0 10px 40px rgba(0, 184, 148, 0.1);
    animation: fadeInUp 0.5s ease;
}

.login-container h2 {
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.8em;
}

/* Error Messages */
.error {
    background: linear-gradient(135deg, #81ecec 0%, #74b9ff 100%);
    color: white;
    padding: 10px 15px;
    border-radius: 10px;
    margin: 10px 0;
    text-align: center;
    font-weight: 600;
}

/* Special Thanks Section */
.message-section {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 10px 40px rgba(0, 184, 148, 0.1);
}

.message-section h3 {
    background: linear-gradient(135deg, #fdcb6e 0%, #e17055 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
}

/* Founder Images */
.founder-img {
    max-width: 200px;
    border-radius: 15px;
    margin: 10px;
    box-shadow: 0 10px 40px rgba(0, 184, 148, 0.1);
    transition: all 0.3s ease;
}

.founder-img:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 60px rgba(0, 184, 148, 0.15);
}

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Hidden class */
.hidden {
    display: none !important;
}
