body {
    background-color: #514295;
    margin: 0;
}

.main-card {
    background-color: #f1e643;
    width: 98%; 
    min-height: 95vh;
    border-radius: 40px; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    padding: 1rem 1rem 1rem 0; 
    display: flex;
    justify-content: center;
    margin: auto;
    overflow: hidden;
    position: relative;
    padding-bottom: 90px !important; 
}

/* Barra Rosa Animada */
.pink-bar {
    background-color: #e94085;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px; 
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    animation: slideUp 0.8s ease-out forwards;
    z-index: 10;
}

.btn-pink-outline {
    border: 2px solid #ffffff;
    color: #ffffff;
    font-weight: bold;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-pink-outline:hover {
    background-color: #ffffff;
    color: #e94085;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.canvas-container {
    background-color: transparent;
    max-width: 100%;
    aspect-ratio: 9 / 16;
    margin: 0 auto;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none !important;
}

#storieCanvas {
    max-width: 100%;
    height: auto;
    touch-action: none;
    border: none !important;
}

.h3-custom {
    color: #514295;
    font-weight: 900;
    font-size: 1.5rem;
    line-height: 1.1;
}

.h4-custom {
    color: #514295;
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.3;
}

.instagram-text {
    color: #514295;
    font-size: 0.85rem;
    font-style: italic;
}

.sub-column-invisible {
    background: transparent;
    border: none;
    width: 100%;
}

.img-evento {
    max-width: 85%; 
    height: auto;
}

@media (min-width: 992px) {
    .col-text-adjust {
        margin-left: -20px; 
    }
}

.custom-file-input {
    border: 2px solid #514295 !important;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.5) !important;
    color: #514295 !important;
}

.custom-file-input::file-selector-button {
    background-color: #514295 !important;
    color: #f1e643 !important;
    border: none !important;
    padding: 0.4rem 0.8rem;
    font-weight: bold;
}

.btn-download-storie {
    background-color: transparent;
    color: #514295;
    border: 2px solid #514295;
    border-radius: 10px;
    padding: 10px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-download-storie:hover {
    background-color: #514295;
    color: #f1e643;
}

.btn-custom {
    background-color: #e94085 !important;
    border: none;
    color: #ffffff !important;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 10px;
    display: inline-block;
}

.btn-custom:hover, .btn-custom:focus, .btn-custom:active {
    background-color: #e94085 !important;
    color: #ffffff !important;
    transform: none !important;
    box-shadow: none !important;
}

@media (min-width: 992px) {
    .column-main-border { border-right: 2px solid rgba(81, 66, 149, 0.4); }
    .h3-custom { font-size: 2rem; }
    .canvas-container { max-width: 280px; }
}

@media (max-width: 991px) {
    .main-card { padding: 2rem 0; margin: 20px auto; padding-bottom: 280px !important; } /* Aumentado o padding-bottom para comportar a lista de botões */
    .canvas-container { max-width: 200px; margin-bottom: 1.5rem; }
    .h3-custom, .h4-custom, .instagram-text { text-align: center; }
    .column-main-border { border-right: none; border-bottom: none; padding-bottom: 1rem; margin-bottom: 1rem; }
    
    /* Alteração solicitada para os botões no mobile */
    .pink-bar { border-radius: 0; flex-direction: column; text-align: center; }
    .pink-bar .d-flex { flex-direction: column; width: 100%; }
    .pink-bar .btn-pink-outline { width: 100%; }
}