.nav-wrapper {
    width: 100%;
    padding: 15px 0px;
    background: var(--bg);
    /* box-shadow: 0px 0px 8px var(--shadow); */
    position: fixed;
    top: 0;
    z-index: 80;
}

.navbar {
    width: 96%;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo-section {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.nav-logo {
    height: 35px;
}

.nav-menu-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    padding-left: 110px;
}

.nav-menu-item {
    font-size: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: var(--text);
    font-family: var(--head-font);
    font-weight: 800;
}

.nav-menu-item:hover {
    color: var(--primary);
}

.nav-menu-item:hover i {
    color: var(--primary);
}

.nav-menu-item i {
    font-size: 20px;
    padding-bottom: 3px;
    font-weight: lighter;
}

.nav-action-section {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.connect-wallet-btn {
    font-size: 16px;
    padding: 10px 12px 8px 12px;
    border-radius: 10px;
    color: white;
    font-family: var(--head-font);
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
}

.connect-wallet-btn i {
    font-size: 20px;
    padding-bottom: 2px;
}

.connect-wallet-btn:hover {
    background: var(--primary-dull);
}

.network-btn {
    font-size: 16px;
    padding: 10px 12px 8px 12px;
    border-radius: 10px;
    color: var(--text);
    font-family: var(--head-font);
    background: var(--bg-dull);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--reverse);
    gap: 5px;
    cursor: pointer;
}

.network-btn:hover {
    background: var(--reverse);
}

.network-btn img {
    width: 16px;
    margin-top: -3px;
    height: 16px;
}

.network-btn span {
    font-weight: 600;
}

#nav-mobile-open {
    font-size: 25px;
    color: var(--text);
    display: none;
}

#nav-mobile-close {
    display: none;
}

.earn-kdt-btn {
    font-size: 15px;
    padding: 5px 12px 3px 12px;
    border-radius: 10px;
    color: var(--text);
    font-family: var(--head-font);
    background: var(--bg);
    border: 2px solid var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
}

.earn-kdt-btn span {
    font-weight: 500;
}

.free-text {
    position: absolute;
    top: 100%;
    background: var(--accent);
    padding: 4px 10px 3px 10px;
    z-index: -1;
    border-radius: 0px 0px 5px 5px;
    color: black;
    font-weight: 800;
    font-size: 10px;
    animation: dropSlide 2s linear infinite;
}

@keyframes dropSlide {
    0% {
        top: 50%;
    }

    50% {
        top: 100%;
    }

    80% {
        top: 100%;
    }

    100% {
        top: 50%;
    }
}

.earn-kdt-btn i {
    display: none;
}

.earn-kdt-btn img {
    width: 18px;
    height: 18px;
    padding: 0;
    margin: 0;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(77, 77, 77, 0.8);
    margin-bottom: 3px;
}

.earn-kdt-btn:hover {
    background: var(--bg-dull);
}

@media (max-width: 1000px) {
    .nav-wrapper {
        padding: 10px 0px;
    }

    #nav-mobile-open {
        display: block;
    }

    .nav-menu-section {
        display: none;
        flex-direction: column;
        width: 100%;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: var(--bg);
        align-items: flex-start;
        justify-content: flex-start;
        padding: 20px;
        gap: 20px;
        border-radius: 0px 0px 15px 15px;
        box-shadow: 0px 0px 10px var(--shadow);
        border-bottom: 1px solid var(--text-dull);
        animation: slideDown 0.4s ease-in-out;
        z-index: 10000;
    }

    @keyframes slideDown {
        0% {
            transform: translateY(-400px);
        }

        100% {
            transform: translateY(0px);
        }
    }

    #nav-mobile-close {
        display: flex;
        color: var(--primary);
    }

    .nav-menu-item {
        justify-content: center;
        width: 100%;
        text-align: left;
    }

    .nav-logo {
        height: 26px;
    }

    .connect-wallet-btn,
    .earn-kdt-btn,
    .network-btn {
        font-size: 14px;
    }

    .connect-wallet-btn i {
        font-size: 18px;
    }
}

@media (max-width: 500px) {
    .nav-action-section {
        gap: 5px;
    }

    .nav-logo {
        height: 22px;
    }

    .earn-kdt-btn {
        position: absolute;
        top: 100%;
        border-radius: 0;
        width: 100%;
        right: 0;
        padding: 6px 10px 4px 10px;
        font-size: 12px;
        gap: 6px;
        background: var(--bg-dull);
        color: var(--text);
        border: none;
    }

    .free-text {
        display: none;
    }

    .earn-kdt-btn i {
        display: inline;
        margin-top: -4px;
        color: orange;
        font-size: 13px;
    }

    .earn-kdt-btn img {
        display: none;
    }
}

.wallet-wrapper {
    position: fixed;
    z-index: 10000;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: rgb(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    display: none;
}

.wallet-box {
    padding: 20px;
    border-radius: 10px;
    background: var(--bg);
    width: 30%;
    text-align: center;
    animation: popIn 0.45s ease-in-out;
    border: 1px solid var(--reverse);
}

@keyframes popIn {
    0% {
        transform: translateY(400px);
    }

    100% {
        transform: translateY(0);
    }
}

.wallet-head {
    font-size: 22px;
    color: var(--primary);
    margin-bottom: 20px;
}

.wallet-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.wallet-list-item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    font-size: 15px;
    color: var(--text);
    background: var(--bg-dull);
    padding: 8px 12px;
    border-radius: 10px;
    cursor: pointer;
}

.wallet-list-item:hover {
    background: var(--reverse);
}

.wallet-list-item img {
    width: 30px;
    height: auto;
}

@media (max-width: 800px) {
    .wallet-box {
        width: 80%;
    }
}

@media (max-width: 500px) {
    #metamask,
    #trustwallet {
        display: none;
    }
}
