/* CSS reset & base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-color-center: #291b12; /* earthy dark brown */
    --bg-color-edge: #0c0805; /* almost black brown */
    --text-color: #e8dccb; /* warm off-white/parchment */
    --accent: #d4af37; /* gold */
    --accent-dark: #b8860b;
    --danger: #b7410e; /* Rust / Terra Roxa (marcação) */
    --danger: #a0522d; /* Sienna / Terracotta */
    --danger-glow: rgba(160, 82, 45, 0.4);
    --accent-glow: rgba(212, 175, 55, 0.3);
}

body {
    font-family: 'Crimson Text', serif;
    font-size: 20px;
    /* Base size slightly increased for Crimson Text */
    background: radial-gradient(circle at center, var(--bg-color-center) 0%, var(--bg-color-edge) 100%);
    color: var(--text-color);
    overflow: hidden;
    /* We use JS for slide control */
}

/* Canvas Background for Particles */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

/* CRT Noise Overlay for aesthetic */
.noise {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 9999; opacity: 0.08;
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
}

.slides-container {
    display: flex;
    flex-direction: column;
    width: 100vw;
    height: 100vh;
    transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 10;
    position: relative;
}

.slide {
    min-width: 100vw;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem;
    position: relative;
}

/* typography */
h1,
h2,
h3,
h4 {
    font-family: 'IM Fell English SC', serif;
    font-weight: normal;
}

h1 {
    font-size: 5rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 40px var(--accent-glow);
    line-height: 1.1;
}

h2 {
    font-size: 1.8rem;
    color: var(--text-color);
    font-weight: normal;
    letter-spacing: 2px;
}

h3 {
    font-size: 4rem;
    color: var(--accent);
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--accent-dark);
    padding-bottom: 10px;
    display: inline-block;
    text-shadow: 0 0 20px var(--accent-glow);
}

p,
li {
    font-size: 1.4rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

ul {
    padding-left: 2rem;
    max-width: 900px;
}

li {
    margin-bottom: 1.5rem;
}

/* specific elements */
.content-box {
    max-width: 1100px;
    width: 100%;
    z-index: 10;
    position: relative;
}

/* Animations */
.animate-up {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.9s cubic-bezier(0.25, 1, 0.5, 1), transform 0.9s cubic-bezier(0.25, 1, 0.5, 1);
}

.slide.active .animate-up {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

.delay-4 {
    transition-delay: 0.8s;
}

/* Lyrics box - Estilo Papel Antigo/Cordel */
.lyrics-box {
    background: #e8dccb;
    color: #1a110a;
    border: 1px solid #d2b48c;
    border-radius: 4px;
    padding: 3rem;
    font-size: 2rem;
    font-family: 'Special Elite', monospace;
    min-height: 380px;
    line-height: 1.6;
    box-shadow: inset 0 0 40px rgba(139, 69, 19, 0.3), 10px 15px 30px rgba(0, 0, 0, 0.8);
    position: relative;
}

.lyrics-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="n"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.7" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23n)" opacity="0.08"/%3E%3C/svg%3E');
    pointer-events: none;
    border-radius: 4px;
}

/* Blinking cursor for typewriter effect */
.cursor {
    display: inline-block;
    width: 10px;
    height: 1.6rem;
    background-color: var(--danger);
    animation: blink 1s step-end infinite;
    margin-left: 5px;
    vertical-align: middle;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Progress & Controls */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 5px;
    background: var(--danger);
    width: 0%;
    transition: width 0.4s ease;
    z-index: 100;
    box-shadow: 0 0 15px var(--danger);
}

.controls {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
    display: flex;
    gap: 15px;
}

.btn {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 12px 25px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 1.2rem;
    transition: all 0.3s;
    font-family: 'Special Elite', monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
    backdrop-filter: blur(5px);
}

.btn:hover:not(:disabled) {
    background: var(--accent);
    color: var(--bg-color-center);
    box-shadow: 0 0 20px var(--accent-glow);
}

.btn:disabled {
    border-color: #333;
    color: #555;
    cursor: not-allowed;
}

/* Barcode effect */
.barcode {
    font-family: 'Libre Barcode 128', cursive;
    font-size: 6rem;
    color: var(--text-color);
    margin-top: 2rem;
    letter-spacing: 5px;
    opacity: 0.6;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

/* Highlight classes */
.hl {
    color: var(--danger);
    font-weight: bold;
    text-shadow: 0 0 10px var(--danger-glow);
}

.hl-gold {
    color: var(--accent);
    font-weight: bold;
    text-shadow: 0 0 10px var(--accent-glow);
}

/* Background accents */
.bg-accent {
    position: absolute;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--danger-glow) 0%, rgba(0, 0, 0, 0) 70%);
    top: -200px;
    right: -200px;
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
}

/* Custom Cards - Estilo Xilogravura */
.card {
    background: rgba(24, 16, 12, 0.85);
    padding: 2.5rem;
    border-radius: 4px;
    border: 2px solid var(--accent-dark);
    box-shadow: 8px 8px 0px rgba(0,0,0,0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 12px 12px 0px rgba(0,0,0,0.8), 0 0 20px var(--accent-glow);
}

/* Foto do Grupo (Retrato Antigo / Bando) */
.group-photo-wrapper {
    perspective: 1000px;
}
.group-photo-container {
    position: relative;
    margin: 3rem auto 1rem;
    display: inline-block;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: rotate(-3deg) translateZ(0);
}
.group-photo-container:hover {
    transform: scale(1.08) rotate(1deg) translateZ(50px);
    z-index: 20;
}
.group-photo {
    width: 100%;
    max-width: 350px; 
    border: 8px solid #e8dccb;
    border-bottom: 30px solid #e8dccb; /* Espaço para legenda estilo retrato antigo */
    border-radius: 4px;
    filter: sepia(70%) contrast(1.25) brightness(0.85);
    box-shadow: 10px 20px 40px rgba(0,0,0,0.8), 0 0 30px var(--accent-glow);
    transition: filter 0.6s ease, box-shadow 0.6s ease;
    display: block;
}
.group-photo-container:hover .group-photo {
    filter: sepia(10%) contrast(1.1) brightness(1.1); /* Revela a cor original ao passar o mouse */
    box-shadow: 15px 30px 50px rgba(0,0,0,0.9), 0 0 50px var(--accent);
}
.tape {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%) rotate(2deg);
    width: 120px;
    height: 35px;
    background: rgba(232, 220, 203, 0.6); /* Cor de fita adesiva amarelada/velha */
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    z-index: 10;
}
.photo-caption {
    font-family: 'IM Fell English SC', serif; 
    color: #3b2b1d; 
    position: absolute; 
    bottom: 6px; 
    width: 100%; 
    text-align: center; 
    font-size: 1.4rem; 
    font-weight: bold; 
    letter-spacing: 4px;
    opacity: 0.8;
}