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

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.6s;
    padding: 1.5vh 0;
    z-index: 1000;
    background-color: #333945;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    height: 5.2vh;
}

.logo {
    margin-left: 4vw;
    user-select: none;
}

.logo img {
    width: 2.8vw;
    margin-right: 1vw;
}

.logo a {
    color: #61dafb;
    text-decoration: none;
    font-size: 1.6vw !important;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
    margin-left: 30vw;
    z-index: 1001;
    user-select: none;
}

.nav-links li {
    position: relative;
    margin-left: 2vw;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1vw !important;
    position: relative;
    padding: 3px 0;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #61dafb;
}

.nav-links a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #61dafb;
    transition: width 0.3s ease;
    position: absolute;
    bottom: -5px;
    left: 0;
}

.nav-links a:hover::after {
    width: 100%;
}

i.fa-caret-down,
i.fa-caret-up {
    margin-left: 5px;
}

.setting-button {
    color: #fff;
    border: none;
    background-color: transparent;
    margin-right: 4vw;
    cursor: pointer;
}

#settingsIcon {
    font-size: 1.15vw;
}

.settings-panel {
    display: none;
    position: absolute;
    top: 10vh;
    right: 3vw;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    padding: 1vw;
    border-radius: 1vw;
    width: 17vw;
    height: 16vw;
    z-index: 1000;
}

.settings-panel h2 {
    margin-top: 0;
    color: #000 !important;
    font-size: 1.7vw !important;
    font-weight: bold;
    text-align: center;
    margin-bottom: 2.3vh;
}

.setting-item {
    margin-bottom: 3vh;
    display: flex;
    align-items: center;
}

.setting-label {
    font-weight: bold;
    color: #555;
    flex: 1;
    margin-right: 15px;
    font-size: 1vw !important;
}

button#saveSettingsButton {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 0.7vw 1.3vw;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1vw !important;
    transition: background-color 0.3s ease;
    float: right;
}

button#saveSettingsButton:hover {
    background-color: #004ea1;
}

#fontSizeRange {
    width: 8vw;
}

#nightModeCheckbox {
    transform: scale(1.2);
    width: 0.9vw;
    height: 0.9vw;
}

i.fa-compress,
i.fa-expand {
    color: #000;
    font-size: 1vw;
}

i.fa-compress:hover,
i.fa-expand:hover {
    color: #007bff;
    cursor: pointer;
}

.menu {
    position: relative;
    user-select: none;
}

.menu:hover .submenu {
    display: block;
}

.submenu {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #333;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    min-width: 160px;
    z-index: 1000;
}

.submenu li {
    margin: 0;
}

.submenu a {
    color: #fff;
    padding: 7px 15px;
    display: block;
    text-decoration: none;
    font-size: 1vw !important;
    transition: background 0.3s ease;
}

.submenu a:hover {
    color: #000;
    font-weight: 600;
    background-color: #61dafb;
}

#menu-toggle {
    display: none;
    cursor: pointer;
}

#menu-toggle span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: #fff;
    margin: 6px 0;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1400px) {
    .nav-links {
        margin-left: 250px;
    }

    #settingsIcon {
        font-size: 17px;
    }
}

@media (max-width: 1200px) {
    .nav-links {
        margin-left: 50px;
    }
}

@media (max-width: 1000px) {
    .navbar {
        height: 40px;
    }

    .logo {
        margin-left: 20px;
    }

    .logo img {
        width: 35px;
        margin-right: 5px;
    }

    .logo a {
        font-size: 20px !important;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-left: 0px;
        background-color: #3a414d;
        position: absolute;
        top: 60px;
        left: 0;
        padding: 10px 0px;
        overflow: hidden;
    }

    .nav-links.active {
        display: none;
        overflow-y: auto;
        max-height: calc(100vh - 100px);
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .nav-links li {
        margin: 10px 0px;
        text-align: left;
        text-indent: 2em;
    }

    .nav-links a {
        font-size: 16px !important;
    }

    .submenu {
        position: static;
        display: none;
        box-shadow: none;
    }

    .submenu a {
        font-size: 14px !important;
    }

    .submenu a:hover {
        color: #000;
        font-weight: 600;
    }

    .menu.active .submenu {
        display: block;
    }

    #menu-toggle {
        display: block;
        margin-right: 20px;
        color: #fff;
    }

    .setting-button {
        margin-right: 0px;
    }

    @keyframes slideDown {
        from {
            max-height: 0;
        }

        to {
            max-height: 200vh;
        }
    }

    .nav-links.active {
        display: flex;
        animation: slideDown 1s ease;
    }

    i.fa-caret-down,
    i.fa-caret-up {
        text-indent: 0;
        margin-left: 5px;
    }
}