html, body {
    margin: 0;
    padding: 0;
    font-family: "EB Garamond", serif;
    font-size: 16px;
    background-color: #f4f4f4;
}
.a{
    font-family: "EB Garamond", serif;
    font-family: "Inclusive Sans", sans-serif;
}
nav{
    background-color: #0000009f;
    height: 5rem;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    justify-content: space-between;
    padding-left: 6rem;
    padding-right: 6rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.5s ease-in;
}
header {
    margin-top: -5rem;
    background-image: url(/DSC_2289-2048x1259.jpg);
    color: white;
    padding: 10px 0;
    text-align: center;
    width: 100%;
    background-repeat: no-repeat;
    background-position: center;
    height: 55rem;
}
#Logo_nav{
    height: 3.5rem;
}
a{
    text-decoration: none;
    color: white;
    margin-left: 1.5rem;
    font-weight: bold;
}
a:hover{
    color: #a4343a !important;
}
#prosent_av_skjerm{
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    color: #ffffff;
    background-color: #25282a63;
    padding: 1.2rem;
    border-radius: 0.5rem;
    width: fit-content;
}
main{
    display: flex;
    flex-direction: column;
}
section{
    height: 40rem;
    display: flex;
    width: 100%;
    flex-direction: column;
    min-height: fit-content;
    padding-bottom: 2rem;
    padding-top: 2rem;
}
#Lenker{
    background-color: #25282a;
    color: white;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    height: 30rem;
}
#Lenker_{
    display: flex;
    flex-direction: row;
    gap: 2rem;
}
#Lenker_ > img{
    height: 4.5rem;
    padding: 3rem;
    transition: transform 400ms ease-in-out;
}
#Lenker_ > img:hover{
    transform: translateY(-30px);
}
h2{
    font-size: 2.5rem;
    transform: translateX(-50rem);
    opacity: 0;
}
@keyframes slide{
    0%{
        transform: translateX(-50rem);
        opacity: 0;
    }
    100%{
        transform: translateX(0);
        opacity: 1;
    }
}
@keyframes fadein{
    0%{
        opacity: 0;
    }
    100%{
        opacity: 1;
    }
}
#Hero_text_slagord{
    margin-top: 2rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}
#Hero_text_slagord h3{
    margin: 0;
    font-size: 1.5rem;
    border-bottom: 3px solid #a4343a;
}
#Hero_text_slagord p{
    margin: 0;
    font-size: 1.2rem;
    font-weight: normal;
}
h1{
    font-size: 4rem;
    margin: 0;
}
#Ansatte{
    background-color: #f4f4f4;
    height: fit-content;
    padding-bottom: 4rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-evenly;
    padding-top: 4rem;
    
}
.ansatt {
    width: 35rem;
    transition: transform 300ms ease-in-out;
    text-align: center;
    color: #25282a;
    font-size: 1.2rem;
    border: #25282a 1px solid;
    border-radius: 0.6rem;
    padding: 2rem;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    opacity: 0.3;
    margin-bottom: 1.5rem;
}
.ansatt:hover{
    background-color: #a4343a1a;
}
.ansatt a{
    color: #25282a;
    padding: 0 !important;
    margin: 0 !important;
}
.ansatt img{
    height: 25rem;
    border-radius: 50%;
    border: 4px solid #a4343a;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.329);
    transition: border-radius 300ms ease-in-out;
}
.ansatt img:hover{
    border-radius: 5%;
}
.ansatt > div{
    margin-top: -1.7rem;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 0.2rem;
    align-items: center;
}
#Hero_text{
    background-color: #0000009f;
    width: 40%;
    border-radius: 5rem;
    padding: 6rem 3rem;
    margin-left: auto;
    margin-right: auto;
    margin-top: 12rem;
}
button{
    background-color: #ffffff00;
    color: white;
    border: 2px solid white;
    padding: 1rem 2rem;
    border-radius: 2rem;
    font-size: 1.2rem;
    cursor: pointer;
    margin-top: 6rem;
    transition: background-color 300ms ease-in-out;
    transition: all 300ms ease-in-out;
    font-weight: bold;
}
button:hover{
    background-color: #ffffff;
    border: 2px solid #ffffff;
    color: #a4343a;
    border-radius: 0.2rem;
}
@keyframes slide2{
    0%{
        transform: translateY(25rem);
        opacity: 0.3;
    }
    100%{
        transform: translateY(0);
        opacity: 1;
    }
}
#linje{
    display: block;
    width: 80%;
    height: 1px;
    background-color: #25282a;
    margin: 1.1rem auto;
}
img:hover{
    cursor: pointer;
}
@keyframes godown{
    0%{
        transform: translateY(0);
        opacity: 1;
    }
    100%{
        transform: translateY(5rem);
        opacity: 0;
    }
}
@keyframes goupp{
    0%{
        transform: translateY(5rem);
        opacity: 0;
    }
    60%{
        opacity: 0.7;
    }
    100%{
        transform: translateY(0);
        opacity: 1;
    }
}
footer{
    background-color: #25282a;
    color: white;
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: fit-content;

}
footer img{
    height: 3rem;
    margin-top: 1rem;
}
#Footer_text{
    margin-top: 1rem;
    font-size: 1rem;
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
}
#Footer_links{
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    min-width: 40%;
    width: 20rem;
    font-style: italic;
}
#Footer_contact{
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 40%;
    width: 20rem;
    font-style: italic;
}
#p1{
    font-weight: bold;
    font-size: 1.2rem;
    margin: 0;
    margin-bottom: 1rem !important;
}
button{
    transition: all 0.3s ease;
}
#bunn {
   font-size: 0.7rem;
}
#Footer_contact p, #Footer_links a {
    margin: 0;
}
.ansatt h2{
    transform: none !important;
    opacity: 1 !important;
    animation: none !important;
}


@media (max-width: 1024px) {
    nav{
        padding-left: 4rem;
        padding-right: 4rem;
    }
    .ansatt {
        margin-bottom: 2rem;
    }
    html, body {
        font-size: 15px;
    }
    #Lenker_{
        flex-wrap: wrap;
        justify-content: center;
    }
    #Hero_text{
        width: 82%;
        padding: 4rem 2rem;
        margin-top: 12rem;
        border-radius: 40px;
    }
}
@media (max-width: 768px) {
    html, body {
        font-size: 14px;
    }
    #Nav_holder{
        display: none;
    }
    nav{
        padding-left: 2rem;
        padding-right: 2rem;
        height: 8rem;
    }
    header{
        margin-top: -8rem;
        height: 45rem;
        background-size: cover;
    }
    .ansatt {
        width: 80%;
        margin-bottom: 2rem;
    }
    #Lenker_{
        width: 90%;
        flex-wrap: wrap;
        justify-content: center;
    }

    #Hero_text{
        width: 82%;
        padding: 4rem 2rem;
        margin-top: 12rem;
        border-radius: 40px;
    }
}
@media (max-width: 480px) {
    html, body {
        font-size: 12px;
    }
    #Lenker_ > img{
        height: 3rem;
        padding: 2rem;
    }
}