:root {
    --zwart: #000000;
    --donkergrijs: #1A1A1A;
    --goud: #D4AF37;
    --wit: #FFFFFF;
    --hemelsblauw: #87CEEB;
    --diep-rood: #8B0000;
}

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Cormorant Garamond', serif;
    background-color: var(--zwart);
    color: var(--wit);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.background-texture, .frog-background, .dragon-background, .achtergrond, .vloeiende-lijnen, .gouden-accent {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.background-texture {
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(212, 175, 55, 0.1) 0%, rgba(0, 0, 0, 0) 70%),
        radial-gradient(circle at 80% 80%, rgba(212, 175, 55, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: 1;
}
.memory-lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.memory-lightbox-content {
    color: var(--wit);
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--donkergrijs);
    border-radius: 10px;
    border: 2px solid var(--goud);
}

.memory-lightbox-content h3 {
    color: var(--goud);
    margin-bottom: 10px;
}
.frog-background {
    background-image: url("pic/lucaantink.png");
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: contain;
    transform: scaleX(-1);
    opacity: 0.8;
    z-index: 2;
    left: 0;
    width: 50%;
    height: 100%;
    position: fixed;
    bottom: 0;
}

.dragon-background {
    background-image: url("pic/DragonBackground.png");
    background-repeat: no-repeat;
    background-position: right center;
    background-size: contain;
    opacity: 0.28;
    z-index: 2;
    right: 0;
    left: auto; /* Ensure it's not inheriting 'left: 0' from somewhere */
    width: 50%;
    height: 100%;
    position: fixed;
    top: 0;
}
.achtergrond {
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.5) 100%);
    z-index: 3;
}

.vloeiende-lijnen {
    background-image: 
        linear-gradient(45deg, transparent 65%, rgba(139,0,0,0.1) 65.5%, transparent 66%),
        linear-gradient(-45deg, transparent 65%, rgba(139,0,0,0.1) 65.5%, transparent 66%);
    background-size: 60px 60px;
    animation: stroom 10s linear infinite;
    z-index: 4;
    opacity: 0.2;
}

@keyframes stroom {
    0% { background-position: 0 0; }
    100% { background-position: 60px 60px; }
}

.gouden-accent {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    height: 80vh;
    background: radial-gradient(ellipse at center, rgba(212,175,55,0.2) 0%, rgba(139,0,0,0.1) 50%, rgba(0,0,0,0) 70%);
    z-index: 5;
}

.fullscreen-section, nav, header, .hoofdinhoud, footer {
    position: relative;
    z-index: 10;
}

.fullscreen-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 20px 20px;
    box-sizing: border-box;
}

header {
    text-align: center;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.7));
}

.hero-afbeelding {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 3px solid var(--goud);
    object-fit: cover;
    margin-bottom: 2rem;
    box-shadow: 0 0 20px rgba(212,175,55,0.3), 0 0 40px rgba(139,0,0,0.2);
}

h1, h2 {
    font-family: 'Cinzel', serif;
    color: var(--goud);
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(139,0,0,0.3);
}

h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    letter-spacing: 3px;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.ondertitel {
    font-size: 1.5rem;
    color: var(--wit);
    font-style: italic;
}

nav {
    background-color: rgba(0,0,0,0.8);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 1rem;
}

nav ul li a {
    color: var(--goud);
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

nav ul li a:hover {
    color: var(--diep-rood);
}

.hoofdinhoud {
    width: 100%;
}

.sectie {
    background: rgba(0,0,0,0.7);
    padding: 2rem;
    border-left: 3px solid var(--goud);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(212,175,55,0.1);
    max-width: 800px;
    margin: 2rem auto;
    backdrop-filter: blur(5px);
}

p {
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}
.galerij-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.galerij-item:hover video {
    transform: scale(1.05);
}

.lightbox-content video {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
}

.galerij {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.galerij-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    border: 1px solid rgba(212,175,55,0.3);
    box-shadow: 0 0 10px rgba(139,0,0,0.1);
}

.galerij-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.galerij-item:hover img {
    transform: scale(1.05);
}

.galerij-bijschrift {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0,0,0,0.7);
    color: var(--goud);
    padding: 0.5rem;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.galerij-item:hover .galerij-bijschrift {
    transform: translateY(0);
}

.citaat {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--goud);
    text-align: center;
    margin: 3rem 0;
    padding: 2rem;
    border-top: 1px solid var(--goud);
    border-bottom: 1px solid var(--goud);
    box-shadow: 0 5px 15px rgba(139,0,0,0.1);
    background: rgba(0,0,0,0.6);
}

