*{
    box-sizing: border-box;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    margin: 0px;
    padding: 0px;
}



body{
    background-color: #9cdaf0;
}




header{
    background-color: #4c86a8;
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
}
header h1{
    font-weight: 400;
    font-style: normal;
    color: #fbfeff;
    padding-left: 50px;
    font-size: 2.4em;
}



nav{
    display: block;
    background-color: #4c86a8;
    border-top: #272932 2px solid;
}
nav ul{
    list-style-type: none;
    padding: 0px;
    margin: 0px;
    overflow: hidden;
    display: flex;
    padding-left: 40px;
}
nav a{
    text-decoration: none;
    padding: 10px;
    display: block;
    text-align: center;
    color: #272932;
    font-size: 1.3em;
    transition: background-color 0.2s ease;
    position: relative;
}
nav a:hover{
    background-color: #ea8252;
}
nav .active_page a::after{
    content: "";
    position: absolute;
    width: 60%;
    height: 3px;
    border-radius: 2px;
    bottom: 0px;
    left: 20%;
    background-color: #ea8252;
}
nav .active_page a{
    color:#fbfeff;
}




.container{
    display: inline-block;
    min-height: 300px;
}
#main_index{
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    margin: 15px;
    border-radius: 20px;
    flex-direction: row;
    gap: 10px;
    flex-wrap: wrap;
    box-shadow: 5px 5px 5px #272932;
}
#paolos_bild{
    width: 48%;
    max-width: 400px;
    min-width: 266px;
    border-radius: 20px;
}
#main_index p{
    width: 48%;
    max-width: 400px;
    margin-bottom: 10px;
}
#main_index h2{
    display: inline-block;
    width: 100%;
    
    font-weight: 400;
    font-style: normal;
}
#paolo_wrapper{
    display: flex;
    gap: 4%;
    flex-wrap: wrap;
    justify-content: center;
}



#h2_tekniker{
    font-weight: 400;
    font-style: normal;
    color: #272932;
    padding-left: 50px;
    font-size: 2.4em;
    margin: 10px;
}
#main_tekniker{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.tekniker_divs{
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    max-height: 300px;
    width: 400px;
    overflow: hidden;
}
.tekniker_divs h3{
    padding: 20px 0px 20px 30px;
    position: relative;
    font-size: 1.3em;
}
.tekniker_divs h3::after{
    content: "";
    position: absolute;
    height: 4px;
    width: 20%;
    background-color: #ea8252;
    left: 20px;
    bottom: 10px;
    border-radius: 2px;
}
.tekniker_divs p{
    padding: 0px 10px 10px 10px;
    width: 100%;
    font-size: 1em;
}
.tekniker_container{
    display: flex;
    border: #27293200 3px solid;
    border-radius: 30px;
    overflow: hidden;
    background-color: #f0f0f0;
    box-shadow: 5px 5px 5px #272932;
    width: auto;
}
.bild_container1{
    overflow: hidden;
    height: 300px;
    width: 150px;
}
.tekniker_container img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
}



#main_projekt{
    display: flex;
    margin: 15px;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    
    justify-content: center;
}
.projekt_divs{
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    max-height: 300px;
    width: 350px;
    overflow: hidden;
}
.projekt_divs h3{
    padding: 20px 0px 20px 30px;
    position: relative;
    font-size: 1.3em;
}
.projekt_divs h3::after{
    content: "";
    position: absolute;
    height: 4px;
    width: 20%;
    background-color: #ea8252;
    left: 20px;
    bottom: 10px;
    border-radius: 2px;
}
.projekt_divs p{
    padding: 0px 10px 10px 10px;
    width: 100%;
    font-size: 0.9em;
}


.projekt_container{
    display: flex;
    border: #27293200 3px solid;
    border-radius: 30px;
    overflow: hidden;
    background-color: #f0f0f0;
    width: 500px;
    height: 300px;
    position: relative;
    box-shadow: 5px 5px 5px #272932;
    transition: box-shadow 0.5s ease;
}
.bild_container2{
    position: relative;
    overflow: hidden;
    height: 100%;
    width: 150px;
    transition: width 0.5s ease;   
}
.projekt_container img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
}
.projekt_active {
    width: 100%;
    position: absolute;
    right: 0px;
    transition-delay: 0s;
    transition: width 0.5s ease; 
}
.closed {
    position: relative;
}
.closing {
    overflow: hidden;
    height: 100%;
    width: 150px; 
}
.projekt_container:hover{
    box-shadow: #ea8252 5px 5px 10px;
}








#om_h2{
    margin: 10px;
    font-weight: 400;
    font-style: normal;
    color: #272932;
    padding-left: 50px;
    font-size: 2.4em;
}
#main_om{
    background-color: #f0f0f0;
    display: flex;
    width: 70%;
    height: auto;
    flex-wrap: wrap;
    border-radius: 30px;
    padding: 20px;
    max-width: 700px;
    margin: 10px 50px 50px 50px;
    flex-direction: column;
    gap: 15px;
    box-shadow: 5px 5px 5px #272932;
    overflow: hidden;
    word-break: break-word;
    overflow-wrap: break-word;
}
#main_om p{
    word-break: break-word;
    overflow-wrap: break-word;
}

#kontakt_wrapper{
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
}
.kontakt_divs{
    padding: 10px;
    display: flex;
    gap: 15px;
}
.social_icon{
    font-size: 1.5em;
}









footer{
    width: 100%;
    height: 100px;
    background-color: #4c86a8;
    display: flex;
    justify-content: center;
    align-items: center;
}
footer h3{
    color: #fbfeff;
    font-size: 1em;
    margin: 15px;
}
footer a{
    color: #fbfeff;
    text-decoration: none;
    position: relative;
}
footer a:hover{
    color:#ea8252;
}

footer a::after{
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #ea8252;
    left: 0px;
    bottom: -2px;
    border-radius: 2px;
}

@media (max-width: 616px){
    #main_index p, #paolos_bild {
        width: 80%;
    }
}

@media (max-width: 600px){
    .tekniker_container {
        width: 90vw;
    }
    #main_index {
        width: 90vw;
    }
    .projekt_container{
        flex-wrap: wrap;
        height: auto;
        width: 90vw;
    }
    .bild_container2 {
        width: 100%;
        transition: none;
    }
    .bild_container2 img{
        width: 100%;
        height: auto;
    }
    .projekt_divs {
        margin-bottom: 10px;
        width: 100%;
    }
    .projekt_divs p {
        text-align: center;
    }

    .projekt_container:hover .bild_container2{
        width: 100%;
        position: relative;
        right: 0px;
        transition-delay: 0s;
    }

    #main_om {
        width: 90vw;
        margin: 0px 5vw 20px 5vw;
    }
    .projekt_active {
        position: relative;
        overflow: hidden;
        height: 100%;
    }
}

@media (max-width: 500px){
    .tekniker_container {
        flex-wrap: wrap;
    }
    .tekniker_divs {
        max-height: 400px;
    }
    .bild_container1{
        width: auto;
    }
    nav ul{
        padding: 0;
    }
    nav {
        justify-content: center;
        display: flex;
    }
    nav ul a {
        font-size: 1.1em;
    }
    header h1 {
        font-size: 2em;
        padding: 0;
    }
    header {
        justify-content: center;
        text-align: center;
    }
    /*Fixa nav bar mobilvänlighet, domskript?*/
}