main{
height: auto;
width: 100%;

}
header{
    /* Photo by <a href="https://unsplash.com/@mathyaskurmann?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText">Mathyas Kurmann</a> on <a href="https://unsplash.com/s/photos/contact?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText">Unsplash</a> */
    background-image: url(../bilder/kontakt.jpg);
}


html {
    scroll-behavior: smooth;
}

/* kontakt oss section design */

#parent-cards-section{
    height: 100%;
    width: 100%;
}

#parent-cards-section h2{
    width: 100%;
    text-align: center;
    padding: 30px 0 0 0;
}

#kontakt-ossSection{
   
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: row;

}

#text-section{
    width: 50%;
    background-color: rgb(250, 250, 250);
    padding: 30px 30px;
}

#text-box p{
    color: black;
}

#text-box{
    background-color:rgba(255, 255, 255, 0.712) ;
}



#map-section{
    width: 50%;
    height: 100%;
   
}

#map-section iframe{
    width: 100%;
    height: 100%;
}

form{
    display: flex;
    flex-direction: column;
    width: 100%;
}

#forOgEtterNavn{
    display: flex;
    flex-direction: row;
}

#forOgEtterNavn div{
    display: flex;
    flex-direction: column;
    width: 100%;
}

#Fnavn{
    width: 90%;
}

#Enavn{
  width: 100%;
}

input[type=text],textarea, input[type=email]{
    width: 100%;
    padding: 17px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    margin-top: 6px;
    margin-bottom: 16px;
    resize: none;

   
  }


  input[type=submit] {
    width: 20%;
    background-color: #000000;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }
  
  input[type=submit]:hover {
    background-color: #ffffff;
    color: black;
  }





/* card desing */


#child-cards-section{
    display: flex;
    flex-direction:row;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 60vh;
  
   
}

.card{
    background-color: #fafafa;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 25%;
    height:75%;
    margin: 0 50px;
    box-shadow: 10px 10px 24px -7px rgba(0,0,0,0.1);
    border-radius: 13px;


}

.card-info{

    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;

    
}

.card:hover{
    border-radius: 8px;
    box-shadow: 12px 6px 50px -8px rgba(0,0,0,0.1);    
}

.card-info figure{
    display: flex;
    align-items: center;
    justify-content: center;
    
   
}

.card-info h2{
    
    text-align: center;
    color: rgb(0, 0, 0);

}
.card-info p{

    /* color: #a5a5a5; */
    color: black;
    text-align: center;
    padding: 0 50px;
    line-height: 2;
    
}
.card-info a{
    display: block;
    text-decoration: none;
    color: #000000;
    font-size: 17px;
    border: solid 1px rgb(0, 0, 0);
    padding: 10px 10px;
    border-radius: 19px;
    width: 30%;
    text-align: center;

}

@media only screen and (max-width: 982px){

    #kontakt-ossSection{
        height: 100%;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    
    }
    
    #text-section{
        width: 90%;
    }
    
    #map-section{
        width: 96%;
        height: 60vh;
       
    }

}

@media only screen and (max-width: 1189px){

#parent-cards-section{

    margin: 0;
    padding: 0;
}

#child-cards-section{
    width: 100%;
    height: 60vh;
}

.card{
    width: 40%;
    margin: 0 15px 0 10px;



}
.card-info{
    height: 100%;
    width: 100%;
}

.card-info p{
    padding: 0 30px;
}
.card-info a{
    padding: 10px 10px;
    width: 37%;
}
}

@media only screen and (max-width: 858px){

    #parent-cards-section{
        width: 100%;
        height: 100%;

    }

    #child-cards-section{
        display: flex;
        flex-direction:column;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: auto;
       
    }

    #parent-cards-section h2{
        width: 100%;
        text-align: center;
        padding: 30px 0 0 0;


       
    }
    .card{
        background-color: #fafafa;
        flex-direction: column;
        width: 70%;
        margin: 30px 0 20px 0;
        margin-bottom: 50px;
        
    }
    .card-info{
        width: 100%;
        padding: 30px 0 30px 0;
    }

    .card-info p{
        padding: 0 20px;
    }
}


    


