main {
    background-color: rgba(12, 12, 12, 1);
    position: relative;
    min-height: 75dvh;
}
main div {
    position: relative;
    z-index: 2;
}

body {
    margin: 0;
    overflow-x: hidden;
}

.bubbles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.bubbles::before,
.bubbles::after {
    content: '';
    position: absolute;
    bottom: -250px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(170px);
    z-index: 0;
}

.bubbles::before {
    background-color: #3b5818;
    left: -250px;
}

.bubbles::after {
    background-color: #8d4cd8;
    right: -250px;
}

.hero {
    position: relative;
}

.hero>div.overlay {
    background-color: rgba(0, 0, 0, 0);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(12, 12, 12, 1) 0%, rgba(12, 12, 12, 0.8) 30%, rgba(0, 0, 0, 0) 100%);
    z-index: 5;
    pointer-events: none;
}

.logo {
    position: relative;
    height: 50px;
    width: 50px;
    margin-bottom: -10px;
}

#carrosselContent {
    touch-action: pan-y;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

/* Estilos do carrossel */
.carousel {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 1rem 50dvw;
    align-items: center;
    height: fit-content;
}

.carousel-item {
    border-radius: 12px;
    transition: transform 0.3s ease;
    margin-top: 0;
    cursor: pointer;
    flex: 0 0 auto;
}

.carousel-item.activated {
    transform: scale(1.30);
    margin: 2rem;
}

/* Esconde a barra de rolagem */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.open-modal-btn {
    background-color: rgba(12, 12, 12, 0.3);
    font-size: 0.6rem;
    padding: 0.1rem;
    transition: background-color 0.3s;
}

.open-modal-btn:hover {
    background-color: rgba(12, 12, 12, 0.7);
}

.carousel-item:hover .open-modal-btn {
    background-color: rgba(12, 12, 12, 0.7);
}

.carousel-title {
    font-size: 0.5rem;
    text-transform: capitalize;
    color: rgba(12, 12, 12, 1);
}

.story-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: rgba(12, 12, 12, 1);
}

.btn-upload {
    background-color: rgba(250, 250, 250, 0.1);
    font-size: 0.8rem;
    padding: 0.1rem;
    margin-top: 1rem;
    transition: background-color 0.3s;
    position: relative;
    height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
    align-items: center;
}

.btn-upload:hover {
    background-color: rgba(250, 250, 250, 0.3);
}

#modal_header {
    position: relative;
    z-index: 999;
}

#camera-modal {
    z-index: 999;
}

.story-viewer {
    position: absolute;
    top: 0;
    z-index: 1;
    background: #000;
    left: 50%;
    transform: translateX(-50%);
}

.progress-bars {
    top: 0;
    left: 0;
    width: calc(100% - 0.4rem);
    height: 4px;
    gap: 0.3rem;
    margin: 0 0.2rem;
    margin-top: 3px;
    justify-content: space-between;
    align-items: center;
    z-index: 999;
}

.progress-bar {
    background-color: #bdbdbd;
    width: 100%;
    height: 4px;
}

.inner-bar {
    background-color: #3b5818;
    height: 4px;
}

.story-slides {
    position: absolute;
    top: 0;
    left: 0;
    height: 100dvh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.story-slides img {
    transition: transform 0.5s ease, opacity 0.5s ease;
    opacity: 0;
    transform: translateX(100%);
    z-index: 0;
}

.story-slides img.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 1;
}