/* Simple wedding website styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Courier New", monospace;
    background: #ffffff;
    color: #000000;
    line-height: 1.5;
    min-height: 100vh;
}

@keyframes screen-shake {
    0%, 100% { transform: translateX(0) translateY(0); }
    10% { transform: translateX(-2px) translateY(-1px); }
    20% { transform: translateX(2px) translateY(1px); }
    30% { transform: translateX(-1px) translateY(2px); }
    40% { transform: translateX(1px) translateY(-2px); }
    50% { transform: translateX(-2px) translateY(1px); }
    60% { transform: translateX(2px) translateY(-1px); }
    70% { transform: translateX(-1px) translateY(-2px); }
    80% { transform: translateX(1px) translateY(2px); }
    90% { transform: translateX(-2px) translateY(-1px); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
}

.main-title {
    font-family: "Courier New", monospace;
    font-size: 3rem;
    font-weight: bold;
    color: #000000;
    margin-bottom: 10px;
}

@keyframes title-explode {
    0%, 80% { transform: scale(1) rotate(0deg); }
    10% { transform: scale(1.2) rotate(2deg); }
    20% { transform: scale(0.9) rotate(-1deg); }
    30% { transform: scale(1.1) rotate(1deg); }
    40% { transform: scale(0.95) rotate(-0.5deg); }
    50% { transform: scale(1.05) rotate(0.5deg); }
    60% { transform: scale(1) rotate(0deg); }
}

.subtitle {
    font-size: 1.5rem;
    color: #333333;
    font-style: italic;
    border: 2px solid #000000;
    background: #f0f0f0;
    padding: 15px;
    margin: 20px auto;
    max-width: 400px;
}

.wedding-date {
    margin: 30px auto;
    text-align: center;
}

.wedding-date h2 {
    font-family: "Courier New", monospace;
    font-size: 2rem;
    color: #000000;
    font-weight: bold;
    border: 3px solid #000000;
    background: #f8f8f8;
    padding: 20px;
    display: inline-block;
    margin: 0 auto;
}

@keyframes subtitle-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

/* Photo Animation Container */
.photo-animation-container {
    position: relative;
    width: 600px;
    height: 400px;
    margin: 40px auto;
    overflow: hidden;
    border: 3px solid #000000;
    background: #f5f5f5;
}

@keyframes container-violence {
    0%, 100% { transform: rotate(0deg) scale(1); }
    10% { transform: rotate(1deg) scale(1.02); }
    20% { transform: rotate(-1deg) scale(0.98); }
    30% { transform: rotate(0.5deg) scale(1.01); }
    40% { transform: rotate(-0.5deg) scale(0.99); }
    50% { transform: rotate(1deg) scale(1.01); }
    60% { transform: rotate(-1deg) scale(0.99); }
    70% { transform: rotate(0.5deg) scale(1.02); }
    80% { transform: rotate(-0.5deg) scale(0.98); }
    90% { transform: rotate(1deg) scale(1.01); }
}

.photo-half {
    position: absolute;
    width: 50%;
    height: 100%;
    overflow: hidden;
    transition: transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backface-visibility: hidden; /* helps avoid subpixel seams */
}

.photo-half img {
    position: absolute;
    width: 200%; /* span full container width inside 50% half */
    height: 100%;
    object-fit: cover;
}

.left-half {
    left: 0;
    transform: translateX(-100%);
    width: 50%;
}

.left-half img {
    left: 0;
    top: 0;
}

.right-half {
    left: 50%;
    right: auto;
    transform: translateX(100%);
    width: 50%;
}

.right-half img {
    left: -100%; /* shift by half to show right side */
    top: 0;
}

.photo-half.animate {
    transform: translateX(0);
}

/* Fireworks container */
.fireworks-container {
    position: absolute;
    top: -200px;
    left: -200px;
    width: 1000px;
    height: 800px;
    pointer-events: none;
    z-index: 10;
    overflow: visible;
}

