@font-face {
    font-family: 'Minecraft';
    src: url('resources/minecraft.ttf') format('truetype');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Minecraft', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    overflow: hidden;
    background: black;
    color: #70bbe0;
    user-select: none; /* Запрет выделения текста */
    -webkit-user-select: none; /* Для Safari */
    -moz-user-select: none; /* Для Firefox */
    -ms-user-select: none; /* Для старых версий IE */
}

/* Запрет перетаскивания изображений */
img {
    pointer-events: none; /* Запрет взаимодействия с изображениями */
    user-drag: none; /* Запрет перетаскивания */
    -webkit-user-drag: none; /* Для Safari */
}

.background video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: fadeIn 2s forwards;
    filter: brightness(150%) blur(150px);
}

.glass-panel {
    background: rgba(38, 79, 110, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 7px;
    width: 90%;
    max-width: 600px;
    text-align: center;
    opacity: 0;
    animation: slideIn 0.3s forwards 0.3s;
    position: relative;
    top: -145px;
    overflow: visible;
}

.banner-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    overflow: hidden;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.banner {
    width: 100%;
    height: auto;
    display: block;
}

.avatar-container {
    position: relative;
    margin: 0 auto;
    width: 110px;
    height: 110px;
    margin-top: 20px;
    z-index: 1;
}

.avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 3px solid #1a6299;
    object-fit: cover;
    position: relative;
    top: -10px;
    margin-bottom: -55px;
}

