:root {
    --bg-color: #2b2b2b;
    --text-light: #eaeaea;
    --paper-yellow: #fdf5c9;
    --paper-pink: #ffe4e1;
    --paper-blue: #e0f7fa;
    --paper-green: #e8f5e9;
    --pin-red: #e74c3c;
    --pin-dark: #c0392b;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(#3a3a3a 1px, transparent 1px),
        radial-gradient(#3a3a3a 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    font-family: 'Special Elite', cursive;
    color: var(--text-light);
    overflow-x: hidden;
}

header {
    width: 100%;
    max-width: 1100px;
    margin: 20px auto 20px;
    padding: 0 20px;
    box-sizing: border-box;
    text-align: center;
}

.debate-questions {
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.debate-questions p {
    font-size: 2.8rem;
    color: #fff;
    margin: 0;
    font-family: 'Caveat', cursive;
    text-transform: uppercase;
    animation: pulsate 1.5s infinite alternate;
}

.debate-questions p:nth-child(1) { --neon-color: #ff00de; }
.debate-questions p:nth-child(2) { --neon-color: #00ff00; }
.debate-questions p:nth-child(3) { --neon-color: #00ffff; }
.debate-questions p:nth-child(4) { --neon-color: #ff9900; }

.debate-questions p {
    text-shadow:
        0 0 4px #fff,
        0 0 10px #fff,
        0 0 18px #fff,
        0 0 38px var(--neon-color),
        0 0 78px var(--neon-color),
        0 0 88px var(--neon-color),
        0 0 98px var(--neon-color),
        0 0 148px var(--neon-color);
}

@keyframes pulsate {
    0% { opacity: 0.75; transform: scale(0.98); }
    100% { opacity: 1; transform: scale(1); }
}

.print-btn {
    background-color: var(--text-light);
    color: var(--bg-color);
    font-family: 'Special Elite', cursive;
    font-size: 1.2rem;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
    font-weight: bold;
    margin-bottom: 20px;
}

.print-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.6);
    background-color: #fff;
}

.main-instruction {
    font-family: 'Caveat', cursive;
    font-size: 3.5rem;
    color: #fff;
    margin: 40px 0 20px 0;
    text-transform: uppercase;
    animation: pulsate 1.5s infinite alternate;
    --neon-color: #ff0055;
    text-shadow:
        0 0 4px #fff,
        0 0 10px #fff,
        0 0 18px #fff,
        0 0 38px var(--neon-color),
        0 0 78px var(--neon-color),
        0 0 88px var(--neon-color),
        0 0 98px var(--neon-color),
        0 0 148px var(--neon-color);
}

header img {
    width: 100%;
    height: auto;
    border: 8px solid #111;
    border-radius: 4px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
    background-color: #000;
}

.slideshow-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
    padding: 0 60px;
}

.slideshow-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    min-height: 500px;
}

.slide {
    display: none;
    animation: fade 0.5s ease-in-out;
    width: 100%;
}

.slide.active {
    display: block;
}

@keyframes fade {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.nav-btn {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 2rem;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
}

.nav-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.prev-btn { left: 0; }
.next-btn { right: 0; }

.dots-container {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 40px;
}

.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 5px;
    background-color: #555;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.dot.active, .dot:hover {
    background-color: var(--text-light);
}

.slide-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 20px;
}

/* Base style for all slips */
.paper-slip {
    position: relative;
    padding: 30px 40px;
    color: #222;
    background-color: var(--paper-yellow);
    box-shadow: 3px 5px 15px rgba(0,0,0,0.4);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, z-index 0s;
    z-index: 1;
    cursor: default;
    /* Rough edges effect */
    border-radius: 2px 255px 3px 25px / 255px 5px 225px 3px;
}

/* Thumbtack */
.paper-slip::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--pin-red), var(--pin-dark));
    box-shadow: 
        inset -2px -2px 4px rgba(0,0,0,0.4), 
        2px 3px 4px rgba(0,0,0,0.5);
    z-index: 10;
}

