@font-face {
	font-weight: normal;
	font-style: normal;
	font-family: 'codropsicons';
	src:url('../fonts/codropsicons/codropsicons.eot');
	src:url('../fonts/codropsicons/codropsicons.eot?#iefix') format('embedded-opentype'),
		url('../fonts/codropsicons/codropsicons.woff') format('woff'),
		url('../fonts/codropsicons/codropsicons.ttf') format('truetype'),
		url('../fonts/codropsicons/codropsicons.svg#codropsicons') format('svg');
}

*, *:after, *:before { -webkit-box-sizing: border-box; box-sizing: border-box; }
.clearfix:before, .clearfix:after { content: ''; display: table; }
.clearfix:after { clear: both; }

/* Настройка родительского контейнера (обычно это body) */
/* Дополнение Google AI */
/* 1. Настраиваем базу — без этого вертикальное центрирование не сработает */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    /* Убираем лишние отступы, которые могут выталкивать контент */
}

/* 2. Делаем body флекс-контейнером на весь экран */
body {
    display: flex;
    flex-direction: column; /* Элементы стоят друг под другом */
    justify-content: center; /* Центр по вертикали */
    align-items: center;     /* Центр по горизонтали */
    
    /* Используем современную единицу измерения svh (Small Viewport Height) 
       Она учитывает панель навигации в мобильных браузерах */
    min-height: 100svh; 
}
/* Конец дополнения Google AI */

body {
	background: #c1c1c1 url(../img/myunsplash.jpg) no-repeat center bottom;
	color: #fff;
	font-size: 1em;
	font-family: 'Cuprum-Medium';
	/* Исправлено Google AI */
	/* min-height: 500px; */
}

a {
	color: #fff;
	text-decoration: none;
	outline: none;
}

a:hover,
a:focus {
	color: #ec5a62;
}

/* Header */
.codrops-header,
.sidebar {
	max-width: 50%;
	float: left;
	padding: 40px;
}

.sidebar {
	padding: 50px 50px 0 0;
	float: right;
	min-height: 9em;
}

.sidebar > nav {
	float: left;
	font-size: 1.5em;
	line-height: 1.75;
	text-align: center;
	margin: 0 250px 1em 0;
}

.sidebar > nav a {
	margin: 0 5px;
}

.codrops-header h1 {
	margin: 0;
	font-weight: 100;
	font-size: 4.5em;
	line-height: 0.75;
	color: #fff;
	letter-spacing: -1px;
}

.codrops-header h1 span {
	display: block;
	font-size: 31.5%;
	font-weight: 800;
	letter-spacing: 0px;
	text-indent: 5px;
	line-height: 1;
	padding: 1em 0;
	color: #000;
}
/* Дополнено Google AI */
/* Общие стили для всех экранов */
/* 3. Сбрасываем ваши старые стили, которые мешают */
.codrops-header {
    float: none !important;      /* Отключаем float */
    max-width: 100% !important;  /* Снимаем ограничение 50% */
    padding: 20px;
    text-align: center;
    margin: 0 !important;        /* Убираем внешние отступы */
}

.codrops-header h1 {
    margin: 0;
    /* Уменьшаем размер шрифта для смартфонов, чтобы он не вылезал за края */
    font-size: clamp(2em, 8vw, 4.5em); 
    line-height: 1.1;
}

/* 4. Если у вас есть другие блоки (результаты поиска), они тоже встанут по центру.
   Если нужно, чтобы центрировался ТОЛЬКО заголовок, а поиск был ниже — 
   добавьте это свойство блоку поиска: */
#results {
    width: 100%;
}
/* Конец дополнения Google AI */ 

/* To Navigation Style */
.codrops-links {
	text-transform: uppercase;
	font-weight: 800;
	font-size: 1.5em;
	line-height: 2.2;
}

.codrops-links a {
	display: inline-block;
	padding: 0 0.5em 0 0;
	margin: 0 1em 0 0;
	text-decoration: none;
	letter-spacing: 1px;
	position: relative;
}

.codrops-links a:first-child:after {
	content: '/';
	color: rgba(255,255,255,0.2);
	font-weight: 100;
	position: absolute;
	font-size: 2em;
	top: 50%;
	left: 100%;
	pointer-events: none;
	-webkit-transform: translateY(-50%);
	transform: translateY(-50%);
}

.codrops-icon span {
	display: none;
}

.codrops-icon:before {
	margin: 0 4px;
	text-transform: none;
	font-weight: normal;
	font-style: normal;
	font-variant: normal;
	font-family: 'codropsicons';
	line-height: 1;
	speak: none;
	-webkit-font-smoothing: antialiased;
}

.codrops-icon-drop:before {
	content: "\e001";
}

.codrops-icon-prev:before {
	content: "\e004";
}

/*
@media screen and (max-width: 60.625em) {
	.codrops-header,
	.sidebar {
		float: none;
		max-width: 100%;
		padding: 20px;
		text-align: center;
	}
	.sidebar > nav {
		float: none;
		margin: 100px 0.5em 0;
	}
*/
/* Изменено Google AI */
/* Адаптив для маленьких экранов (смартфонов) */
/* Адаптивность для смартфонов */
@media screen and (max-width: 60.625em) {
    .codrops-header h1 {
        font-size: 2.5em;        /* Уменьшаем шрифт для мобильных */
    }
}
}
