/* Import Google Fonts for name styles */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500&family=Great+Vibes&family=Dancing+Script:wght@400;700&family=Playfair+Display:wght@400;700&display=swap');

/* Base container style */
.marriage-names-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    overflow: visible;
    box-sizing: border-box;
}

/* Horizontal layout */
.marriage-names-container.horizontal {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

/* Vertical layout */
.marriage-names-container.vertical {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

/* Name wrapper styles */
.name-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
}

.name-wrapper.vertical {
    flex-direction: column;
    text-align: center;
}

.name-wrapper.horizontal {
    flex-direction: row;
    flex-wrap: nowrap;
}

/* Main name styles */
.main-name {
    font-family: 'Great Vibes', cursive;
    font-size: 70px;
    line-height: 1;
    color: #1a3b5d;
    font-weight: normal;
    white-space: nowrap;
    overflow: visible;
}

/* Hebrew name styles */
.hebrew-name {
    font-size: 35px;
    color: #c9a74d;
    font-weight: bold;
    direction: rtl;
    white-space: nowrap;
    overflow: visible;
}

/* Separator style */
.names-separator {
    font-family: 'Great Vibes', cursive;
    font-size: 50px;
    color: #c9a74d;
    padding: 0 10px;
    line-height: 1;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -30px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translate3d(-30px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translate3d(30px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale3d(0.3, 0.3, 0.3);
    }
    50% {
        opacity: 1;
    }
}

@keyframes bounce {
    from, 20%, 53%, 80%, to {
        animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
        transform: translate3d(0, 0, 0);
    }
    40%, 43% {
        animation-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);
        transform: translate3d(0, -30px, 0);
    }
    70% {
        animation-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);
        transform: translate3d(0, -15px, 0);
    }
    90% {
        transform: translate3d(0, -4px, 0);
    }
}

@keyframes tada {
    from {
        transform: scale3d(1, 1, 1);
    }
    10%, 20% {
        transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg);
    }
    30%, 50%, 70%, 90% {
        transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);
    }
    40%, 60%, 80% {
        transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);
    }
    to {
        transform: scale3d(1, 1, 1);
    }
}

@keyframes swing {
    20% {
        transform: rotate3d(0, 0, 1, 15deg);
    }
    40% {
        transform: rotate3d(0, 0, 1, -10deg);
    }
    60% {
        transform: rotate3d(0, 0, 1, 5deg);
    }
    80% {
        transform: rotate3d(0, 0, 1, -5deg);
    }
    to {
        transform: rotate3d(0, 0, 1, 0deg);
    }
}

@keyframes pulse {
    from {
        transform: scale3d(1, 1, 1);
    }
    50% {
        transform: scale3d(1.05, 1.05, 1.05);
    }
    to {
        transform: scale3d(1, 1, 1);
    }
}

/* Animation classes */
.animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

.fadeInUp {
    animation-name: fadeInUp;
}

.fadeInDown {
    animation-name: fadeInDown;
}

.fadeInLeft {
    animation-name: fadeInLeft;
}

.fadeInRight {
    animation-name: fadeInRight;
}

.zoomIn {
    animation-name: zoomIn;
}

.bounce {
    animation-name: bounce;
    transform-origin: center bottom;
}

.tada {
    animation-name: tada;
}

.swing {
    transform-origin: top center;
    animation-name: swing;
}

.pulse {
    animation-name: pulse;
}

/* Responsive styles */
@media (max-width: 767px) {
    .main-name {
        font-size: 50px;
    }
    
    .hebrew-name {
        font-size: 25px;
    }
    
    .names-separator {
        font-size: 40px;
    }
    
    .name-wrapper {
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .main-name {
        font-size: 40px;
    }
    
    .hebrew-name {
        font-size: 20px;
    }
    
    .names-separator {
        font-size: 30px;
    }
}