
*{
    margin: 0;
    padding: 0;
    text-decoration: none;

}
@font-face {   /*....Cormora tror jag ok....*/
    font-family: 'CormorantUpright';
    src: url(fonts/CormorantUpright-Bold.ttf) format("truetype"), url(fonts/CormorantUpright-Light.ttf) format("truetype"),
    url(fonts/CormorantUpright-Medium.ttf) format("truetype"),url(fonts/CormorantUpright-Regular.ttf) format("truetype"),url(fonts/CormorantUpright-SemiBold.ttf) format("truetype");
    font-weight: normal;
    font-style: normal;
}
body{
    font-family: 'CormorantUpright';
    color: var(--textColor) ;
    background-color: var(--bodyBg);
    
}
:root{
    --bodyBg:#faf6f6;
    --formBg:#c8d8dc;
    --textColor:#05306d;
    --primaryColor:#4f8fa8;
    --paraColor:#2e3e4f;
    

}

/*..FLAGS IN NAVBAR.....................*/
.flag-container{
    text-align: right;
    margin-bottom: 10px;

}
.flag-container a{
    margin: 0 10px;
    display: inline-block;

}

.flag-container img{
    display: block;
    margin-top: 10px;
    width: 2.5em;
    height: 2.5em;
    border-radius: 50%;
    box-shadow: 0px 4px 15px rgba(0,0,0,0.8);
    object-fit: cover;
}

/*.NAVBAR STARTS HERE!!...............................................................*/
nav{
    display:flex;
    padding:2% 6%;
    justify-content: space-between;
    align-items: center;
}

.nav-links{     /*....Navbar justeras...*/
    flex:1;
    text-align: center;   

}
.nav-links ul li{ 
    font-family: 'CormorantUpright';
    font-weight:lighter;
    font-style: normal;
    list-style: none;
    display: inline-block;
    padding:8px 12px;
    position: relative;
}
.nav-links ul li a{     /*....HOME,ABOUT font justeras...*/
    color: darkblue;     /*font färg för HOME, ABOUT #043308;*/
    text-decoration: none;
    font-size: 2.8rem;     

}
.nav-links ul li::after{   /*....HOME,ABOUT får en understreck...*/
    content: '';
    width: 0%;      /*..understreck är gömd (=därför 0%) om man vill visa den öka med 100%....*/
    height: 2px;
    background: #971006;  /*....HOME,ABOUT får en understreck färg.#971006..*/
    display: block;
    margin: auto;
    transition: 0.9s;  /*..understreck ritas med 0.9s tidsintervall. ju > tal desto långsammare ritas linjen..*/
}
.nav-links ul li:hover::after{    /*..understreck blir synlig om man hover över den....*/
    width: 100%;       
}
/*..NAVBAR HAMBURGERMENU............*/
.checkbtn {  
    font-size: 50px;
    color: rgb(11, 29, 221);
    float: right;
    line-height: 5px;
    margin-right: 30px;
    cursor: pointer;
    display: none;
}

#check {
    display: none;
}
/*..MEDIA QUERY NAVBAR ----------------*/

@media (max-width:1108px){
    .nav-links ul li a {
        font-size: 30px;
    }
}

@media (max-width:858px){
    .checkbtn{
        display: block;
    }
    .nav-links ul {
        position: fixed;
        width: 100%;
        height: 70vh;
        background: #2c3e50;/* whole page with blue color.*/
        top: 80px;
        left:-100%;
        text-align: center;
        transition:all .5s;
    }
    .nav-links ul li{
        display: block;/* nav bar becomes a block.*/
        margin: 30px 0; /* original = 50px 0;.*/
        line-height: 10px;
    }
    .nav-links ul li a{
        font-size: 25px;
        color: gold;/* nav bar changes the color.*/
    }
    .nav-links ul li:hover::after{    /*..understreck blir synlig när man rör vid menyn....*/
        margin-top: 8px;
        width: 30%; 
        transition: width 0.5s ease-in-out;      
    }
   
    #check:checked ~ .nav-links ul { /* click '3lines'on the nav bar appears.*/
        left:0;  /* nav bar displays from left side to middle.*/
    }
}

/*..CONTACT US SECTION STARTS-----------------*/
div img{
    display: block;
    margin: auto;
    width: 8.9em;
    height: 8.9em;
    border-radius: 50%;
    box-shadow:  0px 4px 15px rgba(0, 0, 0, 0.8); 
    object-fit: cover;

}

