@font-face {
    font-family: 'Avenir Next';
    src: url('/assets/fonts/AVENIR-NEXT/AvenirNext.ttf');
}

@font-face {
    font-family: 'Avenir Next Condensed';
    src: url('/assets/fonts/AVENIR-NEXT-CONDENSED/Avenir-Next-Condensed.ttf');
}

@font-face {
    font-family: 'Avenir Next Condensed Bold';
    src: url('/assets/fonts/AVENIR-NEXT-CONDENSED/Avenir-Next-Condensed-Bold.ttf');
}

@font-face {

}

:root {
    --content_max_width: 730px;
    --helamalmo_purple: #543177;
    --helamalmo_black: #000000;
    --helamalmo_white: #ffffff;
    --hamburger_menu_bg: #2d2648;
    --helamalmo_purple_second: #705197;
    --helamalmo_purple_third: #9e86be;
    --helamalmo_purple_fourth: #dbcbe5;
    --phoneMenu-bg: #2b1f4b;
    --hover_phone: #8569ac;
    --borderLeft-phone: #bfaae2;
    --max_width_center: 1200px;
    --menu_heights: 48px;
    --alternative_menu_height: 48px;
    --lastMenu: 0 7px 13px 2px black;
    --menuShadow: 0 15px 5px -9px;
    --sectionShadow: 0 0 20px 9px;
    --centerSectionShadow: 0 -14px 20px 9px;
    --firstSectionShadow: 0 -4px 10px 9px;
    /*--main_font_family: TODO: kommer från Fedja*/
    /*--main_font_family_condensed: TODO: kommer från Fedja */
    --centerSectionMinHeight: 500px;
}


body {
    margin: 0;
    /*background-color: #cdc5e0;*/
    background: url("/assets/body-bg.jpg") fixed;
    background-size: cover;
}

header {
    /*background-color: white;*/
    margin-bottom: 5px;
    box-shadow: var(--menuShadow);
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    /*min-height: var(--menu_heights);*/
    font-family: Avenir Next Condensed;
}

nav {
    /*max-width: 1200px;*/
    width: 100vw;
}


/* HIGHEST NAV SECTION START  */
/* This is for the black background in the highest menu with the social media icons */
.logosMenuOuterContainer {
    background-color: var(--helamalmo_purple);
    height: var(--alternative_menu_height);
    box-shadow: var(--menuShadow);
    position: relative;
    z-index: 10;
    font-family: Avenir Next Condensed;
}

.logosMenu {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px 0 30px;
    margin-inline: auto;
    box-sizing: border-box;
}

.logosMenu-mainLogo {
    height: 30px;
    display: flex;
}

.logosWebMap {
    color: white;
    align-self: center;
    justify-self: center;
    text-decoration: none;
}

.logosWebMap::before {
    content: "|";
    margin-right: 16px;
    margin-left: 10px;
}

.hideMenuBtn {
    align-self: center;
    justify-self: center;
}

.logosMenu-right {
    display: flex;
    gap: 10px;

    & .logosMenu-signIn {
        color: white;
        text-decoration: none;
        font-family: "Avenir Next Condensed";

        &:after {
            content: "|";
            margin-left: 10px;
            margin-right: 10px;
        }
    }

}

.logosMenu-socialMediaIcons {
    display: flex;
    gap: 10px;
    align-items: center;
    max-width: 600px;

    & img {
        height: 20px;
        /*width: 16px;*/
    }
}

.pcMenuFamily {
    min-height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3px;
    box-shadow: inset 0 6px 6px black;
}

.pcMenuFamily > a > button {
    border: none;
    border-radius: 10px;
    font-size: 16px;
    padding: 6px;
    flex-grow: 1;
    box-sizing: border-box;
    width: 240px;
    transition: box-shadow 0.2s;

    &:hover {
        cursor: pointer;
    }
}

.pcMenuLevel-1 {
    padding: 15px 0 15px 0;
    position: relative;
    z-index: 100;
}

.pcMenuLevel-1 > a > button {
    height: 60px;
}


.pcMenuLevel-2 > a > button {
    padding-left: 15px;
    padding-right: 15px;
    width: 183px;
}


.pcMenuLevel-3 > a > button {

}


.pcMenuLevel-4 > a > button {

}


.pcMenuLevel-5 > a > button {

}


.pcMenuLevel-6 > a > button {

}


.pcMenuLevel-7 > a > button {

}

.breadCrumbsContainer > a {
    color: white
}

.breadCrumbsContainer > a.breadCrumbsLastBtn {
    pointer-events: none;
    text-decoration: none;
}

.breadCrumbsContainer > a.breadCrumbsLastBtn:hover {
    cursor: pointer;
    pointer-events: none;
}

.phoneButton {
    display: flex;
    justify-content: space-between;
    box-sizing: border-box;
    padding: 20px 5px 20px 5px;
    margin-left: 5px;
    margin-right: 5px;
}

.phoneButton a {
    color: green;
    text-decoration: none;
}

@media (min-width: 951px) {
    .hamburgerNav {
        display: none !important;
    }
}

