@font-face {
    font-family: mijn;
    src: url(OstrichSans-Heavy.otf);
}

@font-face {
    font-family: mijn2;
    src: url(OstrichSansRounded-Medium.otf);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: mijn;
}

body,
html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

@media only screen and (max-width: 999px) {
    body {
        background-color: white;
    }

    nav {
        padding: 15px 3%;
        width: 100%;
        background-color: #038b97;
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: 23px;
        box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    }

    .logo {
        display: none;
    }

    .navbar a {
        font-family: mijn;
        font-size: 15px;
        margin: 10px 15px;
        text-decoration: none;
        color: white;
        transition: 0.5s;
    }

    .boxshadow {
        box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    }

    .spacer {
        position: relative;
        z-index: 1;
        aspect-ratio: 960/900;
        width: 100%;
        background-repeat: no-repeat;
        background-position: center;
        background-size: cover;
        margin-top: -1px; /* Overlap slightly */
    }

    .layer1 {
        position: relative;
        z-index: 1;
        margin-top: 40px;
        background-image: url('images/wave.svg');
    }

    .layer2 {
        position: relative;
        margin-top: 0px;
        transform: rotate(180deg);
        background-image: url('images/wave.svg');
    }

    .homeMid {
        background-color: #146b6c;
        width: 100%;
        height: 70vh;
        padding: 10% 20px;
        color: white;
        text-align: center;
        margin-top: -1px; /* Overlap slightly */
    }

    .headText {
        margin-bottom: 20px;
        margin-top: 20px;
        padding: 0 20px;
        font-size: 80px;
        text-align: center;
        align-items: center;
    }

    .semiHeadText {
        margin-top: 120px;
        font-size: 30px;
        text-align: center;
    }

    .textContainer {
        margin-top: 100px;
    }

    .homeMid .headText {
        margin-top: 70px;
        padding: 0;
        margin-bottom: 0;
        font-size: 40px;
    }

    .homeMid .semiHeadText {
        margin-top: 20px;
        padding-top: 10px;
        font-size: 20px;
        padding-bottom: 30px;
    }

    .lineRemover {
        width: 100vh;
        height: 20px;
        background-color: #146b6c;
    }

    .shake {
        display: inline-block;
        font-size: 38px;
        transition: font-size 0.8s ease;
    }

    .shake:hover {
        font-size: 40px;
    }

    @keyframes shake {
        0% {
            transform: rotate(0deg);
        }

        25% {
            transform: rotate(5deg);
        }

        50% {
            transform: rotate(-5deg);
        }

        75% {
            transform: rotate(5deg);
        }

        100% {
            transform: rotate(0deg);
        }
    }

    .shake-animation {
        animation: shake 0.5s;
    }

    .hidden {
        opacity: 0;
        transform: translateY(30%);
        transition: all 1s;
    }

    .show {
        transform: translateY(0);
        opacity: 1;
    }

    .welcome-section {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 50vh;
        position: relative;
    }

    .spacer-section {
        position: relative;
        text-align: center;
        z-index: 2;
    }

    .button {
        padding: 14px 40px;
        text-decoration: none;
        font-size: 20px;
        background-color: #038b97;
        margin-left: 20%;
        margin-right: 20%;
        border-radius: 40px;
        color: white;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
        margin-top: 20px;
        position: relative;
        z-index: 5;
    }

    .scroll-down {
        height: 50px;
        width: 30px;
        border: 2px solid white;
        position: fixed;
        left: 50%;
        bottom: 30px;
        transform: translateX(-50%);
        z-index: 10;
        border-radius: 50px;
        cursor: pointer;
        opacity: 1; /* Ensure opacity is set to 1 by default */
        transition: opacity 0.5s ease, bottom 0.5s ease;
    }
    @keyframes scroll-down {
        0% {
            opacity: 0;
        }
        30% {
            opacity: 1;
        }
        60% {
            opacity: 1;
        }
        100% {
            opacity: 0;
            top: 90%;
        }
    }
    
    .scroll-down::before,
    .scroll-down::after {
        content: '';
        position: absolute;
        top: 20%;
        left: 50%;
        border: 2px solid white;
        height: 10px;
        width: 10px;
        transform: translate(-50%, -100%) rotate(45deg);
        border-top: transparent;
        border-left: transparent;
        animation: scroll-down 1s ease-in-out infinite;
    }
    
    .scroll-down::after {
        top: 30%;
        animation-delay: 0.3s;
    }
    .hide {
        opacity: 1;
        transition: opacity 0.3s ease;
        z-index: 10;
        position: relative; /* Add position: relative */
    }
    #sec-2 {
        background-color: #146b6c;
        position: relative;
    }
}

