/* Главное */
@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;
}

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

.div2 {
    display: inline-block;
    margin: 0 0 30px 30px;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.card-body {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-start;
    padding: 10px;
    color: #e0e0e0; /* немного светлее текст */
}

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

.btn-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: #ff6f61; /* акцентный цвет заголовка */
}

.card-bottom {
    display: flex;
    align-items: center;
    padding: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.main-box {
    max-width: 330px;
    border-radius: 15px;
    overflow: hidden;
    background: linear-gradient(145deg, #1f1f1f, #2c2c2c); /* градиент для глубины */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

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

.btn-main {
    border: 1px solid #ff6f61;
    border-radius: 5px;
    padding: 5px;
    text-decoration: none;
    color: #ff6f61;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-main:hover {
    background-color: #ff6f61;
    color: #0f0f0f;
}

.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: #999;
    margin-left: 10px;
}

/* Profile */

.profile-bkg{
	margin: 0 10% 2% 10%;
	display: flex;
	background: linear-gradient(145deg, #1a1a1a, #2a2a2a); /* плавный градиент */
	padding: 20px;
	border-radius: 15px;
	box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.profile-img{
	border-radius: 100px;
	width: 200px;
	height: 200px;
	border: 3px solid #ff6f61; /* выделяем аватар цветом */
	box-shadow: 0 4px 10px rgba(255,111,97,0.5);
}

.profile-info{
	margin-left: 5%;
	color: #ccc; /* чуть светлее, чем было */
	width: 120%;
}

.profile-info>div{
	color: #ff6f61; /* яркий акцент для имени */
	font-size: 300%;
	font-weight: 1000;
	text-shadow: 1px 1px 5px rgba(0,0,0,0.6); /* мягкая тень для читаемости */
}


.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;
    padding: 0;
    margin-top: 5px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.footer-ul li a {
    color: #bbb;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* ==================Login/Registration====================== */
.form-center {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80vh;
}
.form-reg-log {
    margin: 0 auto;
    border-radius: 15px;
    padding: 30px;
    background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    width: 350px;
    text-align: center;
}
.form-reg-log input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 10px;
    border: none;
    background-color: var(--bg-dark);
    color: var(--text);
    font-size: 1rem;
    outline: none;
}
.form-reg-log input:focus {
    border: 1px solid var(--accent);
}
.form-btn {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    border: none;
    border-radius: 10px;
    background-color: var(--accent);
    color: var(--bg);
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}
.form-btn:hover {
    background-color: #e0564f;
}
.form-reg-log a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}
.form-reg-log a:hover {
    text-decoration: underline;
}
.small-text {
    display: block;
    color: var(--text-muted);
    margin-top: 10px;
    font-size: 0.9rem;
    word-wrap: break-word;
}


/*======================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;
}

/* ======= Фиксированное меню ======= */
.div1-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 220px; /* ширина меню */
    height: 100vh;
    background: linear-gradient(180deg, #1a1a1a, #111);
    box-shadow: 2px 0 15px rgba(0,0,0,0.3);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding: 20px 10px;
    overflow-y: auto;
    transition: all 0.3s ease;
}

.div1 h2 {
    font-size: 1.5rem;
    color: #ddd;
    margin-bottom: 20px;
}

.div1 ul {
    list-style: none;
    padding: 0;
}

.list li {
    margin: 10px 0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px;
    color: #ccc;
    font-weight: 500;
}

.list li a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.list li:hover {
    background: rgba(200, 200, 200, 0.1);
    color: #fff;
    transform: translateX(3px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* ======= Footer ======= */
footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    color: #888;
}

.footer-ul {
    list-style: none;
    padding: 0;
    margin-top: 5px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-ul li a {
    color: #bbb;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-ul li a:hover {
    color: #fff;
    text-shadow: 0 0 3px rgba(0,0,0,0.5);
}

/* ======= Scrollbar для меню ======= */
.div1-fixed::-webkit-scrollbar {
    width: 8px;
}

.div1-fixed::-webkit-scrollbar-thumb {
    background-color: #555;
    border-radius: 5px;
}

.div1-fixed::-webkit-scrollbar-track {
    background: #1a1a1a;
}

/* ======= Сдвигаем контент вправо ======= */
body {
    margin-left: 240px; /* отступ под меню */
    background-color: #0f0f0f;
    color: aliceblue;
}

/* Если контент в контейнере .main-cards */
.main-cards {
    margin-left: 20px; /* дополнительный внутренний отступ */
    padding: 20px;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* Пример для других блоков (профиль, карточки и т.д.) */
.profile-bkg, .div2, .upl-main {
    margin-left: 20px; /* чтобы не прилипали к меню */
}

/* ======= Адаптивная верстка ======= */

/* Мобильные устройства (до 768px) */
@media (max-width: 768px) {
    body {
        margin-left: 0; /* убираем отступ под фиксированное меню */
    }

    .div1-fixed {
        position: relative;
        width: 100%;
        height: auto;
        flex-direction: row;
        flex-wrap: wrap;
        box-shadow: none;
        padding: 10px;
        background: #111;
    }

    .div1-fixed ul {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
        width: 100%;
    }

    .list li {
        margin: 5px;
        padding: 8px 12px;
    }

    .main-cards,
    .main-cards-users,
    .main-cards-profile {
        margin: 0;
        padding: 10px;
        flex-direction: column;
        align-items: center;
    }

    .card,
    .card-users,
    .main-box,
    .main-box-users {
        width: 100% !important;
        max-width: 100%;
    }

    .upl-right {
        padding-left: 0;
        margin: 10px;
    }

    .upl-form-text,
    .upl-form,
    .upl-input,
    .upl-input-text,
    button[type='submit'] {
        width: 100% !important;
        max-width: 100%;
        margin: 10px 0;
    }

    .profile-bkg {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-info {
        margin: 20px 0 0 0;
        width: 100%;
    }

    .profile-img {
        width: 150px;
        height: 150px;
    }
}

/* Совсем маленькие экраны (до 480px) */
@media (max-width: 480px) {
    .btn-nav {
        font-size: 100%;
        padding: 5px 10px;
    }

    .footer-ul {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }

    .upl-label {
        font-size: 100%;
    }
}
