/* Reset some basic styles */

@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@100..900&display=swap');

:root {
    --dark-blue: #2B4865;
    --medium-blue: #256D85;
    --light-blue: #8FE3CF;
    --accent: #FF9B9B;
    --white: #fefefe;
    --gray: #cccccc;
    --black: #010101;
}

* {
    font-family: 'Lexend', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    height: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
    background-color: var(--white);
}

/* Header */
header {
    background-color: var(--dark-blue);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 99;
    width: 100%;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    margin: 0 auto;
    padding: 10px 10px;
    position: relative;
}


header .logo a {
    color: var(--white);
    text-decoration: none;
}

header .logo h1 {
    font-size: 24px;
}

header nav {
    display: flex;
    align-items: center;
    justify-content: center;
}

header nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    flex-wrap: nowrap;
    text-align: center;
}

header nav ul li {
    margin: 0 35px;
}

header nav ul li a {
    font-size: 15px;
    color: var(--white);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

header nav ul li a:hover {
    color: var(--light-blue);
    transition: transform 0.2s ease-in-out, color 0.2s ease-in-out;
}

.getstarted-btn {
    background-color: var(--light-blue);
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    border: none;
}

.getstarted-btn:hover {
    background-color: var(--light-blue);
    transform: scale(1.05);
    transition: transform 0.2s ease-in-out;
}


.menu-btn {
    font-size: 15px;
    color: var(--white);
    margin-left: 40px;
    line-height: 80px;
    cursor: pointer;
    visibility: hidden;
}

#check {
    display: none;
}

/* Footer */
footer {
    margin: auto 0 0;
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 4vh 4vw;
    z-index: 99;
}

.footer-logo {
    text-align: center;
}

.footer-logo a {
    color: var(--white);
    text-decoration: none;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    gap: 10vw;
    padding: 25px 0;
    overflow: scroll;
    scrollbar-width: none;
    overflow-wrap: break-word;
}

.newsletter h4 {
    font-size: 20px;
}

.newsletter form {
    display: flex;
    margin-top: 10px;
}

.newsletter input[type="email"] {
    padding: 10px;
    border: none;
    border-radius: 5px;
    margin-right: 10px;
}

.newsletter button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background-color: var(--light-blue);
    color: var(--dark-blue);
    cursor: pointer;
}

.footer-links {
    display: flex;
    justify-content: space-between;
    width: 40%;
    overflow-wrap: break-word;
}

.footer-links ul {
    list-style: none;
}

.footer-links h4 {
    font-size: 20px;
    margin: 0 0 15px;
}

.footer-links ul li{
    margin-top: 10px;
}

.footer-links ul li a {
    color: var(--white);
    text-decoration: none;
}

.footer-legal {
    text-align: center;
    margin-top: 20px;
}

.footer-legal a {
    color: var(--white);
    text-decoration: underline;
}

@media screen and (max-width: 425px) {

    footer {
        padding: 10px 20px;
    }

    .footer-content {
        padding: 5px 5px;
    }
    
    .newsletter {
        display: none;
    }

    .footer-links {
        width: 100%;
    }

    .footer-logo a {
        font-size: 10px;
        color: var(--white);
        text-decoration: none;
    }

    .footer-links ul li a {
        font-size: 12px;
        color: var(--white);
        text-decoration: none;
    }

    .footer-links h4 {
        font-size: 15px;
        margin: 0 0 10px;
    }

    .footer-legal {
        font-size: 10px;
    }

    header .container {
        padding: 0 20px;
    }

    /* The hamburger menu using css is inspired from this youtube video
    https://www.youtube.com/watch?v=oLgtucwjVII&ab_channel=CodingNepal; */
    
    /* Menu button styling */
    .menu-btn {
        display: block;
        font-size: 30px;
        cursor: pointer;
        color: var(--white);
        z-index: 1000;
        visibility: visible;
    }

    /* Navigation menu styling */
    header nav ul {
        position: fixed;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--dark-blue);
        top: 80px;
        left: -100%;
        text-align: center;
        transition: all 0.3s ease;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 20px;
    }

    /* When checkbox is checked, show the menu */
    #check:checked ~ ul {
        left: 0;
    }

    header nav ul li {
        display: block;
        margin: 20px 0;
    }

    header nav ul li a {
        font-size: 20px;
    }
}