@media only screen and (min-width: 1401px) {
    body {
        min-height: 100vh;
        background-color: white;
    }

    nav {
        padding: 40px 50px;
        padding-left: 60%;
        width: 100%;
        background-color: white;
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: 23px;
        position: relative;
    }

    .logo {
        position: absolute;
        left: 3%;
        width: 160px;
    }

    .navbar a {
        position: relative;
        font-size: 24px;
        margin: 20px 35px;
        text-decoration: none;
        color: black;
        transition: 0.5s;
    }

    .navbar a:hover {
        font-size: 26px;
    }

    .boxshadow {
        box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    }

    .spacer {
        aspect-ratio: 960/300;
        position: relative;
        width: 100%;
        background-repeat: no-repeat;
        background-position: center;
        background-size: cover;
    }

    .layer1 {
        margin-top: 0;
        background-image: url('images/wave.svg');
    }
    .layer2 {
        transform: rotate(180deg);
        margin-top: 0;
        background-image: url('images/wave.svg');
    }

    .homeMid {
        background-color: #146b6c;
        width: 100%;
        height: 85vh;
        padding: 10% 50px;
        color: white;
        text-align: center;
    }

    .headText {
        font-size: 100px;
        text-align: center;
    }

    .semiHeadText {
        font-size: 30px;
        text-align: center;
    }

    .textContainer {
        padding-top: 0;
    }

    .homeMid .headText {
        font-size: 60px;
    }

    .homeMid .semiHeadText {
        padding-top: 30px;
        padding-left: 400px;
        padding-right: 400px;
    }

    .shake {
        display: inline-block;
        font-size: 60px;
        transition: font-size 0.8s ease;
    }

    .shake:hover {
        font-size: 70px;
    }

    @keyframes shake {
        0% {
            transform: rotate(0deg);
        }

        25% {
            transform: rotate(5deg);
        }

        50% {
            transform: rotate(-5deg);
        }

        75% {
            transform: rotate(5deg);
        }

        100% {
            transform: rotate(0deg);
        }
    }

    .shake-animation {
        animation: shake 0.5s;
    }

    .welcome-section {
        position: relative;
        text-align: center;
        padding: 20px;
        padding-top: 120px;
        z-index: 2;
    }

    .spacer-section {
        position: relative;
        text-align: center;
        z-index: 2;
    }

    .hidden {
        opacity: 0;
        transform: translateY(30%);
        transition: all 1s;
    }

    .show {
        transform: translateY(0);
        opacity: 1;
    }

    .flip {
        transform: rotate(180deg);
    }

    .scroll-down {
        height: 50px;
        width: 30px;
        border: 2px solid white;
        position: fixed;
        left: 50%;
        bottom: 100px;
        transform: translateX(-50%);
        z-index: 10;
        border-radius: 50px;
        cursor: pointer;
    }

    .scroll-down::before,
    .scroll-down::after {
        content: '';
        position: absolute;
        top: 20%;
        left: 50%;
        border: 2px solid white;
        height: 10px;
        width: 10px;
        transform: translate(-50%, -100%) rotate(45deg);
        border-top: transparent;
        border-left: transparent;
        animation: scroll-down 1s ease-in-out infinite;
    }

    .scroll-down::after {
        top: 30%;
        animation-delay: 0.3s;
    }

    @keyframes scroll-down {
        0% {
            opacity: 0;
        }

        30% {
            opacity: 1;
        }

        60% {
            opacity: 1;
        }

        100% {
            opacity: 0;
            top: 90%;
        }
    }

    .button {
        padding: 14px 40px;
        text-decoration: none;
        font-size: 20px;
        background-color: #038b97;
        margin-left: 44%;
        margin-right: 44%;
        border-radius: 40px;
        color: white;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
        margin-top: 20px;
        position: relative;
    }
    .hide {
        opacity: 1;
        transition: opacity 0.3s ease;
        z-index: 10;
    }
}

