﻿header {
    position: fixed;
    top: 0;
    z-index: 9999;
    display: flex;
    background: transparent;
    width: calc(100% - 60px);
    padding: 30px;
}

.logochange {
    background: none !important;
    backdrop-filter: invert(100%) !important;
}
.nav_logo {
    width: 168px;
    height: 86px;
    background: white;
    mask-repeat: no-repeat;
    mask: url(/assets/svg/logo_mask.svg);
}

.nav_background {
    user-select: none;
    display: flex;
    position: absolute;
    box-sizing: border-box;
    right: 0;
    border-radius: 10px;
    pointer-events: none;   
    left: 0;
    top: 46px;
    margin: auto;
    justify-content: center;
    background: transparent;
    backdrop-filter: blur(2px);
}
.nav_bar {
    display: flex;
    position: absolute;
    right: 0;
    left: 0;
    top: 45px;
    user-select: none;
    width: 520px;
    height: 51px;
    transition: 0.5s;
    justify-content: space-between;
    flex-wrap: wrap;
    margin: auto;
    gap: 5px;
    justify-content: center;
    background: transparent;
    border-radius: 10px;
}

    .nav_bar a:hover {
        color: var(--titletext);
        transition: 0.2s;
    }

    .nav_bar a {
        width: 100px;
        height: 51px;
        font-weight: 700;
        line-height: 53px;
        font-size: 16px;
        text-align: center;
        letter-spacing: 0.04em;
        color: var(--alttext);
    }

.nav_donate:hover {
    color: white;
    background: var(--titletext);
    transition: 0.2s;
}

.nav_donate {
    transition: 0.2s;
    right: 30px;
    top: 46px;
    position: absolute;
    height: 47px;
    width: 100px;
    font-weight: 700;
    font-size: 18px;
    color: var(--titletext);
    background: rgba(69, 144, 255, 0.01);
    border: 2px solid #4590FF;
    backdrop-filter: blur(10px);
    border-radius: 10px;
    text-align: center;
    vertical-align: middle;
    line-height: 49px;
}
.menu-icon div {height: 5px; transition: 0.1s; margin: auto; width: 36px; margin: -8px auto -8px auto; border-radius: 2px; background: white;}
.menu-icon {display: none; transition: 0.1s; height: 100%; flex-direction: column; transition: 0.1s; justify-content: center;}
.menu-checkbox { display: none;}
@media (max-width: 1000px) {.nav_logo{display:none;}}
@media (max-width: 820px) {
    .menu-checkbox:checked ~ .nav_bar {
        display: flex;
        position: absolute;
        right: 0;
        left: 0;
        padding: 0px;
        top: 100px;
        transition: 0.5s;
        width: 80%;
        height: fit-content;
        backdrop-filter: blur(1.2px);
        justify-content: space-between;
        column-gap: 25px;
        border: 2px solid #FFFFFF;
        justify-content: space-evenly;
        background: rgba(0, 0, 0, 0.5);
        border-radius: 10px;
        padding: 5px;
    }
    .nav_background {display: none;}
    .nav_logo {  display: none; }
    .nav_bar { display: none; transition: 0.5s; }
    .nav_bar a { width: fit-content; height: fit-content; line-height: 35px;}
    .nav_donate {right: 19px;}
    .menu-icon {
        transition: 0.1s;
        display: flex;
    }
    .icon-container {
        display: block;
        transition: 0.1s;
        top: 45px;
        position: absolute;
        left: 18px;
        height: 51px;
        width: 51px;
        background: black;
        justify-content: center;
        box-sizing: border-box;
        background: rgba(0, 0, 0, 0.5);
        border: 2px solid #FFFFFF;
        backdrop-filter: blur(2px);
        border-radius: 10px;
    }
    .menu-checkbox:checked ~ .icon-container .menu-icon div:nth-child(1) {
        transition: 0.1s;
        background: var(--titletext);
        transform: translateY(-11px) rotate(46deg);
    }
    .menu-checkbox:checked ~ .icon-container .menu-icon div:nth-child(2) { opacity: 0; }
    .menu-checkbox:checked ~ .icon-container .menu-icon div:nth-child(3) {
        transition: 0.1s;
        background: var(--titletext);
        transform: translateY(11px) rotate(-46deg);
    }
}

footer p {
    font-weight: bold;
}

footer a {
    text-decoration: none;
    transition: 0.2s;
    cursor: pointer;
    user-select: none;
    color: black;
}

    footer a:hover {
        transition: 0.2s;
        color: var(--titletext)
    }

footer {
    bottom: 0;
    padding: 35px;
    display: flex;
    align-content: center;
    justify-content: center;
    height: fit-content;
    margin-top: 300px;
    width: auto;
}

.RenderBody {
    width: calc(100% - 200px);
    margin: auto;
    margin-bottom: 150px;
}

@media (max-width: 600px) {
    footer div div {
        column-gap: 50px !important;
    }
}

@media (max-width: 400px) {
    footer a {
        margin: auto;
    }

    footer p {
        margin: auto;
        margin-bottom: 10px;
    }

    footer div div {
        flex-direction: column !important;
        column-gap: 0px !important;
    }
}

@media (max-width: 525px) {
    .RenderBody {
        width: 100%
    }
}
@media (max-width: 350px) {
   footer img {
        width: 150px !important;
        height: 80px !important;
    }
}

/* Common Styles for Popups */
.popup {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 0;
    animation: slide-up 0.5s ease-out forwards, fade-out 3s ease-out forwards;
    display: flex;
    justify-content: center;
    align-items: center;
}

.error-popup {
    background-color: #e74c3c;
    color: white;
}

.success-popup {
    background-color: #2ecc71;
    color: white;
}

@keyframes slide-up {
    0% {
        bottom: -50px;
        opacity: 0;
    }

    100% {
        bottom: 20px;
        opacity: 1;
    }
}

@keyframes fade-out {
    0% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        display: none;
    }
}
