* {
	font-family: "Montserrat", serif;
	scroll-behavior: smooth;
}

:root {
  --background-color: #f5f6f8;
  --header-footer-bg: #ffffff;
  --header-shadow: rgba(0, 0, 0, 0.08);
  --text-color: #000000;
  --button-theme-color: #0077FF;
  --button-theme-border: #cbcbcb;
  --button-search-color: #5181B8;
  --card-background: #ffffff;
  --card-shadow: rgba(0, 0, 0, 0.35);
  --link-color: #3c4247;
  --link-hover: #0057b8;
  --table-border: #e7e8ec;
  --table-shadow: transparent;
}

body.black {
	--background-color: #292929;
	--header-footer-bg: #313131;
	--header-shadow: #3d3d3d;
	--text-color: #E0E1DD;
	--button-theme-color: #616161;
	--button-theme-border: #cbcbcb;
	--button-search-color: #616161;
	--card-background: #3f3f3f;
	--card-shadow: #c5c5c5;
	--link-color: #E0E1DD;
	--link-hover: #D0D0D0;
	--table-border: #b7b7b7;
	--table-shadow: #b7b7b7;
}

body {
	height: 100vh;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	background-color: var(--background-color);
	color: var(--text-color);
	scroll-behavior: smooth;
    min-height: 100vh;
}

header {
    background-color: var(--header-footer-bg);
    color: white;
    padding: 10px 0;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 2px 3px var(--header-shadow);
    position: relative;
}

button.menu-toggle {
	margin: 20px;
	border: 3px solid #cdcdcd;
	border-radius: 30px;
	height: 50px;
	width: 50px;
	background: #0077FF;
	display: flex;
	align-items: center;
	justify-content: center;
}

.menu {
	justify-content: center;
	align-items: center;
}

.cursor-circle {
    position: fixed;
    width: 18px;
    height: 18px;
    background-color: #000000;
    border-radius: 50%;
    pointer-events: none;
    transition: 
        transform 0.1s ease,
        background-color 0.05s linear,
        width 0.2s ease, 
        height 0.2s ease, 
        opacity 0.2s ease;
    transform: translate(-50%, -50%);
    opacity: 1;
    mix-blend-mode: difference;
    z-index: 2147483647;
    will-change: transform, background-color;
}

.cursor-circle.hover {
    width: 25px;
    height: 25px;
}

span{
	cursor: pointer;
}

img.copyimg{
	width: 20px;
	height: 20px;
}

body.black img.copyimg{
	width: 20px;
	height: 20px;
	filter: invert(1);
}

.menu.active a{
	color: white;
	list-style-type: none;
}

nav a:hover {
	text-decoration: underline;
	text-decoration-color: var(--link-hover);
}

a.logotext{
	font-size: 46px;
}

a.privacy {
	color: var(--text-color);
	text-decoration: underline;
	text-wrap: nowrap;
}

a.privacy_a {
	color: var(--text-color);
	font-size: 16px;
	margin-left: 20px;
	margin-top: 20px;
	margin-bottom: 20px;
}

a.about_a:hover {
	text-decoration: underline;
	text-decoration-color: var(--link-hover);
}

nav ul {
	list-style-type: none;
	padding: 0;
	text-align: center;
}

nav ul li {
	display: inline;
	margin: 0 15px;
}

body.black nav ul li a {
	color: white;
	text-decoration: none;
}

body.black nav ul li a:hover{
	text-decoration: underline;
	text-decoration-color: var(--link-hover);
}

.findermatch {
	display: flex;
	text-align: center;
	justify-items: center;
	flex-direction: column;
}

.fetchMatchbtn {
	width: 150px;
	height: 50px;
	margin: 10px auto;
	display: block;
	font-size: 16px;
	font-weight: bolder;
	box-shadow: 2px 2px 5px var(--card-shadow);
}

.match-info {
	text-align: center;
}

button {
	width: 110px;
	height: 50px;
	text-align: center;
	background-color: var(--button-theme-color);
	color: white;
	border: none;
	border-radius: 30px;
	cursor: pointer;
	font-size: 14px;
}

