/* Главное */
@font-face {
    font-family: 'AcuminR';
    src: url('font/AcuminR.otf') format('opentype');
}

*{
	margin: 0 auto;
	font-family:'AcuminR';
}

/* Остальное */

body{
	background-color: #0f0f0f;
	color: aliceblue;
}


.div1{
	float: left;
	margin: auto;
	padding-right: 1%;
	display:grid;
	position: fixed; /* Это попытка сделать фиксированное меню */
}

header{
	display:flex;
}

header>img{
	margin: 0 auto;
}

.div1>ul{
	list-style: none;
}

div[class='list']{
	border-bottom: 1px solid #3f3f3f;
}

div[class='list'] > li {
	border-radius: 10px;
	margin-right: 10%;
	padding: 5px 0 5px 5px;
	cursor: pointer;
	user-select: none;
}

div[class='list'] > li:hover {
	background-color: rgba(155, 155, 155, 0.144);
	border-radius: 10px;
	transition: all 400ms ease;
}

div[class='left'] > h2 {
	margin: 10px 0 10px 20px;
}

div[class='list'] > li > a {
	font-size: 120%;
	text-decoration: none;
	color: aliceblue;
}

.div2, .profile-schem{
	display:inline-block;
	margin: 0 0 30px 30px;
	
}

.main-cards{
	padding-left:10vi; /* Это попытка сделать фиксированное меню */
    margin: auto; 
    text-align: center;
}

.card{
	cursor: pointer;
	text-align: left;
}

.card-body{
    display: flex;
    align-items: center; /* Выравнивание по вертикали */
    gap: 10px; /* Расстояние между текстом и изображением */
    justify-content: flex-start; /* Выравниваем по левому краю */
    word-wrap: break-word; /* Перенос длинных слов */
    overflow: hidden; /* Обрезка текста, если не умещается */
    white-space: normal; /* Разрешаем перенос строк */
}

.btn-sec{
	margin: 5px;
	text-decoration: none;
	font-weight: 1000;
	color: aliceblue;
	max-height: 42px;
}

.btn-title{
	justify-content: flex-start;
	text-align: left;
}

.card-bottom{
	margin-top: 5px;
}

.card>img{
	width: 330px;
	height: 210px;
	border-radius: 15px;
}

.main-box{
	max-width: 330px;
	border-radius: 0 0 8px 8px;
}

.text-second-card{
	margin-left: 5px;
}

.btn-main{
	border: 1px solid gray;
	border-radius: 5px;
	padding: 5px;
	text-decoration: none;
	color: aliceblue;
	font-weight: 400;
}

.btn-main>img{
	width: 20px;
	height: 20px;
	vertical-align: middle;
}

.btn-profile{
	vertical-align: middle;
	border-radius: 100px;
	width: 32px;
	height: 32px;

}

.text-second-card{
	color: gray;
	margin-top: 10px;
}


/* Profile */

.profile-bkg{
	margin: 0 10% 2% 10%;
	display:flex;
}

.profile-img{
	border-radius: 100px;
	width: 200px;
	height: 200px;
}

.profile-info{
	margin-left:5%;
	color: #aaa7a0;
	width: 120%;
}

.profile-info>div{
	color: aliceblue;
	font-size: 300%;
	font-weight: 1000;
}

.img-p{
	width: 330px;
	height: 210px;
	border-radius: 15px;
}

.main-cards-profile{
    margin: auto; 
    text-align: center;
}

.soc{
	height: 35px;
	width: 35px;
	padding: 5px;
	border-radius: 100px;
	background-color: #6868688e;
}

.soc:hover{
	transition: all 400ms;
	background-color: #9696968e;
}

.btn-nav{
	border: 1px solid gray;
	border-radius: 5px;
	padding: 5px;
	text-decoration: none;
	color: aliceblue;
	font-weight: 400;
	font-size: 150%;
}

.footer-ul{
	list-style: none;
	margin-top: 3px;
}

.footer-ul>li>a{
	
	text-decoration: none;
	color: rgb(87, 87, 87);
}

/* ==================Login/Registration====================== */

.form-reg-log{
	margin: 0 auto;
	border: 1px solid white;
	border-radius: 10px;
	padding: 20px;
}

.form-center{
	display: flex;
	justify-content: center; /* по горизонтали */
	align-items: center; /* по вертикали */
	height: 80vh; /* делаем контейнер на всю высоту экрана */
}

.form-control, .form-btn{
	color: white;
	background-color: #0f0f0f;
	border: 1px solid white;
	border-radius: 10px;
	padding: 5px;
	margin: 20px auto;
	display: flex;
	font-size: 200%;
}

