:root {
    --primary-blue: #3b5978;
    --text-muted: #8c8c8c;
}

body {
    overflow-x: hidden;
}

#loader {
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#loader.fade-out {
    opacity: 0;
    visibility: hidden;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

.am-pulse {
    animation: pulse 1.5s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-15px); }
    60% { transform: translateY(-7px); }
}

.am-bounce {
    animation: bounce 2s infinite;
}

#music-control {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bg-image {
    background-color: #2c2c2c;
    background-image: url('data/img/opening.png');
    background-size: cover;
    background-position: center;
    min-height: 100vh;
}

.overlay {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.2));
}

.brand-logo {
    font-family: 'Dancing Script', cursive;
    font-size: 5rem;
    color: #4a759e;
    line-height: 1;
}

.brand-logo.dark {
    color: var(--primary-blue);
}

.subtitle {
    font-size: 0.75rem;
    letter-spacing: 4px;
    color: #d1d1d1;
}

.subtitle.dark {
    color: var(--text-muted);
}

.title {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    color: #ffffff;
}

.title.dark {
    color: #333333;
}

.quote {
    font-size: 0.85rem;
    font-style: italic;
    line-height: 1.6;
    max-width: 90%;
    color: #e0e0e0;
}

.quote-source {
    font-size: 0.8rem;
    color: #e0e0e0;
}

#opening {
    background-image: url('img/opening.png');
    background-size: cover;
    background-position: center;
}

.date-text {
    font-size: 0.9rem;
    color: #555555;
}

.btn-custom {
    background-color: var(--primary-blue);
    color: #ffffff;
    border: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-custom:hover {
    background-color: #2d445c;
    color: #ffffff;
}

.font-dancing {
    font-family: 'Dancing Script', cursive;
}

.primary-text {
    color: var(--primary-blue);
}

.scroll-container {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

.scroll-container::-webkit-scrollbar {
    width: 0;
    background: transparent;
}

.slide-section {
    height: 100vh;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
}

#slide-1 {
    background-image: url('img/slide-1.png');
    background-size: cover;
    background-position: center;
}

.line-mid-dot {
    display: flex;
    align-items: center;
    text-align: center;
    width: 100%; 
}

.line-mid-dot::before {
    content: "";
    flex: 1;
    border-bottom: 1px solid #ffffff;
    margin-right: 15px;
}

.line-mid-dot::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #ffffff;
    margin-left: 15px;
}

.line-dot {
    display: flex;
    align-items: center;
    text-align: center;
    width: 100%; 
}

.line-dot::before {
    content: "";
    flex: 1;
    border-bottom: 1px solid #ffffff;
}

.line-dot::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #ffffff;
}

#slide-3{
    background-image: url('img/slide-3.jpg');
    background-size: cover;
    background-position: center;
}

#slide-4 {
    background-image: url('img/slide-4.jpg');
    background-size: cover;
    background-position: center;
}

.gallery-wrapper {
    width: 100%;
    max-width: 600px;
}

.gallery-item {
    border: 4px solid #ffffff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    background-color: #ddd;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.gallery-center {
    width: 45%;
    aspect-ratio: 3 / 4;
    z-index: 2;
}

.gallery-side {
    width: 28%;
    aspect-ratio: 3 / 4;
    z-index: 1;
}

.countdown-item {
    min-width: 60px;
}

.line-footer {
    display: flex;
    align-items: center;
    text-align: center;
    width: 100%; 
}

.line-footer::before {
    content: "";
    flex: 1;
    border-bottom: 1px solid #4a5568;
    margin-right: 15px;
}

.line-footer::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #4a5568;
    margin-left: 15px;
}

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

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}