/************** Включаем видимость блоков **************/
 {

  border: 1px solid #ccc;

}
/************** BODY **************/
body{
    margin:0 !important;
    height: 100%;
    width: 100%;
    font-family: "Times New Roman", Georgia, Serif;
}

html {
    display: flex;
    width: 100%;
    height: 100%;
}



/************** Топ сайдбар **************/
.logo-container {
    width: 150px;
    height: 50px;
    padding: 0.5em;
    border: 0px solid #ccc;
    border-radius: 5%;
    z-index: 2; /* слой над другими элементами */
}

.logo {
    width: 150px;
    height: 50px;
    border: 0px solid #ccc;
    border-radius: 5%;
    /*  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); */
}

.sidebar-top {
    font-size: 20px;
	height: 4em;
  	min-height: 4em; /* prevent shrinking */
	max-height: 4em; /* prevent growing */
	width: 100%; /* ширина */
	background-color: #333; /* фон */
	color: #fff; /* цвет текста */
	z-index: 1;
	display: flex;
    align-items: center;
}

.sidebar-top ul , .modal register-form ul {
	list-style: none; /* убираем точки перед элементами списка */
	display: flex; /* отображение списка в строке */
    width: 100%;
	justify-content: space-between; /* равномерное распределение элементов */
    margin-right: 2em;  /* межстрочное списка */
    align-items: center;
}

.sidebar-top li {
	margin-right: 2em;  /* межстрочное списка */
}

.sidebar-top a {
	/*padding: 0em 0em;  отступы для ссылок */
	color: #fff; /* цвет текста ссылок */
	text-decoration: none; /* минус подчер */
}

.sidebar-top a:hover {
	color: #ccc; /* цвет текста ссылки при наведении курсовра */
}

.sidebar-top button:focus {
    outline: none; /* убираем контур фокуса */
    box-shadow: 0 0 0.5em #ccc; /* добавляем тень фокуса */
}

.sidebar-top  button, .modal button {
	background-color: #333; /* фон кнопки */
	color: #fff; /* цвет текста кнопки */
	border: 0.00em solid #ccc;
	border-radius: 1em;
	padding: 0.5em 0.7em; /* отступы для кнопки */
	cursor: pointer; /* курсор указки */
	font-size: 30px;
}


.sidebar-top button:hover, .modal button:hover {
	background-color: #444; /* фон кнопки при наведении курсора */
}

.sidebar-top button i {
	margin-right: 0em; /* отступ между иконкой и текстом */
}



/************** Время*/

#current-time {
    display: flex;
	position: absolute;
	right: 1em;
	font-size: 40px;
	font-weight: bold;
	color: #fff;
	background-color: #333;
	border-radius: 0.25em;
	z-index: 3;


}

/************** Кнопка "настройк"*/
#config_btn {
    display: flex;
	position: absolute;
	right: 5.5em;
	font-size: 40px;
	font-weight: bold;
	color: #fff;
	background-color: #333;
	border-radius: 0.25em;
	z-index: 3;


}

/************** Кнопка авторизации*/
#login_btn {
    display: flex;
	position: absolute;
	right: 8em;
	font-size: 40px;
	font-weight: bold;
	color: #fff;
	background-color: #333;
	border-radius: 0.25em;
	z-index: 3;


}

/************** Кнопка поиск (убрать переделать)*/
#search_btn {
    display: flex;
	position: absolute;
	margin-left: 6em;
    font-size: 40px;
	font-weight: bold;
	color: #fff;
	background-color: #333;
	border-radius: 0.25em;
	z-index: 3;


}



/************** Форма ввода для поиска*/
#search-input {
	margin-left: 1.5em;
	width: 7em;
	height: 1.2em;
	padding: 0.45em;
	font-size: 20px;
	border: none;
	border-radius: 0.25em;
	/*box-shadow: 0 0 0.5empx rgba(0, 0, 0, 0.5);*/
}






/************** Левый сайдбар **************/
.sidebar-left {
    display: flex;
	width: 11em;
	position: relative; /* фиксация */
	height:100%; /* высота */
	background-color: #333; /* фон */
	color: #fff; /* цвет текста */
	font-size: 20px;
    overflow:scroll;
    scrollbar-width: none;
}

.sidebar-left ul {
	list-style: none; /*  минус маркер списка */
	padding: 0em; /* минус отсутп */
	margin: 0; /* минус отсутп */
}

.sidebar-left li {
	margin-bottom: 0.02em; /* межстрочное списка */
}


.sidebar-left a {
	color: #fff; /* цвет текста ссылок */
	text-decoration: none; /* минус подчер */
}

.sidebar-left a:hover {
	color: #ccc; /* цвет текста ссылки при наведении курсовра */
}

