* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --pastel-blue: #B8E0D2;
    --pastel-pink: #F4C2C2;
    --pastel-purple: #D4A5F9;
    --pastel-yellow: #FFE5B4;
    --pastel-green: #C7E9C0;
    --pastel-peach: #FFD9B3;
    --text-dark: #2C3E50;
    --text-light: #5D6D7E;
    --white: #FFFFFF;
    --shadow: rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    background: linear-gradient(135deg, var(--pastel-blue) 0%, var(--pastel-pink) 50%, var(--pastel-purple) 100%);
    color: var(--text-dark);
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.3;
    z-index: -1;
    animation: subtleMove 20s ease-in-out infinite;
}

@keyframes subtleMove {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-10px, -10px) scale(1.05);
    }
}

header {
    text-align: center;
    padding: 3rem 2rem 2rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px var(--shadow);
    margin-bottom: 3rem;
    animation: fadeInDown 1s ease-out;
}

header h1 {
    font-size: 3rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% {
        text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
    }
    50% {
        text-shadow: 2px 2px 8px rgba(212, 165, 249, 0.6), 0 0 15px rgba(212, 165, 249, 0.4);
    }
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    font-style: italic;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

main {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

.card-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px var(--shadow);
    width: 100%;
    max-width: 800px;
    animation: cardFloat 6s ease-in-out infinite;
    transition: transform 0.3s ease;
}

@keyframes cardFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.card-content h2 {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-size: 2rem;
    border-bottom: 3px solid var(--pastel-purple);
    padding-bottom: 0.5rem;
}

.card-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    text-align: left;
    list-style-type: "⌛";
    padding-left: 1.5rem;
}

.card-text li {
    margin-bottom: 0.8rem;
    padding-left: 0.5rem;
    font-style: italic;
}

.card-question {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 2rem;
    font-style: italic;
    color: var(--pastel-purple);
}

.reveal-btn {
    background: linear-gradient(135deg, var(--pastel-purple) 0%, var(--pastel-pink) 100%);
    color: var(--white);
    border: none;
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(212, 165, 249, 0.4);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.reveal-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.reveal-btn:hover::before {
    left: 100%;
}

.reveal-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(212, 165, 249, 0.6);
}

.reveal-btn:active {
    transform: translateY(-1px) scale(1.02);
}

.btn-arrow {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.reveal-btn:hover .btn-arrow {
    transform: translateX(5px);
}

/* Figyelemfelkelő animáció 10 másodpercenként */
@keyframes attentionPulse {
    0%, 90%, 100% {
        transform: scale(1);
        box-shadow: 0 5px 20px rgba(212, 165, 249, 0.4);
    }
    5%, 85% {
        transform: scale(1.08);
        box-shadow: 0 8px 35px rgba(212, 165, 249, 0.7);
    }
}

.reveal-btn {
    animation: attentionPulse 10s ease-in-out infinite;
}

footer {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    margin-top: 3rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Modal stílusok */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: linear-gradient(135deg, var(--pastel-yellow) 0%, var(--pastel-peach) 50%, var(--pastel-pink) 100%);
    margin: 10% auto;
    padding: 2.5rem;
    border-radius: 25px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideDown 0.4s ease;
    border: 3px solid rgba(255, 255, 255, 0.5);
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    color: var(--text-dark);
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.2s ease;
}

.close:hover {
    transform: rotate(90deg) scale(1.2);
    color: var(--text-light);
}

.modal-content h2 {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-size: 2rem;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.modal-body {
    text-align: center;
}

.answer-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 15px;
    border-left: 5px solid var(--pastel-purple);
    animation: textPulse 2s ease-in-out infinite;
}

@keyframes textPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

.answer-subtext {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.6;
    font-style: italic;
}

/* Reszponzív design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .card-content h2 {
        font-size: 1.6rem;
    }
    
    .card-text {
        font-size: 1.3rem;
        line-height: 1.9;
    }
    
    .card-question {
        font-size: 1.4rem;
    }
    
    .reveal-btn {
        padding: 1.2rem 2rem;
        font-size: 1.1rem;
        width: 100%;
    }
    
    footer {
        font-size: 1rem;
    }
    
    .modal-content {
        margin: 15% auto;
        padding: 2rem;
        width: 95%;
    }
    
    .modal-content h2 {
        font-size: 1.8rem;
    }
    
    .answer-text {
        font-size: 1.8rem;
        padding: 1.2rem;
    }
    
    .answer-subtext {
        font-size: 1.3rem;
        line-height: 1.7;
    }
}

@media (max-width: 480px) {
    header {
        padding: 2rem 1rem 1.5rem;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    main {
        padding: 0 1rem 2rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .card-content h2 {
        font-size: 1.4rem;
    }
    
    .card-text {
        font-size: 1.2rem;
        line-height: 1.8;
        padding-left: 1.2rem;
    }
    
    .card-question {
        font-size: 1.3rem;
    }
    
    .reveal-btn {
        padding: 1.1rem 1.5rem;
        font-size: 1rem;
    }
    
    footer {
        font-size: 0.95rem;
        padding: 1.5rem;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 1.5rem;
    }
    
    .modal-content h2 {
        font-size: 1.6rem;
    }
    
    .answer-text {
        font-size: 1.6rem;
        padding: 1rem;
    }
    
    .answer-subtext {
        font-size: 1.2rem;
    }
}
