@font-face {
    font-family: "studiofeixen";
    src: url("../assets/fonts/StudioFeixenSans-Semibold.eot");
    src: url("../assets/fonts/StudioFeixenSans-Semibold.eot?#iefix") format("embedded-opentype"),
        url("../assets/fonts/StudioFeixenSans-Semibold.woff2") format("woff2"),
        url("../assets/fonts/StudioFeixenSans-Semibold.woff") format("woff"),
        url("../assets/fonts/StudioFeixenSans-Semibold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: "studiofeixen";
    src: url("../assets/fonts/StudioFeixenSans-Regular.eot");
    src: url("../assets/fonts/StudioFeixenSans-Regular.eot?#iefix") format("embedded-opentype"),
        url("../assets/fonts/StudioFeixenSans-Regular.woff2") format("woff2"),
        url("../assets/fonts/StudioFeixenSans-Regular.woff") format("woff"),
        url("../assets/fonts/StudioFeixenSans-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "studiofeixen";
    src: url("../assets/fonts/StudioFeixenSans-RegularItalic.eot");
    src: url("../assets/fonts/StudioFeixenSans-RegularItalic.eot?#iefix") format("embedded-opentype"),
        url("../assets/fonts/StudioFeixenSans-RegularItalic.woff2") format("woff2"),
        url("../assets/fonts/StudioFeixenSans-RegularItalic.woff") format("woff"),
        url("../assets/fonts/StudioFeixenSans-RegularItalic.ttf") format("truetype");
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: "studiofeixen";
    src: url("../assets/fonts/StudioFeixenSans-SemiBoldItalic.eot");
    src: url("../assets/fonts/StudioFeixenSans-SemiBoldItalic.eot?#iefix") format("embedded-opentype"),
        url("../assets/fonts/StudioFeixenSans-SemiBoldItalic.woff2") format("woff2"),
        url("../assets/fonts/StudioFeixenSans-SemiBoldItalic.woff") format("woff"),
        url("../assets/fonts/StudioFeixenSans-SemiBoldItalic.ttf") format("truetype");
    font-weight: 700;
    font-style: italic;
}

body {
    font-family: "studiofeixen", sans-serif;
    padding: 16px;
    color: #071424;
    min-height: 100vh;
    position: relative;
    padding-bottom: 180px;
    margin: 0;
}

* {
    box-sizing: border-box;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 16px;
    position: relative;
}

.header-left {
    display: flex;
    align-items: start;
}

header nav button {
    background: none;
    border: none;
    cursor: pointer;
}

header nav ul {
    list-style: none;
    position: absolute;
    background-color: white;
    padding-inline-start: 0;
    margin: 0;
    z-index: 1000;
    width: 70%;
    right: -16px;
    border-radius: 0 0 0 10px;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height 0.3s ease-in-out;
    box-shadow: -5px 10px 13px 0 rgba(0, 0, 0, 0.1);
}

header nav ul.open {
    visibility: visible;
    max-height: 300px;
}

header nav ul a {
    padding: 24px 16px;
    width: 100%;
    display: block;
    border-bottom: 1px solid #d7e4ed;
}

header nav ul a:hover,
header nav ul a:focus-visible {
    background-color: #f9fafb;
    outline: none;
}

header nav ul a:focus-visible {
    text-decoration: underline;
}

header nav ul li:last-child a {
    border-bottom: none;
}

.ylang-logo-link {
    line-height: 0;
}

.header-right {
    display: flex;
    flex-direction: row-reverse;
}

.material-symbols-outlined.menu-icon {
    font-size: 34px;
    margin-left: 16px;
}

.ylang-logo {
    width: 80px;
    margin-right: 8px;
}

.nolej-logo {
    width: 70px;

    a {
        order: 3;
    }
}

.nolej-logo-container {
    display: flex;
    justify-content: flex-end;
}

h1 {
    font-size: 20px;
    text-align: center;
}

h2 {
    font-size: 18px;
}

p,
li {
    font-size: 14px;
}

ul {
    padding-inline-start: 16px;
}

.card {
    padding: 12px 20px;
    border-radius: 30px;
}

.pink {
    background-color: #ff83ea;
}

.blue {
    background-color: #00acff;
}

.green {
    background-color: #00ca63;
}

.yellow {
    background-color: #ffcf02;
}

.contact-container {
    display: flex;
    justify-content: end;
}

a {
    text-decoration: none;
    font-weight: 700;
    color: #071424;
}

a:hover {
    text-decoration: underline;
}

footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 0 10%;
}

footer p {
    font-size: 12px;
    text-align: center;
}

.partner-logos-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.partner-logo {
    max-height: 70px;
    max-width: 33%;
}

.cards-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.flip-card {
    perspective: 1000px;
    /* Remove this if you don't want the 3D effect */
    border: none;
    background: none;
    cursor: pointer;
    text-align: left;
}

/* This container is needed to position the front and back side */
.flip-card-inner {
    position: relative;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    width: 100%;
    height: 100%;
}

/* Do an horizontal flip when you move the mouse over the flip box container */
.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

/* Position the front and back side */
.flip-card-front,
.flip-card-back {
    position: absolute;
    -webkit-backface-visibility: hidden;
    /* Safari */
    backface-visibility: hidden;
    width: -webkit-fill-available;
    /* height: 100%; */
}

.flip-card-front {
    height: -webkit-fill-available;
    display: flex;
    justify-content: center;
    align-items: center;
}

.flip-card-front h2 {
    font-size: 24px;
    text-align: center;
}

/* Style the back side */
.flip-card-back {
    transform: rotateY(180deg);
}

@media (min-width: 768px) {
    body {
        padding-bottom: 114px;
    }

    h1 {
        font-size: 32px;
    }

    h2 {
        font-size: 24px;
    }

    p,
    li {
        font-size: 16px;
    }

    body {
        padding: 0 5% 114px 5%;
    }

    header {
        align-items: center;
    }

    header nav button {
        display: none;
    }

    header nav ul {
        display: flex;
        align-items: start;
        top: 0;
        left: 110px;
        max-height: unset;
        box-shadow: none;
        visibility: visible;
    }

    header nav ul li {
        margin-right: 16px;
    }

    header nav ul li a {
        border-bottom: none;
        padding: 16px 8px;
        position: relative;

        &:before {
            position: absolute;
            z-index: -1;
            content: '';
            background: #fee223;
            height: 10px;
            left: 0;
            bottom: 15px;
            width: 0%;
            opacity: 0.7;
            transition: all 0.5s;

        }

        &:hover:before,
        &:focus:before {
            width: 100%;
        }

        &:focus-visible {
            outline: none;
            text-decoration: underline;
            background-color: transparent;
        }

        &:hover {
            text-decoration: none;
            background-color: transparent;
        }
    }

    header nav ul li a.active:before {
        width: 100%;
    }


    header nav ul li a:hover {
        background-color: transparent;
    }

    .ylang-logo {
        width: 100px;
    }

    .nolej-logo {
        width: 100px;
    }

    .cards-container {
        flex-direction: row;
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
        padding: 0 10%;
    }

    .flip-card {
        width: 48%;
    }

    footer p {
        font-size: 14px;
    }

    .partner-logos-container {
        width: 50%;
    }

    .partner-logo {
        max-width: 150px;
    }
}

.hide {
    display: none;
}