/* Thumbtack pin shadow */
.paper-slip::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    width: 2px;
    height: 8px;
    background: rgba(0,0,0,0.2);
    transform: translateX(-50%) rotate(-15deg);
    z-index: 9;
}

.paper-slip:hover {
    transform: scale(1.08) rotate(0deg) !important;
    box-shadow: 8px 12px 25px rgba(0,0,0,0.6);
    z-index: 100;
}

/* Specific styles for category titles */
.title-slip {
    font-family: 'Special Elite', cursive;
    text-align: center;
    border-bottom: 2px dashed rgba(0,0,0,0.2);
    margin-bottom: 10px;
    width: 100%;
    box-sizing: border-box;
}

.title-slip h2 {
    margin: 5px 0 0 0;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Specific styles for hint items */
.hint-slip {
    font-family: 'Caveat', cursive;
    font-size: 1.8rem;
    line-height: 1.3;
    text-align: center;
    width: 420px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

.category-title {
    width: 100%;
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    color: var(--paper-yellow);
    font-family: 'Special Elite', cursive;
    letter-spacing: 2px;
}

.answers-btn-container {
    width: 100%;
    text-align: center;
    margin: 40px 0;
}

.see-answers-btn {
    background-color: var(--text-light);
    color: var(--bg-color);
    font-family: 'Special Elite', cursive;
    font-size: 1.5rem;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
    font-weight: bold;
}

.see-answers-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.6);
    background-color: #fff;
}

.see-answers-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.sentences-content {
    animation: fade 0.5s ease-in-out;
    margin-bottom: 40px;
}

.sentence-slip {
    font-size: 1.5rem;
    padding-bottom: 40px; /* Make room for the play button */
}

.play-btn {
    position: absolute;
    bottom: 10px;
    right: 15px;
    cursor: pointer;
    font-size: 1.5rem;
    opacity: 0.7;
    transition: opacity 0.2s, transform 0.2s;
    user-select: none;
}

.play-btn:hover {
    opacity: 1;
    transform: scale(1.2);
}

.play-btn.playing {
    animation: bounce 0.5s infinite alternate;
    opacity: 1;
}

@keyframes bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-5px); }
}

.play-btn.loading {
    animation: pulse 1s infinite alternate;
    opacity: 1;
}

@keyframes pulse {
    from { transform: scale(0.9); opacity: 0.5; }
    to { transform: scale(1.1); opacity: 1; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .slideshow-wrapper {
        padding: 0 10px;
    }
    
    .nav-btn {
        padding: 10px 15px;
        font-size: 1.5rem;
    }
    
    .hint-slip {
        width: 100%;
        max-width: 360px;
        font-size: 1.5rem;
        min-height: 140px;
    }

    .paper-slip {
        padding: 20px 25px;
    }
    
    header {
        margin-top: 20px;
    }
    
    .debate-questions p {
        font-size: 1.8rem;
    }
    
    .main-instruction {
        font-size: 2.2rem;
    }
}

@media print {
    body {
        background: white;
        background-image: none;
        color: black;
    }
    header, .nav-btn, .dots-container, .answers-btn-container, .sentences-content {
        display: none !important;
    }
    .slideshow-wrapper {
        padding: 0;
        display: block;
    }
    .slideshow-container {
        display: block;
        min-height: auto;
    }
    .slide {
        display: block !important;
        opacity: 1 !important;
        transform: none !important;
        page-break-inside: avoid;
        animation: none !important;
        margin-bottom: 40px;
    }
    .slide-content {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 20px !important;
    }
    .paper-slip {
        box-shadow: none !important;
        border: 2px dashed #666;
        transform: none !important;
        page-break-inside: avoid;
    }
    .paper-slip::before, .paper-slip::after {
        display: none !important;
    }
    .category-title {
        color: black !important;
        text-shadow: none !important;
        page-break-after: avoid;
    }
}