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

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.hidden {
    display: none !important;
}

.access-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.access-box {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    max-width: 500px;
    width: 90%;
}

.access-box h1 {
    font-family: 'Dancing Script', cursive;
    font-size: 2.3rem;
    color: #db2777;
    margin-bottom: 10px;
}

.password-hint {
    background: #fef3c7;
    padding: 10px;
    border-radius: 10px;
    margin: 20px 0;
    font-size: 0.9rem;
}

#password-input {
    width: 100%;
    padding: 15px;
    margin: 20px 0;
    border: 2px solid #fbcfe8;
    border-radius: 10px;
    font-size: 1.2rem;
    text-align: center;
    letter-spacing: 3px;
}

button {
    background: linear-gradient(to right, #ec4899, #8b5cf6);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    font-weight: 500;
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.3);
}

.error-message {
    color: #ef4444;
    margin-top: 15px;
    min-height: 20px;
}

/* Header */
header {
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 40px;
}

.main-title {
    font-family: 'Dancing Script', cursive;
    font-size: 3.5rem;
    color: #db2777;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2rem;
    color: #6b7280;
    margin-bottom: 30px;
}

.counter {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
}

.counter-item {
    background: white;
    padding: 20px;
    border-radius: 15px;
    min-width: 120px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.counter-item span {
    font-size: 2.5rem;
    font-weight: bold;
    color: #8b5cf6;
    display: block;
}

.timeline-section, .gallery-section, .map-section, .memory-generator, .final-message {
    margin: 60px 0;
    padding: 30px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    color: #7c3aed;
    margin-bottom: 30px;
    text-align: center;
}

.timeline-container {
    position: relative;
    padding: 20px 0;
}

.timeline-item {
    display: flex;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

.timeline-date {
    min-width: 100px;
    font-weight: bold;
    color: #ec4899;
    padding-right: 20px;
    text-align: right;
}

.timeline-content {
    padding-left: 30px;
    border-left: 3px solid #fbcfe8;
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #8b5cf6;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: scale(1.03);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.gallery-item p {
    padding: 15px;
    background: white;
    text-align: center;
    font-style: italic;
}

#memory-map {
    height: 400px;
    border-radius: 15px;
    margin: 20px 0;
    border: 3px solid #fbcfe8;
}

.map-legends {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.legend {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pin {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-block;
}

.pin.heart { background: #ec4899; }
.pin.star { background: #f59e0b; }
.pin.coffee { background: #78350f; }

.memory-box {
    text-align: center;
    padding: 30px;
    background: #fef3c7;
    border-radius: 15px;
    margin-top: 20px;
}

#random-memory {
    font-size: 1.3rem;
    font-style: italic;
    min-height: 60px;
    margin-bottom: 20px;
    color: #78350f;
}

.letter {
    background: #fdf2f8;
    padding: 40px;
    border-radius: 15px;
    margin-top: 20px;
    line-height: 1.8;
    border-left: 5px solid #ec4899;
}

.letter p {
    margin-bottom: 15px;
}

.date {
    text-align: right;
    color: #6b7280;
    font-style: italic;
    margin-top: 30px;
}

.easter-egg {
    text-align: center;
    color: #8b5cf6;
    cursor: pointer;
    margin-top: 40px;
    font-style: italic;
    padding: 10px;
    transition: all 0.3s;
}

.easter-egg:hover {
    color: #ec4899;
    text-decoration: underline;
}

#secret-message {
    text-align: center;
    font-size: 1.5rem;
    color: #db2777;
    margin-top: 20px;
    animation: pulse 2s infinite;
}

#hello-kitty-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; 
    z-index: 9998;
    overflow: hidden;
}

.hello-kitty {
    position: absolute;
    pointer-events: none;
    user-select: none;
    opacity: 0.7;
    filter: drop-shadow(0 0 5px rgba(255, 105, 180, 0.5));
    transition: opacity 0.3s ease;
}

.hello-kitty:hover {
    opacity: 1;
    transform: scale(1.1);
}


.hk-pink { filter: drop-shadow(0 0 8px rgba(255, 105, 180, 0.7)); }
.hk-blue { filter: drop-shadow(0 0 8px rgba(135, 206, 250, 0.7)); }
.hk-purple { filter: drop-shadow(0 0 8px rgba(147, 112, 219, 0.7)); }
.hk-yellow { filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.7)); }

/* Animazioni */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Responsive */
@media (max-width: 768px) {
    .main-title { font-size: 2.5rem; }
    .counter { flex-direction: column; gap: 20px; }
    .counter-item { min-width: auto; }
    .gallery { grid-template-columns: 1fr; }
    .map-legends { flex-direction: column; align-items: center; }
}
