@font-face {
	font-family: 'days';
	src: local('days'), url('/fonts/Days.ttf') format('truetype');
}

@font-face {
	font-family: 'NotoSans-Regular';
	src: local('NotoSans'), url(/fonts/NotoSans-Regular.ttf) format('truetype');
}

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

.theme-switch {
	margin-left: 20px;
	position: relative;
	display: inline-block;
}

/* Стили для текстовой надписи в подсказке */
.theme-switch .tooltiptext {
	visibility: hidden;
  	width: 120px;
  	background-color: #555;
	opacity: 0;
  	color: #fff;
  	text-align: center;
  	border-radius: 6px;
  	padding: 5px;
  	position: absolute;
  	z-index: 1;
  	top: calc(100% + 5px); /* Расположение под кнопкой */
	left: calc(50% - 40px);
  	transform: translateX(-50%);
  	transition: opacity 0.3s ease, visibility 0.5s ease;
	transition-delay: 0.5s;
}

/* Показываем подсказку при наведении на объект */
.theme-switch:hover .tooltiptext {
	visibility: visible;
	opacity: 1;
}

#theme-toggle-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

#mySvg {
	fill: #345751;
	transition: all 0.3s ease;
}

main {
	display: flex;
	max-width: 1000px; /* Максимальная ширина контейнера */
	width: 100%;
	padding: 20px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Тень контейнера */
	flex-direction: column; /* Определяем направление столбцом */
}

body {
	display: flex;
	flex-direction: column;
	margin: 0;
	height: 100%;
	align-items: center;
}

.content {
	flex: 1;
}

#footer-container {
	display: flex;
	padding: 20px;
  }
  
  #footer-container > div {
	display: flex;
  }
  
  .links, .add-links {
	margin-right: 20px;
  }
  
  .link-yt, .link-tg, .link-vk, .link-pwa, .link-test {
	text-decoration: none;
	font-family: Verdana, Geneva, Tahoma, sans-serif;
	transition: all 0.3s ease;
  }
  
  .icon {
	width: 24px;
	height: 24px;
  }
  
  .link-yt {
	color: #bd4333;
  }
  
  .link-tg {
	color: #3485e0;
  }
  
  .link-vk {
	color: #0077FF;
  }
  
  .link-pwa {
	color: #0d47a1;
  }
  
  .link-test {
	color: #0d47a1;
  }
  
  .links {
	padding-left: 20px;
	font-family: days;
	text-align: center;
  }

  .links_title {
	padding-right: 10px;
  }
  
  .links li {
	padding-top: 10px;
	list-style: none;
	display: inline-block;
	margin-right: 10px; /* Устанавливает расстояние между иконками */
  }
  
  .add-links {
	padding-left: 20px;
	font-family: days;
	text-align: center;
  }
  
  .add-links li {
	padding-top: 10px;
	list-style: none;
  }
  
  .links.dark {
	color: #345751;
	transition: all 0.3s ease;
  }
  
  .links.dark .link-yt {
	color: #345751;
	transition: all 0.3s ease;
  }
  
  .links.dark .link-tg {
	color: #345751;
	transition: all 0.3s ease;
  }
  
  .links.dark .link-vk {
	color: #345751;
	transition: all 0.3s ease;
  }
  
  .add-links.dark {
	color: #345751;
	transition: all 0.3s ease;
  }
  
  .add-links.dark .link-pwa {
	color: #345751;
	transition: all 0.3s ease;
  }
  
  .add-links.dark .link-test {
	color: #345751;
	transition: all 0.3s ease;
  }
  
  .link-yt:hover {
	text-decoration: underline;
  }
  
  .link-tg:hover {
	text-decoration: underline;
  }
  
  .link-vk:hover {
	text-decoration: underline;
  }
  
  .link-pwa:hover {
	text-decoration: underline;
  }
  
  .link-test:hover {
	text-decoration: underline;
  }
  
  footer {
	background-color: #8bc34a;
	width: 100%;
	position: relative;
	transition: all 0.3s ease;
  }
  
  footer.dark-mode {
	background-color: #122925;
	transition: all 0.3s ease;
  }
  
  .copyright {
	display: flex;
	justify-content: center;
	align-items: center;
	color: white;
	position: relative;
	background-color: #476e1b;
	width: 100%;
	height: 30px;
	font-family: sans-serif;
	transition: all 0.3s ease;
  }
  
  .copyright.dark {
	color: #a5b4b1;
	background-color: #0f221f;
	transition: all 0.3s ease;
  }
  