.form-btn:hover{
	transition: all 400ms;
	background-color: #272727;
}

/*======================Show.php============================ */

.show-content{
	padding: 20px;
}

.show-content img{
	width: 100vh;
	height: 100%;
}

.show-dwn a{
	border: 1px solid white;
	border-radius: 5px;
	margin: 10px;
	padding: 10px;
	text-decoration: none;
	color: aliceblue;
}

.show-dwn a:hover{
	transition: all 400ms;
	background-color: #3f3f3f;
}

.show-comments{
	display:flow-root;
	width: 100vh;
	height: 100%;
	text-align: left;

}

.show-comment-text{
	text-align: left;
	margin:10px;
}

.comm-user{
	text-decoration: none;
	font-weight: 900;
	color: aliceblue;
}

.comm-write{
	border: 1px solid white;
	border-top: none;
	border-left: none;
	border-right: none;
	background-color: #0f0f0f;
	margin: 10px;
	padding: 10px;
	text-decoration: none;
	color: aliceblue;
	outline: none;
	width: 100vh;
	height: 100%;
}

/*======================upload.php============================ */

.upl-main{
	margin: 10vh;
	padding: 20px 0 0 0;
}

.upl-right{
	padding-left:30vh;
	margin: 5px;
}

.upl-label, .upl-input, button[type='submit']{
	font-size: 140%;
	margin: 20px;
	width: 300px;
}

.upl-input, button[type='submit']{
	border:1px solid white;
	border-radius: 10px;
	padding: 5px;
	background-color: #0f0f0f;
	color: aliceblue;
	cursor: pointer;
}

.upload-container {
	display: flex;
	border: 1px solid #ccc;
	padding: 0px;
	border-radius: 10px;
	width: 300px;
	margin: 5px 0 20px 20px;
}
.file-label {
	padding: 6px 12px;
	background-color: #272727;
	cursor: pointer;
	border-radius: 10px 0 0 10px;
}
.file-name {
	flex-grow: 1;
	padding: 6px;
	text-align: left;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	border-left:1px solid white;
}
.file-input {
	display: none;
}

.upl-form-text{
	display:block;
	border:1px solid white;
	border-radius: 10px;
	padding: 5px;
	margin: 0 50px 20px 20px;
}

.upl-form-label{
	color: #7e7e7e;
	
}

.upl-input-text{
	outline: none;
	padding: 5px;
	background-color: #0f0f0f;
	color: aliceblue;
	border: none;
	width: 98%;
	font-size: 120%;
}


.upl-form-text1{
	display:block;
	border:1px solid white;
	border-radius: 10px;
	padding: 5px;
	margin: 0 50vh 20px 20px;
	height: auto;
}

.upl-input-text1{
	outline: none;
	padding: 5px;
	background-color: #0f0f0f;
	color: aliceblue;
	border: none;
	width: 98%;
	resize: none;
	font-size: 120%;
	height: 100px;
}

/*======================edit.php============================ */

.edit-left{
	float: left;
	margin: auto;
	padding-right: 1%;
	display:grid;
}

.edit-right{
	display:inline-block;
	margin: 0 0 30px 30px;
}

/*======================users.php============================ */

.main-cards-users {
    display: flex;
    flex-direction: column;
    padding-left: 10vi; /* Это попытка сделать фиксированное меню */
    margin: auto;
    text-align: left; /* Align text to the left */
}

.div2-users {
    display: flex; /* Use flexbox for layout */
    margin: 0 0 30px 30px;
}

.div2-users img {
    width: 330px;
    height: 210px;
    border-radius: 15px;
    margin-right: 20px; /* Add space between image and text */
}

.main-box-users {
    text-align: left;
}

.card-body-users {
    word-wrap: break-word; /* Перенос длинных слов */
    overflow: hidden; /* Обрезка текста, если не умещается */
    white-space: normal; /* Разрешаем перенос строк */
}

.card-bottom-users {
    display: flex;
}

.card-users {
    cursor: pointer;
    width: 100vh;
    gap: 10px; /* Расстояние между текстом и изображением */
}

.show-dwn-users a {
    border: 1px solid white;
    border-radius: 5px;
    margin: 30px 10px 10px 10px;
    padding: 10px;
    text-decoration: none;
    color: aliceblue;
}

.show-dwn-users a:hover {
    transition: all 400ms;
    background-color: #3f3f3f;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.pagination a {
    color: aliceblue;
    padding: 8px 16px;
    text-decoration: none;
    border: 1px solid #ddd;
    margin: 0 4px;
    border-radius: 5px;
}

.pagination a:hover {
    background-color: #ddd;
    color: black;
}