@media only screen and (min-width: 1050px) and (max-width: 1400px) {
    body {
        min-height: 100vh;
        background-color: white;
    }

    nav {
        padding: 40px 50px;
        padding-left: 52%;
        width: 100%;
        background-color: white;
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: 23px;
        position: relative;
    }

    .logo {
        position: absolute;
        left: 3%;
        width: 160px;
    }

    .navbar a {
        position: relative;
        font-size: 24px;
        margin: 20px 35px;
        text-decoration: none;
        color: black;
        transition: 0.5s;
    }

    .navbar a:hover {
        font-size: 26px;
    }

    .boxshadow {
        box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    }

    .spacer {
        aspect-ratio: 960/300;
        position: relative;
        width: 100%;
        background-repeat: no-repeat;
        background-position: center;
        background-size: cover;
    }

    .layer1 {
        margin-top: 0;
        background-image: url('images/wave.svg');
    }
    .layer2 {
        transform: rotate(180deg);
        margin-top: 0;
        background-image: url('images/wave.svg');
    }

    .homeMid {
        background-color: #146b6c;
        width: 100%;
        height: 85vh;
        padding: 10% 50px;
        color: white;
        text-align: center;
    }

    .headText {
        font-size: 100px;
        text-align: center;
    }

    .semiHeadText {
        font-size: 30px;
        text-align: center;
    }

    .textContainer {
        padding-top: 0;
    }

    .homeMid .headText {
        font-size: 60px;
    }

    .homeMid .semiHeadText {
        padding-top: 30px;
        padding-left: 200px;
        padding-right: 200px;
    }

    .shake {
        display: inline-block;
        font-size: 60px;
        transition: font-size 0.8s ease;
    }

    .shake:hover {
        font-size: 70px;
    }

    @keyframes shake {
        0% {
            transform: rotate(0deg);
        }

        25% {
            transform: rotate(5deg);
        }

        50% {
            transform: rotate(-5deg);
        }

        75% {
            transform: rotate(5deg);
        }

        100% {
            transform: rotate(0deg);
        }
    }

    .shake-animation {
        animation: shake 0.5s;
    }

    .welcome-section {
        position: relative;
        text-align: center;
        padding: 20px;
        padding-top: 70px;
        z-index: 2;
    }

    .spacer-section {
        position: relative;
        text-align: center;
        z-index: 2;
    }

    .hidden {
        opacity: 0;
        transform: translateY(30%);
        transition: all 1s;
    }

    .show {
        transform: translateY(0);
        opacity: 1;
    }

    .flip {
        transform: rotate(180deg);
    }

    .scroll-down {
        height: 50px;
        width: 30px;
        border: 2px solid white;
        position: fixed;
        left: 50%;
        bottom: 45px;
        transform: translateX(-50%);
        z-index: 10;
        border-radius: 50px;
        cursor: pointer;
    }

    .scroll-down::before,
    .scroll-down::after {
        content: '';
        position: absolute;
        top: 20%;
        left: 50%;
        border: 2px solid white;
        height: 10px;
        width: 10px;
        transform: translate(-50%, -100%) rotate(45deg);
        border-top: transparent;
        border-left: transparent;
        animation: scroll-down 1s ease-in-out infinite;
    }

    .scroll-down::after {
        top: 30%;
        animation-delay: 0.3s;
    }

    @keyframes scroll-down {
        0% {
            opacity: 0;
        }

        30% {
            opacity: 1;
        }

        60% {
            opacity: 1;
        }

        100% {
            opacity: 0;
            top: 90%;
        }
    }

    .button {
        padding: 14px 40px;
        text-decoration: none;
        font-size: 20px;
        background-color: #038b97;
        margin-left: 42%;
        margin-right: 42%;
        border-radius: 40px;
        color: white;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
        margin-top: 20px;
        position: relative;
    }
    .hide {
        opacity: 1;
        transition: opacity 0.3s ease;
        z-index: 10;
    }
}

