/* --- GLOBAL STYLES --- */
body {
    background: linear-gradient(135deg, #fad0c4 0%, #ffd1ff 100%);
    background-image: url(wp5380590.jpg);
    font-family: 'Nunito', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    position: relative;
    padding: 20px;
}

h1 {
    font-family: 'Dancing Script', cursive;
    color: #d32f2f;
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.sub-title {
    font-family: 'Dancing Script', cursive;
    color: #ff4081;
    font-size: 2.2rem;
    margin-top: -5px;
    margin-bottom: 25px;
}

.letter-title {
    font-size: 3.5rem;
    margin-bottom: 10px;
}

.container {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    max-width: 95%;
    width: 1000px; 
    z-index: 10;
    position: relative;
    border: 3px solid #fff;
    transition: all 0.3s ease;
}

.cartoon {
    height: 180px;
    object-fit: contain;
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* --- TIMER STYLES --- */
#timer-container {
    margin: 20px auto;
    padding: 15px;
    background-color: #fff0f5;
    border-radius: 15px;
    border: 2px dashed #ff80ab;
    max-width: 600px;
}

#timer-container p {
    margin: 0 0 5px 0;
    font-size: 18px;
    color: #888;
}

#timer {
    font-size: 24px;
    font-weight: bold;
    color: #d32f2f;
    font-family: 'Nunito', sans-serif;
}

/* --- GALLERY STYLES --- */
.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.image-slot {
    position: relative;
    width: 260px;  
    height: 350px; 
    border: 10px solid #fff;
    border-bottom: 30px solid #fff;
    border-radius: 5px;
    background-color: #fff;
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.image-slot:hover {
    transform: scale(1.05) rotate(2deg);
    z-index: 5;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.fixed-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2px;
    transition: opacity 0.5s ease; /* Lágy váltáshoz */
}

/* --- BUTTONS --- */
.buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 20px;
}

.btn {
    padding: 12px 25px;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Nunito', sans-serif;
}

.btn-yes {
    background-color: #ff4081;
    color: white;
    box-shadow: 0 4px 10px rgba(255, 64, 129, 0.3);
}

.btn-yes:hover {
    transform: scale(1.05);
    background-color: #f50057;
}

.btn-no {
    background-color: #ef5350;
    color: white;
    box-shadow: 0 4px 10px rgba(239, 83, 80, 0.3);
}

.btn-next {
    margin-top: 40px;
    background-color: #ff4081;
    color: white;
    padding: 15px 40px;
    font-size: 20px;
    box-shadow: 0 5px 15px rgba(255, 64, 129, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.btn-restart {
    margin-top: 30px;
    background-color: #90a4ae;
    color: white;
    font-size: 16px;
    padding: 10px 20px;
}

/* --- LETTER STYLES --- */
.letter-paper {
    background-color: #fffbf0;
    padding: 40px;
    border-radius: 5px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
    margin-top: 20px;
    border: 1px solid #e0e0e0;
    position: relative;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    min-height: 400px;
}

.letter-paper p {
    font-family: 'Caveat', cursive; /* Kért letisztult, romantikus betűtípus */
    font-size: 28px;
    line-height: 1.5;
    color: #4a4a4a;
    text-align: left;
    margin: 0;
}

.hidden {
    display: none !important;
}

/* --- HEARTS --- */
.heart {
    position: fixed;
    color: #fff;
    font-size: 20px;
    top: -10vh;
    animation: fall linear forwards;
    z-index: 0;
    opacity: 0.5;
    text-shadow: 0 0 5px rgba(255, 105, 180, 0.5);
}

@keyframes fall {
    to { transform: translateY(110vh) rotate(360deg); }
}

/* Mobil optimalizálás */
@media (max-width: 600px) {
    .container { width: 100%; padding: 15px; }
    .image-slot { 
        width: 100%; 
        max-width: 260px;
        height: 350px;
    }
    .letter-paper { padding: 20px; }
    .letter-paper p { font-size: 22px; }
}