@import url('https://fonts.googleapis.com/css2?family=Pixelify+Sans&display=swap');

.navbar {
    position: fixed;
    top: 2%;
    left: 2%;
    right: 2%;
    min-height: 10vh;
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    backdrop-filter: blur(4px);
    z-index: 999;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.navbar-menu-icon {
    display: none;
}

.navbar-name {
    font-family: 'Pixelify Sans', sans-serif;
    font-size: 36px;
    font-weight: 400;
    line-height: 1;
}

.navbar-items {
    display: flex;
    direction: row;
    justify-content: space-evenly;
    align-items: center;
    gap: 10%;
}

.navbar-item {
    color: rgba(255, 255, 255, 0.6);
    font-size: 20px;
    text-decoration: none;
    transition: 0.5s;
}

.navbar-item:hover {
    color: white;
    transition: 0.5s;
}

.navbar-github-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: 0.7s;
}

.navbar-github-link:hover {
    color: white;
    transition: 0.7s;
}

@media only screen and (max-width: 640px) {
    .navbar-menu-icon {
        display: block;
        color: rgba(255, 255, 255, 0.6);
    }

    .navbar-menu-icon:hover {
        color: white;
    }

    .navbar-name {
        font-size: 30px;
    }

    .navbar-items {
        display: none;
    }
}

/* Sidenav: Drawer for 600px smaller devices */

.sidenav {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    background-color: #000;
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px;
}

.sidenav-items {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.sidenav-item {
    color: rgba(255, 255, 255, 0.6);
    font-size: 40px;
    text-decoration: none;
    transition: 0.5s;
}

.sidenav-item:hover {
    color: white;
    transition: 0.5s;
}

.sidenav .close-btn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
}

@media screen and (max-height: 450px) {
    .sidenav {
        padding-top: 15px;
    }
}