@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;700&display=swap');

body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    background: linear-gradient(135deg, #a8dadc 0%, #457b9d 100%);
    color: #f1faee;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}

.container {
    background-color: rgba(29, 53, 87, 0.8);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 800px;
    width: 90%;
    backdrop-filter: blur(5px);
}

header h1 {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #e63946;
}

.message-box {
    margin-bottom: 30px;
}

.message-box h2 {
    font-size: 2em;
    margin-bottom: 15px;
    color: #f1faee;
}

.message-box p {
    font-size: 1.1em;
    line-height: 1.6;
    color: #a8dadc;
}

footer p {
    margin-top: 30px;
    font-size: 0.9em;
    color: #a8dadc;
}

/* Animación del pescador */
.fisherman-scene {
    position: relative;
    width: 100%;
    height: 250px; /* Ajusta la altura de la escena */
    margin: 30px auto 0;
    overflow: hidden;
}

.sea {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background-color: #1d3557;
    border-radius: 0 0 15px 15px;
    animation: wave 4s infinite ease-in-out;
}

.land {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background-color: #e63946; /* Tierra rojiza al atardecer */
    border-radius: 0 0 15px 15px;
}

.sun {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    background-color: #ffe66d;
    border-radius: 50%;
    box-shadow: 0 0 40px #ffe66d;
    animation: sun-glow 3s infinite alternate ease-in-out;
}

.boat {
    position: absolute;
    bottom: 50px; /* Sobre el mar */
    left: 20%;
    width: 120px;
    height: 40px;
    background-color: #8d99ae;
    border-radius: 50% 50% 0 0;
    transform: rotate(5deg);
    animation: boat-float 5s infinite ease-in-out;
    z-index: 10;
}

.fisherman {
    position: absolute;
    bottom: 80px; /* Sentado en el bote */
    left: calc(20% + 40px); /* Posición relativa al bote */
    transform-origin: bottom center;
    animation: fisherman-bob 3s infinite ease-in-out;
    z-index: 11;
}

.fisherman .body {
    width: 30px;
    height: 40px;
    background-color: #457b9d;
    border-radius: 5px 5px 15px 15px;
    position: relative;
    left: -15px;
}

.fisherman .head {
    width: 25px;
    height: 25px;
    background-color: #f1c27d; /* Color de piel */
    border-radius: 50%;
    position: absolute;
    top: -20px;
    left: -12.5px;
    border: 2px solid #1d3557;
}

.fisherman .arm {
    width: 8px;
    height: 25px;
    background-color: #457b9d;
    position: absolute;
    top: 5px;
    left: 10px;
    border-radius: 4px;
    transform-origin: top center;
    transform: rotate(-30deg);
    animation: arm-move 2s infinite alternate ease-in-out;
}

.fisherman .rod {
    width: 3px;
    height: 60px;
    background-color: #a8dadc;
    position: absolute;
    top: -20px;
    left: 15px;
    transform-origin: bottom center;
    transform: rotate(45deg);
    animation: rod-move 2s infinite alternate ease-in-out;
    z-index: 12;
}

.fisherman .line {
    position: absolute;
    top: 35px;
    left: 15px;
    width: 1px;
    height: 50px;
    background-color: #f1faee;
    z-index: 1;
    transform-origin: top center;
    animation: line-float 2.5s infinite alternate ease-in-out;
}


/* Keyframes para las animaciones */
@keyframes wave {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes sun-glow {
    0%, 100% { box-shadow: 0 0 40px #ffe66d; }
    50% { box-shadow: 0 0 60px #ffe66d, 0 0 20px rgba(255,255,109,0.5); }
}

@keyframes boat-float {
    0%, 100% { transform: translateY(0) rotate(5deg); }
    50% { transform: translateY(5px) rotate(3deg); }
}

@keyframes fisherman-bob {
    0%, 100% { transform: translateY(0) scaleY(1); }
    50% { transform: translateY(2px) scaleY(0.98); }
}

@keyframes arm-move {
    0%, 100% { transform: rotate(-30deg); }
    50% { transform: rotate(-40deg); }
}

@keyframes rod-move {
    0%, 100% { transform: rotate(45deg); }
    50% { transform: rotate(50deg); }
}

@keyframes line-float {
    0%, 100% { height: 50px; transform: scaleX(1); }
    50% { height: 55px; transform: scaleX(1.05); }
}

/* Responsivo básico */
@media (max-width: 600px) {
    .container {
        padding: 20px;
    }
    header h1 {
        font-size: 2em;
    }
    .message-box h2 {
        font-size: 1.5em;
    }
    .message-box p {
        font-size: 0.9em;
    }
    .fisherman-scene {
        height: 200px;
    }
    .boat {
        width: 100px;
        height: 35px;
        bottom: 40px;
    }
    .fisherman {
        bottom: 70px;
        left: calc(20% + 30px);
        transform: scale(0.8);
    }
}