/* Custom Styles for Water Filter Game */

.reveal h1, .reveal h2, .reveal h3 {
    text-transform: none;
    font-weight: 700;
}

.game-btn {
    background: #e9c46a;
    color: #000;
    border: none;
    padding: 15px 30px;
    margin: 10px;
    font-size: 18px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
}

.game-btn:hover {
    background: #f4a261;
    transform: scale(1.05);
}

.quiz-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
}

.quiz-btn {
    background: #2a9d8f;
    color: white;
    border: none;
    padding: 15px 25px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
    margin: 10px 0;
    width: 100%;
    position: relative;
}

.quiz-btn:hover:not(:disabled) {
    background: #264653;
    transform: translateX(10px);
}

.quiz-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.quiz-btn.correct {
    background: #2ecc71 !important;
    border: 3px solid #27ae60;
    animation: pulse 0.5s;
}

.quiz-btn.wrong {
    background: #e74c3c !important;
    animation: shake 0.5s;
}

.feedback {
    margin-top: 15px;
    padding: 15px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 18px;
    display: none;
    text-align: center;
}

.feedback.show {
    display: block;
    animation: fadeIn 0.3s;
}

.feedback.correct {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border: 2px solid #2ecc71;
}

.feedback.wrong {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 2px solid #e74c3c;
}

.filter-diagram {
    width: 300px;
    margin: 30px auto;
    border: 3px solid #fff;
    border-radius: 10px;
    overflow: hidden;
}

.layer {
    padding: 20px;
    text-align: center;
    font-weight: bold;
    border-bottom: 2px solid rgba(0,0,0,0.2);
}

.timer {
    font-size: 72px;
    font-weight: bold;
    margin: 20px;
    padding: 20px;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    display: inline-block;
}

.challenge-box {
    background: rgba(255,255,255,0.1);
    padding: 30px;
    border-radius: 15px;
    border-left: 5px solid #e9c46a;
}

.challenge-box p {
    margin: 15px 0;
    font-size: 20px;
}

.vocab-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.vocab-card {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #e9c46a;
}

.vocab-card strong {
    display: block;
    font-size: 24px;
    margin-bottom: 10px;
    color: #e9c46a;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.badges {
    margin: 30px 0;
}

.badge {
    display: inline-block;
    background: #e9c46a;
    color: #000;
    padding: 15px 25px;
    margin: 10px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 18px;
}

.highlight {
    background: #e74c3c;
    padding: 10px 20px;
    border-radius: 5px;
    display: inline-block;
}

.score-board {
    font-size: 32px;
    background: rgba(255,255,255,0.2);
    padding: 30px;
    border-radius: 15px;
}

/* PowerPoint Container */
.ppt-container {
    width: 100%;
    max-width: 900px;
    margin: 20px auto;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 10px;
}

.ppt-container iframe {
    width: 100%;
    height: 600px;
    border: none;
}

/* Video Wrapper */
.video-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* Responsive */
@media (max-width: 768px) {
    .vocab-grid, .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .quiz-btn {
        font-size: 14px;
    }
    
    .video-wrapper {
        padding-bottom: 75%;
    }
    /* PDF Container */
.pdf-container {
    width: 100%;
    max-width: 900px;
    margin: 20px auto;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 10px;
}

.pdf-container iframe {
    width: 100%;
    height: 600px;
    border: none;
}
}