* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Marcellus', serif;
    background: url('/images/hieroglyphs.avif') repeat;
    background-size: 350px;
    background-color: #6e4b2c;
    color: #3e2c18;
    min-height: 100vh;
}

.background-overlay {
    position: fixed;
    inset: 0;
    background: rgba(40, 22, 10, 0.82);
    z-index: -1;
}


.papyrus-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 70px;
    margin-bottom: 100px;
}

.papyrus-content {
    width: 750px;
    max-width: 95vw;

    background: url('/images/papyrus.png') no-repeat center;
    background-size: contain;

    padding: 10% 12% 14% 12%;

    text-align: center;
    position: relative;

    filter: drop-shadow(0 25px 40px rgba(0,0,0,0.6));
}


h1 {
    font-family: 'Cinzel', serif;
    font-size: 32px; 
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.quote {
    font-style: italic;
    margin-bottom: 50px;
    opacity: 0.85;
    font-size: 16px;
}



.form {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.field {
    position: relative;
}

.field input,
.field textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid #5e4223;
    padding: 10px 5px;
    font-size: 16px;
    font-family: 'Marcellus', serif;
    outline: none;
}

.field textarea {
    resize: none;
    height: 90px;
}

.field label {
    position: absolute;
    left: 5px;
    top: -20px;
    font-size: 14px;
    opacity: 0.7;
}


button {
    margin-top: 25px;
    padding: 14px;
    border: none;
    background: linear-gradient(145deg, #d4af37, #b8912e);
    color: black;
    font-family: 'Cinzel', serif;
    font-size: 16px;
    letter-spacing: 1.5px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

button:hover {
    transform: translateY(-3px);
}


.capsules-gallery {
    padding: 80px 40px;
    text-align: center;
}

.capsules-gallery h2 {
    font-family: 'Cinzel', serif;
    font-size: 26px;
    margin-bottom: 50px;
    letter-spacing: 2px;
    color: #f0d27a;
}


.capsule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1000px; 
    margin: auto;
}


.capsule-card {
    background: url('/images/stone-bg.jpg') center/cover no-repeat;
    padding: 50px 40px;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.6);
    position: relative;
    transition: 0.3s ease;
    overflow: hidden;
}

.capsule-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.75); 
    border-radius: 16px;
}

.capsule-card > * {
    position: relative;
    z-index: 2;
}

.capsule-card:hover {
    transform: translateY(-5px);
}


.capsule-card h3 {
    font-family: 'Cinzel', serif;
    margin-bottom: 20px;
    font-size: 20px;
}

.sealed-text {
    font-style: italic;
    margin-bottom: 12px;
    font-size: 15px;
}

.seal-weakened {
    margin-bottom: 20px;
    font-style: italic;
}


.reveal-toggle {
    display: none;
}

.reveal-button {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(145deg, #d4af37, #b8912e);
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Cinzel', serif;
    margin-bottom: 20px;
    transition: 0.3s;
    font-size: 14px;
}

.reveal-button:hover {
    transform: scale(1.05);
}

.hidden-message {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.6s ease;
    font-size: 15px;
}

.reveal-toggle:checked + .reveal-button + .hidden-message {
    max-height: 300px;
    opacity: 1;
}

.error {
    color: #8b0000;
    font-size: 14px;
    margin-top: 8px;
    font-style: italic;
}



@media (max-width: 1200px) {
    .papyrus-content {
        width: 700px;
        padding: 150px 100px 190px 100px;
    }
}

@media (max-width: 900px) {
    .papyrus-content {
        width: 600px;
        padding: 120px 70px 160px 70px;
    }
}

@media (max-width: 600px) {
    .papyrus-content {
        width: 95%;
        padding: 90px 40px 120px 40px;
    }
}
