html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.content-wrapper {
    flex: 1 0 auto;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Comic Sans MS', cursive, sans-serif;
    background-color: #f0f0f0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

/* Add this to the existing <style> section */
@keyframes headerBackgroundAnimation {
    0% { background-color: #ffebee; }  /* Light pink */
    33% { background-color: #e8f5e9; } /* Light green */
    66% { background-color: #e3f2fd; } /* Light blue */
    100% { background-color: #ffebee; }  /* Back to light pink */
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    animation: headerBackgroundAnimation 15s infinite;
}

/* Header Styles */
.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    width: 80px;
    height: 80px;
    margin-right: 20px;
}

.daycare-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.daycare-name {
    font-size: 28px;
    font-weight: bold;
    color: #ff6b6b;
    text-shadow: 1px 1px 2px #feca57;
}

.header .daycare-slogan {
    font-size: 16px !important; /* Use !important only for this crucial override */
    color: #48dbfb !important;
    font-style: italic !important;
    text-align: left !important; /* Override any center alignment */
    margin: 0 !important;
    padding: 0 !important;
    line-height: normal !important;
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    font-size: 14px;
    color: #333;
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateX(5px);
}

.contact-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    fill: #575ffc;
}

/* Navigation Styles */
.nav-container {
    width: 100%;
    background-color: #575ffc;
}

.nav-desktop {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
}

.nav-item {
    text-align: center;
}

.nav-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: white;
    font-size: 14px;
    padding: 10px;
    transition: all 0.3s ease;
}

.nav-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none; /* This prevents the icon wrapper from capturing clicks */
}

.nav-item a:hover {
    background-color: #feca57;
    border-radius: 10px;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.nav-icon {
    width: 30px;
    height: 30px;
    margin-bottom: 5px;
    transition: transform 0.3s ease;
    pointer-events: none; /* This prevents the icon from capturing clicks */
}

.nav-title {
    pointer-events: none;
}

.nav-item a:hover .nav-icon {
    transform: scale(1.2);
}

/* Mobile Menu Styles */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 11100;
}

.mobile-menu-icon {
    width: 30px;
    height: 20px;
    position: relative;
    transform: rotate(0deg);
    transition: .5s ease-in-out;
}

.mobile-menu-icon span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: #90EE90; /* Light green color */
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.mobile-menu-icon span:nth-child(1) {
    top: 0px;
}

.mobile-menu-icon span:nth-child(2), .mobile-menu-icon span:nth-child(3) {
    top: 8px;
}

.mobile-menu-icon span:nth-child(4) {
    top: 16px;
}

.mobile-menu-btn.open .mobile-menu-icon span:nth-child(1) {
    top: 8px;
    width: 0%;
    left: 50%;
}

.mobile-menu-btn.open .mobile-menu-icon span:nth-child(2) {
    transform: rotate(45deg);
}

.mobile-menu-btn.open .mobile-menu-icon span:nth-child(3) {
    transform: rotate(-45deg);
}

.mobile-menu-btn.open .mobile-menu-icon span:nth-child(4) {
    top: 8px;
    width: 0%;
    left: 50%;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #575ffc;
    /*z-index: 999;*/
    z-index: 11000;
    padding-top: 60px;
    overflow-y: auto;
}

/*.mobile-menu a {
    display: flex;
    align-items: center;
    padding: 15px;
    color: white;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: background-color 0.3s ease;
    overflow: hidden; !* Prevent content from overflowing *!
}*/

/* Mobile menu styles */
.mobile-menu a {
    display: flex;
    align-items: center;
    padding: 15px;
    color: white;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: background-color 0.3s ease;
}

.mobile-menu a:hover, .mobile-menu a:active {
    background-color: #feca57;
    padding-left: 20px; /* Move text slightly to the right on hover */
}

/*.mobile-menu .nav-icon {
    width: 24px;
    height: 24px;
    margin-right: 15px;
    flex-shrink: 0; !* Prevent icon from shrinking *!
    transition: transform 0.3s ease; !* Add transition for smooth movement *!
}*/

.mobile-menu .nav-icon {
    width: 24px;
    height: 24px;
    margin-right: 15px;
    flex-shrink: 0;
}

.mobile-menu a:hover .nav-icon {
    transform: translateX(-5px); /* Move icon slightly to the left on hover */
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
    .contact-info {
        display: none;
    }

    .nav-desktop {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
    }

    .mobile-menu.active {
        display: block;
    }

    .header {
        flex-direction: column;
        align-items: flex-start;
        padding-right: 60px; /* Make room for the mobile menu button */
    }

    .logo-container {
        margin-bottom: 10px;
    }

    .daycare-info {
        align-items: flex-start;
    }
}

/* Cool animation for menu items */
@keyframes rainbow {
    0% { color: #ff6b6b; }
    20% { color: #feca57; }
    40% { color: #48dbfb; }
    60% { color: #ff9ff3; }
    80% { color: #54a0ff; }
    100% { color: #5f27cd; }
}

.nav-item a:hover {
    animation: rainbow 4s linear infinite;
}

/* Accessibility focus styles */
/*a:focus, button:focus {
    outline: 3px solid #54a0ff;
    outline-offset: 2px;
}*/

/* Add a fun background pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
            radial-gradient(#feca57 2px, transparent 2px),
            radial-gradient(#ff9ff3 2px, transparent 2px);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
    opacity: 0.1;
    z-index: -1;
}

.more-menu {
    position: relative;
}

.more-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; /* Changed from right: 0 to left: 0 */
    background-color: #575ffc;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    border-radius: 0 0 10px 10px;
    z-index: 1000;
    max-width: 200px; /* Limit the width to prevent overflow */
    width: max-content; /* Adjust width based on content */
}

.more-dropdown a {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.more-dropdown .nav-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

/* Adjust the existing media query for responsiveness */
@media (max-width: 1024px) {
    .more-menu {
        display: none;
    }
}

/* Footer Styles */
.footer {
    background-color: #333;
    color: #fff;
    padding: 40px 0 20px;
    font-family: Arial, sans-serif;
    flex-shrink: 0;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    margin-bottom: 20px;
}

.footer-section h3 {
    color: #ff6b6b;
    margin-bottom: 15px;
}

.footer-section h3 i {
    margin-right: 10px;
}

.footer-section ul {
    list-style-type: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #ff6b6b;
}

.footer-section p {
    margin-bottom: 10px;
}

.footer-section p i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #555;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-section {
        margin-bottom: 30px;
        width: 100%;
    }

    .footer-section ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-section p {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-section p i {
        margin-right: 0;
        margin-bottom: 5px;
    }
}

@media (max-width: 500px) {
    .header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 10px;
    }

    .logo-container {
        flex-direction: column;
        align-items: center;
        margin-bottom: 10px;
    }

    .logo {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .daycare-info {
        align-items: center;
    }

    .daycare-name {
        margin-bottom: 5px;
    }

    /* Ensure mobile menu button doesn't interfere with centering */
    .mobile-menu-btn {
        position: fixed;
        top: 20px;
        right: 20px;
    }
}

/* Content styles */
.main-content {
    flex: 1;
    padding: 20px;
    font-family: Arial, sans-serif;
}