* {
    font-family: "Raleway", sans-serif;
    font-weight: 100;
    color: white;
}

body {
    margin: 0;
    background:
        linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)),
        url("../content/bakgrund2.jpg");
        
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

header {
    display: flex;
    align-items: center;
    height: 200px;
    width: 100%;
    position: top;
}

.top-logo {
    width: 600px;
    margin-top: 60px;
}

nav {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-left: -100px;
}

nav a {
    color: white;
    text-decoration: none; 
    font-size: 1.6rem;
    font-weight: 100;'
    text-wrap: nowrap;
}

nav a:hover {
    color: #F20D0D;
}

.intro {
    text-align: center;
    margin-top: 12%;
}

.button-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    margin-top: 12%;
}

.button-group a {
    color: white;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 300;
    letter-spacing: 1px;
    transition: color .3s ease;
}

.button-group a:hover {
    color: #F20D0D;
}

.separator {
    color: rgba(255,255,255,.45);
    font-size: 2rem;
    user-select: none;
}


h1 {
    font-family: "Cormorant Garamond";
    text-align: center;
    font-size: 3rem;
    font-weight: 400;
    opacity: 0;
    animation: FadeUp 2s ease forwards;
}

h2 {
    text-align: center;
    letter-spacing: .08em;
    font-size: 1.6rem;
    opacity: 0;
    animation: FadeUp 2s ease forwards;
    animation-delay: 1s;
}

@keyframes FadeUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    text-align: center;
    padding: 20px 0;
    background: rgba(0,0,0,0.6);
    font-size: 20px;
}

footer a {
    text-decoration: none;
}

.popup {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0,0,0,0.6);
}

.close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 50px;
    cursor: pointer;
    color: white;
    font-weight: bold;
}

.close:hover {
    color: #F20D0D;
}

.slide {
    display: none;
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.slide.active {
    display: block;
}

.prev,
.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    padding: 20px;
}

.prev {
    left: 40px;
}

.next {
    right: 40px;
}

.prev:hover,
.next:hover {
    color: #F20D0D;
}

.slide-counter {
    position: absolute;
    top: 40px;
    left: 50px;
    font-family: "cormorant garamond";
    font-size: 1rem;
    letter-spacing: 2px;
    color: rgba(255,255,255,.8);
}


@media (max-width: 1250px) {

    h1 {
        font-family: "Cormorant Garamond";
        text-align: center;
        font-size: 2.2rem;
        font-weight: 400;
        opacity: 0;
        animation: FadeUp 2s ease forwards;
    }
    
    h2 {
        text-align: center;
        letter-spacing: .08em;
        font-size: 1.2rem;
        opacity: 0;
        animation: FadeUp 2s ease forwards;
        animation-delay: 1s;
    }

    .top-logo {
        width: 500px;
        margin-top: 60px;
    }

    nav a {
        font-size: 1.2rem;
    }


    footer {
        font-size: 12px;
    }



}


@media (max-width: 1000px) {

    .top-logo {
        width: 400px;
        margin-top: 60px;
    }
    
    nav a {
        font-size: 1.2rem;
    }

    header {
        margin-left: -50px;
    }

    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1rem;
    }
    
    .button-group a {
        font-size: 1rem;
    }

}



@media (max-width: 930px) {


    .intro {
        text-align: center;
        margin-top: 15%;
    }

    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 0.8rem;
    }

}


@media (max-width:751px){

    .popup{
        padding:20px;
    }

    .popup img{
        width:100%;
        max-width:95vw;
        max-height:75vh;
        object-fit:contain;
    }

    .menu-controls{
        width:100%;
        margin-top:15px;

        display:flex;
        justify-content:space-between;
        align-items:center;
    }

    .prev,
    .next{
        font-size:2rem;
    }

    .slide-counter{
        font-size:1rem;
    }

    .close{
        top:20px;
        right:20px;
        font-size:2rem;
    }
}



@media (max-width: 690px) {

    nav {
        gap: 30px;
        margin-left: -100px;
    }

    nav a {
        margin-top: 50px;
    }

    .button-group {
        gap: 30px;
        margin-top: 12%;
    }


    header {
        margin-left: -60px;
        height: 100px;
    }

    .top-logo {
        margin-top: 80px;
    }

    .intro {
        margin-top: 25%;
    }

}


@media (max-width: 565px) {

    nav {
        display: flex;
        justify-content: center;
        gap: 20px;
        margin-left: -100px;
        text-wrap: nowrap;
    }

    .intro {
        margin-top: 35%;
    }

    h1 {
        font-size: 1.3rem;
    }

    h2 {
        font-size: 1rem;
    }

    nav a {
        font-size: 1rem;
    }

    .top-logo {
        width: 300px;
        margin-left: 20px;
    }

    header {
        margin-left: -50px;
    }


    .popup img{
        max-width:85vw;
        max-height:65vh;
    }

    .prev {
        left: -8px;
    }

    .next {
        right: -8px;
    }



}


@media (max-width: 565px) {

    header {
        margin-left: -100px;
    }

}


@media (max-width: 470px) {

    .intro {
        margin-top: 35%;
    }

}