@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

html {
    height: 100%; 
    overflow-y: auto; 
    overflow-x: hidden; 
	max-width: 100%;
}

body {
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Cyan Bold Capitals', sans-serif;
    background: url(https://dphmn.pw/LOGO/background183.jpg?v=2) no-repeat center top fixed;
    background-size: cover;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    box-sizing: border-box;
    min-height: 100%;
}

::-webkit-scrollbar {
    width: 0px; /* Для веб-браузеров на основе WebKit (Chrome, Safari и т.д.) */
}

-ms-overflow-style: none;  /* Для Internet Explorer 10+ */
scrollbar-width: none;  /* Для Firefox */


#paragraph1 {
    margin-bottom: 10px;
}

#paragraph2 {
    margin-top: 10px;
}

.container {
	position: relative;
	z-index: 1;
	width: 40%;
	max-width: 800px;
	padding: 20px;
	display: flex;
	flex-direction: column;
	background-color: rgba(0, 0, 0, 0.5);
	border-radius: 10px;
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
	text-align: center;
	align-items: center;
	margin: auto;
	margin-top: 350px;
	margin-bottom: 350px;
	animation: none;
	box-sizing: border-box;
}

@font-face {
  font-family: 'Cyan Bold Capitals';
  font-weight: bold;
  font-style: normal;
}

.gradient-h {
  font-family: 'Cyan Bold Capitals', sans-serif;
  background: linear-gradient(to bottom, white, violet);
  background: -webkit-linear-gradient(top, white, violet); /* Для старых версий Chrome и Safari */
  background: -moz-linear-gradient(top, white, violet); /* Для старых версий Firefox */
  background: -o-linear-gradient(top, white, violet); /* Для старых версий Opera */
  background: linear-gradient(to bottom, white, violet); /* Стандартный синтаксис */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  color: transparent;
  background-clip: text;
  margin: 0; /* Сброс марджина, если это заголовок */
  text-shadow: 0 0 10px #800080;
}

.gradient-text {
  font-family: 'Cyan Bold Capitals', sans-serif;
  background: linear-gradient(to bottom, violet, yellow, orange, red);
  background: -webkit-linear-gradient(top, white, yellow); /* Для старых версий Chrome и Safari */
  background: -moz-linear-gradient(top, white, yellow); /* Для старых версий Firefox */
  background: -o-linear-gradient(top, white, yellow); /* Для старых версий Opera */
  background: linear-gradient(to bottom, white, yellow); /* Стандартный синтаксис */

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  color: transparent;
  background-clip: text;
  text-shadow: 0 0 10px #800080;
}