.afscheid {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.afscheid h2 {
    color: var(--wit);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.afscheid p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

footer {
    background-color: var(--donkergrijs);
    color: var(--wit);
    text-align: center;
    padding: 2rem 0;
}

.knop {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--goud);
    border: 2px solid transparent;
    color: var(--zwart);
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-weight: bold;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 30px;
    transition: all 0.3s ease;
    margin-top: 2rem;
    cursor: pointer;
}

.knop:hover {
    background-color: var(--zwart);
    color: var(--goud);
    border-color: var(--diep-rood);
    box-shadow: 0 0 15px rgba(139,0,0,0.3);
}

#music-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1001;
    background-color: var(--goud);
    border: 2px solid transparent;
    color: var(--zwart);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

#music-button:hover, #music-button.active {
    background-color: var(--diep-rood);
    color: var(--wit);
    border-color: var(--goud);
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img,
.lightbox-content video {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.close-lightbox {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 35px;
    cursor: pointer;
    color: white;
}

/* Memories Section */
.memories-container {
    width: 100%;
    overflow-x: auto;
    padding: 20px 0;
    -webkit-overflow-scrolling: touch;
}

.memory-scroll {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    padding: 0 20px;
    min-width: min-content;
}

.memory-item {
    flex: 0 0 auto;
    width: 300px;
    height: 200px;
    background: rgba(0,0,0,0.7);
    border: 1px solid var(--goud);
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 0 10px rgba(212,175,55,0.2);
    transition: transform 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

.memory-item:hover {
    transform: translateY(-5px);
}

.memory-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.memory-text {
    font-style: italic;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
}

.memory-name {
    text-align: right;
    color: var(--goud);
    margin-top: 10px;
}

.memories-container::-webkit-scrollbar {
    height: 8px;
}

.memories-container::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.memories-container::-webkit-scrollbar-thumb {
    background: var(--goud);
    border-radius: 4px;
}

.memories-container::-webkit-scrollbar-thumb:hover {
    background: #ffd700;
}

#herinneringen {
    min-height: auto;
    height: auto;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: var(--donkergrijs);
    margin: 10% auto;
    padding: 30px;
    border: 2px solid var(--goud);
    width: 90%;
    max-width: 500px;
    border-radius: 10px;
    color: var(--wit);
    box-shadow: 0 0 20px rgba(212,175,55,0.3);
}

.modal-content h2 {
    color: var(--goud);
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
    text-transform: uppercase;
}

.close {
    color: var(--goud);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: var(--diep-rood);
}

#memory-text, #memory-name {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    background-color: #222;
    color: var(--wit);
    border: 1px solid var(--goud);
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

#memory-text {
    height: 150px;
    resize: vertical;
}

#memory-text:focus, #memory-name:focus {
    outline: none;
    border-color: #FFC640;
    box-shadow: 0 0 5px rgba(255,198,64,0.5);
}

#submit-memory {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: var(--goud);
    color: var(--zwart);
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
    margin-top: 20px;
    text-transform: uppercase;
}

#submit-memory:hover {
    background-color: #FFC640;
}

#submit-memory:active {
    transform: scale(0.98);
}

::placeholder {
    color: #888;
}

/* Media Queries */
@media screen and (max-width: 1024px) {
    .sectie {
        max-width: 90%;
    }
}

@media screen and (max-width: 768px) {
    .frog-background, .dragon-background {
        width: 100%;
        height: 50%;
        background-size: contain;
        background-position: center;
    }

    .frog-background {
        bottom: 0;
        top: auto;
    }

    .dragon-background {
        top: 0;
        bottom: auto;
    }

    h1 {
        font-size: 2.5rem;
    }

    .ondertitel {
        font-size: 1.2rem;
    }

    .galerij {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .citaat {
        font-size: 1.3rem;
        padding: 1.5rem;
    }
    footer {
        background-color: var(--donkergrijs);
        color: var(--wit);
        text-align: center;
        padding: 2rem 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    footer .knop {
        margin-top: 1rem;
    }

    .lightbox-content {
        width: 90%;
        height: auto;
    }

    .lightbox-content img {
        max-height: 80vh;
    }

    .close-lightbox {
        top: 10px;
        right: 10px;
        font-size: 30px;
    }
}

@media screen and (max-width: 600px) {
    nav ul {
        justify-content: space-around;
    }

    nav ul li {
        margin: 0;
    }

    nav ul li a {
        font-size: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 24px;
        height: 24px;
    }

    nav ul li a::before {
        content: '';
        display: block;
        width: 24px;
        height: 24px;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        filter: drop-shadow(1px 1px 1px rgba(139,0,0,0.5));
    }

    nav ul li:nth-child(1) a::before {
        background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23D4AF37"><path d="M12 2L2 9V22h20V9L12 2zm8 17h-5v-5h-6v5H4v-9.8l8-5.6 8 5.6V19z"/></svg>');
    }

    nav ul li:nth-child(2) a::before {
        background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23D4AF37"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm-5-9h10v2H7z"/></svg>');
    }

    nav ul li:nth-child(3) a::before {
        background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23D4AF37"><path d="M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z"/></svg>');
    }

    nav ul li:nth-child(4) a::before {
        background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23D4AF37"><path d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"/></svg>');
    }

    #music-button {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .hero-afbeelding {
        width: 150px;
        height: 150px;
    }

    h1 {
        font-size: 2rem;
    }

    .ondertitel {
        font-size: 1rem;
    }

    .sectie {
        padding: 1.5rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    p {
        font-size: 1rem;
    }

    .citaat {
        font-size: 1.2rem;
        padding: 1rem;
    }

    .afscheid h2 {
        font-size: 2rem;
    }

    .afscheid p {
        font-size: 1rem;
    }

    .knop {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .memory-item {
        width: 250px;
        height: 180px;
    }
}