.nickname {
    font-size: 1.5rem;
    margin-top: 10px;
    position: relative;
    top: -10px;
    display: inline-block;
    background: linear-gradient(90deg, #3db1ff, #3877a1, #00aaff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.description {
    font-size: 1rem;
    margin-top: 30px;
    white-space: pre-wrap;
    position: relative;
    top: -20px;
    background: linear-gradient(90deg, #24c8ff, #00a2ff, #63a9ff, #00fffb);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.icons {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    gap: 7px;
}

.icon {
    width: 43px;
    height: 43px;
    border-radius: 100%;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    position: relative;
    transition: 0.3s ease-in-out;
}

.icon:hover {
    filter: brightness(1.2);
}

.icon::after {
    content: attr(data-name);
    position: absolute;
    bottom: -30px;
    right: -70%;
    transform: translateX(-50%);
    font-size: 0.9rem;
    opacity: 0;
    transition: 0.3s;
    pointer-events: none;
    background: rgba(0, 0, 0, 1);
    padding: 5px 10px;
    border-radius: 10px;
    white-space: nowrap;
    z-index: 9999;
}

.icon:hover::after {
    opacity: 1;
    animation: popUp 0.3s forwards;
    z-index: 9991;
}

.icon:not(:hover)::after {
    animation: popDown 0.3s forwards;
    z-index: 9990;
}

.telegram {
    background-image: url('resources/telegram-icon.png');
}

.soundcloud {
    background-image: url('resources/soundcloud-icon.png');
}

.discord-panel {
    position: fixed;
    bottom: 365px;
    left: 42%;
    transform: translateX(-50%) scale(1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s, transform 0.3s;
    background: rgba(38, 79, 110, 0.1);
    backdrop-filter: blur(10px);
    width: 290px;
    opacity: 0;
    animation: fadeIn 0.5s forwards 0.5s;
    box-shadow: 0 0 10px rgba(38, 79, 110, 0);
    z-index: 9980;
}

.discord-panel:hover {
    background-color: rgba(38, 79, 110, 0.3);
    box-shadow: 0 0 20px rgba(38, 79, 110, 0.5);
    transform: translateX(-50%) scale(1.05);
}

.discord-icon {
    width: 40px;
    height: 40px;
    background-size: cover;
    background-position: center;
    background-image: url('resources/discord-icon.png');
    transition: 0.3s;
}

.discord-panel:hover .discord-icon {
    filter: brightness(140%);
    transform: 1.15;
}

.discord-text {
    flex: 4;
    position: relative;
    left: 3%;
    font-family: Minecraft;
}

.discord-text h3 {
    font-size: 1rem;
    margin-bottom: 5px;
    font-weight: medium;
}

.discord-text p {
    font-size: 0.8rem;
    color: #ccc;
}

.discord-arrow {
    width: 10px;
    height: 10px;
    position: relative;
    border-top: 2px solid white;
    border-right: 2px solid white;
    transform: rotate(45deg);
    transition: transform 0.3s;
}

.discord-panel:hover .discord-arrow {
    transform: translateX(3px) rotate(45deg);
}

.contact-panel {
    position: fixed;
    bottom: 365px;
    left: 50.7%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s, transform 0.3s;
    background: rgba(38, 79, 110, 0.1);
    backdrop-filter: blur(10px);
    width: 290px;
    opacity: 0;
    animation: fadeIn 0.5s forwards 0.5s;
    box-shadow: 0 0 10px rgba(38, 79, 110, 0);
    transform: scale(1);
}

.contact-panel:hover {
    background-color: rgba(38, 79, 110, 0.3);
    box-shadow: 0 0 20px rgba(38, 79, 110, 0.5);
    transform: scale(1.05);
}

.contact-panel:hover .contact-icon {
    filter: brightness(140%);
    transform: 1.15;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background-size: cover;
    background-position: center;
    background-image: url('resources/link-icon.png');
    transition: 0.3s;
}

.contact-text {
    flex: 4;
    position: relative;
    left: 3%;
    font-family: Minecraft;
}

.contact-text h3 {
    font-size: 1rem;
    margin-bottom: 5px;
    font-weight: bold;
}

.contact-text p {
    font-size: 0.8rem;
    color: #ccc;
}

.contact-arrow {
    width: 10px;
    height: 10px;
    position: relative;
    border-top: 2px solid white;
    border-right: 2px solid white;
    transform: rotate(45deg);
    transition: transform 0.3s;
}

.contact-panel:hover .contact-arrow {
    transform: translateX(3px) rotate(45deg);
}

.donate-panel {
    position: fixed;
    bottom: 295px;
    left: 50%;
    transform: translateX(-50%) scale(1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s, transform 0.3s;
    background: rgba(38, 79, 110, 0.1);
    backdrop-filter: blur(10px);
    width: 90%;
    max-width: 600px;
    opacity: 0;
    animation: fadeIn 0.5s forwards 0.5s;
    box-shadow: 0 0 10px rgba(38, 79, 110, 0);
}

.donate-panel:hover {
    background-color: rgba(38, 79, 110, 0.3);
    box-shadow: 0 0 20px rgba(38, 79, 110, 0.5);
    transform: translateX(-50%) scale(1.05);
}

.donate-panel:hover .donate-icon {
    filter: brightness(140%);
    transform: 1.15;
}

.donate-icon {
    width: 40px;
    height: 40px;
    background-size: cover;
    background-position: center;
    background-image: url('resources/donate-icon.png');
    transition: 0.3s;
}

.donate-text {
    flex: 4;
    position: relative;
    left: 1.70%;
    font-family: Minecraft;
}

.donate-text h3 {
    font-size: 1rem;
    margin-bottom: 3px;
    font-weight: bold;
}

.donate-text p {
    font-size: 0.8rem;
    color: #ccc;
}

.donate-arrow {
    width: 10px;
    height: 10px;
    position: relative;
    border-top: 2px solid white;
    border-right: 2px solid white;
    transform: rotate(45deg);
    transition: transform 0.3s;
}

.donate-panel:hover .donate-arrow {
    transform: translateX(3px) rotate(45deg);
}

@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes popUp {
    from { transform: translateY(0) scale(0.8); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes popDown {
    from { transform: translateY(0) scale(1); opacity: 1; }
    to { transform: translateY(0) scale(0.8); opacity: 0; }
}

@keyframes fall {
    0% { transform: translateY(-10vh) rotate(0deg); }
    100% { transform: translateY(110vh) rotate(360deg); }
}

.snowflake {
    position: absolute;
    top: -10px;
    background: white;
    border-radius: 0;
    pointer-events: none;
    animation: fall linear infinite;
    width: 2px;
    height: 2px;
}

/* Уведомление о cookies */
.cookie-notification {
    position: fixed;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(38, 79, 110, 0.1);
    backdrop-filter: blur(10px);
    padding: 8px;
    border-radius: 10px;
    color: white;
    font-family: 'Minecraft', sans-serif;
    text-align: center;
    z-index: 9999;
    display: none;
    width: 30%;
    max-width: 400px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    font-size: 0.8rem;
}

.cookie-notification p {
    margin: 0;
    font-size: 0.8rem;
}

.cookie-buttons {
    margin-top: 5px;
}

.cookie-buttons button {
    background: rgba(38, 79, 110, 0.1);
    border: none;
    padding: 3px 8px;
    border-radius: 5px;
    color: white;
    cursor: pointer;
    margin: 0 5px;
    font-family: 'Minecraft', sans-serif;
    transition: background 0.3s ease-in-out;
    font-size: 0.8rem;
}

.cookie-buttons button:hover {
    background: rgba(38, 79, 110, 0.6);
}