@media only screen and (min-width: 800px) and (max-width: 1049px) {
    body {
        background-color: white;
    }

    nav {
        padding: 25px 3%;
        width: 100%;
        background-color: #038b97;
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: 30px;
        box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    }

    .logo {
        display: none;
    }

    .navbar a {
        font-family: mijn;
        font-size: 24px;
        margin: 10px 15px;
        text-decoration: none;
        color: white;
        transition: 0.5s;
    }

    .boxshadow {
        box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    }

    .spacer {
        position: relative;
        z-index: 1;
        aspect-ratio: 960/900;
        width: 100%;
        background-repeat: no-repeat;
        background-position: center;
        background-size: cover;
        margin-top: -1px; /* Overlap slightly */
    }

    .layer1 {
        position: relative;
        z-index: 1;
        margin-top: 40px;
        background-image: url('images/wave.svg');
    }

    .layer2 {
        position: relative;
        margin-top: 0px;
        transform: rotate(180deg);
        background-image: url('images/wave.svg');
    }

    .homeMid {
        background-color: #146b6c;
        width: 100%;
        height: 70vh;
        padding: 10% 20px;
        color: white;
        text-align: center;
        margin-top: -1px; /* Overlap slightly */
    }

    .headText {
        margin-bottom: 20px;
        margin-top: 20px;
        padding: 0 20px;
        font-size: 120px;
        text-align: center;
        align-items: center;
    }

    .semiHeadText {
        margin-top: 170px;
        font-size: 60px;
        text-align: center;
    }

    .textContainer {
        margin-top: 100px;
    }

    .homeMid .headText {
        margin-top: 70px;
        padding: 0;
        margin-bottom: 0;
        font-size: 70px;
    }

    .homeMid .semiHeadText {
        margin-top: 20px;
        padding-top: 10px;
        font-size: 30px;
        padding-bottom: 30px;
    }

    .lineRemover {
        width: 100vh;
        height: 20px;
        background-color: #146b6c;
    }

    .shake {
        display: inline-block;
        font-size: 68px;
        transition: font-size 0.8s ease;
    }

    .shake:hover {
        font-size: 73px;
    }

    @keyframes shake {
        0% {
            transform: rotate(0deg);
        }

        25% {
            transform: rotate(5deg);
        }

        50% {
            transform: rotate(-5deg);
        }

        75% {
            transform: rotate(5deg);
        }

        100% {
            transform: rotate(0deg);
        }
    }

    .shake-animation {
        animation: shake 0.5s;
    }

    .hidden {
        opacity: 0;
        transform: translateY(30%);
        transition: all 1s;
    }

    .show {
        transform: translateY(0);
        opacity: 1;
    }

    .welcome-section {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 48vh;
        position: relative;
    }

    .spacer-section {
        position: relative;
        text-align: center;
        z-index: 2;
    }

    .button {
        padding: 14px 40px;
        text-decoration: none;
        font-size: 25px;
        background-color: #038b97;
        margin-left: 20%;
        margin-right: 20%;
        border-radius: 40px;
        color: white;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
        margin-top: 20px;
        position: relative;
        z-index: 5;
    }

    .scroll-down {
        height: 87px;
        width: 52px;
        border: 2px solid white;
        position: fixed;
        left: 50%;
        bottom: 50px;
        transform: translateX(-50%);
        z-index: 10;
        border-radius: 50px;
        cursor: pointer;
        opacity: 1; /* Ensure opacity is set to 1 by default */
        transition: opacity 0.5s ease, bottom 0.5s ease;
    }
    @keyframes scroll-down {
        0% {
            opacity: 0;
        }
        30% {
            opacity: 1;
        }
        60% {
            opacity: 1;
        }
        100% {
            opacity: 0;
            top: 90%;
        }
    }
    
    .scroll-down::before,
    .scroll-down::after {
        content: '';
        position: absolute;
        top: 20%;
        left: 50%;
        border: 2px solid white;
        height: 10px;
        width: 10px;
        transform: translate(-50%, -100%) rotate(45deg);
        border-top: transparent;
        border-left: transparent;
        animation: scroll-down 1s ease-in-out infinite;
    }
    
    .scroll-down::after {
        top: 30%;
        animation-delay: 0.3s;
    }
    .hide {
        opacity: 1;
        transition: opacity 0.3s ease;
        z-index: 10;
        position: relative; /* Add position: relative */
    }
    #sec-2 {
        background-color: #146b6c;
        position: relative;
    }
}