/* Animated Start Page Styling for Pirate Island */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 10;
    background-color: rgba(17, 34, 64, 0.8);
    padding: 30px;
    border-radius: 10px;
    border: 2px solid #64ffda;
    margin-bottom: 20px;
    width: 80%;
    max-width: 600px;
}

.hero-content h2 {
    color: #64ffda;
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-animation {
    width: 100%;
    max-width: 800px;
    height: 400px;
    position: relative;
    border: 3px solid #64ffda;
    border-radius: 10px;
    background: linear-gradient(to bottom, #1a3a5f, #0a192f);
    overflow: hidden;
    box-shadow: 0 0 20px rgba(100, 255, 218, 0.3);
}

.features {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 40px;
    gap: 20px;
}

.feature {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    padding: 25px;
    background-color: #112240;
    border: 2px solid #64ffda;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-10px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background-color: #64ffda;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
}

.ship-icon::before {
    content: "";
    position: absolute;
    top: 20px;
    left: 15px;
    width: 50px;
    height: 30px;
    background-color: #8B4513;
    border-radius: 5px;
}

.ship-icon::after {
    content: "";
    position: absolute;
    top: 10px;
    left: 35px;
    width: 5px;
    height: 40px;
    background-color: #D2B48C;
}

.treasure-icon::before {
    content: "";
    position: absolute;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 30px;
    background-color: #FFD700;
    border-radius: 5px;
}

.treasure-icon::after {
    content: "";
    position: absolute;
    top: 10px;
    left: 30px;
    width: 20px;
    height: 20px;
    background-color: #C0C0C0;
    border-radius: 50%;
}

.crew-icon::before {
    content: "";
    position: absolute;
    top: 25px;
    left: 25px;
    width: 30px;
    height: 30px;
    background-color: #64ffda;
    border-radius: 50%;
}

.crew-icon::after {
    content: "";
    position: absolute;
    top: 15px;
    left: 15px;
    width: 15px;
    height: 15px;
    background-color: #64ffda;
    border-radius: 50%;
}

.news-section {
    margin-top: 50px;
    padding: 30px;
    background-color: #112240;
    border: 2px solid #64ffda;
    border-radius: 10px;
}

.news-section h2 {
    color: #64ffda;
    text-align: center;
    margin-bottom: 30px;
}

.news-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.news-item {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
    padding: 20px;
    background-color: rgba(10, 25, 47, 0.7);
    border: 1px solid #64ffda;
    border-radius: 5px;
}

.news-item h3 {
    color: #64ffda;
    margin-top: 0;
}

.news-date {
    display: block;
    margin-top: 15px;
    font-size: 0.9rem;
    color: #888;
}

/* Animation elements */
.bubble {
    position: absolute;
    bottom: -50px;
    background-color: rgba(100, 255, 218, 0.2);
    border-radius: 50%;
    animation: floatUp linear infinite;
}

@keyframes floatUp {
    to {
        transform: translateY(-500px);
    }
}

.cloud {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: float linear infinite;
}

@keyframes float {
    to {
        transform: translateX(-100px);
    }
}

.wave {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 20px;
    background: rgba(100, 255, 218, 0.3);
    animation: wave 2s linear infinite;
}

@keyframes wave {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100px);
    }
}