@keyframes pulsate {
    0% { box-shadow: 0 0 5px #5a99d4, 0 0 25px #5a99d3, 0 0 50px #5a99d4, 0 0 100px #5a99d4; }
    50% { box-shadow: 0 0 10px #5a99d4, 0 0 50px #5a99d4, 0 0 100px #5a99d4, 0 0 200px #5a99d4; }
    100% { box-shadow: 0 0 5px #5a99d4, 0 0 25px #5a99d4, 0 0 50px #5a99d4, 0 0 100px #5a99d4; }
}

.pulsate {
    animation: pulsate 1s infinite;
}


@keyframes glow {
	0%, 100% {
        box-shadow: none;
    }
    50% {
        box-shadow: none;
    }
}

.glitch-text {
	will-change: text-shadow;
	animation: none;
}

@keyframes text-zoom2 {
	0% {
		font-size: 36px;
	}
	100% {
		font-size: 44px;
	}
}

h1 {
	color: #800080;
	margin-bottom: 20px;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); 
	font-size: 36px;
	font-weight: bold;
	transition: font-size 0.3s; 
}

p {
	color: #800080;
	margin-bottom: 30px;
	text-shadow: 0 0 10px rgba(255, 255, 0, 0.5);
	font-size: 18px;
	font-weight: bold; 
	transition: font-size 0.3s;
}

.buttons {
	display: flex;
	justify-content: center;
	gap: 20px;
	order: 4;
}

.button {
	position: relative;
	width: 64px;
	height: 64px; 
	padding: 0;
	background-color: rgba(255, 255, 255, 0.3); 
	border: 2px solid transparent;
	border-radius: 50%;
	cursor: pointer;
	overflow: hidden;
	transition: border-color 0.3s ease;
}

.button:hover {
	border-color: #fff; 
}

.icon {
	width: 64px;
	height: 64px;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%); 
	transition: filter 0.3s ease; 
}

.button:hover .icon {
	filter: brightness(70%);
}

.button-text {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: red;
	font-size: 14px;
	font-weight: bold;
	text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

p:hover {
	animation: none;
}

h1:hover {
	animation: text-zoom2 0.3s forwards;
}

.language-switch {
	position: fixed;
	top: 10px;
	right: 10px;
	z-index: 9999;
}

.header {
    font-size: 36px;
    font-weight: bold;
    animation: none;
	will-change: text-shadow;
	order: 1
}

.start-game {
  order: 2;
  margin-top: 25px;
}

.paragraph {
	font-size: 18px;
    font-weight: bold;
    animation: none;
	order: 3
}

.cookie-consent-banner {
    position: fixed;
    bottom: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 10px 20px;
    z-index: 10000;
    width: auto;
    max-width: 300px;
    border-radius: 5px;
    transition: bottom 0.5s ease; 
    opacity: 0;
    transition: opacity 0.5s ease;
}

.cookie-consent-banner p {
    font-size: 14px; /* Меньший размер шрифта */
    text-align: center; /* Текст по центру */
    margin-bottom: 12px; /* Отступ снизу */
	color: #fff;
}

.cookie-buttons {
    display: flex;
    justify-content: center; /* Выравнивание кнопок по центру */
}

.cookie-btn {
    padding: 5px 15px; /* Внутренние отступы кнопок */
    margin: 0 10px; /* Отступы между кнопками */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease; 
    font-size: 12px; 
}

.accept {
    background-color: #4CAF50;
    color: white;
}

.decline {
    background-color: #f44336;
    color: white;
}

.cookie-btn:hover {
    opacity: 0.9; 
}

@keyframes slideUp {
    0% {
        bottom: -100%; 
        opacity: 0;
    }
    100% {
        bottom: 20px; 
        opacity: 1;
    }
}

.cookie-consent-banner.show {
    animation: slideUp 0.5s forwards;
}

#countdownTimer {
    text-align: center;
    color: #fff;
    padding: 10px;
    font-family: 'Cyan Bold Capitals', sans-serif;
    font-size: 1.2em;
    margin-top: 20px;
    z-index: 1000; 
    position: relative;
	order: 4;
}

#countdownTimer span {
  font-weight: bold;
  color: #ff4500; 
  text-shadow:
    0 0 3px #FFD700, 
    0 0 5px #FFA500, 
    0 0 7px #FF4500; 
}

.countdownTimer p {
  text-align: center; 
  font-size: 1.2em;

  font-family: 'Cyan Bold Capitals', sans-serif;
  background: linear-gradient(to bottom, violet, yellow, orange, red);
  background: -webkit-linear-gradient(top, white, yellow); /* Для старых версий Chrome и Safari */
  background: -moz-linear-gradient(top, white, yellow); /* Для старых версий Firefox */
  background: -o-linear-gradient(top, white, yellow); /* Для старых версий Opera */
  background: linear-gradient(to bottom, white, yellow); /* Стандартный синтаксис */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  color: transparent;
  background-clip: text;
  margin: 0; /* Сброс марджина, если это заголовок */
  text-shadow: 0 0 10px #800080;
}

#countdownTimer .time-value {
  font-weight: bold;
  color: #fff;
  margin-right: 5px;
  display: inline; 
}

