.navbar {
    width: 100%;
    height: 8vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px 0 90px;
}

.navbar ul {
    height: 100%;
    display: flex;
    gap: 20px;
    padding: 0;
    margin: 0;
    list-style: none;
    justify-content: center;
    flex-grow: 1;
    align-items: center;
}

.navbar li {
    display: flex;
    list-style: none;
    width: 70px;
    height: 100%;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.navbar a {
    text-decoration: none;
    font-size: 16px;
    padding: 5px 10px;
    transition: color 0.3s ease;
    color: currentColor;
}

/* "Dark Mode" and "Light Mode" */

body.light-mode {
    background-color: #ffffff;
    color: #000000;
}

body.dark-mode {
    background-color: #121212;
    color: #ffffff;
}

.toggle-container {
    position: relative;
    width: 60px;
    height: 30px;
    margin: 24px auto;
}

input[type="checkbox"] {
    display: none;
}

.toggle-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    background-color: #cccccc;
    border-radius: 30px;
    padding: 0 5px;
    cursor: pointer;
    transition: background-color 0.5s;
}

input[type="checkbox"]:checked+.toggle-label {
    background-color: #363636;
}

.sun,
.moon {
    font-size: 20px;
    transition: transform 0.5s, opacity 0.5s;
    opacity: 0;
}

.sun {
    opacity: 1;
}

.moon {
    opacity: 0;
}

input[type="checkbox"]:checked+.toggle-label .sun {
    transform: translateX(30px);
    opacity: 0;
}

input[type="checkbox"]:checked+.toggle-label .moon {
    transform: translateX(-30px);
    opacity: 1;
}

body.light-mode .navbar a:hover,
body.dark-mode .navbar a:hover {
    color: #a5a5a5;
}

/* navbar animation */

@keyframes navdown {
    from {
        transform: translateY(-8vh);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes navup {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-8vh);
    }
}