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

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    color: #fff;
}

/* Background with Unsplash image */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: -2;
    transition: opacity 0.8s ease-in-out;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(20, 10, 30, 0.9) 50%,
        rgba(0, 0, 0, 0.85) 100%
    );
    z-index: -1;
}

.container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 2rem;
    animation: fadeInDown 0.8s ease-out;
}

h1 {
    font-size: clamp(1rem, 2.5vw, 1.75rem);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8),
                 0 0 20px rgba(255, 215, 0, 0.3);
    color: #ffd700;
}

.subtitle {
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    font-style: italic;
    color: #d4af37;
    opacity: 0.9;
    letter-spacing: 0.1em;
}

main {
    width: 100%;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.punchline-card {
    background: rgba(0, 0, 0, 0.85);
    border: 4px solid #ffd700;
    border-radius: 16px;
    padding: 4rem 3rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.7),
                0 0 40px rgba(255, 215, 0, 0.2),
                inset 0 0 30px rgba(255, 215, 0, 0.15);
    backdrop-filter: blur(15px);
    position: relative;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.punchline-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-size: 5rem;
    color: #ffd700;
    opacity: 0.3;
    font-family: Georgia, serif;
}

.punchline-card::after {
    content: '"';
    position: absolute;
    bottom: 1rem;
    right: 1.5rem;
    font-size: 5rem;
    color: #ffd700;
    opacity: 0.3;
    font-family: Georgia, serif;
}

.punchline {
    font-size: clamp(1.65rem, 3.75vw, 2.25rem);
    line-height: 1.8;
    text-align: center;
    color: #fff;
    font-style: italic;
    position: relative;
    z-index: 1;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

.share-container {
    position: relative;
}

.share-menu {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: rgba(0, 0, 0, 0.95);
    border: 2px solid #ffd700;
    border-radius: 8px;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7),
                0 0 20px rgba(255, 215, 0, 0.3);
}

.share-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.share-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 1rem;
    font-family: 'Georgia', serif;
}

.share-option:hover {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    transform: translateX(5px);
}

.share-icon {
    font-weight: bold;
    font-size: 1.2rem;
    min-width: 24px;
    text-align: center;
}

.btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 2px solid #ffd700;
    background: rgba(0, 0, 0, 0.6);
    color: #ffd700;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-family: 'Georgia', serif;
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    background: rgba(255, 215, 0, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.btn:active {
    transform: translateY(0);
}

.btn-share {
    border-color: #4a90e2;
    color: #4a90e2;
}

.btn-share:hover {
    background: rgba(74, 144, 226, 0.2);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

.btn-submit {
    border-color: #1da1f2;
    color: #1da1f2;
}

.btn-submit:hover {
    background: rgba(29, 161, 242, 0.2);
    box-shadow: 0 6px 20px rgba(29, 161, 242, 0.4);
}

footer {
    margin-top: 3rem;
    text-align: center;
    animation: fadeIn 1s ease-out 0.4s both;
}

.disclaimer {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
        justify-content: center;
        padding-top: 2rem;
        min-height: 100vh;
        text-align: center;
    }
    
    header {
        margin-bottom: 3.5rem;
        text-align: center;
    }
    
    h1 {
        font-size: clamp(0.8rem, 4vw, 1.2rem);
        margin-bottom: 0.25rem;
        letter-spacing: 0.1em;
        text-align: center;
    }
    
    .subtitle {
        font-size: clamp(0.7rem, 2.5vw, 0.9rem);
        letter-spacing: 0.05em;
        text-align: center;
    }
    
    .punchline-card {
        padding: 2.5rem 1.5rem;
        min-height: auto;
        margin-bottom: 1.5rem;
        border-width: 4px;
        text-align: center;
    }
    
    .punchline-card::before {
        font-size: 3.5rem;
        top: 0.5rem;
        left: 1rem;
    }
    
    .punchline-card::after {
        font-size: 3.5rem;
        bottom: 0.5rem;
        right: 1rem;
    }
    
    .punchline {
        font-size: clamp(1.4rem, 5vw, 1.8rem);
        line-height: 1.7;
        padding: 0 0.5rem;
        text-align: center;
        font-weight: 500;
    }
    
    .buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        margin-bottom: 1rem;
        width: 100%;
    }
    
    .btn {
        width: auto;
        min-width: 140px;
        max-width: 200px;
        padding: 0.65rem 1.25rem;
        font-size: 0.85rem;
        text-align: center;
    }
    
    footer {
        margin-top: 1rem;
        text-align: center;
    }
    
    .disclaimer {
        font-size: 0.75rem;
        text-align: center;
    }
    
    .share-menu {
        left: 50%;
        transform: translateX(-50%) translateY(-10px);
        min-width: 200px;
        max-width: 250px;
    }
    
    .share-menu.show {
        transform: translateX(-50%) translateY(0);
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .container {
        padding: 0.75rem;
        padding-top: 1.5rem;
        justify-content: center;
        text-align: center;
    }
    
    header {
        margin-bottom: 3rem;
        text-align: center;
    }
    
    h1 {
        font-size: clamp(0.7rem, 3.5vw, 1rem);
        text-align: center;
    }
    
    .subtitle {
        font-size: clamp(0.65rem, 2vw, 0.8rem);
        text-align: center;
    }
    
    .punchline-card {
        padding: 2rem 1.25rem;
        margin-bottom: 1.25rem;
        text-align: center;
    }
    
    .punchline {
        font-size: clamp(1.3rem, 4.5vw, 1.6rem);
        line-height: 1.6;
        text-align: center;
        font-weight: 500;
    }
    
    .buttons {
        gap: 0.65rem;
        align-items: center;
    }
    
    .btn {
        padding: 0.6rem 1.1rem;
        font-size: 0.8rem;
        min-width: 120px;
        max-width: 180px;
    }
    
    footer {
        margin-top: 0.75rem;
        text-align: center;
    }
    
    .share-menu {
        min-width: 180px;
        max-width: 220px;
    }
}

/* Loading state */
.punchline.fade-out {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.punchline.fade-in {
    opacity: 1;
    transition: opacity 0.3s ease;
}

