/* Global Styles */
:root {
    --primary-color: #ff6b6b;
    --secondary-color: #5f27cd;
    --background-color: #f9f9f9;
    --text-color: #333;
    --timeline-color: #6c5ce7;
    --pixel-color: #2d3436;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

h1, h2, h3 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

/* Header Styles */
header {
    text-align: center;
    padding: 2rem 0;
    background: linear-gradient(135deg, #f9d5e5, #d6e0f0);
    position: relative;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Pixel Heart */
.pixel-heart {
    width: 50px;
    height: 50px;
    margin: 1rem auto;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 10"><path fill="%23ff6b6b" d="M5 9L4 8L3 7L2 6L1 5L1 3L2 2L3 1L4 2L5 3L6 2L7 1L8 2L9 3L9 5L8 6L7 7L6 8L5 9"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
}

.pixel-heart-animated {
    width: 40px;
    height: 40px;
    margin: 0 10px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 10"><path fill="%23ff6b6b" d="M5 9L4 8L3 7L2 6L1 5L1 3L2 2L3 1L4 2L5 3L6 2L7 1L8 2L9 3L9 5L8 6L7 7L6 8L5 9"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    animation: pulse 1.5s infinite;
}

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

/* Main Content */
main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 1rem;
}

section {
    margin-bottom: 3rem;
    padding: 2rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Intro Section */
.intro {
    text-align: center;
}

.pixel-portraits {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.pixel-portrait {
    width: 100px;
    height: 100px;
    background-color: #f1f1f1;
    border: 3px solid var(--secondary-color);
}

#idan-portrait {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 10"><rect fill="%235f27cd" x="3" y="1" width="4" height="4"/><rect fill="%232d3436" x="2" y="5" width="6" height="3"/><rect fill="%23f7d794" x="3" y="2" width="4" height="3"/><rect fill="%232d3436" x="4" y="3" width="1" height="1"/><rect fill="%232d3436" x="6" y="3" width="1" height="1"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
}

#anastasya-portrait {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 10"><rect fill="%23ff6b6b" x="3" y="1" width="4" height="4"/><rect fill="%235f27cd" x="2" y="5" width="6" height="3"/><rect fill="%23f7d794" x="3" y="2" width="4" height="3"/><rect fill="%232d3436" x="4" y="3" width="1" height="1"/><rect fill="%232d3436" x="6" y="3" width="1" height="1"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
}

/* Timeline Styles */
.timeline-container {
    display: flex;
    flex-direction: column;
    margin: 40px auto 80px;
    position: relative;
    max-width: 1200px;
}

.timeline-container::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: #ff69b4;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
    box-shadow: 0 0 10px rgba(255, 105, 180, 0.7);
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

.timeline-content {
    padding: 20px;
    background-color: #fff;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.timeline-content::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    background-color: #ff69b4;
    border-radius: 50%;
    top: 22px;
    box-shadow: 0 0 10px rgba(255, 105, 180, 0.7);
    z-index: 1;
}

.left .timeline-content::after {
    right: -47px;
}

.right .timeline-content::after {
    left: -47px;
}

.timeline-date {
    font-size: 0.9rem;
    color: #ff69b4;
    font-weight: bold;
    margin-bottom: 5px;
}

.timeline-title {
    margin: 5px 0 10px;
    color: #333;
}

.timeline-image {
    margin-top: 15px;
    border-radius: 6px;
    overflow: hidden;
}

.timeline-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.timeline-image img:hover {
    transform: scale(1.05);
}

/* Mobile timeline adjustments */
@media screen and (max-width: 768px) {
    .timeline-container::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .right {
        left: 0;
    }
    
    .left .timeline-content::after,
    .right .timeline-content::after {
        left: -36px;
    }
}

/* Birthday Wish */
.birthday-wish {
    text-align: center;
}

.message {
    padding: 1rem;
    font-size: 1.2rem;
    min-height: 100px;
}

/* Footer */
footer {
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
    color: var(--text-color);
    font-size: 0.9rem;
}

.admin-link {
    margin-top: 0.5rem;
    font-size: 0.8rem;
}

.admin-link a {
    color: #999;
    text-decoration: none;
}

.admin-link a:hover {
    text-decoration: underline;
} 