button:hover {
	background-color: var(--button-search-color);
}

button.btn-theme {
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 20px;
	border: 2px solid var(--button-theme-border);
	border-radius: 30px;
	height: 50px;
	width: 50px;
}

button img {
    height: 26px;
    width: 26px;
    margin: 0;
    filter: invert();
}

button.back-to-top {
	width: 50px;
	height: 50px;
}

#back-to-top {
	display: none;
	position: fixed;
	bottom: 20px;
	right: 20px;
	z-index: 99;
	outline: none;
	color: white;
	cursor: pointer;
	border-radius: 30px;
	font-size: 18px;
	border: 2px solid white;
	box-shadow: 1px 1px 5px #b6b6b6;
}

#back-to-top:hover {
	background-color: var(--button-search-color);
}

a {
	text-decoration: none;
	font-family: "Montserrat", serif;
	font-size: 18px;
	color: var(--link-hover);
	padding: 10px;
	font-optical-sizing: auto;
	font-weight: 600;
	font-style: normal;
}

a.findermatch_text{
	text-decoration: none;
	font-family: "Montserrat", serif;
	font-size: 18px;
	color: var(--link-color);
	padding: 20px;
	padding-bottom: 0px;
	font-optical-sizing: auto;
	font-weight: 600;
	font-style: normal;
	width: 60%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	align-self: center;
}

a.index_a {
	text-decoration: none;
	font-family: "Montserrat", serif;
	font-size: 18px;
	color: var(--link-hover);
	padding: 0px;
	font-optical-sizing: auto;
	font-weight: 600;
	font-style: normal;
}

a.index_a:hover {
	color: var(--link-hover);
	text-decoration: underline;
}

h1 {
	text-align: center;
	margin: 20px 0;
	color: var(--link-color);
}

h1.heroesh1{
	text-align: center;
	margin: 30px 0;
	color: var(--link-color);
}

.input-300px {
    width: 300px;
    padding: 10px;
    margin: 10px auto;
    display: block;
    border: 2px solid #b7b7b7;
    border-radius: 20px;
    text-align: center;
    font-size: 16px;
}

.input-full,
.textarea-full {
    width: 100%;
    border: 2px solid #ddd;
    padding: 10px;
	margin: 10px auto;
	display: block;
	border-radius: 20px;
	text-align: center;
	font-size: 16px;
}

#results {
	border-radius: 5px;
	padding: 20px;
	margin: 20px 0;
	max-height: 400px;
	flex-direction: row;
	display: flex;
}

table {
	font-family: "Montserrat", serif;
	width: 80%;
	margin: 20px auto;
	border-collapse: separate;
	border-spacing: 0;
	border-radius: 30px;
	overflow: hidden;
	box-shadow: 1px 1px 20px #b6b6b6;
}

th, td {
	border: none;
	overflow: hidden;
	padding: 10px;
	cursor: pointer;
	font-size: 18px;
	text-align: center;
	color: var(--link-color);
}

th {
	font-family: "Montserrat", serif;
	text-align: center;
}

th:hover {
	color: var(--link-color);
}

tbody {
	color: black;
}

tr:hover {
	background-color: rgba(220, 220, 220, 0.2);
	color: var(--link-color);
}

td:hover {
	background-color: rgba(160, 160, 160, 0.2);
}

.results-container {
	flex-wrap: wrap;
	justify-content: center;
	position: relative;
	transition: filter 0.5s;
}

.card {
	color: var(--text-color);
	margin: 5px 70px;
	display: flex;
	background-color: var(--card-background);
	border-radius: 20px;
	padding: 15px;
	width: 250px;
	height: 300px;
	text-align: center;
	transition: transform 0.2s;
	box-shadow: 2px 2px 5px var(--card-shadow);
}

.card.blur {
	filter: blur(5px);
}

.card:hover {
	transform: scale(1.05);
	filter: none;
	box-shadow: 7px 7px 7px var(--card-shadow);
}

.card img {
	margin-bottom: 50px;
}

.card h3 a img {
	margin: 10px 0;
}

.card a {
	text-decoration: none;
	color: var(--link-color);
}