#countdownTimer .time-unit {
  font-family: 'Cyan Bold Capitals', sans-serif; /* Указываем желаемый шрифт */
    background: linear-gradient(to bottom, violet, yellow, orange, red); /* Градиент, как у абзацев */
	background: -webkit-linear-gradient(top, violet, yellow, orange, red); /* Для старых версий Chrome и Safari */
  background: -moz-linear-gradient(top, violet, yellow, orange, red); /* Для старых версий Firefox */
  background: -o-linear-gradient(top, violet, yellow, orange, red); /* Для старых версий Opera */
  background: linear-gradient(to bottom, violet, yellow, orange, red);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    background-clip: text;
    text-shadow: 0 0 10px #800080; /* Тень текста, как у абзацев */
}

#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1; 
}

.video-player {
    width: auto; 
    height: auto; 
}

.video-player video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.scroll-down-arrow {
    text-align: center;
    font-size: 24px;
    margin-top: 20px;
    cursor: pointer;
}

.page {
	position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
	flex-direction: column;
}

#firstPage {

    height: 100vh;
    width: 100%;
}

#secondPage {

    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100%;
}

.scroll-button {
    background-color: #FFFFFF;
    border-radius: 50%; 
    width: 64px; 
    height: auto;
    border: none; 
    cursor: pointer; 
    display: inline-block;
    margin: 0 auto; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); 
}

.scroll-button img {
	display: block;
    width: 30px;
    height: auto;
	cursor: pointer;
}

.scroll-button-container-down {
    position: relative; 
    width: 100%;
    text-align: center;
    margin-bottom: 250px; 
}

.scroll-button-container-up {
    position: relative; 
    width: 100%; 
    text-align: center;
    margin-top: 20px;
}


.video-switcher {
	display: flex;
	justify-content: center;
	margin-top: 40px;
}

.video-button {
	padding: 10px 20px;
	margin: 0 10px;
	background-color: #800080;
	color: white;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	transition: background-color 0.3s;
	font-size: 16px;
}

.video-button:hover {
	background-color: #4b0082;
}
	
.sidebar-menu {
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 0 10px 10px 0; /* Закругленные углы только справа */
    padding-top: 20px; /* Отступ сверху для контента */
    z-index: 1000;
}

.sidebar-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column; /* Отображение элементов меню в столбец */
}

.sidebar-menu ul li {
    padding: 10px 20px; /* Увеличенные внутренние отступы */
}

.sidebar-menu ul li a {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color 0.3s, color 0.3s;
    display: block; /* Добавлено для корректного отображения ссылок */
}

.sidebar-menu ul li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffc107;
}

.menu-gradient-text {
    font-family: 'Cyan Bold Capitals', sans-serif;
    background-clip: text;
    color: transparent;
}

.sidebar-menu ul li:last-child {
    margin-bottom: 20px; /* Отступ снизу после последнего элемента */
}

.sidebar-menu {
    width: auto; /* Ширина меню по содержимому */
    padding-right: 20px; /* Дополнительный внутренний отступ справа */
}



#page-navigation {
  position: fixed;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  z-index: 100;
}

