﻿.modal-dark-bg {
    background-color: #121212;
    height: 100dvh;
    width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
}

#storyViewerApp {
    background-color: transparent;
}

.story-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    background-color: black;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
    margin: 0;
    z-index: 10000;
}

@media (min-width: 992px) {
    #storyViewerApp {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100vh;
        background-color: #121212;
    }

    .story-container {
        width: 400px;
        height: 600px;
        margin: 0;
        border-radius: 12px;
        box-shadow: 0 0 20px rgba(0,0,0,0.7);
        background-color: black;
        padding: 0;
    }
}

.story-media {
    position: relative;
    flex: 1 1 auto;
    overflow: hidden;
}

.story-media img,
.story-media video {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.story-img-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.story-header {
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    color: white;
    text-shadow: 0 0 3px rgba(0,0,0,0.7);
    position: absolute;
    top: 10px;
    left: 46px;
    font-weight: 600;
    font-size: 1rem;
    z-index: 10;
}

.click-next {
    cursor: pointer;
}

.btn-success {
    background-color: rgba(40, 167, 69, 0.9);
    color: #fff;
    border: none;
    padding: 0.35rem 1.2rem;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.btn-success:hover {
    background-color: #28a745;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

.btn-success:active {
    background-color: #1e7e34;
    transform: scale(0.97);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.4);
}

.story-close {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: none;
    color: white;
    font-size: 1.5rem;
    font-weight: normal;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    z-index: 30;
    padding: 0;
    line-height: 1;
}

.story-close:hover {
    background-color: rgba(0, 0, 0, 0.6);
    transform: scale(1.05);
}

.story-close:active {
    background-color: rgba(0, 0, 0, 0.8);
    transform: scale(0.95);
}

.story-progress-wrapper {
    gap: 4px;
}

.story-progress-bar {
    position: relative;
    background-color: rgba(255, 255, 255, 0.2);
    height: 3px;
    border-radius: 2px;
    overflow: hidden;
    flex-grow: 1;
    margin: 0 4px; 
}

.story-progress-fill {
    background-color: white;
    height: 100%;
    width: 0%;
    transition: width 0.1s linear;
}

.click-nav {
    top: 0;
    width: 35%;
    height: 100%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    opacity: 0.2;
    transition: opacity 0.3s;
    user-select: none;
}

.nav-arrow {
    color: white;
    font-size: 3rem;
    font-weight: bold;
    opacity: 0.7;
    transition: opacity 0.3s;
    pointer-events: none;
}

.click-nav:hover .nav-arrow {
    opacity: 1;
}

.click-nav.left {
    left: 0;
}

.click-nav.right {
    right: 0;
}
.story-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 35%;
    z-index: 20;
    pointer-events: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.story-top-shadow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 24px;
    z-index: 20;
    pointer-events: none;
    background: linear-gradient( to bottom, rgba(0, 0, 0, 0.3),
    rgba(0, 0, 0, 0.1),
    rgba(0, 0, 0, 0)
    );
}

.story-caption-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient( to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.85) 20%, rgba(0, 0, 0, 0.6) 40%, rgba(0, 0, 0, 0.3) 70%, transparent 100% );
    z-index: 0;
    pointer-events: none;
}

.story-caption-content {
    position: relative;
    z-index: 1;
    color: white;
    pointer-events: auto;
    padding: 1rem;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.8);
}
.story-avatar {
    transition: transform 0.15s ease;
    cursor: pointer;
}

.story-avatar:active {
    transform: scale(0.95);
}