.card a:hover {
	text-decoration: underline;
}

main.about {
	text-align: center;
}

main.about p {
	margin: 20px;
	text-align: left;
	font-size: 18px;
	color: var(--link-color);
}

main.about a.bigp {
	display: flex;
	justify-content: center;
	text-align: center;
	font-size: 24px;
	color: var(--link-color);
}

footer {
    background-color: var(--header-footer-bg);
    text-align: center;
    padding: 20px 0;
    margin-top: auto;
    display: block;
    box-shadow: 0px -2px 3px var(--header-shadow);
    width: 100%;
    min-height: 80px; /* Минимальная высота */
    flex-shrink: 0; /* Не сжимается в flex-контейнере */
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1500px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    box-sizing: border-box; /* Важно для правильного расчета размеров */
}

.copyright a {
	color: black;
}

body.black .copyright a,
body.black .company-name a,
body.black .contacts a {
    color: var(--text-color);
}

.copyright {
    font-size: 14px;
    flex: 1;
    text-align: center;
}

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

.btn-theme {
	display: flex;
	justify-content: center;
	align-items: center;
	border: 2px solid var(--button-theme-border);
	border-radius: 30px;
	height: 50px;
	width: 50px;
	background: var(--button-theme-color);
	cursor: pointer;
	transition: background 0.3s, border-color 0.3s;
}

.btn-theme img {
	height: 30px;
	width: 30px;
	margin: 0;
	filter: invert();
}

img.about-img{
	margin-top: 30px;
	width: 100px;
	height: 100px;
	border-radius: 20px;
	background-color: var(--background-color);
	overflow: hidden;
}

body.black img.about-img{
	margin-top: 30px;
	width: 100px;
	height: 100px;
	border-radius: 20px;
	background-color: var(--link-color);
	overflow: hidden;
}

img.medalss{
	filter: brightness(85%);
}

.contactsabout {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: 20px;
}

.index_logo {
	width: 93.06px;
	height: 30px;
}

.auth-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    background: var(--header-footer-bg);
    border-radius: 30px;
	box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.auth-container h2 {
    margin-bottom: 20px;
    color: var(--link-color);
}

body.black .auth-container h2 {
    margin-bottom: 20px;
    color: #fff;
}

.auth-container input {
    width: 100%;
    padding: 10px;
    margin: 25px 0;
    border: 1px solid #444;
    border-radius: 10px;
    background: var(--background-color);
    color: black;
}

body.black .auth-container input {
    width: 100%;
    padding: 10px;
    margin: 25px 0;
    border: 1px solid #444;
    border-radius: 10px;
    background: var(--background-color);
    color: white;
}

.auth-container button:hover {
    background: #0077FF;
}

body.black .auth-container button:hover {
    background: var(--button-theme-color);
}

.auth-container a {
    color: white;
    text-decoration: none;
    font-size: 16px;
}

body.black .auth-container a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 16px;
}

.error {
    color: #ff4444;
    margin-bottom: 15px;
}

.ad-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.ad-block {
    width: 1000px;
    height: 120px;
}

.left-ad {
    margin-right: 20px;
}

.right-ad {
    margin-left: 20px;
}

.input-container {
    position: relative;
    margin: 10px 0;
}

.input-label {
    position: absolute;
    top: 10px;
    left: 10px;
    color: #999;
    pointer-events: none;
    transition: 0.2s;
}

.input-field {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    text-align: center;
    font-size: 14px;
}

.input-field:focus + .input-label,
.input-field:not(:placeholder-shown) + .input-label {
    top: -20px;
    left: 5px;
    font-size: 14px;
    color: #333;
}

body.black .input-field:focus + body.black .input-label,
body.black .input-field:not(:placeholder-shown) + body.black .input-label {
    top: -20px;
    left: 5px;
    font-size: 14px;
    color: #fff;
}

.password-rules {
    color: #004695;
	text-align: left;
}

body.black .password-rules {
    color: #E0E1DD;
	text-align: left;
}

button .toggle-password {
    background: none;
    border: none;
    cursor: pointer;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #0077FF;
}

