html {
    --scroll-opacity: 0.15;
}

:root {
    --pink: rgb(231, 204, 204);
    --strongpink: rgb(191, 134, 134);
    --offwhite: rgb(248, 243, 231);
    --green: rgb(165, 182, 141);
    --stronggreen: rgb(63, 70, 50);
    --fadedgreen: rgb(193, 207, 161);
    --greentext: rgb(74, 83, 60);
    --greener: rgb(122, 117, 98);
}

body {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--stronggreen);
    background-color: var(--offwhite);
    padding: 0;
    margin: 0;
    font-weight: 500;
}


/* body::before {
    content: '';
    position: fixed;
    top: -100px;
    left: 0;
    width: 100%;
    height: 700px;
    background-image: url('assets/bg-eucal-top.png');
    background-size: cover;
    z-index: -100;
    opacity: 0.4;
} */

body::after {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 700px;
    background-image: url('assets/bg-eucal.png');
    background-size: cover;
    z-index: -100;
    transition: opacity 0.3s ease;
    opacity: var(--scroll-opacity);
}

@media (max-width: 768px) {
    body::after {
        height: 500px;
    }
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    padding-bottom: 300px;
}

h1 {
    font-family: 'Great Vibes', cursive;
    font-size: 2.5rem;
    text-align: center;
    margin-top: -5px;
}

h2,
h3,
h4 {
    text-align: center;
    margin-bottom: 10px;
}

/* add separators above h3 */
h3 {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--greentext);
}

.no-border {
    border-top: none;
}

a {
    color: var(--stronggreen);
    text-decoration: none;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
    border-bottom: 1px solid var(--stronggreen);
}

a:hover {
    color: var(--green);
}

a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--stronggreen);
    transition: width 0.3s ease;
}

a:hover::after {
    width: 100%;
}

.btn-container {
    display: flex;
    margin-top: 5px;
    /* flex-direction: column; */
    justify-content: center;
    align-items: center;
    /* text-align: center; */
    gap: 10px;
}

section {
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 6px;
    background-color: var(--offwhite);
    color: var(--stronggreen);
    border: 1px solid var(--stronggreen);
    border-radius: 5px;
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    cursor: pointer;
    position: relative;
    /* overflow: hidden; */
    transition: color 0.3s ease, background-color 0.3s ease;
}

.btn:hover {
    color: var(--offwhite);
    background-color: var(--stronggreen);
}

/* Button variants */
.btn-primary {
    background-color: var(--stronggreen);
    color: var(--offwhite);
}

.btn-primary:hover {
    background-color: var(--green);
}

.btn-primary::after {
    background-color: var(--offwhite);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--stronggreen);
}

/* ...existing code... */


.dynamic-border {
    width: 150px;
    height: 150px;
    display: inline-block;
    background-size: cover;
    background-position: center;
    border: 5px solid var(--greener);
    opacity: 0.8;
    position: relative;
}

.animated {
    animation: float 5s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px) translateX(0px);
    }

    20% {
        transform: translateY(-10px) translateX(5px);
    }

    40% {
        transform: translateY(-5px) translateX(-8px);
    }

    60% {
        transform: translateY(8px) translateX(3px);
    }

    80% {
        transform: translateY(4px) translateX(-5px);
    }

    100% {
        transform: translateY(0px) translateX(0px);
    }
}

/* Add some variety by staggering animations */
.dynamic-border:nth-child(even) {
    animation-delay: 1s;
}

.oscar {
    background-image: url("assets/photo_osc2.png");
}

.mathea {
    background-image: url("assets/photo_mat2.png");
}

.toast {
    background-image: url("assets/larserik.png");
    width: 120px;
    height: 120px;
}

.ingrid {
    width: 75px;
    height: 75px;
    background-image: url("assets/ingrid.png");
}

.anders {
    width: 75px;
    height: 75px;
    background-image: url("assets/anders.png");
}

.marius {
    width: 75px;
    height: 75px;
    background-image: url("assets/marius.png");
}

.location-section {
    margin-top: 30px;
}

.location-toggle {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.hidden {
    display: none;
}

.people-container {
    display: flex;
    /* flex-wrap: wrap; */
    justify-content: center;
    gap: 10px;
}

#map {
    width: 100%;
    height: 300px;
    margin-bottom: 10px;
}

iframe {
    width: 100%;
    height: 300px;
    border: 0;
}

/* Custom Leaflet map styles */
.leaflet-container {
    border: none;
    border-radius: 15px;
    /* box-shadow: 6px 6px 20px rgba(0, 0, 0, 0.2); */
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.4);
}

/* Hide the bottom footer of Leaflet */
.leaflet-control-attribution {
    display: none !important;
}

/* Remove zoom buttons */
.leaflet-control-zoom {
    display: none;
}

/* .leaflet-tile-pane {
    filter: hue-rotate(360deg);
} */


/* easter egg */

.enable-star-wars {
    position: relative;
    overflow: hidden;
}

.enable-star-wars::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    animation: darken-page .5s ease;
}

.enable-star-wars::after {
    content: '';
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) rotate(0deg);
    width: 15px;
    height: 0;
    background-color: red;
    box-shadow: 0 0 15px 5px red;
    border-radius: 5px;
    z-index: 1001;
    transform-origin: center bottom;
    animation: lightsaber-appear 1.2s ease forwards 0.6s,
        lightsaber-swing 1.2s ease-in-out 1.8s forwards;
}

@keyframes darken-page {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes lightsaber-appear {
    0% {
        height: 0;
        bottom: 0;
    }

    100% {
        height: 300px;
        bottom: 30%;
    }
}

@keyframes lightsaber-swing {
    0% {
        transform: translateX(-50%) rotate(0deg);
        box-shadow: 0 0 15px 5px red, 0 0 25px 10px rgba(255, 0, 0, 0.5);
    }

    10% {
        transform: translateX(-50%) rotate(5deg) translateY(-10px);
    }

    25% {
        transform: translateX(-50%) rotate(45deg) translateY(-5px);
        box-shadow: 0 0 20px 8px red, 0 0 30px 15px rgba(255, 0, 0, 0.6);
    }

    40% {
        transform: translateX(-50%) rotate(35deg) translateY(-15px);
    }

    50% {
        transform: translateX(-50%) rotate(-30deg) translateY(-10px);
        box-shadow: 0 0 25px 10px red, 0 0 35px 15px rgba(255, 0, 0, 0.7);
    }

    65% {
        transform: translateX(-50%) rotate(-20deg) translateY(-5px);
    }

    75% {
        transform: translateX(-50%) rotate(25deg) translateY(-8px);
        box-shadow: 0 0 20px 8px red, 0 0 30px 15px rgba(255, 0, 0, 0.6);
    }

    90% {
        transform: translateX(-50%) rotate(10deg) translateY(-5px);
    }

    100% {
        transform: translateX(-50%) rotate(0deg);
        box-shadow: 0 0 15px 5px red, 0 0 25px 10px rgba(255, 0, 0, 0.5);
    }
}