.menuSlide {
    animation-name: menu-entrance;
    animation-duration: 500ms;
    position: relative;
    bottom: 500px;
    opacity: 0;
    animation-fill-mode: forwards;
}


/* HIGHEST NAV SECTION END */

/* CENTER SECTIONS START */

main {
    max-width: var(--max_width_center);
    margin-inline: auto;
}

.centerSection {
    min-height: var(--centerSectionMinHeight);
    width: var(--max_width_center)
}

/* CENTER SECTIONS END */


/* FOOTER SECTION START */
.footer {
    font-family: "Avenir Next";
    position: relative;
    /*z-index: 3;* TODO: maybe need this later! */
    padding-top: 70px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 100vw;
    margin-inline: auto;
    align-items: center;
    box-shadow: 0 -15px 5px -9px;
    background-color: white;
}

.footer__nav, .footer__content-bottomMenu {
    display: flex;
    justify-content: space-evenly;
    font-size: clamp(12px, 2vw, 16px);
    gap: 5px;
    font-family: Avenir Next Condensed;
}

.footerNav-item {
    text-decoration: none;
}

.footer__content {
    margin-top: 70px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    max-width: var(--max_width_center);
}

.footer__content * {
    color: var(--helamalmo_purple) !important;
    text-decoration: none;
}

.content-right {
    justify-self: end;
    text-align: right;
}

.footer__content .content-center {
    display: grid;

    & * {
        grid-row: 1;
        grid-column: 1;
    }
}


.footer__content .content-center p {
    margin: 4px;
}

.footer__content-bottomMenu {
    display: grid;
    grid-template-columns: repeat(5, max-content);
    grid-template-rows: 1fr;
    margin-bottom: 70px;
    margin-top: 70px;
}

.footer-img {
    width: 100%;
}

.footer-img-text {
    align-self: end;
    justify-self: center;
    margin-bottom: 75px;
    text-align: center;
}

@media (max-width: 950px) {

    .hideMenuBtn, .showMenuBtn {
        display: none;
    }

    .pcNav {
        display: none;
    }

    /* TODO: remove this. As this class is not used anymore.  */
    .pcMenu {
        display: none !important;
    }

    .phoneNav {
        display: flex !important;
    }

    .footer__content {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(3, max-content);
        gap: 50px;

        & .content-right {
            text-align: start;
            justify-self: start;
        }
    }

    .footer__nav {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .leftDiv-p, .rightDiv-p {
        margin: 0;
    }

    .content-left, .content-right {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 15px;
    }

    .content-center {
        gap: 20px;
    }

    .content-left-leftDiv, .content-right-rightDiv {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .footer-img {
        width: 100%;
        max-width: clamp(245px, 50vw, 500px);
    }

    .footer__content-bottomMenu {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr 1fr;
        justify-items: center;
        width: 100%;
    }
}

@keyframes menu-entrance {
    from {
        bottom:500px;
        opacity: 0;
        z-index: -99999;
    }

    to {
        bottom: 0;
        opacity: 1;
        z-index: 1;
    }
}

@keyframes phone-menu-entrance {
    from {
        left: 1000px;
        opacity: 0.3;
    }

    to {
        left: 0;
        opacity: 1;
    }
}

@keyframes fade-in-opacity {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.cardContainer {
    justify-self: center;
    min-height: 300px;
    width: 300px;
}

.cardContainer {
    min-height: 300px;
    color: white;
}

.cardContainer-img {
    width: 100%;
    height: 300px;
    background: linear-gradient(to bottom, transparent, black 230%), url("/media_globals/banner-test.jpg") no-repeat center;
    background-size: cover;
    display: flex;
    align-items: end;
    font-family: Avenir Next Condensed;
}

.cardImage-expand {
    font-size: 21px;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 14px;
}


.cardContainer-body {
}

.expandSection-arrow {
    transition: background-color 200ms;
    box-sizing: border-box;
    height: 23px;
    width: 18px;
    text-align: center;
}

.cardContainer-text {
    padding: 15px 10px 10px 10px;
    background-color: white;
    box-sizing: border-box;
    box-shadow: 0 2px 10px -3px black;
    height: 319px;
    margin-bottom: 1px;
    color: black;
    transition: height 200ms;
    font-family: Avenir Next;
    display: grid;
}

.cardContainer-anchor {
    align-self: end;
    margin-bottom: 5px;
    justify-self: center;
    background-color: var(--helamalmo_purple);
    color: white;

    /* TODO: Behöver fixas baserat på Fedjas design. Skapa en klass som är återkommande för knappar! */
    padding: 30px;
    border-radius: 8px;
    font-size: 18px;
}

.collapsed {
    padding: 0;
    height: 0;
    margin: 0;
    font-size: 0;
    overflow: hidden;
    transition: height 200ms, font-size 50ms;
    color: transparent;
}

.expandBtn:hover {
    /*background-color: green;*/
    transition: background-color 200ms ease-in-out;
    cursor: pointer;
    user-select: none;
}

.collapseBtn:hover {
    /*background-color: white;*/
    /*transition: background-color 200ms;*/
    cursor: pointer;
    user-select: none;
}