section{
    display: flex;
    flex-direction: column;
    text-align: center;
    width: 90%;
    max-width: 550px;
    margin: auto;
    margin-top: 3em; 
}
.sectionHeader{
    text-align: center;
    font-style: 'CormorantUpright';
    font-weight: lighter;
    font-size: 2.0rem;
    color: var(--primaryColor);
    margin-bottom: 1.5em;

}
.heading, .sub-heading{
    margin-bottom: 0.5em;
    font-style: 'CormorantUpright';
    font-weight:lighter;
    font-size: 2.0rem;
}
.sub-heading{
    text-align: left;
}
.contactForm{
    display: grid;
    gap: 3em;
    margin-top: 3em;

}
.para{
    font-style: 'CormorantUpright';
    color: var(--paraColor);
    font-size: 1.3rem;
    line-height: 1.5em;
    margin-bottom: 1em;

}
.para2{
   text-align: left; 
}

form{
    width: 90%; /*...kan ändra sen!!!*/
}
.input{
    width: 95%;
    max-width: 700px;
    border: none;
    font-size: 0.9rem;
    padding: 1em;
    outline: none;
    margin-bottom: 1em;
    background-color: var(--formBg);
    color: var(--paraColor);
    border-radius: 10px;
    border: 1px solid rgb(53, 53, 53);
}

.input:focus{
    border: 4px solid var(--primaryColor);
}
.input::placeholder{
    text-transform: capitalize;
}
.submit{
    background-color: var(--primaryColor);
    border: none;
    color: var(--textColor);
    font-weight: bold;
    cursor: pointer;
    width: 100%;
}
.map-container{
    position: relative;
    width: 100%;
    height: 500px;

}
.mapBg{
    position: absolute;
    background-color: var(--primaryColor);
    top: 0;
    right: 0;
    width: 200px;
    height: 90%;
    border-radius: 20px;
}
.map{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 90%;
    height: 90%;

}
.map iframe{
    width: 100%;
    height: 100%;

}

.contactMethod{ 
    display: flex;
    flex-direction: column; /* För små skärmar är layouten vertikal */
    justify-content: center; /* Centrerar elementen vertikalt */
    align-items: center;
    text-align: left;
    margin-top: 1.5em;
    gap: 1.5em; /* Avstånd mellan varje sektion */

}
.method{
    display: flex;
    flex-direction: column; /* Staplar innehållet i varje sektion */
    align-items: center; /* Centrerar innehållet */
    text-align: center;
   
}
label{
    font-style:'CormorantUpright';
    font-size: 1.1rem;
    columns: var(--paraColor);
    margin-bottom: 0.5em;
    display: block;
    font-weight: lighter;
    text-align: left;
}

/* Responsive for the screens original=min-width:800px   */
@media screen and (min-width:800px){
    section{
        max-width: 1100px;
    }
    .contactForm{
        grid-template-columns: 1fr 1fr;/*-map och contactform bredvid varandra--*/

    }
    .contactMethod {
        flex-direction: row; /* Gör layouten horisontell */
        justify-content: space-around; /* Jämnt avstånd mellan sektionerna */
        align-items: flex-start; /* Justerar elementen till toppen */
    }
    
    .method {
        text-align: left; /* Justera texten till vänster för större skärmar */
    }

}
/*  FOOTER SECTION...............*/
footer{
    width: 100%;
    background-color: #171a43;
    color:  #dcd9d9; 
    text-align: center;
    padding: 20px 0;
    box-sizing: border-box;
}
footer a{
    color: #dcd9d9; 
    text-decoration: none;
    margin: 0 10px;
}
footer a:hover{
    text-decoration: underline;
}
/*..Media Q för footer........................*/ 
/* För mobil (upp till 480px) */
@media (max-width: 480px) {
    footer {
        width:100%;
        padding: 15px 10px;
        font-size: 14px;
    }
    footer p {
        margin-bottom: 5px;
    }
    footer a {
        display: block;
        margin: 5px 0;
    }
}

/* För tablet (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    footer {
        width:100%;
        padding: 18px 15px;
        font-size: 16px;
    }
}

/* För laptop (769px - 1200px) */
@media (min-width: 769px) and (max-width: 1200px) {
    footer {
        padding: 20px 30px;
        font-size: 18px;
    }
}

/* mycket större skärmar (1201px och uppåt) */
@media (min-width: 1201px) {
    footer {
        width:100%;
        margin: 0 auto;
        margin-bottom: 20px;
        padding: 25px 40px;
        font-size: 20px;
    }
}