.steam-login-btn {
	width: 150px;
	height: 50px;
	font-size: 16px;
	font-weight: bolder;
	box-shadow: 2px 2px 5px var(--card-shadow);
    display: inline-block;
    transition: transform 0.3s;
}

.steam-login-btn:hover {
    transform: scale(1.05);
}

.auth-container {
    max-width: 450px;
    margin: auto;
    padding: 30px;
    background: var(--header-footer-bg);
    border-radius: 30px;
    box-shadow: 0 0 20px var(--header-shadow);
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 50%;
    left: 50%; 
    transform: translate(-50%, -50%);
}

body.black .auth-container {
    box-shadow: none;
}

#form-message {
    margin: 10px 0;
    padding: 10px;
    border-radius: 4px;
    display: none;
}

#form-message.error {
    color: red;
    background: #ffeeee;
    border: 1px solid #ffcccc;
    display: block;
}

#form-message.success {
    color: green;
    background: #eeffee;
    border: 1px solid #ccffcc;
    display: block;
}

.captcha {
    margin: 15px 0;
    padding: 10px;
}

form div {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

textarea {
    height: 100px;
    border-radius: 20px;
}

button[type="submit"] {
    background: var(--button-theme-color);
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    width: 150px;
    height: 60px;
}

.telegram-input {
    position: relative;
}

.telegram-input::before {
    content: "@";
    position: absolute;
    left: 8px;
    top: 30px;
    font-weight: bold;
    color: #555;
}

.telegram-input input {
    padding-left: 20px;
}

/* Стили для поиска с переключателем */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    padding: 8px 15px;
    border: 2px solid var(--table-border);
    border-radius: 20px;
    font-size: 14px;
    background: var(--background-color);
    color: var(--text-color);
    width: 0;
    opacity: 0;
    transition: width 0.5s ease, opacity 0.5s ease; /* Плавное изменение ширины и прозрачности */
    margin-right: 10px; /* Отступ между строкой поиска и кнопкой */
    overflow: hidden; /* Скрываем содержимое, когда строка поиска неактивна */
}

.search-input.active {
    width: 200px; /* Ширина строки поиска при активации */
    opacity: 1; /* Полная видимость */
}

.search-toggle {
    width: 50px; /* Увеличенная ширина кнопки */
    height: 50px; /* Увеличенная высота кнопки */
    border-radius: 50%;
    background: var(--button-theme-color);
    color: white;
    border: 2px solid var(--button-theme-border); /* Граница кнопки */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: background 0.5s ease, transform 0.5s ease; /* Плавный переход для фона и трансформации */
}

.search-toggle:hover {
    background: var(--button-search-color);
    transform: scale(1.1); /* Увеличение кнопки при наведении */
}

.search-input:focus {
    width: 200px; /* Ширина строки поиска при фокусе */
    outline: none; /* Убираем обводку */
    border-color: var(--button-theme-color); /* Цвет границы при фокусе */
}

/* Плавное закрытие строки поиска */
.search-input.closing {
    width: 0; /* Уменьшаем ширину до 0 */
    opacity: 0; /* Уменьшаем прозрачность до 0 */
    transition: width 0.5s ease, opacity 0.5s ease; /* Плавное изменение ширины и прозрачности */
}

.search-results-container {
    max-width: 800px;
    margin: 30px auto;
    padding: 20px;
}

.search-results-container h1 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--link-color);
}

.players-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.player-card {
    background: var(--card-background);
    border-radius: 15px;
    padding: 15px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 5px var(--card-shadow);
    transition: transform 0.2s;
}

.player-card:hover {
    transform: translateY(-5px);
}

.player-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.player-info {
    flex-grow: 1;
    min-width: 0; /* Для корректного переноса текста */
}

.player-username {
    font-weight: bold;
    color: var(--link-color);
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-steamid {
    font-size: 14px;
    color: var(--text-color);
    opacity: 0.8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.no-results {
    text-align: center;
    font-size: 18px;
    color: var(--text-color);
    padding: 30px;
    grid-column: 1 / -1;
}

.rank-image1, .rank-info {
    height: 80px;
    display: flex;
    align-items: center;
}