.nav-petal {
  background-image: url(https://dphmn.pw/LOGO/bsmall.png);
  width: 50px;
  height: 50px;
  margin-bottom: 10px;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.3s;
  margin-right: 100px;
}

.nav-petal:hover,
.nav-petal.active {
  opacity: 1;
}

.sidebar-spoiler {
    display: none; /* Скрываем спойлер по умолчанию */
}

.chat-container {
    width: 90%;
    max-width: 800px;
    height: 90%;
    background-color: #1e1e1e;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #333;
}

.chat-header {
    background-color: #333333; 
    color: #ffd700;
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #333;
	font-weight: bold;
}

.chat-messages {
    flex: 1;
    padding: 10px;
    overflow-y: scroll;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: #1e1e1e;
}

/* Стили для скроллбара */
.chat-messages::-webkit-scrollbar {
    width: 10px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #2c2c2c;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 5px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #888;
}

.chat-message {
    padding: 5px;
    border-radius: 5px;
    background-color: #2c2c2c;
    border: 1px solid #333;
}

.chat-message .timestamp {
    font-size: 0.8em;
    color: #999;
}

.chat-message .channel,
.chat-message .username {
    margin-right: 5px;
}

.chat-message .text {
    white-space: pre-wrap;
    word-wrap: break-word;
}

.chat-message .text span.color-tag {
    font-weight: bold;
}

.chat-filters {
    display: flex;
    justify-content: space-around;
    padding: 10px;
    background-color: #333333;
    border-top: 1px solid #333;
}

.filter-button {
    background-color: #444;
    color: #ffffff;
    border: 1px solid #333;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    flex: 1;
    margin: 0 5px;
}

.filter-button.active {
    background-color: #ffd700;
    color: #333333; 
}

.filter-button:hover {
    background-color: #ffd700;
    color: #333333;
}

.channel-name-0 { color: #ffffff; } /* Белый для типа канала */
.channel-name-1 { color: #ffd700; } /* Золотой для типа канала */
.channel-name-7 { color: #8b4513; } /* Коричневый для типа канала */
.channel-name-12 { color: #d2b48c; } /* Бежевый для типа канала */
.channel-name-13 { color: #ffffff; } /* Белый для типа канала */
.channel-name-14 { color: #ffffff; } /* Белый для типа канала */
.channel-name-15 { color: #9370db; } /* Сиреневый для типа канала */
.channel-name-99 { color: #ff0000; } /* Красный для типа канала */

.username { color: #d2b48c; } /* Бежевый цвет для никнейма */

.message-0 { color: #ffffff; } /* Белый для сообщений в Общем канале */
.message-1 { color: #ffd700; } /* Золотой для сообщений в Мир канале */
.message-7 { color: #8b4513; } /* Коричневый для сообщений в Торговом канале */
.message-12 { color: #d2b48c; } /* Бежевый для сообщений в Горн канале */
.message-13 { color: #ffffff; } /* Белый для сообщений в Общем канале */
.message-14 { color: #ffffff; } /* Белый для сообщений в Общем канале */
.message-15 { color: #ba55d3; } /* Темный сиреневый для сообщений в Межсерв канале */
.message-99 { color: #ff0000; } /* Красный для сообщений в Системном канале */

@media (max-width: 768px) {
    
	html, body {
		overflow-x: hidden;
		width: 100%;
	}

	.header, h1 {
        font-size: 24px;
    }

    .paragraph, p {
        font-size: 12px;
    }
	
    #countdownTimer {
        font-size: 1em;
    }

    .button, .icon {
        width: 50px; 
        height: 50px;
    }

    .sidebar-menu {
        width: 100%; /* Полная ширина экрана */
        max-width: none; 
        margin: auto; 
    }

    .sidebar-menu ul {
        display: grid; 
        grid-template-columns: 1fr 1fr; 
        gap: 3px; 
        padding: 0;
        margin: 0;
        list-style: none; 
    }

    .sidebar-menu ul li {
        padding: 3px; 
    }

    .chat-filters {
        display: flex;
        flex-wrap: wrap; 
        justify-content: center; 
        padding: 10px;
        background-color: #333333;
        border-top: 1px solid #333;
    }

    .filter-button {
        background-color: #444;
        color: #ffffff;
        border: 1px solid #333;
        padding: 10px;
        border-radius: 5px;
        cursor: pointer;
        flex: 1 1 45%; 
        margin: 5px; 
    }

    .container {
        width: 90%;
        margin: 20px auto; 
        padding: 10px;
    }
	
    .page {
        width: 100%; 
        margin: 20px auto; 
    }

    .cookie-consent-banner, #particles-js {
        width: 100%; 
        margin: auto;
    }
	
    img {
        max-width: 100%;
        height: auto; 
    }
	
    .video-player {
        width: 100%; 
        height: auto; 
    }
	
    .video-player video {
        width: 100%; 
        height: auto; 
        object-fit: cover; 
    }
	
    #page-navigation {
        display: none; 
    }
    
    .language-switch {
        position: relative;
        top: 10px;
        right: 0;
    }
}