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

:root {
    --primary-color: #136f63cc;
    --text-color: white;
    --secondary-color: #14efca20;
}

html {
    height: 100%;
}

body {
    background-color: var(--secondary-color);
    display: flex;
    flex-direction: column;
    height: 100%;
}

* {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

main {
    flex: 1;/* Fills the remaining space, pushing the footer down */
}

nav {
    background-color: #136f63;
    padding: 12px;
    position: fixed;
    z-index: 1000;
    width: 100%;
    top: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.home {
    font-weight: bolder;
    font-size: 25px;
    letter-spacing: 1px;
}

.home a {
    color: var(--text-color);
    text-decoration: none;
}

.home a:hover {
    text-decoration: underline;
}

.menu ul {
    display: flex;
    gap: 70px;
}

.menu ul li {
    list-style: none;
    display: inline;
    font-weight: bolder;
    font-size: 20px;
    letter-spacing: 1px;
}

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

.menu ul li a:hover {
    text-decoration: underline;
}

.menu-icon {
    display: none;
    font-size: 24px;
    color: var(--text-color);
    cursor: pointer;
    font-weight: bolder;
}

.menu-toggle {
    display: none;
}

@media(max-width:1440px) {
    .home {
        font-size: 20px;
    }

    .menu ul {
        gap: 50px;
    }

    .menu ul li {
        font-size: 18px;
    }
}

@media(max-width: 850px) {
    .menu {
        display: none; /* Hide the menu by default */
        flex-direction: column; /* Stack menu items */
        align-items: center;
        background-color: #136f63;
        position: absolute;
        top: 50px;
        right: 25px;
        width: 40%;
        border-radius: 0 0 10px 10px;
    }

    .menu ul {
        flex-direction: column;
        gap: 0px;
        align-items: center;
    }

    .menu ul li {
        font-size: 16px;
    }

    .menu-icon {
        display: block; /* Show hamburger icon on smaller screens */
    }

    /* Show menu when checkbox is checked */
    .menu-toggle:checked~.menu {
        display: flex; /* Reveal the menu */
        background-color: #136f63e3;
    }

    /* Add extra space to <li> items when menu is visible */
    .menu-toggle:checked~.menu ul li {
        margin: 10px;
    }
}