.sidebar-left  button {
	background-color: #333; /* фон кнопки */
	color: #fff; /* цвет текста кнопки */
	border: 0.00em solid #333;
	border-radius: 0px;
	padding: 0em 0em; /* отступы для кнопки */
	cursor: pointer; /* курсор указки */
	width: 11em; /* фиксированная ширина для всех кнопок */
	height: 2.5em; /* фиксированная высота для всех кнопок */
	text-align: left; /* выравнивание текста по левому краю */
	padding-left: 1em; /* отступ слева */
	white-space: nowrap; /* предотвратить перенос текста на новую строку */
	font-size: 20px;
}

.sidebar-left button:focus {
    outline: none; /* убираем контур фокуса */
    box-shadow: 0 0 0.5em #ccc; /* добавляем тень фокуса */
}

.sidebar-left button:hover {
	background-color: #444; /* фон кнопки при наведении курсора */
}

.sidebar-left button i {
	margin-right: 10px; /* отступ между иконкой и текстом */
}

.sidebar-left button:first-child {
    margin-top: 10px; /* отступ сверху для первой кнопки */
}

.sidebar-left li:last-child button {
    margin-right: 0px; /* добавляем отступ справа только для последней кнопки */
}



/************** Блок видеопросмотра удалить и переделать **************/

.video-container {
	width: 640px; /**/
	height: 340px; /**/
	/*margin: 800px left 00 top; /**/
	position: relative; /* позиционирование*/
	padding-bottom: 50px; /**/


}

	#play-button {
	background-color: #4CAF50; /* цвет кнопки фон*/
	color: #fff; /* цвет текст*/
	padding: 10px 20px; /* отступ*/
	border: none; /* рамка минус*/
	border-radius: 5px; /* закругление углов*/
	cursor: pointer; /* замена значка курсора*/
}

	#play-button:hover {
	background-color: #3e8e41; /* цвет кнопик при нажатии*/
}

/************** конц блока  **************/




/************** Основной блок **************/

.main{
	width: 100%; /* ширина  */
    height: calc( 100% - 4em);
	background-color: #f7f7f7; /* фон */
	display: flex;
    font-size: 20px;
    flex-direction: row;
}

.content{
    display: flex;
    position: relative;
    flex: 1; /*занимать оставшееся пространство */
    flex-direction: column;
    max-width: calc(100% - 11em);
    max-height: 100%;
    font-size: 20px;
    overflow:scroll;
    scrollbar-width: none;
}

/************** категории*/
.category{
    display: inline-flex;
    font-size: 20px;
    align-content: center;
    width: calc(100% - 1.5em);
    height: 3em;
    margin-top: 0.5em;
    margin-left: 1.5em;
}

.category-name{
    display: flex;
    position: relative;
    width: 10em;
    height: 100%;
    align-items: center; /* Центрируем текст по горизонтали */
    text-align: left; /* Центрирование текста */
    font-size: 30px;
    font-weight: bolder;
    color: #333;
    margin-right: 1.5em;
    margin-left: 1.5em;
}



/************** футер когда лента карточек, футер открытой карточки **************/

.footer , .poster-film-card-footer{
    display: flex;
    flex: 1;
    max-height: 100%;
    max-width: 100%;
}


.footer-content , .poster-film-card-info {
    display:inline-block;
    position: relative;
    margin-left: 1.5em;
    margin-top: 1.5em;
    max-width: 50%;
    align-items: center; /* Центрируем текст по горизонтали */
    text-align: left; /* Центрирование текста */
    font-size: 28px;
    font-weight: bolder;
    color: #333;
}


.footer-content div , .poster-film-card-info div{
    line-height: 1.5; /* Устанавливаем межстрочный интервал */
    margin-bottom: 0.5em; /* Добавляем отступ между элементами */
}

.poster-navi{
    display: flex;
    /*position: block; */
    font-size: 1em;
    align-items: center;
    height: 3em;
}

/************** Кнопки для листания списка карточек, кладем в блок категории*/
.poster-button-next , .poster-button-prev {
    display: flex;
    position: relative;
    color: #333;
    font-size: 3em;
    cursor: pointer;
    width: 0.6em;
}

.poster-button-no {
    display: flex;
    position: relative;
    color: #333;
    font-size: 3em;
    width: 0.6em;
}

.posters {
    font-size: 20px;
    position: relative;
    display: flex;
    max-width: 100%;
    max-height: 50em;
    margin-top: 0.5em;
}

.poster-card {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    max-width: 13em;
    max-height: 25em;
    margin-top: 1em;
    margin-left: 1.5em;
    border-radius: 0.1em 4em 0.1em 4em;
    align-items: center; /* Центрирует дочерние элементы по вертикали */
    aspect-ratio: 9 / 16;
    flex: 1 1 auto;
}

.poster-card-info{
    position: relative;
    display: flex;
    flex: 0 0 auto;
    width:100%;
    height: 3em;
    align-items: center; /* Центрируем текст по горизонтали */
    text-align: left; /* Центрирование текста */
    font-size: 25px;
    font-weight: bolder;
    color: #333;
    text-align: center; /* Центрирование текста */
}

