/* farver
Rød: #b10000
Beige: #fff2d8 */

/* Resets */


html, body{
    margin: 0;
    padding: 0;
}

body{
    background-image: url(../img/background-image.jpg);
    background-repeat: no-repeat;
    background-size: auto, cover;
    background-attachment: fixed;
}

*{
    box-sizing: border-box;
}

img, svg, video{
    max-width: 100%;
}

figure{
    margin: 0;
}

/* ai generator */

.generate{
    margin-left: -100%;
    margin-bottom: 20px;
}

.generate-button{
    width: 130px;
    height: 40px;
    border-radius: 15px;
}

.generate-button {
    border-radius: 25px; 
    background-color: #f8f8f8; 
    cursor: pointer; 
}

.generate-button:hover {
    background-color: #ddd; 
}

.title-projekt{
    margin-block-end: 0;
    text-align: center;
}

.title{
    max-width: 300px;
    margin: 0 auto;
}

.email-d{
    display: flex;
    align-items: center;
    gap: 10px;
}

.email{
    border-bottom: 1px solid white;
}

.first-parameter{
    margin-top: 0px;
}

img {
    width: 100%;
    height: auto;
}

.wrapper {
    display: grid;
    flex-basis: 50%;
    margin-bottom: 30px;
}

.generated-img{
    width: 100%;
    height: auto;
    padding: 0px;
}

figure img {
    border: 10px solid rgb(255, 255, 255);
}

h1{
    text-align: center;
}

.field h3{
    margin-block-end: 2px;
}

.range{
    display: flex;
}

/* ________________________________________________________________________ */

/* variabler */

:root{
    --primary-color: #000000;
    --secondary-color: #3c3c3c;
    --bright-color: #fff;
}

/* ________________________________________________________________________ */

/* LAYOUT */

.ul{
    display: flex;
    gap: 50px;
}

.center-max{
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 10px;
}

.header{
    background-color: var(--primary-color);
    box-shadow: 0 10px 12px rgb(0, 0, 0);
    position: sticky;
    z-index: 9999;
    top: 0;
    transition: transform 0.3s ease-in-out;
}

.hidden {
    transform: translateY(-100%);
}

.main{
    color: var(--bright-color);
    margin-top: 35px;
    margin-bottom: 35px;
}

.img-sec{
    width: 300px;
}

