body {
    background-color: #333D29;
}

.about-panel {
    position: relative;
    background-color: #414833;
    border: 4px double #582F0E;
    outline: 2px solid #CB997E;
    outline-offset: -8px;
    border-radius: 15px;
    padding: 25px;
    max-width: 600px;
    width: 100%;
    text-align: left;
    line-height: 1.6;
    flex-shrink: 0;
}

.about-panel p, .about-panel ul {
    font-family: 'Gaegu', cursive;
    font-size: 1.8rem;
    color: #FFE8D6;
    margin: 1em 0;
}
.about-panel h2 {
    font-family: 'Indie Flower', cursive;
    text-align: center;
    margin-top: 0;
    font-size: 2rem;
}

.about-panel ul {
    list-style: none;
    padding-left: 0;
}

.about-panel li {
    padding-left: 25px;
    margin-bottom: 10px;
    position: relative;
}

.about-panel li::before {
    content: '•';
    color: #CB997E;
    font-size: 1.5em;
    position: absolute;
    left: 0;
    
    top: 0.1em;
    
    line-height: 1;
}


.about-panel a {
    color: inherit;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.about-panel a:hover {
    color: #CB997E;
}

.overlay-gif-container {
    position: absolute;
    top: 30px;
    left: 43.5%;
    width: 100px;
    z-index: 2;

    cursor: pointer; 
}

 @keyframes pushAndFall {
            0% {
                transform: translateY(0) rotate(0);
                opacity: 1;
            }
            2% {
                transform: translateY(-15px);
                opacity: 1;
            }
            100% {
                transform: translateY(150vh) rotate(90deg);
                opacity: 0;
            }
        }

.overlay-gif-container.falling {
    animation: pushAndFall 1.5s ease-in forwards;
}

#nl {
    margin: 0;
    padding: 0;
    font-size: 1rem;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1002;
}

#nl a {
    color: #B7B7A4;
    text-decoration: none;
}

.bottom-gif-container {
    position: fixed;
    bottom: -10px;
    right: 200px;
    width: 100px;
    z-index: 999;
}

.bottom-gif {
    width: 100%;
}

.tooltip-container {
    position: relative;
    display: inline-block;
}

.tooltip-text {
    visibility: hidden;
    width: 160px;
    background-color: #2a3122;
    color: #DDBEA9;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 100;
    bottom: 110%;
    left: 50%;
    margin-left: -80px;
    opacity: 0;
    transition: opacity 0.3s;
    font-family: 'OwlsNInk', cursive;
    font-size: 1rem; 
}

.tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.player-area {
    position: relative;
    flex-shrink: 0;
}

#music {
    width: 250px;
    background-color: #414833;
    border: 4px double #FFE8D6;
    border-radius: 15px;
    padding: 10px;
    z-index: 1000;
    margin-top: 50px;
    transform: rotate(-25deg);
    transition: transform 0.3s ease;
}

#screen {
    background-color: #2a3122;
    color: #DDBEA9;
    padding: 10px;
    border-radius: 8px;
    border: 2px solid #582F0E;
    font-family: 'Gaegu', cursive;
    font-size: 1rem;
}

#screen p {
    margin: 5px 0;
}

#screen a {
    color: #DDBEA9;
}

#screen a:hover {
    color: #CB997E;
}

#album {
    width: 100%;
    min-height: 50px;
    text-align: center;
    margin: 10px 0;
}

#album img {
    width: 100%;
    border-radius: 4px;
}

#music .icons {
    vertical-align: middle;
}

#music .up, #music .down, #music .play-pause {
    text-align: center;
}

#music .play-pause {
    font-size: 1.5rem;
    margin: 10px 0;
}

#music a {
    color: #DDBEA9;
    text-decoration: none;
}

#music a:hover {
    color: #CB997E;
}

#music .left, #music .right {
    display: inline-block;
    transform: scale(0.8);
}

#music .pause {
    display: none;
}

.listening-cat-gif {
    position: absolute;
    width: 80px;
    top: -40px;
    right: -20px;
    z-index: 1001;
    transform: rotate(15deg);
    pointer-events: none;
}

.pic-of-cat {
    position: absolute;
    top: 55%;
    left: 15px;
    transform: rotate(4deg);
    text-align: center;
    margin-top: 20px;
    cursor: pointer;
}

.pic-of-cat.is-fixed {
    transform: rotate(0deg);
}

.pic-of-cat img {
    width: 120px;
}

.pic-of-cat p {
    font-family: 'OwlsNInk', cursive;
    font-size: 1.4rem;
    margin-top: -10px;
    color: #DDBEA9;
    text-shadow: 2px 2px 3px #333D29;
}

.meow-cat-area {
    position: absolute;
    bottom: -30px;
    right: -35px;
    z-index: 2;
}

.meow-cat-area img {
    width: 100px;
    transform: rotate(15deg);
}

.navigation-group {
    display: flex;
    flex-direction: column; /* Элементы будут располагаться сверху вниз */
    gap: 20px; /* Отступ между отдельными навигационными меню */
    flex-shrink: 0;
    align-self: flex-start; /* Выравнивает всю группу навигации по верху main-layout */
    position: sticky; /* Делает всю группу прилипающей */
    top: 40px; /* Прилипает на 40px от верха */
    z-index: 10;
}

/* Изменения для существующего .side-menu внутри .navigation-group */
.side-menu {
    background-color: transparent;
    border: 2px solid #CB997E;
    border-radius: 15px;
    padding: 20px;
    width: 180px; /* Сохраняем ширину каждого меню */
    /* z-index: 10; */ /* z-index теперь управляется родительским .navigation-group */
    /* flex-shrink: 0; */ /* Эти свойства уже есть у родителя или работают по умолчанию */
    /* align-self: flex-start; */ /* Эти свойства уже есть у родителя или работают по умолчанию */
    /* position: sticky; */ /* Удалено, теперь на родительском .navigation-group */
    /* top: 40px; */ /* Удалено, теперь на родительском .navigation-group */
}
.side-menu h3 {
    font-family: 'Indie Flower', cursive;
    font-size: 2rem;
    margin: 0 0 15px 0;
    color: #FFE8D6;
    text-align: center;
}
.side-menu ul { list-style: none; padding: 0; margin: 0; text-align: left; }
.side-menu li { margin-bottom: 10px; }
.side-menu a {
    font-family: 'Gaegu', cursive;
    font-size: 1.6rem;
    color: #DDBEA9;
    text-decoration: none;
    transition: color 0.2s ease;
}
.side-menu a:hover, .side-menu a.active {
     color: #FFE8D6;
}

@media (max-width: 768px) {
    .main-layout {
        flex-direction: column;
        align-items: center;
    }

    #music {
        transform: rotate(0deg);
        margin-top: 40px;
    }

    .listening-cat-gif {
        right: -10px;
        top: -30px;
    }

    .pic-of-cat {
        display: none;
    }

    .about-panel {
        max-width: 100%;
        overflow: hidden;
        position: relative;
    }

    .bottom-gif-container {
        display: none;
    }
    
    .meow-cat-area {
        right: auto; 
        left: 85%; 

        transform: scaleX(-1) rotate(15deg);
    }
}