:root {
    --grid-frames-size: 145px; /*    Ð Ð°Ð·Ð¼ÐµÑ€ Ð±Ð»Ð¾ÐºÐ¾Ð² Ð² ÑÐµÑ‚ÐºÐµ    */
}

.block-frames {
    background: linear-gradient(1deg, #4242429e 30%, #424242 100%);
    border-radius: 20px;
    padding: 19px;
    user-select: none;
    margin-top: 10px;
    margin-bottom: 20px;
}

.block-frames .block_head {
    margin-bottom: 30px;
    font-weight: bold;
    font-size: 20px;
    color: #a8aac7;
    text-align: center;
}

.block-frames .frames-btn {
    position: relative;
    width: 100%;
    background: linear-gradient(0deg, #58585800 30%, #5a5a5a 100%);
    background-color: #58585885;
    border-radius: 12px;
    border: none;
    transition: 0.2s all;
    height: 50px;
    line-height: 30px;
    -webkit-backface-visibility: unset;
    outline: none;
    padding: 12px;
    color: #b1b1b1;
    font-size: 10.6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    font-family: inherit;
    -webkit-transform: unset;
    text-align: center;
    cursor: pointer;
}

.block-frames .frames-btn:hover {
    background-color: #71717185;
    color: #ffff;
}

.block-frames .frames-btn.dell {
    margin-top: 6px;
    background: linear-gradient(0deg, #58585800 30%, #a15050 100%);
    background-color: #8b4a4a8c;
    color: #fff;
}

.block-frames .frames-btn.dell:hover {
    background-color: #b5545496;
}

.block-frames .frames-btn.buy {
    margin-top: 6px;
    background: linear-gradient(0deg, #58585800 30%, #e99a59b3 100%);
    background-color: #e99a5982;
    color: #fff;
}

.block-frames .frames-btn.buy:hover {
    background-color: #e99a59b0;
}

#framesModal .modal-dialog {
    max-width: 90vh;
    max-height: 80vh;
    width: auto;
    height: auto;
}

#framesModal .modal-title {
    color: #7289da;
    font-size: 22px;
    text-align: center;
}

#framesModal .modal-content {
    max-height: 80vh;
    overflow-y: auto;
    background: #2d2d2d;
    overflow-x: hidden;
    border-radius: 20px;
    max-width: 90vh;
}

#framesModal .modal-content::-webkit-scrollbar {
    display: none
}


#framesPreviews {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(var(--grid-frames-size), 1fr));
    gap: 15px;
    padding: 0;
}

.frames-item {
    position: relative;
    border-radius: 23px;
    overflow: hidden;
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    z-index: 1;
    box-shadow: none !important;
    transition: 0.2s all;
    background-color: #393939 !important;
    background: linear-gradient(360deg, #3b3b3b00 0%, #494949 95%);
    cursor: pointer;
    backdrop-filter: blur(20px) saturate(180%) brightness(60%);
    justify-content: center;
    perspective-origin: inherit;
    transition-duration: .4s;
    transition-timing-function: cubic-bezier(0, 0.73, 0.48, 1);
    transition-property: transform;
    transform-origin: 50% 50%;
    align-items: center;
}

.frames-preview {
    width: 80%;
    position: relative;
}

.frames-item:hover {
    transform: scale(1.04);
    z-index: 2;
    transition: 0.2s all;
    border: none !important;
    background-color: #434343 !important;
}

.frames-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    pointer-events: none;
}

.frames-info {
    padding: 10px 10px 0 10px;
    text-align: center;
}

.frames-name {
    font-weight: bold;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    text-align: center;
    line-height: 14px;
    font-size: 11px;
}

.frames-overlay {
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 17px;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(2px);
    background-color: rgb(0 0 0 / 65%);
    display: none;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.frames-overlay.open {
    opacity: 1;
}

.frames-overlay-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 5px;
    min-width: 25%;
    width: 40%;
    border-radius: 20px;
    max-height: none;
    height: auto;
    overflow: visible;
    padding: 20px 25px;
    background: url(../assets/diamonds_tile.png) no-repeat, linear-gradient(120deg, #6f4b2e 0%, #392e25 70%);
    background-size: 100%;
    background-position: center top;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    box-shadow: 8px 7px 0px 1px rgb(37 30 25);
}

.frames-overlay-content video {
    width: 100%
}

.frames-overlay-scrollable-content {
    width: 100%;
    max-height: calc(80vh - 40px - 30px);
    overflow-y: auto;
    overflow-x: hidden;
}

.frames-overlay-content .frames-name {
    font-weight: bold;
    color: #c5cbd8;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    text-align: center;
    margin-bottom: 15px;
}

.frames-overlay-image-preview {
    position: relative;
    width: 200px;
    max-width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    overflow: visible;
    margin: 25px auto 40px auto;
}

.frames-overlay-image-preview .frames-userAvatar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.frames-overlay-image-preview .full-frame-preview {
    position: absolute;
    width: calc(100% + 40px);
    height: calc(100% + 40px);
    top: -20px;
    left: -20px;
    z-index: 2;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.frames-overlay .btn-group {
    margin-top: 20px;
    width: 100%;
    gap: 7px;
}

#notification-container {
    position: fixed;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2001;
}

.notification {
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    margin-bottom: 10px;
}

.notification.show {
    opacity: 1;
}

.btn-group-modal {
	display: flex;
	gap: 7px;
	background: #73563e;
	border-radius: 50px;
	padding: 6px;
}

.frames-btn-modall {
	background: linear-gradient(23deg, #865023 0%, #da9256 55%);
	border-radius: 50px;
	height: 45px;
	width: 100%;
	font-weight: 600;
	letter-spacing: 0.6px;
	font-size: 10.5px;
	color: #fff;
	transition: 0.2s all;
	cursor: pointer;
	text-transform: uppercase;
}

.frames-btn-modall:hover {
	opacity: 0.7;
}

.notification.success {
    background-color: rgba(144, 238, 144, 0.9);
    color: #228B22;
}

.notification.error {
    background-color: rgba(240, 128, 128, 0.9);
    color: #B22222;
}

.frames-overlay .btn-group .frames-btn.back {
    width: 50%;
    color: #efeaea;
    background: linear-gradient(23deg, #865023 0%, #da9256 55%);
}

.frames-overlay .btn-group .frames-btn.back:hover {
   opacity: 0.7;
}

.frame_profile #frames_file img {
    /* width: 120px; */
    /* height: 120px; */
    /* left: -4px; */
    /* top: -8px; */
    /* position: absolute; */
}

.avatar_profile {
    border-radius: 3px!important;
}

.frames-btn-modall-back {
	background: linear-gradient(23deg, #7f5e43 0%, #a77d5b 55%);
	border-radius: 50px;
	height: 45px;
	width: 60%;
	font-weight: 600;
	letter-spacing: 0.6px;
	font-size: 10.5px;
	transition: 0.2s all;
	cursor: pointer;
	color: #fff;
	text-transform: uppercase;
}

.frames-btn-modall-back:hover {
	opacity: 0.7;
}

.frame_profile {
    position: relative;
}

@media(max-width:992px) {
    #framesModal .modal-dialog {
        max-width: 100%;
    }
    .frames-overlay .btn-group .frames-btn.back {
        width: auto;
    }
}