.poster-card img {
    display: flex;
    position: relative;
    max-width: 13em;
    max-height: 21em;
    object-fit: cover;
    border-radius: 0.1em 4em 0.1em 4em;
}

.poster-button {
    display: flex;
    position: relative;
    font-size: 20px;
    font-weight: bold;
    border: none;
    border-radius: 0.1em 4em 0.1em 4em;
    background-color: #337ab7;
    color: #fff;
    cursor: pointer;
    max-height: 100%;
    max-width: 100%;
}

.poster-button:hover {
    background-color: #333;
}

.poster-button:focus {
    outline: 0.01em solid #337ab7; /* Добавляем заметный контур фокуса */
    box-shadow: 0 0 1em #337ab7; /* Добавляем тень фокуса */
    border-radius: 0.1em 4em 0.1em 4em;
}



/************** Карточка фильма **************/
.poster-film-container{
    display:flex;
    max-height: 100%;
    flex: 1;
    max-width: 100%;
    max-height: 50em;
}

.poster-film-card{
    position: relative;
    display: flex;
    flex-wrap: wrap;
    max-width: 17em;
    max-height: 25em;
    margin-top: 1em;
    margin-left: 1.5em;
    border-radius: 0.1em 4em 0.1em 4em;
    align-items: center; /* Центрирует дочерние элементы по вертикали */
    aspect-ratio: 9 / 16;
    flex: 1 1 auto;
}

.poster-film-card img{
    display: flex;
    position: relative;
    max-width: 27em;
    max-height: 25em;
    object-fit: cover;
    border-radius: 0.1em 4em 0.1em 4em;
    aspect-ratio: 9 / 16;
    flex: 1 1 auto;
}


.poster-film-card-button{
    display: inline-flex;
    position: relative;
    font-size: 20px;
}

.card-button {
    display: flex;
    position: relative;
    max-height: 1em;
    max-width: 14em;
    margin-top: 1em;
    margin-left: 1em;
    padding: 0.5em 1em;
    font-size: 30px;
    font-weight: bold;
    border: none;
    border-radius: 1em;
    background-color: #337ab7;
    color: #fff;
    cursor: pointer;
}

.card-button:focus {
    outline: 0.01em solid #337ab7; /* Добавляем заметный контур фокуса */
    box-shadow: 0 0 1em #337ab7; /* Добавляем тень фокуса */
    border-radius: 1em;
}



/*=== видеоплеер===*/


.video-container {
    display:block;
    background: #000;
    width: 960px;
    height: 540px;


}

video {
    display: block;
    width: 960px;
    height: 540px;
}

.progress-container {
   display: flex;
    position: relative;
    width: 100%;
   bottom: 2em; /* Отступ от нижней части конright: 10px; /* Отступ справа */

}

#progressBar {
    display: flex;
    width: 80%; /* Прогресс-бар занимает всю ширину */
    left: 10px; /* Отступ слева */
    right: 10px;
    margin-left: 10px;


}

.controls {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background: rgba(0, 0, 0, 0.7);
    position: relative;
    width: calc(100% - 20px);
    bottom: 50px;



}

.controls button {
    color: white;
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
}



.time-display {
    display: flex;
    position: relative;
    left: calc(100% - 120px);
    color: white;
    width: 110px;
    bottom: 63px;
}


.volume-container {
    display: flex;
    align-items: center; /* Центрируем по вертикали */
    height: 1em; /* Высота контейнера */
    transform: rotate(270deg); /* Поворачиваем ползунок на 270 градусов */

}

#volumeButton {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1em; /* Размер иконки */
}

#volumeControl {
    width: 8em; /* Ширина ползунка громкости */
    height: 5em;
    display: none; /* Скрываем ползунок по умолчанию */
    position: absolute; /* Позиционируем ползунок */
    bottom: 23em; /* Расстояние от кнопки громкости */
    right: 0.5em; /* Центрируем по горизонтали */
    z-index: 10; /* Убедитесь, что ползунок выше других элементов */
    transform: rotate(270deg); /* Поворачиваем ползунок на 270 градусов */
}

 /* Стили для модального окна */

.modal {
    display: none; /* Скрыто по умолчанию */
    position: fixed; /* Остается на месте */
    z-index: 3; /* Сверху */
    left: 0;
    top: 0;
    width: 100%; /* Полная ширина */
    height: 100%; /* Полная высота */
    overflow: auto; /* Включает прокрутку, если необходимо */
    background-color: rgba(0,0,0       ,0.4); /* Черный фон с прозрачностью */
	font-size: 1.5em;
	color: #fff;
}


.modal-content {
    background-color: #333;
    margin: 15% auto; /* 15% сверху и центрирование */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Ширина */
    max-width: 500px; /* Максимальная ширина */
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover, .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.error {
    color: red;
    font-size: 14px;
    margin-bottom: 10px;
}

.button-submit {
    margin-top: 0.2em; /* Установите нужное значение отступа */
}

#register-form , #login-form{
    display: flex;
    flex-direction: column; /* Вертикальное расположение элементов */
}
