/* Jungle/Koh Lanta Theme - Adventure Style */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #1a3a2a;
    background-image: radial-gradient(circle at 10% 20%, rgba(50, 80, 50, 0.1) 0%, transparent 20%),
    radial-gradient(circle at 90% 80%, rgba(80, 50, 30, 0.1) 0%, transparent 20%),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
    color: #e8e6d8;
    min-height: 100vh;
}

/* Jungle background texture */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M20,80 Q30,60 40,80 T60,80 T80,80" stroke="%233a5a3a" stroke-width="1" fill="none"/><path d="M10,60 Q20,40 30,60 T50,60 T70,60" stroke="%234a6a4a" stroke-width="1" fill="none"/><path d="M30,40 Q40,20 50,40 T70,40 T90,40" stroke="%235a7a5a" stroke-width="1" fill="none"/></svg>');
    opacity: 0.3;
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

/* Jungle Adventure Header */
header {
    background: linear-gradient(135deg, #2E8B57 0%, #228B22 100%);
    color: #e8e6d8;
    padding: 20px 0 30px 0;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    border-bottom: 8px solid #8B4513;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

/* Jungle vines decoration */
header::before, header::after {
    content: "🌿";
    position: absolute;
    font-size: 3rem;
    opacity: 0.6;
    z-index: 1;
}

header::before {
    top: 10px;
    left: 20px;
    transform: rotate(-15deg);
}

header::after {
    bottom: 10px;
    right: 20px;
    transform: rotate(15deg);
}

.edf-logo {
    width: 180px;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.5));
    border: 3px solid #e8e6d8;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px;
}

h1 {
    margin: 0;
    font-size: 2.8em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
    font-family: 'Special Elite', cursive;
    color: #FFD700;
}

h2 {
    color: #FFD700;
    border-bottom: 3px solid #8B4513;
    padding-bottom: 8px;
    margin-bottom: 15px;
    font-family: 'Special Elite', cursive;
}

/* Adventure Info Box */
.event-info {
    background: linear-gradient(145deg, #3a5a3a, #2a4a2a);
    border: 4px solid #8B4513;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
    position: relative;
    color: #e8e6d8;
}

/* Wooden texture overlay */
.event-info::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
    repeating-linear-gradient(0deg, transparent, transparent 29px, rgba(0, 0, 0, 0.1) 29px, rgba(0, 0, 0, 0.1) 30px);
    border-radius: 8px;
    pointer-events: none;
    z-index: -1;
}

.power-plant-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
    margin: 20px auto;
    display: block;
    border: 3px solid #8B4513;
}

.image-caption {
    text-align: center;
    font-style: italic;
    color: #c8c6b8;
    margin-top: -15px;
    margin-bottom: 20px;
    position: relative;
}

.image-caption::before, .image-caption::after {
    content: "🍃";
    margin: 0 10px;
    opacity: 0.6;
}

/* Jungle Countdown Timer */
.countdown {
    background: linear-gradient(135deg, #8B4513 0%, #CD853F 100%);
    color: #e8e6d8;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    font-weight: bold;
    margin-bottom: 30px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    border: 2px solid #FFD700;
    position: relative;
    overflow: hidden;
}

/* Torch effect */
.countdown::before, .countdown::after {
    content: "🔥";
    position: absolute;
    font-size: 2rem;
    opacity: 0.7;
    animation: flicker 1.5s infinite alternate;
}

.countdown::before {
    top: 10px;
    left: 10px;
}

.countdown::after {
    bottom: 10px;
    right: 10px;
}

@keyframes flicker {
    0% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.05);
    }
    100% {
        opacity: 0.6;
        transform: scale(1);
    }
}

.countdown-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.countdown-box {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 12px 18px;
    border-radius: 8px;
    min-width: 90px;
    border: 2px solid #FFD700;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
}

.countdown-value {
    font-size: 2.2em;
    font-weight: bold;
    display: block;
    color: #FFD700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.countdown-label {
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #e8e6d8;
}

/* Adventure Challenge Section */
.challenge-section {
    background: linear-gradient(145deg, #3a5a3a, #2a4a2a);
    border: 4px solid #8B4513;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
    position: relative;
    color: #e8e6d8;
}

/* Wooden texture for challenge sections */
.challenge-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
    repeating-linear-gradient(0deg, transparent, transparent 29px, rgba(0, 0, 0, 0.1) 29px, rgba(0, 0, 0, 0.1) 30px);
    border-radius: 8px;
    pointer-events: none;
    z-index: -1;
}

/* Challenge section decorations */
.challenge-section:nth-child(odd)::before {
    content: "🌴";
    position: absolute;
    right: 10px;
    top: 10px;
    font-size: 2rem;
    opacity: 0.3;
}

.challenge-section:nth-child(even)::before {
    content: "🏝️";
    position: absolute;
    left: 10px;
    bottom: 10px;
    font-size: 2rem;
    opacity: 0.3;
}

.hidden-content {
    display: none;
    background: linear-gradient(135deg, rgba(60, 90, 60, 0.8), rgba(40, 70, 40, 0.8));
    padding: 20px;
    border-radius: 8px;
    margin-top: 15px;
    border: 2px solid #FFD700;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Jungle Adventure Buttons */
button {
    background: linear-gradient(135deg, #8B4513 0%, #CD853F 100%);
    color: #e8e6d8;
    border: 3px solid #FFD700;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

button:hover {
    background: linear-gradient(135deg, #CD853F 0%, #8B4513 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

button:active {
    transform: translateY(1px);
}

/* Button jungle effect */
button::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, transparent 20%, rgba(255, 255, 255, 0.1) 20%, rgba(255, 255, 255, 0.1) 22%, transparent 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s, transform 0.5s;
    pointer-events: none;
}

button:hover::after {
    opacity: 1;
    transform: translate(50%, 50%);
}

.clue {
    background: linear-gradient(135deg, rgba(60, 90, 60, 0.6), rgba(40, 70, 40, 0.6));
    padding: 15px;
    border-left: 5px solid #FFD700;
    margin: 15px 0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Jungle Footer */
footer {
    text-align: center;
    margin-top: 50px;
    color: #c8c6b8;
    font-size: 0.9em;
    padding: 20px;
    border-top: 3px solid #8B4513;
    position: relative;
}

footer::before {
    content: "🌿 Aventure Jungle 🌿";
    display: block;
    margin-bottom: 10px;
    font-size: 1.2em;
    color: #FFD700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Tribal divider */
hr {
    margin: 50px 0;
    border: none;
    height: 4px;
    background: repeating-linear-gradient(90deg, #8B4513, #8B4513 10px, #CD853F 10px, #CD853F 20px);
}

/* Floating leaves animation */
.floating-leaves {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.leaf {
    position: absolute;
    font-size: 2rem;
    opacity: 0.3;
    animation: float 15s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(-100px) rotate(0deg);
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    h1 {
        font-size: 2em;
    }

    .countdown-container {
        gap: 10px;
    }

    .countdown-box {
        min-width: 60px;
        padding: 8px 12px;
    }

    .countdown-value {
        font-size: 1.6em;
    }
}

/* Print styles */
@media print {
    body {
        background: white;
        color: black;
    }

    .countdown,
    button {
        display: none;
    }
}