body::after {
	content: '';
	position: fixed;
	top: 0;
	width: 100%;
	height: 100%;
	background-image: url('/background-blur.webp');
	background-size: cover;
	background-repeat: no-repeat;
	z-index: -1;

}

body.dark-mode::after {
	background-image: url('/background-dark-blur.webp');
}

p {
	margin-bottom: 10px;
}

html,body {
	height: 100%;
}

.main {
	color: #0d47a1;
	text-decoration: none;
	padding-left: 10px;
	transition: all 0.3s ease;
}

.content {
	padding-top: 80px;
	font-family: Verdana, Geneva, Tahoma, sans-serif;
}

header {
	position: fixed;
	width: 100%;
	top: 0;
	left: 0;
	z-index: 50;
	font-family: Verdana, Geneva, Tahoma, sans-serif;
	transition: top 0.3s;
	background-color: #8bc34a;
	transition: all 0.3s ease;
}

header h1 {
	font-family: days;
}

header.dark-mode {
	background-color: #122925;
	transition: all 0.3s ease;
}

header.dark-mode .main {
    color: #345751;
	transition: all 0.3s ease;
}

header.dark-mode #mySvg {
	fill: #8bc34a;
	transition: all 0.3s ease;
}

.header_body {
	z-index: 2;
	display: flex;
	justify-content: space-between;
	height: 80px;
	align-items: center;
}

.header_list {
	display: flex;
	position: relative;
	z-index: 2;
}

.header_list li {
	list-style: none;
	margin: 0px 0px 0px 20px;
}

.header_link {
	color: white;
	text-decoration: none;
	text-transform: uppercase;
	font-size: 18px;
	transition: all 0.3s ease;
}

.header_link.dark {
	color: #345751;
	transition: all 0.3s ease;
}

.header_menu {
	padding: 15px;
}

.main_small {
	display: none;
	opacity: 0;
}

noscript {
	width: 100%;
	height: 100%;
	text-align: center;
	background-color: #8bc34a;
	position: absolute;
	font-family: Verdana, Geneva, Tahoma, sans-serif;
	z-index: 1000;
}

@media screen and (max-width: 910px) {
	
.header_body {
	height: 80px;
}

.main_small {
	text-decoration: none;
	color: #0d47a1;
	display: block;
	padding-left: 20px;
	opacity: 1;
	transition: all 0.3s ease;
}

header.dark-mode .main_small {
	color: #345751;
	transition: all 0.3s ease;
}

.main {
	display: none;
	opacity: 0;
}

}

@media (max-width: 798px) {
body.lock {
	overflow: hidden;
}

.header_burger {
	display: block;
	position: relative;
	width: 30px;
	height: 20px;
	z-index: 3;
}

.header_burger:before,
.header_burger:after,
.header_burger span {
	content: '';
	position: absolute;
	background-color: #fff;
	width: 100%;
	height: 2px;
	left: -10px;
	transition: all 0.3s ease 0s;
}

.header_burger:before {
	top: 0;
	transform: translateY(0px);
}

.header_burger:after {
	bottom: 0;
	transform: translateY(0px);
}

.header_burger span {
	top: 50%;
	transform: translateY(-50%);
}

.header_burger.active:before {
	transform: rotate(45deg);
	top: 9px;
}

.header_burger.active:after {
	transform: rotate(-45deg);
	bottom: 9px;
}

.header_burger.active span {
	transform: scale(0);
}

.header_menu {
	position: fixed;
	top: -100%;
	left: 0;
	width: 100%;
	height: auto;
	padding-top: 20px;
	background-color: #8bc34a;
	padding: 55px 10px 20px 10px;
	transition: all 0.4s ease 0s;
	text-align: center;
}

.header_menu.dark {
    background-color: #0f221f;
    color: #345751;
}

.header_menu.active {
	top: 0;
	transition: all 0.4s ease 0s;
}

.header_body {
	height: 50px;
}

.header_list {
	display: block;
}

.header_link.dark {
    color: #345751;
}

.header_list li {
	margin: 0px 0px 20px 0px;
}

.content {
	padding-top: 65px;
}

.main {
	padding-left: 10px;
	font-size: 25px;
	display: block;
	opacity: 1;
	z-index: 4;
	position: relative;
}

.main_small {
	display: none;
	opacity: 0;
}

#footer-container {
	display: flex;
	flex-direction: column;
	padding: 20px;
	align-items: center;
}

#footer-container > div {
	flex-direction: column;
}

.links {
	text-align: center;
	padding-bottom: 10px;
}

.add-links {
	text-align: center;
}

.theme-switch .tooltiptext {
	left: 50%;
  	transform: translateX(-50%);
}

}