.firework {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #000000;
    animation: firework-explosion 2s ease-out forwards;
    box-shadow: 0 0 20px #000000, 0 0 40px #000000, 0 0 60px #000000;
}

.explosion-wave {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid #000000;
    border-radius: 50%;
    animation: shockwave 1s ease-out forwards;
}

.debris {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #000000;
    animation: debris-scatter 3s ease-out forwards;
}

@keyframes firework-explosion {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 1;
        box-shadow: 0 0 20px #000000, 0 0 40px #000000, 0 0 60px #000000;
    }
    20% {
        transform: scale(3) rotate(90deg);
        opacity: 1;
        box-shadow: 0 0 40px #000000, 0 0 80px #000000, 0 0 120px #000000;
    }
    50% {
        transform: scale(8) rotate(180deg);
        opacity: 0.8;
        box-shadow: 0 0 80px #000000, 0 0 160px #000000, 0 0 240px #000000;
    }
    80% {
        transform: scale(12) rotate(270deg);
        opacity: 0.4;
    }
    100% {
        transform: scale(20) rotate(360deg);
        opacity: 0;
        box-shadow: 0 0 200px #000000;
    }
}

@keyframes shockwave {
    0% {
        transform: scale(0);
        opacity: 1;
        border-width: 4px;
    }
    50% {
        transform: scale(30);
        opacity: 0.8;
        border-width: 2px;
    }
    100% {
        transform: scale(80);
        opacity: 0;
        border-width: 1px;
    }
}

@keyframes debris-scatter {
    0% {
        transform: scale(1) translateX(0) translateY(0);
        opacity: 1;
    }
    100% {
        transform: scale(0) translateX(var(--debris-x, 100px)) translateY(var(--debris-y, 100px));
        opacity: 0;
    }
}

/* Wedding Details */
.wedding-details {
    text-align: center;
    margin: 60px 0;
}

.wedding-details h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    color: #8b4513;
    margin-bottom: 40px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.detail-box {
    display: inline-block;
    background: #f0f0f0;
    border: 2px solid #000000;
    padding: 25px;
    margin: 15px;
    min-width: 250px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.1s ease;
}

@keyframes box-chaos {
    0%, 100% { transform: translateY(0px) rotate(0deg) scale(1); }
    10% { transform: translateY(-3px) rotate(1deg) scale(1.05); }
    20% { transform: translateY(3px) rotate(-1deg) scale(0.95); }
    30% { transform: translateY(-2px) rotate(0.5deg) scale(1.02); }
    40% { transform: translateY(2px) rotate(-0.5deg) scale(0.98); }
    50% { transform: translateY(-1px) rotate(1deg) scale(1.03); }
    60% { transform: translateY(1px) rotate(-1deg) scale(0.97); }
    70% { transform: translateY(-2px) rotate(0.5deg) scale(1.01); }
    80% { transform: translateY(2px) rotate(-0.5deg) scale(0.99); }
    90% { transform: translateY(-1px) rotate(1deg) scale(1.02); }
}

.detail-box:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    background: #e0e0e0;
}

.detail-box h3 {
    font-family: "Courier New", monospace;
    font-size: 1.5rem;
    color: #000000;
    margin-bottom: 10px;
    font-weight: bold;
}

.detail-box p {
    font-size: 1.1rem;
    color: #333333;
    margin-bottom: 15px;
}

.game-link {
    display: inline-block;
    background: #000000;
    color: #ffffff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.game-link:hover {
    background: #333333;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 60px;
    padding: 30px 0;
    border-top: 2px solid #d2b48c;
}

footer p {
    font-family: 'Dancing Script', cursive;
    font-size: 1.5rem;
    color: #8b4513;
}

/* Decorative elements */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(210, 180, 140, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 69, 19, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(245, 245, 220, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Responsive design */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .photo-animation-container {
        width: 90%;
        max-width: 400px;
        height: 300px;
    }
    
    .photo-half img { /* inherit percentage-based sizing; no fixed pixels */ }
    
    .detail-box {
        display: block;
        margin: 15px auto;
        max-width: 300px;
    }
}