/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Pirata One', cursive;
    background-color: #000000;
    color: #ffffff;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.container {
    width: 100%;
    height: 100%;
    text-align: center;
    animation: fadeIn 1.5s ease-in;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

/* Header section */
.header {
    margin-bottom: 2rem;
}

/* Hero section */
.hero {
    margin-bottom: 2rem;
}

.pirate-image {
    max-width: min(400px, 60vw);
    max-height: 40vh;
    width: 100%;
    height: auto;
    border-radius: 15px;
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
    object-fit: contain;
}

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

/* Message section */
.message {
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.well-wishes {
    font-size: clamp(1rem, 3vw, 1.4rem);
    line-height: 1.4;
    margin-bottom: 1.5rem;
    color: #f0f0f0;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.well-wishes:last-child {
    margin-bottom: 2rem;
}

/* Footer */
.footer {
    margin-top: auto;
}

.pirate-saying {
    font-size: clamp(1.2rem, 4vw, 5rem);
    font-style: normal;
    margin-bottom: 1rem;
    color: #f0f0f0;
    font-weight: 400;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.1);
    white-space: nowrap;
    letter-spacing: 1px;
    line-height: 1.3;
}

.pirate-proverb {
    font-size: clamp(0.9rem, 2.5vw, 1.2rem);
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-style: italic;
    color: #cccccc;
    white-space: nowrap;
    margin-top: 2rem;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.05);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Viewport height-based progressive hiding */
@media (max-height: 700px) {
    .pirate-saying {
        display: none;
    }
    
    .header {
        margin-bottom: 1rem;
    }
}

@media (max-height: 500px) {
    .well-wishes {
        display: none;
    }
    
    .message {
        margin-bottom: 1rem;
    }
}

@media (max-height: 400px) {
    .pirate-image {
        max-width: 200px;
    }
    
    .hero {
        margin-bottom: 1rem;
    }
    
    .pirate-proverb {
        font-size: 1rem;
    }
}

/* Responsive design for mobile text wrapping */
@media (max-width: 768px) {
    .pirate-saying,
    .well-wishes,
    .pirate-proverb {
        white-space: normal;
    }
    
    .container {
        padding: 1rem;
    }
}

/* FSM link in bottom right corner */
.fsm-link {
    position: fixed;
    bottom: 10px;
    right: 10px;
    z-index: 1000;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.fsm-link:hover {
    opacity: 1;
}

.fsm-link img {
    width: 40px;
    height: auto;
    border-radius: 4px;
}

