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

html {
    min-height: 100%;
    height: 100%;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-image: url('/images/army.jpg');
    background-repeat: repeat;
    background-position: center;
    background-size: 100% 100%;
    min-height: 100vh;
    height: 100%;
    margin: 0;
    padding: 0;
}

/* Add a semi-transparent overlay to improve readability */
main {
    background-color: rgba(205, 219, 197, 0.95);  /* Light army green with high transparency */
    border-radius: 20px;
    margin: 2rem auto;
    max-width: 1200px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

/* Activity cards and sections with lighter army green */
.activity-card, 
.about-section {
    background-color: rgba(226, 234, 220, 0.95);  /* Even lighter army green */
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid rgba(169, 186, 157, 0.3);  /* Subtle army green border */
}

.best-days-section {
    background-color: rgba(213, 226, 204, 0.95);  /* Slightly different light army green */
}

.calendar-section {
    background-color: rgba(220, 230, 213, 0.95);  /* Another light army green variation */
}

/* Update text colors to match the army theme */
.hero h1,
.about-section h2,
.activity-card h3 {
    color: #4A5D41;  /* Darker army green for headings */
}

/* Header and Navigation */
header.header {
    background-color: rgba(229, 115, 115, 0.95);
    padding: 1rem 2rem;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-right {
    position: relative;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.home-link {
    text-decoration: none;
}

/* Menu Styles */
.menu-btn {
    background: white;
    color: #e57373;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1001;
    font-size: 1rem;
}

.menu-btn:hover {
    transform: scale(1.05);
    background-color: #f8f8f8;
}

.menu-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
    min-width: 220px;
    display: none;
    z-index: 1000;
}

.menu-dropdown.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem 1.2rem;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 1rem;
    margin: 0.2rem 0;
}

.menu-item:hover {
    background-color: #f5f5f5;
    color: #e57373;
    transform: translateX(5px);
}

.menu-item.home-link {
    color: #4CAF50;
}

.menu-item.best-days-link {
    color: #e57373;
}

.menu-item.calendar-link {
    color: #4169e1;
}

.menu-item.logout-link {
    border-top: 1px solid #eee;
    margin-top: 0.5rem;
    padding-top: 1rem;
    color: #f44336;
}

.menu-item:hover {
    background-color: #f5f5f5;
}

.menu-item.home-link:hover {
    color: #388E3C;
}

.menu-item.best-days-link:hover {
    color: #d32f2f;
}

.menu-item.calendar-link:hover {
    color: #1a237e;
}

.menu-item.logout-link:hover {
    color: #d32f2f;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-button {
    background-color: white;
    color: #e57373;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.login-button:hover {
    transform: scale(1.05);
}

/* Main Content */
.welcome-section {
    text-align: center;
    margin-bottom: 3rem;
}

.welcome-section h1 {
    font-size: 3rem;
    color: #e57373;
    margin-bottom: 2rem;
}

.mascot-container {
    width: 100%;
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 20px;
    position: relative;
}

.dragon-wrapper {
    position: absolute;
    animation: flying 6s linear infinite;
    left: 50%;
}

.dragon-mascot {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 4;
}

.trail-set {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.trail {
    position: absolute;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(4px);
}

/* First trail set */
.trail-set-1 .trail-1 { right: -40px; animation: fadeTrail 2s infinite; }
.trail-set-1 .trail-2 { right: -80px; animation: fadeTrail 2s infinite 0.3s; }
.trail-set-1 .trail-3 { right: -120px; animation: fadeTrail 2s infinite 0.6s; }

/* Second trail set - slightly offset position */
.trail-set-2 .trail-1 { right: -60px; top: 10px; animation: fadeTrail 2s infinite 0.2s; }
.trail-set-2 .trail-2 { right: -100px; top: 10px; animation: fadeTrail 2s infinite 0.5s; }
.trail-set-2 .trail-3 { right: -140px; top: 10px; animation: fadeTrail 2s infinite 0.8s; }

/* Third trail set - different offset */
.trail-set-3 .trail-1 { right: -50px; top: -10px; animation: fadeTrail 2s infinite 0.4s; }
.trail-set-3 .trail-2 { right: -90px; top: -10px; animation: fadeTrail 2s infinite 0.7s; }
.trail-set-3 .trail-3 { right: -130px; top: -10px; animation: fadeTrail 2s infinite 1s; }

@keyframes flying {
    0% {
        transform: translateX(100%) translateY(0);
    }
    25% {
        transform: translateX(50%) translateY(-30px);
    }
    50% {
        transform: translateX(0) translateY(0);
    }
    75% {
        transform: translateX(-50%) translateY(-30px);
    }
    100% {
        transform: translateX(-100%) translateY(0);
    }
}

@keyframes fadeTrail {
    0% {
        opacity: 0.9;
        transform: scale(0.9) translateX(0);
        background: rgba(255, 255, 255, 0.3);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.6) translateX(-30px);
        background: rgba(255, 255, 255, 0.2);
    }
    100% {
        opacity: 0;
        transform: scale(0.3) translateX(-60px);
        background: rgba(255, 255, 255, 0.1);
    }
}

/* Hover effects */
.dragon-wrapper:hover {
    animation-play-state: paused;
}

.dragon-wrapper:hover .trail {
    animation-play-state: paused;
}

.about-section {
    background-color: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 3rem;
    text-align: center;
}

.about-section h2 {
    color: #e57373;
    margin-bottom: 1rem;
}

.feature-image {
    max-width: 100%;
    border-radius: 10px;
    margin-top: 1.5rem;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.activity-card {
    background-color: white;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
}

.activity-card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.activity-card h3 {
    color: #e57373;
    margin-bottom: 0.5rem;
}

.special-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.best-days-section,
.calendar-section {
    background-color: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
}

.best-days-section {
    background-color: #f3e5f5;
}

.calendar-section {
    background-color: #fff3e0;
}

.circular-portrait,
.activity-preview {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    margin: 1.5rem auto;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.circular-portrait:hover,
.activity-preview:hover {
    transform: scale(1.05);
}

.special-button {
    background-color: #e57373;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin-top: 1rem;
}

.special-button:hover {
    transform: scale(1.05);
    background-color: #ef5350;
}

/* Footer */
footer {
    background-color: #e57373;
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: 3rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .welcome-section h1 {
        font-size: 2rem;
    }

    .activities-grid,
    .special-sections {
        grid-template-columns: 1fr;
    }

    nav {
        flex-direction: column;
        gap: 1rem;
    }
}
