@import url('https://fonts.googleapis.com/css2?family=Libre+Franklin:ital,wght@0,100..900;1,100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Satisfy&display=swap');

body{
    background-repeat: no-repeat;
    background-size: cover;
    height: 100%;
    background: rgb(221,224,70);
    background: linear-gradient(324deg, rgba(221,224,70,1) 31%, rgba(247,243,233,1) 63%);
}

nav {
    font-family: 'Montserrat', poppins; 
    font-weight: 600; 
    position: fixed;
    top: 0;
    width: 100%;
    padding-left: 40px;
    z-index: 10;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 70px;
    background: rgb(255,255,255);
    background: linear-gradient(344deg, rgba(255,255,255,1) 38%, rgba(227,237,40,1) 71%);
    size: 50px;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
    overflow-x: auto;
}

.link {
    text-decoration: none;
    color: black;
}

.link.active {
    font-weight: bold;
    text-decoration: underline;
}

nav ul {
    display: flex;
    justify-content: center;
}

nav ul li {
    list-style: none;
    margin: 0 23px;
}

.nav-left{
    font-weight: 600;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.middle{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    width: 20rem;
    border: 2px solid rgb(83, 83, 83);
    border-radius: 15px;
    overflow: hidden;
}

.menu-button {
    display: none;
    font-size: 2rem;
    background: none;
    border: none;
    color: #000;
    cursor: pointer;
}

.menu-button {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.sidebar {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1000;
    top: 0;
    right: 0;
    background: rgb(221,224,70);
    background: linear-gradient(324deg, rgba(221,224,70,1) 31%, rgba(247,243,233,1) 63%);
    overflow-x: hidden;
    transition: 0.3s;
    padding-top: 60px;
}

.sidebar a, .sidebar li {
    padding: 15px 25px;
    text-decoration: none;
    font-size: 18px;
    color: #333;
    display: block;
    white-space: nowrap;
}

.sidebar .close-btn {
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 30px;
    cursor: pointer;
}

@media screen and (max-width: 768px) {
    .nav-right ul {
        display: none;
    }

    .nav{
        display: inline-block;
    }

    .menu-button {
        display: block;
    }

    .sidebar {
        display: block;
    }
}

@media (max-width: 768px) {
    .menu-button {
        display: block; 
        margin-right: 30px;
        margin-left: 20px;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.9);
        border-radius: 0 0 30px 30px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    }

    nav ul.active {
        display: flex; 
    }

    nav ul li {
        margin: 20px 0;
        text-align: center;
        font-size: 1.2rem;
    }
}