.sec-content{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.div-sec{
    max-width: 600px;
}

.section{
    padding: 0.1px 10px;
    background-color: var(--primary-color);
    box-shadow: 0 0 5px 1px rgb(255, 255, 255);
    border-radius: 10px;
    margin: 10px 10px 20px 10px;
}

.border{
    overflow: hidden;  
    margin: 10px auto; 
    width: 200px;
    height: 170px;
    border-radius: 20px;

}

.white{
    color: var(--primary-color);
    background-color: var(--bright-color);

}

.article{
    padding: 0;
}

.sixty-min{
    min-width: 66.7%;
}

.aside{
    padding: 10px;
}

.logo-image{
    display: flex;
    justify-content: center;
}

.logo-image a img{
    width: 50px;
    height: 50px;
    padding: 10px;
}

.logo{
    display: block;
    padding-top: 10px;
    text-decoration: none;
    color: var(--bright-color);
}

.logo h1{
    margin-block-end: 0;
}

hr{
    margin: 0;
}

.search{
    display: flex;
    padding: 10px 0;
}

.hidden-on-mobile{
    display: none;
}

.burger{
    background: none;
    border: none;
    outline: none;
}

.menu-item{
    display: block;
    text-decoration: none;
    margin: 10px 0;
    transition: color 0.3s ease;
}

.menu-item:hover{
    color: var(--secondary-color);
}



.menu-container{
    background-color: var(--primary-color);
    padding: 5px 0;
    
}

.menu-container a{
    color: var(--bright-color);
    text-decoration: none;
}

.footer{
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.footer a{
    color: var(--primary-color);
}

.footer-inner{
    padding: 10px 0;
}

/* Typografi */
body{
    font-family: sans-serif;
}

h1, h2, h3, h4, h5, h6, .menu-item {
    text-transform: uppercase;
    font-family: "Montserrat", serif;
    font-weight: 800;
    font-style: normal;
}

.under-title{
    font-family: "Gruppo", serif;
    font-weight: 400;
    font-style: normal;
    margin-block-start: 0;
    color: var(--bright-color);
}

.center{
    text-align: center;
}


/* search-inputs */

.search-btn{
    background-color: var(--primary-color);
    box-sizing: content-box;
    padding: 4px;
}

/* ________________________________________________________________________ */

/* Kontakt form */

.contact-form input,
.contact-form textarea{
    width: 100%;
    padding: 10px 0;
}

.field{
    padding: 10px 0;
}

.contact-form input[type="submit"]{
    
    background: var(--primary-color);
    color: var(--bright-color);
    border:none;
    cursor: pointer;
    border-radius: 10px;
    box-shadow: 0 0 3px 1px var(--bright-color);
    transition: background-color 0.3s ease-in-out;
}

.contact-form input[type="submit"]:hover{
    background-color: var(--secondary-color);
}

.foto-grid{
    display: grid;
    padding: 0;
    list-style: none;
}

.dialog-first{
    gap: 15px;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 200px; 
    overflow: hidden;
    border: 2px solid #333;
    border-radius: 10px;
}
.slider {
    list-style: none;
    padding: 0;
    margin: 0;
    transition: transform 0.5s ease-in-out;
}
.slider li {
    width: 100%;
    height: 200px; 
}
.slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.buttons{
    display: flex;
    justify-content: center;
    margin: 10px auto;
}

.buttons button:hover {
    background: #555;
}

.model-content{
    display: none;
}

::backdrop{
    background-color: rgba(0,0,0,0.5);
}

/* toggle portfolio */

.toggle {
    gap: 10px;
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 18px;
    user-select: none;
}

.toggle-h4{
    font-family: "Gruppo", serif;
    font-weight: 400;
    font-style: normal;
    margin: 10px 0;
}

.toggle-h5{
    font-size: 15px;
    margin: 10px 0;
}


.arrow {
    display: inline-block;
    cursor: pointer;
    transition: transform 0.3s ease;
    font-size: 24px;
}

.rotate {
    transform: rotate(90deg);
}

.to-sec, .content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    border-left: none;
    margin: 0;
    padding: 0;
    margin-bottom: 0;
}

.to-sec.open, .content.open {
    max-height: 4500px;
}


/* ________________________________________________________________________________________________________ */

/* Desktop styles */

@media screen and (min-width: 850px){


    .sec-content{
        flex-direction: row;
    }

    .to-sec, .content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        border-left: 2px rgb(139, 139, 139) solid;
        margin-left: 6px;
        padding-left: 10px;
        margin-bottom: 10px;
    }

    .article{
        padding: 10px;
    }

    .slider-container{
        height: 400px;
    }

    .slider li {
        width: 100%;
        height: 400px; 
    }

    .first-parameter{
        margin-top: -30px;
    }

    .generated-img{
        height: 512px;
        width: 512px;
        padding-right: 20px;
    }

    .wrapper{
        display: flex;
    }

    .article{
        padding-left: 10px;
    }
    
    .aside{
        padding-right: 10px;
    }

    body{
        display: flex;
        flex-direction: column;
        min-height: 100vh;
        justify-content: space-between;
    }

    .flex-none{
        display: block;
    }


    .flex-desktop{
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 20px;
    }

    .flex-desktop-justify{
        display: flex;
        justify-content: space-between;
        gap: 20px;
    }

    .main-menu{
        display: flex;
        justify-content: flex-end;
        gap: 10px;
    }

    .menu-item{
        margin: 0;
    }

    .burger{
        display: none; 
    }


}

