* {
    box-sizing: border-box;
}


html,
body {
    min-height: 100%;
}


body {
    margin: 0;

    background:
        #dfe7e5
        url("/img/background.png")
        center / cover
        fixed
        no-repeat;

    color: #243537;

    font-family: Georgia, "Times New Roman", serif;
}



/* MAIN */

main {
    min-height: 100vh;

    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;

    gap: 1rem;

    padding: 3rem 1.5rem;

    text-align: center;

    background: rgba(255, 252, 245, 0.42);
}


h1 {
    margin: 0;

    font-size: clamp(2.5rem, 8vw, 5.5rem);
}


p {
    margin: 0;

    font-size: 1.25rem;
}



/* TRAFFIC BUTTONS */

.trafikk {
    display: flex;
    flex-direction: column;

    gap: 10px;

    width: 100%;
    max-width: 400px;

    margin-top: 20px;
}


.trafikk button {
    width: 100%;

    padding: 20px;

    font-size: 20px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    border: none;

    border-radius: 5px;

    cursor: pointer;

    transition: transform 0.2s;
}


.green {
    background-color: #70A151;

    color: white;
}


.yellow {
    background-color: #D7CA56;

    color: #243537;
}


.red {
    background-color: #7D0C0C;

    color: white;
}


.trafikk button:hover {
    transform: scale(1.03);
}



/* SUPPORT CHOICES */

.stotte {
    display: none;

    flex-direction: column;

    gap: 10px;

    width: calc(100% - 30px);
    max-width: 400px;

    margin: 30px auto;

    padding: 20px;

    text-align: center;

    background-color:
        rgba(255, 252, 245, 0.8);

    border-radius: 10px;
}


.stotte h2 {
    margin: 0 0 10px 0;

    font-size: 26px;
}


.stotte button {
    padding: 15px;

    font-size: 18px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    border: none;

    border-radius: 5px;

    background-color: #dfe7e5;

    color: #243537;

    cursor: pointer;

    transition: transform 0.2s;
}


.stotte button:hover {
    transform: scale(1.03);
}



/* RESULT */

#resultat {
    width: calc(100% - 30px);

    max-width: 1200px;

    margin: 30px auto;
}



/* MESSAGE */

.melding {
    padding: 20px;

    text-align: center;

    background-color:
        rgba(255, 252, 245, 0.8);

    border-radius: 10px;
}


.melding h2 {
    margin-top: 0;
}


.melding h3 {
    margin-top: 12px;
    margin-bottom: 8px;
}


.melding p {
    margin-bottom: 15px;
}


.tips-liste {
    margin: 0 0 10px;
    padding-left: 1.2rem;

    text-align: left;
    line-height: 1.7;
    font-size: 1.05rem;
}


/* MILJØARBEIDER / HELSESYKEPLEIER IMAGE */

.melding > img {
    display: block;

    width: 100%;

    max-width: 350px;

    height: auto;

    margin: 20px auto;

    border-radius: 8px;
}



/* RÅDGIVER PROFILES */

.radgiver-profiler {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    justify-content: flex-start;
    justify-items: start;
    align-items: start;
    gap: 12px;

    margin: 20px 0;
}


.radgiver-profil {
    overflow: hidden;

    margin: 0;

    border-radius: 8px;

    background-color: #dfe7e5;
}


.radgiver-profil img {
    display: block;

    width: 100%;

    aspect-ratio: 1 / 1;

    object-fit: cover;
}

.hege-profil {
    grid-column: 3;
    justify-self: start;
    width: min(100%, 320px);
}

.hege-profil img {
    object-position: center 20%;
}


.radgiver-profil h3 {
    margin: 10px;

    font-size: 1rem;
}


.anniken-profil {
    max-width: none;
    margin: 0;
    background: #dfe7e5;
    border: none;
    box-shadow: none;
}

.anniken-profil img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    border-radius: 0;
}

.anniken-profil .radgiver-info {
    padding: 12px 14px 16px;
    text-align: left;
}

.anniken-profil h3 {
    margin: 0 0 10px;
    font-size: 1.2rem;
    line-height: 1.2;
    font-weight: 700;
    color: #243537;
}

.anniken-profil .info-label {
    margin: 12px 0 4px;
    font-size: 1.05rem;
}

.anniken-profil p {
    margin: 0 0 10px;
    line-height: 1.3;
    font-size: 1rem;
    color: #243537;
}

.anniken-profil a {
    color: #0d48a5;
    text-decoration: underline;
    word-break: break-word;
}


/* MESSAGE BUTTONS */

.melding button {
    padding: 15px;

    font-size: 18px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    border: none;

    border-radius: 5px;

    background-color: #dfe7e5;

    color: #243537;

    cursor: pointer;

    transition: transform 0.2s;
}


.angre-valg {
    display: inline-block;

    width: 100%;
    max-width: 220px;

    margin-top: 18px;
    padding: 12px 18px;

    font-size: 1rem;
    font-family: Georgia, "Times New Roman", serif;

    border: none;
    border-radius: 5px;

    background-color: #7D0C0C;
    color: #fff;

    cursor: pointer;
    transition: transform 0.2s;
}


.melding button:hover,
.angre-valg:hover {
    transform: scale(1.03);
}



/* MOBILE */

@media (max-width: 900px) {
    .radgiver-profiler {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hege-profil {
        grid-column: auto;
        width: 100%;
    }
}

@media (max-width: 480px) {

    h1 {
        font-size: 2.8rem;
    }


    .trafikk button {
        font-size: 18px;

        padding: 17px;
    }


    .radgiver-profiler {
        grid-template-columns: 1fr;
    }

}