/* Шрифты */
@font-face {
    font-family: 'Rounds_Black';
    src: url('/static/fonts/Rounds_Black.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Days_Sans_Black';
    src: url('/static/fonts/Days_Sans_Black.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "XI20";
    src: url('/static/fonts/XI20.ttf') format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Lubalin";
    src: url('/static/fonts/Lubalin_Graph.otf') format("truetype");
    font-weight: normal;
    font-style: normal;
}

:root {
    --navbar-height: 70px;
}

/* Базовые стили */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background: linear-gradient(to right, #9D9D9D, #959595);
    display: flex;
    flex-direction: column;
}

#page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
}

#content-wrap {
    flex: 1;
    padding: 0px 26px;
    box-sizing: border-box;
}

.navbar {
    height: var(--navbar-height, 70px);
    display: flex; 
    align-items: center;
    padding: 0px 20px;
    background: #2A2825;
    position: relative;
}


.fixed-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.navbar-spacer {
    height: var(--navbar-height, 70px);
}

.avatar-us {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar {
    width: 50px;
    height: auto;
}

.avatar:hover {
    filter: brightness(0.8);
}

.username {
    font-family: 'Rounds_Black', Arial, sans-serif;
    text-shadow: 0 0 3px white, 0 0 5px white;
    margin-left: 20px;
}


.buttons-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
}

.buttons {
    display: flex;
    gap: 30px;
}

.button {
    font-family: "Days_Sans_Black", Arial, sans-serif;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: clamp(0.4rem, 2.5vw, 1.6rem);
    font-weight: 500;
    letter-spacing: 0.5px;
    position: relative;
    padding: 8px 15px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Эффект пульсирующего подчеркивания */
.button::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00a8ff, #7289da);
    transform: translateX(-50%);
    transition: all 0.4s ease;
    border-radius: 10px;
}

.button:hover::before {
    width: 100%;
}

/* Эффект подсветки текста */
.button:hover {
    color: white;
    text-shadow: 0 0 15px rgba(100, 200, 255, 0.7);
    transform: scale(1.15);
}

/* Эффект волны при клике */
.button:active {
    animation: waveEffect 0.4s ease;
}

@keyframes waveEffect {
    0% { transform: scale(1); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

.button.active::before {
    width: 100%;
    background: linear-gradient(90deg, #00ffcc, #00a8ff);
    height: 3px;
    animation: pulseActive 2s infinite;
}

@keyframes pulseActive {
    0% { opacity: 0.8; }
    50% { opacity: 1; }
    100% { opacity: 0.8; }
}

.footer {
    background: #2A2825;
    padding: 15px 20px;
    text-align: center;
    position: relative;
    box-sizing: border-box;
}

.text-footer {
    color: white;
    font-family: 'Days_Sans_Black', Arial, sans-serif;
    font-size: clamp(0.4rem, 2.5vw, 1.2rem);;
}

/* ======= Мобильная адаптация ======= */
@media (max-width: 768px) {
    :root {
        --navbar-height: 35px;
    }

    .navbar {
        align-items: center;
        padding: 10px 10px;
    }


    #content-wrap {
        padding: 0px;
    }

    .avatar-us {
        gap: 0;
        flex-direction: column;
        align-items: center;
    }

    .avatar {
        margin-bottom: 2px;
        width: 32px;
        display: block;
     }

    .username {
        font-size: 0.3em;
        text-align: center;
        margin: 0;
    }

    .buttons-container {
        width: 100%;
        justify-content: center;
        margin-top: 6px;
    }

    .buttons {
        flex-wrap: wrap;
        justify-content: center;
        gap: 2px;
    }

    .button {
        padding: 8px 2px;
        min-width: 14px;
        text-align: center;
    }
}