.main {
	display: flex;          
    justify-content: center;
}

.container {
    margin-top:10px;
    padding: 10px;
}
ul, ol, li {
    margin: 0;
    padding: 50;
    list-style: none;
}

.reorder_link {
    color: #3675B4;
    border: solid 2px #3675B4;
    border-radius: 3px;
    text-transform: uppercase;
    background: #fff;
    font-size: 18px;
    padding: 10px 20px;
    margin: 15px 15px 15px 0px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.35s;
    -moz-transition: all 0.35s;
    -webkit-transition: all 0.35s;
    -o-transition: all 0.35s;
    white-space: nowrap;
}
.reorder_link:hover {
    color: #fff;
    border: solid 2px #3675B4;
    background: #3675B4;
    box-shadow: none;
}
#reorder-helper{
    margin: 18px 10px;
    padding: 10px;
}
.light_box {
    background: #efefef;
    padding: 20px;
    margin: 15px 0;
    text-align: center;
    font-size: 1.2em;
}

/* image gallery */
.gallery{
    width:100%;
    float:left;
    margin-top:15px;
}
.gallery ul{		
    margin:0;
    padding:0;
    list-style-type:none;
}
.gallery ul li{
	display: flex;    
    padding:7px;
    border:0px solid #ccc;
    float:left;
    margin:10px 7px;
    background:none;
    width:auto;
    height:auto;
}
/**********************************************МОЕ*/
.reorder_ul {
	display: flex;    
	flex-wrap: wrap;
    width:40%;	
}
.IF_YY {
    border:2px solid #e09b9b;
}
.img {
  opacity: 0.5;
}

.img:hover {
  opacity: 1.0;
}
	
.moretext {
  font-family: Arial;
  font-size: 20px;
}

.font_text {

	font-size:20px;
	font-family:Arial;
}
/***********************************************КОНЕЦ*/


.gallery img{
    width:240px;
}

.gallery img:hover {
	width:240px;
}

/* notice box */
.notice, .notice a{
    color: #fff !important;
}
.notice {
    z-index: 8888;
    padding: 10px;
    margin-top: 20px;
}
.notice a {
    font-weight: bold;
}
.notice_error {
    background: #E46360;
}
.notice_success {
    background: #657E3F;
}

        .video-container {
            position: relative;
            display: inline-block;
            width: 100%;
            max-width: 300px;
            text-align: center;
        }
        .video-preview {
            width: 100%;
            height: auto;
            display: block;
            cursor: pointer;
        }
        .video-controls {
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(0, 0, 0, 0.7);
            padding: 5px;
            position: absolute;
            bottom: 0;
            width: 100%;
            opacity: 0;
            transition: opacity 0.3s;
        }
        .video-container:hover .video-controls {
            opacity: 1;
        }
        .play-btn, .stop-btn {
            padding: 5px 10px;
            margin: 0 5px;
            background: #fff;
            border: none;
            cursor: pointer;
            border-radius: 3px;
        }
        .seek-bar {
            flex-grow: 1;
            margin: 0 10px;
        }
        .error-message {
            color: red;
            font-size: 12px;
        }
        .reels-video {
            background-color: #28a745;
        }
        .stories-video {
            background-color: #ffc107;
        }
        .video-container .moretext, .image-container .moretext {
            display: block;
            margin: 10px 0;
            text-align: center;
            color: #000;
            text-decoration: none;
            font-size: 16px;
        }
        .video-container .moretext:hover, .image-container .moretext:hover {
            text-decoration: underline;
        }
        .image-container {
            display: inline-block;
            width: 100%;
            max-width: 300px;
            text-align: center;
            vertical-align: top;
        }
        .image-container img {
            cursor: pointer;
        }
        .upload-container {
            display: inline-block;
            width: 100%;
            max-width: 300px;
            height: 100%;
            text-align: center;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }
        .upload-circle {
            width: 100px;
            height: 100px;
            background-color: #e0e0e0;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 10px auto;
            cursor: pointer;
            position: relative;
        }
        .select-photo-circle {
            background-color: #00b7eb;
            display: flex;
            flex-direction: column;
            font-size: 14px;
            color: white;
            line-height: 1.2;
        }
        .upload-plus {
            font-size: 40px;
            color: #333333;
        }
        .upload-container input[type="file"] {
            display: none;
        }
        .gallery {
            display: flex;
            width: 100%;
        }
        .reorder_ul {
            display: flex;
            flex-wrap: wrap;
            list-style: none;
            padding: 0;
            margin: 0;
            width: 100%;
        }
        .reorder_ul li {
            margin-right: 10px;
            margin-bottom: 10px;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
        }
        .checkbox-container {
            margin-left: 30px;
            margin-top: 10px;
            align-self: flex-start;
        }
        .button-container {
            margin: 20px 0;
            text-align: left;
        }
        .button-row {
            margin-bottom: 10px;
        }
        .btn {
            padding: 8px 15px;
            border: none;
            border-radius: 5px;
            color: white;
            font-family: Arial, sans-serif;
            font-size: 14px;
            cursor: pointer;
            transition: background-color 0.2s;
        }
        .btn-remove {
            background-color: #dc3545;
        }
        .btn-remove:hover {
            background-color: #c82333;
        }
		.tab-nav {
			justify-content: center;
			display: flex;
			border-bottom: 2px solid #ccc;
			margin-bottom: 20px;
			font-family: Arial, sans-serif;
			font-size: 20px;
		}
		.tab-nav a {
			width: 300px; /* фиксированная ширина */
			text-align: center; /* выравнивание текста по центру */
			padding: 10px 0;
			text-decoration: none;
			color: #555;
			border: 3px solid transparent;
			border-bottom: none;
			background: #f0f0f0;
			margin-right: 5px;
			border-radius: 8px 8px 0 0;
			display: inline-block;
		}
		.tab-nav a.active {
			background: white;
			border-color: #ccc;
			border-bottom: 2px solid white;
			font-weight: bold;
			color: black;
		}
        .fullscreen-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.9);
            z-index: 1000;
            justify-content: center;
            align-items: center;
        }
        .fullscreen-image {
            max-width: 90%;
            max-height: 90%;
            object-fit: contain;
        }
        .photo-gallery {
            display: none;
            position: absolute;
            left: 320px;
            top: 0;
            width: calc(100% - 320px);
            height: 100%;
            background: #fff;
            border-left: 1px solid #ccc;
            padding: 10px;
        }
        .photo-gallery img {
            position: relative;
            display: inline-block;
            width: 100%;
            max-width: 300px;
            text-align: center;
            margin: 5px;
            cursor: pointer;
        }
		.btn-edit {
			display: inline-block;
			margin-bottom: 10px;
			padding: 6px 14px;
			background-color: #d0c8f1; /* пастельный сиреневый */
			color: #333;
			border: none;
			border-radius: 6px;
			font-size: 20px;
			font-family: Arial, sans-serif;
			text-decoration: none;
			cursor: pointer;
			transition: background-color 0.3s ease;
		}
		.btn-edit:hover {
			background-color: #c2b6e0;
		}	
		.select-green {
			background-color: #ccffcc; /* Зеленый фон для "Фото" */
		}
		.select-yellow {
			background-color: #ffffcc; /* Желтый фон для "Reels" */
		}	