@font-face {
    font-family: 'FlaresGothicCustom';
    src: 
        url('fonts/flare_gothic.ttf') format('truetype');
}

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

body {
    font-family: 'FlaresGothicCustom', 'Georgia', 'Garamond', serif;
    background-color: #0062B0;
    color: #000000;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.header {
    text-align: center;
    margin-bottom: 4px;
    animation: fadeIn 1.5s ease-in;
}

.title {
    font-size: 3.5em;
    font-weight: bold;
    color: #000000;
    margin-bottom: 6px;
    text-shadow: 
        1px 1px 0 #D9C6A2,
        -1px -1px 0 #D9C6A2,
        1px -1px 0 #D9C6A2,
        -1px 1px 0 #D9C6A2,
        2px 2px 3px rgba(217, 198, 162, 0.5);
}

.subtitle {
    font-size: 2.2em;
    color: #000000;
    font-style: italic;
    margin-bottom: 2px;
    text-shadow: 
        1px 1px 0 #D9C6A2,
        -1px -1px 0 #D9C6A2,
        1px -1px 0 #D9C6A2,
        -1px 1px 0 #D9C6A2,
        1px 1px 2px rgba(217, 198, 162, 0.4);
}

.dates {
    font-size: 2.4em;
    color: #000000;
    margin: 2px 0;
    letter-spacing: 2px;
    text-align: center;
    animation: fadeIn 2s ease-in;
    text-shadow: 
        1px 1px 0 #D9C6A2,
        -1px -1px 0 #D9C6A2,
        1px -1px 0 #D9C6A2,
        -1px 1px 0 #D9C6A2,
        1px 1px 2px rgba(217, 198, 162, 0.4);
}

.image-container {
    width: 100%;
    max-width: 800px;
    margin: 4px 0 24px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    animation: slideUp 1.8s ease-out;
}

.image-container img {
    width: 100%;
    height: auto;
    display: none;
    transition: transform 0.5s ease;
}

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

/* Desktop: show landscape image */
.image-landscape {
    display: block !important;
}

/* Hide portrait image by default */
.image-portrait {
    display: none !important;
}

.footer {
    text-align: center;
    padding: 30px 20px;
    background-color: rgba(255,255,255,0.1);
    border-top: 2px solid #D9C6A2;
    width: 100%;
    margin-top: auto;
}

.copyright {
    font-size: 1.5em;
    color: #000000;
    margin-bottom: 10px;
    text-shadow: 
        1px 1px 0 #D9C6A2,
        -1px -1px 0 #D9C6A2,
        1px -1px 0 #D9C6A2,
        -1px 1px 0 #D9C6A2;
}

.contact {
    font-size: 1.5em;
}

.contact a {
    color: #000000;
    text-decoration: none;
    transition: all 0.3s ease;
    text-shadow: 
        0.5px 0.5px 0 #D9C6A2,
        -0.5px -0.5px 0 #D9C6A2,
        0.5px -0.5px 0 #D9C6A2,
        -0.5px 0.5px 0 #D9C6A2;
}

.contact a:hover {
    color: #D9C6A2;
}

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

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tablet portrait: show vertical image */
@media (max-width: 768px) and (orientation: portrait) {
    .image-landscape {
        display: none !important;
    }
    
    .image-portrait {
        display: block !important;
    }
    
    .title {
        font-size: 2.3em;
    }
    
    .subtitle {
        font-size: 1.6em;
    }
    
    .dates {
        font-size: 1.6em;
        letter-spacing: 1px;
    }
    
    .container {
        padding: 20px 15px;
    }
}

/* Smartphone portrait: show vertical image */
@media (max-width: 480px) and (orientation: portrait) {
    .image-landscape {
        display: none !important;
    }
    
    .image-portrait {
        display: block !important;
    }
    
    .title {
        font-size: 2em;
    }
    
    .subtitle {
        font-size: 1.4em;
    }
    
    .dates {
        font-size: 1.3em;
    }
}

/* Tablet landscape: show landscape image */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: landscape) {
    .image-landscape {
        display: block !important;
    }
    
    .image-portrait {
        display: none !important;
    }
}
