/* styles.css */
body {
    margin: 0;
    padding: 0;
    background-size: cover;
    
    font-family: 'Cormorant Garamond', serif;
    
    text-align: center;
    color: rgb(0, 0, 0);

    background-color: #0f0f0f;
    position: relative;
}
html, body {
    height: auto; /* Se till att HTML och BODY tar hela höjden */
    overflow-y: visible; /* Möjliggör vertikal scroll */
}

.container {
    max-width: 800px;
    margin: auto;
    padding: 20px;
    padding-top: 100px;  /* Justera detta för att skapa det utrymme du vill ha (ca 3 cm eller 30px) */

    min-height: 110vh;
}

/* Anpassa menyalternativ för mobila enheter */
@media (max-width: 768px) {
    .menu {
        top: 50px;           /* Justera om du vill ha den närmare hamburgarikonen på mobil */
        width: 80%;
        max-width: none;
        left: 50%;
        right: 0;
        transform: translateX(-50%);
    }
}

/* Lägg till en fade-in-animation till logotypen */
.logo {
    width: 340px;
    max-width: 85vw;
    height: auto;

    margin-top: 40px;

    opacity: 0;

    animation: fadeIn 3s ease-in-out forwards;

    filter:
    drop-shadow(0 0 25px rgba(255,120,40,0.08));

    transition: transform 0.5s ease;

    mix-blend-mode: lighten;
}

.logo:hover {
    transform: scale(1.015);
    filter:
    drop-shadow(0 0 35px rgba(255,140,60,0.12));

}

/* Definiera själva fade-in animationen */
@keyframes fadeIn {
    0% {
        opacity: 0;  /* Börja med logotypen osynlig */
    }
    100% {
        opacity: 1;  /* Slutresultat: logotypen synlig */
    }
}

.theographiaUB {
    width: 400px;
    height: auto;

    opacity: 0.95;

    filter:
    brightness(0)
    invert(1)
    sepia(5)
    saturate(1)
    hue-rotate(-10deg)
    brightness(1.1);

    mix-blend-mode: screen;

    filter:
    brightness(0)
    invert(2)
    sepia(5)
    saturate(3)
    hue-rotate(-2deg)
    brightness(0.95)

    drop-shadow(0 0 8px rgba(180, 80, 40, 0.866))
    drop-shadow(0 0 20px rgba(255, 118, 60, 0.44));

    transition: transform 0.4s ease;
}


@media (max-width: 768px) {
    .container {
        padding: 10px; /* Minska padding */
    }

    .text1 {
        font-size: 14px; /* Minska fontstorlek */
        margin: 40px 0;
    }

    .logo {
        width: 260px;
        max-width: 80vw;
        height: auto;
    }

}
@media (max-width: 768px) {
    body {
        background-size: auto;
    }
}
.photo-gallery {
    margin-top: 20px;
    text-align: center;
}

.photo-item {
    margin-bottom: 40px; /* Luft mellan bild-paket */
}

.gallery-image {
    max-width: 80%;
    height: auto;
    border-radius: 10px;

    box-shadow: 0 0 20px rgba(255,255,255,0.03);
}

.photo-caption {
    margin-top: 10px;
    font-size: 16px;
    color: #8f7a4f; /* mjuk grå färg, kan ändras */
    font-family: 'Michroma', sans-serif; /* samma typsnitt som övriga */
}
.background-texture {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1c1c1c;
    background-image: url("https://www.transparenttextures.com/patterns/classy-fabric.png");
    /* This is mostly intended for prototyping; please download the pattern and re-host for production environments. Thank you! */
    opacity: 0.3;
    z-index: -1; /* Bakom allt annat */
    pointer-events: none;

}

.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.8s ease-out, transform 1.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
/* INTRO OVERLAY */
.intro-overlay {
    position: fixed;
    inset: 0;
    background: #0f0f0f;
    z-index: 9999;
    overflow: hidden;

    will-change: opacity;

    animation: hideOverlay 0s linear forwards 2.7s;
}

/* KONSTBILDEN (INTRO)*/
.intro-art {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    opacity: 0;

    animation:
        artFadeIn 1.2s ease forwards,
        overlayFadeOut 0.9s ease forwards 1.8s;

    filter: brightness(0.95) contrast(1.05);
}

/* KONSTBILD IN */
@keyframes artFadeIn {
    from {
        opacity: 0;
        transform: scale(1.08);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* HELA OVERLAYEN FÖRSVINNER */
@keyframes overlayFadeOut {
    100% {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
}


.handwriting {
    width: 320px;
    max-width: 80vw;

    margin-top: 18px;

    opacity: 0.72;

    mix-blend-mode: screen;

    filter:
    drop-shadow(0 0 10px rgba(255,120,60,0.08));

    transform: rotate(-1deg);

    transition: opacity 0.4s ease;

    filter: brightness(0) invert(2) sepia(5) saturate(3) hue-rotate(-2deg) brightness(0.95) drop-shadow(0 0 8px rgba(180, 80, 40, 0.866)) drop-shadow(0 0 20px rgba(255, 118, 60, 0.44));
}
.logo-container {
    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;
}
.scroll-hint {
    margin-top: 20px;

    font-size: 20px;
    letter-spacing: 4px;

    color: rgba(255,180,120,0.45);

    opacity: 0.6;

    text-transform: lowercase;

    animation: softPulse 3s ease-in-out infinite;
}
@keyframes softPulse {
    0%, 100% {
        opacity: 0.35;
    }

    50% {
        opacity: 0.7;
    }
}
@keyframes hideOverlay {
    to {
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
    }
}






  
