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

body {
    font-family: 'Arial', sans-serif;
    background-color: #ADD8E6;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hidden {
    display: none !important;
}

/* Animated Rainbow - positioned in background */
.rainbow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 200px;
    z-index: 1;
}

/* Base styling for all arcs */
.arc {
    position: absolute;
    border-radius: 200px 200px 0 0;
    border: 30px solid;
    border-bottom: none;
    box-sizing: border-box;
}

/* Arc 1 - Red (outermost) */
.arc-1 {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-color: #FF0000;
}

/* Arc 2 - Orange */
.arc-2 {
    width: calc(100% - 60px);
    height: calc(100% - 30px);
    top: 30px;
    left: 30px;
    border-color: #FF7F00;
}

/* Arc 3 - Yellow */
.arc-3 {
    width: calc(100% - 120px);
    height: calc(100% - 60px);
    top: 60px;
    left: 60px;
    border-color: #FFFF00;
}

/* Arc 4 - Green */
.arc-4 {
    width: calc(100% - 180px);
    height: calc(100% - 90px);
    top: 90px;
    left: 90px;
    border-color: #00FF00;
}

/* Arc 5 - Blue */
.arc-5 {
    width: calc(100% - 240px);
    height: calc(100% - 120px);
    top: 120px;
    left: 120px;
    border-color: #0000FF;
}

/* Arc 6 - Indigo */
.arc-6 {
    width: calc(100% - 300px);
    height: calc(100% - 150px);
    top: 150px;
    left: 150px;
    border-color: #4B0082;
}

/* Content Styling - flex column layout */
.content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 20px;
}

/* Invitation text at the top */
.invitation-text {
    font-size: 20px;
    color: #333;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.85);
    padding: 25px 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button Container at the bottom */
.button-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

/* Button Styling */
.btn {
    padding: 15px 25px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    word-wrap: break-word;
    white-space: normal;
    line-height: 1.4;
}

.yes-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.yes-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.no-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.no-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.4);
}

.btn:active {
    transform: translateY(-1px);
}

/* Result Container */
.result-content {
    position: relative;
    z-index: 2;
    text-align: center;
    animation: scaleIn 0.6s ease-in-out;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

#result-text {
    font-size: 64px;
    color: #fff;
    margin-bottom: 40px;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.3);
    animation: bounce 0.8s ease-in-out;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

#result-image {
    max-width: 90%;
    max-height: 70vh;
    border-radius: 20px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    object-fit: contain;
}

/* Responsive Design */
@media (max-width: 600px) {
    /* Adjust content layout - more bottom padding */
    .content {
        padding: 15px 10px 40px 10px;
        justify-content: flex-start;
        gap: 30px;
    }
    
    .invitation-text {
        font-size: 16px;
        padding: 18px 20px;
        flex-shrink: 0;
    }
    
    /* Move rainbow up on mobile - from 50% to 40% */
    .rainbow {
        top: 45%;  /* Change from 40% to 45% (or higher) */
        transform: translate(-50%, -50%) scale(0.7);
    }
    
    /* Fix button container overflow */
    .button-container {
        gap: 10px;
        padding: 0;
        margin: auto 10px 30px 10px;
        width: auto;
        max-width: none;
    }
    
    .btn {
        font-size: 13px;
        padding: 10px 10px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
        line-height: 1.5;
        min-height: 48px;
    }
    
    /* Move result page up using negative margin */
    .result-content {
        margin-top: -40px;  /* Negative values move it UP */
    }
    
    #result-text {
        font-size: 48px;
    }
}
