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

/* Screen reader only class for accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;500;600&family=Merriweather:wght@300;400&display=swap');

body {
    font-family: 'Merriweather', Georgia, serif;
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 50%, #CD853F 100%);
    background-attachment: fixed;
    padding: 20px;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 25% 25%, rgba(255,255,255,0.1) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, rgba(0,0,0,0.05) 1px, transparent 1px);
    background-size: 50px 50px, 30px 30px;
    pointer-events: none;
    z-index: 0;
}

header {
    text-align: center;
    position: relative;
    z-index: 2;
    margin-bottom: 30px;
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
    margin: 15px 0;
    position: relative;
    z-index: 2;
}

.breadcrumb {
    display: inline-flex;
    align-items: center;
    list-style: none;
    padding: 8px 15px;
    background: rgba(139, 69, 19, 0.2);
    border-radius: 20px;
    border: 1px solid rgba(47, 27, 20, 0.3);
    font-size: 0.85em;
    box-shadow: inset 1px 1px 3px rgba(255,255,255,0.1), 
                2px 2px 6px rgba(0,0,0,0.2);
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: '›';
    margin: 0 8px;
    color: #CD853F;
    font-weight: bold;
}

.breadcrumb a {
    color: #FFD700;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}

.breadcrumb a:hover {
    color: #FFFFFF;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.breadcrumb span {
    color: #FEFDFB;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

h1 {
    color: #FEFDFB;
    margin-bottom: 10px;
    font-size: 3.5em;
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
    letter-spacing: 2px;
    text-shadow: 
        2px 2px 0px #2F1B14,
        4px 4px 0px #4A2C17,
        6px 6px 0px rgba(0,0,0,0.4);
    text-transform: uppercase;
}

.first-letter {
    font-size: 1.4em;
    font-weight: 700;
    color: #FFD700;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FF8C00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 
        3px 3px 0px #B8860B,
        6px 6px 0px #2F1B14,
        9px 9px 0px rgba(0,0,0,0.6);
    display: inline-block;
    margin-right: -2px;
}

.tagline {
    color: #FEFDFB;
    font-size: 1.2em;
    font-style: italic;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.mode-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.radio-group {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.radio-group input[type="radio"] {
    display: none;
}

.radio-label {
    position: relative;
    display: inline-block;
    padding: 12px 20px;
    background: linear-gradient(145deg, #654321, #8B4513);
    color: #F5E6D3;
    border: 2px solid #2F1B14;
    border-radius: 8px;
    font-family: 'Oswald', sans-serif;
    font-size: 1em;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 
        inset 1px 1px 3px rgba(255,255,255,0.2),
        inset -1px -1px 3px rgba(0,0,0,0.3),
        3px 3px 8px rgba(0,0,0,0.4);
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    user-select: none;
}

.radio-label:hover {
    background: linear-gradient(145deg, #8B4513, #A0522D);
    box-shadow: 
        inset 1px 1px 3px rgba(255,255,255,0.3),
        inset -1px -1px 3px rgba(0,0,0,0.4),
        4px 4px 10px rgba(0,0,0,0.5);
    transform: translateY(-1px);
}

input[type="radio"]:checked + .radio-label {
    background: linear-gradient(145deg, #A0522D, #CD853F);
    border-color: #FF8E53;
    color: #FFFFFF;
    box-shadow: 
        inset 1px 1px 3px rgba(255,255,255,0.4),
        inset -1px -1px 3px rgba(0,0,0,0.5),
        0 0 0 3px rgba(255, 142, 83, 0.3),
        4px 4px 12px rgba(0,0,0,0.5);
    transform: translateY(-2px);
}

input[type="radio"]:checked + .radio-label:before {
    content: '✓';
    position: absolute;
    top: -5px;
    right: -5px;
    background: #FF8E53;
    color: #FFFFFF;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

h1::after {
    content: '☕ ✂ 📺';
    display: block;
    font-size: 0.3em;
    margin-top: 10px;
    opacity: 0.7;
    text-align: center;
}

.construction-notice {
    text-align: center;
    color: #FFFFFF;
    font-family: 'Oswald', sans-serif;
    font-size: 1.1em;
    font-weight: 600;
    margin: 10px 0 30px 0;
    font-style: normal;
    opacity: 1;
    text-shadow: 
        2px 2px 0px #2F1B14,
        4px 4px 0px #4A2C17,
        6px 6px 0px rgba(0,0,0,0.4);
    position: relative;
    z-index: 2;
}

@keyframes construction-glow {
    0% {
        background-position: 0% 50%;
        filter: brightness(1);
    }
    100% {
        background-position: 100% 50%;
        filter: brightness(1.2);
    }
}

.jokes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.joke-card {
    padding: 25px;
    border-radius: 0px;
    border: 3px solid #2F1B14;
    background: #FFFFFF;
    box-shadow: 
        inset 2px 2px 5px rgba(255,255,255,0.3),
        inset -2px -2px 5px rgba(0,0,0,0.2),
        8px 8px 20px rgba(0,0,0,0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    z-index: 1;
    outline: 1px solid #FFFFFF;
    outline-offset: -1px;
}

.joke-card::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, #8B4513, #A0522D, #D2691E);
    z-index: -1;
    border-radius: 0px;
}

.joke-card:hover {
    transform: translateY(-3px) rotate(1deg);
    box-shadow: 
        inset 2px 2px 5px rgba(255,255,255,0.4),
        inset -2px -2px 5px rgba(0,0,0,0.3),
        12px 12px 25px rgba(0,0,0,0.4);
}

.joke-card:nth-child(5n+1)::before {
    background: linear-gradient(45deg, #8B4513, #A0522D);
}

.joke-card:nth-child(5n+2)::before {
    background: linear-gradient(45deg, #654321, #8B4513);
}

.joke-card:nth-child(5n+3)::before {
    background: linear-gradient(45deg, #A0522D, #CD853F);
}

.joke-card:nth-child(5n+4)::before {
    background: linear-gradient(45deg, #8B4513, #D2691E);
}

.joke-card:nth-child(5n+5)::before {
    background: linear-gradient(45deg, #654321, #A0522D);
}

.joke-content {
    position: relative;
    font-size: 1.2em;
    line-height: 1.7;
    color: #1A0F0A;
    font-weight: 400;
    text-shadow: 0.5px 0.5px 1px rgba(255,255,255,0.5);
}


.dad-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #2F1B14;
    float: right;
    margin: 0 0 15px 15px;
    box-shadow: 
        3px 3px 8px rgba(0,0,0,0.4),
        inset 1px 1px 3px rgba(255,255,255,0.3);
    transition: transform 0.2s ease;
    filter: brightness(1.3) contrast(1.1);
}

.dad-image:hover {
    transform: scale(1.1) rotate(5deg);
}

.joke-question {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    margin-bottom: 15px;
    color: #FFFFFF;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 1em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.joke-answer {
    font-style: italic;
    font-weight: 400;
    color: #FFFFFF;
    margin-top: 20px;
    letter-spacing: 0.5px;
    position: relative;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.joke-answer::before {
    content: '"';
    font-size: 2em;
    color: #6B3E07;
    position: absolute;
    left: -15px;
    top: -10px;
    font-family: Georgia, serif;
    opacity: 0.8;
}

.joke-text {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    color: #FFFFFF;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 1em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    line-height: 1.7;
}

.reveal-btn {
    background: linear-gradient(145deg, #8B4513, #A0522D);
    color: #F5E6D3;
    border: 2px solid #2F1B14;
    padding: 12px 20px;
    border-radius: 0px;
    cursor: pointer;
    font-size: 0.85em;
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 20px auto 15px auto;
    display: block;
    min-width: 120px;
    box-shadow: 
        inset 1px 1px 3px rgba(255,255,255,0.3),
        inset -1px -1px 3px rgba(0,0,0,0.3),
        3px 3px 8px rgba(0,0,0,0.4);
    transition: all 0.2s ease;
    position: relative;
}

.reveal-btn::after {
    content: attr(data-hat);
    margin-left: 8px;
}

.reveal-btn:hover {
    background: linear-gradient(145deg, #A0522D, #CD853F);
    transform: translateY(-1px);
    box-shadow: 
        inset 1px 1px 3px rgba(255,255,255,0.4),
        inset -1px -1px 3px rgba(0,0,0,0.4),
        4px 4px 10px rgba(0,0,0,0.5);
}

.reveal-btn:active {
    transform: translateY(1px);
    box-shadow: 
        inset -1px -1px 2px rgba(255,255,255,0.2),
        inset 1px 1px 2px rgba(0,0,0,0.5),
        2px 2px 5px rgba(0,0,0,0.3);
}

.error {
    text-align: center;
    color: #d32f2f;
    font-size: 1.2em;
    padding: 40px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: linear-gradient(145deg, #F5E6D3, #FFFFFF);
    margin: auto;
    padding: 0;
    border: 3px solid #2F1B14;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    box-shadow: 
        0 20px 60px rgba(0,0,0,0.5),
        inset 2px 2px 5px rgba(255,255,255,0.3),
        inset -2px -2px 5px rgba(0,0,0,0.1);
    animation: slideIn 0.4s ease;
    position: relative;
}

.modal-header {
    background: linear-gradient(145deg, #8B4513, #A0522D);
    color: #FFFFFF;
    padding: 25px;
    border-radius: 12px 12px 0 0;
    text-align: center;
    border-bottom: 3px solid #2F1B14;
}

.warning-icon {
    font-size: 3em;
    display: block;
    margin-bottom: 10px;
    animation: pulse 2s infinite;
}

.modal-header h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.8em;
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.modal-body {
    padding: 30px;
    color: #2F1B14;
    font-family: 'Merriweather', serif;
    line-height: 1.6;
    text-align: center;
}

.modal-body p {
    margin-bottom: 15px;
    font-size: 1.1em;
}

.modal-body p:last-child {
    margin-bottom: 0;
    font-weight: bold;
    color: #8B4513;
}

.modal-footer {
    padding: 25px;
    display: flex;
    justify-content: space-between;
    gap: 15px;
    border-top: 2px solid #D2B48C;
}

.btn {
    padding: 15px 25px;
    border: 2px solid #2F1B14;
    border-radius: 8px;
    font-family: 'Oswald', sans-serif;
    font-size: 1em;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
    box-shadow: 
        inset 1px 1px 3px rgba(255,255,255,0.3),
        inset -1px -1px 3px rgba(0,0,0,0.2),
        3px 3px 8px rgba(0,0,0,0.3);
}

.btn-cancel {
    background: linear-gradient(145deg, #D3D3D3, #A9A9A9);
    color: #2F1B14;
}

.btn-cancel:hover {
    background: linear-gradient(145deg, #C0C0C0, #808080);
    transform: translateY(-2px);
    box-shadow: 
        inset 1px 1px 3px rgba(255,255,255,0.4),
        inset -1px -1px 3px rgba(0,0,0,0.3),
        4px 4px 10px rgba(0,0,0,0.4);
}

.btn-proceed {
    background: linear-gradient(145deg, #8B4513, #A0522D);
    color: #FFFFFF;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.btn-proceed:hover {
    background: linear-gradient(145deg, #A0522D, #CD853F);
    transform: translateY(-2px);
    box-shadow: 
        inset 1px 1px 3px rgba(255,255,255,0.4),
        inset -1px -1px 3px rgba(0,0,0,0.4),
        4px 4px 10px rgba(0,0,0,0.4);
}

.btn:active {
    transform: translateY(0px);
    box-shadow: 
        inset -1px -1px 2px rgba(255,255,255,0.2),
        inset 1px 1px 3px rgba(0,0,0,0.4),
        2px 2px 5px rgba(0,0,0,0.3);
}

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

@keyframes slideIn {
    from { 
        transform: scale(0.7) translateY(-50px);
        opacity: 0;
    }
    to { 
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

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

@media (max-width: 768px) {
    .jokes-grid {
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: 2em;
    }

    .breadcrumb {
        font-size: 0.75em;
        padding: 6px 12px;
    }

    .breadcrumb li:not(:last-child)::after {
        margin: 0 6px;
    }

    .social-media {
        gap: 15px;
    }

    .social-icon {
        width: 44px;
        height: 44px;
    }

    .social-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .modal-footer {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
    }
}

/* Footer Styles */
footer {
    margin-top: 40px;
    padding: 20px;
    text-align: center;
    color: #FEFDFB;
    font-size: 0.9em;
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-media {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(145deg, #8B4513, #A0522D);
    border: 2px solid #2F1B14;
    border-radius: 8px;
    color: #F5E6D3;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: inset 1px 1px 3px rgba(255,255,255,0.2), 
                inset -1px -1px 3px rgba(0,0,0,0.3), 
                3px 3px 8px rgba(0,0,0,0.4);
    font-size: 24px;
    line-height: 1;
}

.social-icon:hover {
    background: linear-gradient(145deg, #A0522D, #CD853F);
    transform: translateY(-2px);
    box-shadow: inset 1px 1px 3px rgba(255,255,255,0.3), 
                inset -1px -1px 3px rgba(0,0,0,0.4), 
                5px 5px 12px rgba(0,0,0,0.5);
    color: #FFFFFF;
}

.social-icon svg {
    width: 24px;
    height: 24px;
    transition: transform 0.2s ease;
}

.social-icon:hover svg {
    transform: scale(1.1);
}

footer a {
    color: #FFD700;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.disclaimer {
    margin-top: 10px;
    font-style: italic;
    opacity: 0.8;
}

/* SEO Content - Hidden from users but visible to search engines */
.seo-content {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.seo-hidden h2, .seo-hidden h3, .seo-hidden h4 {
    font-family: 'Oswald', sans-serif;
    color: #2F1B14;
}

.seo-hidden p, .seo-hidden li {
    color: #1A0F0A;
    line-height: 1.6;
}