﻿body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

/* Full-width navbar */
.navbar {
    width: 100%;
    position: fixed; /* Fixed to the top */
    top: 0;
    z-index: 1030; /* Higher z-index to stay above other content */
    box-shadow: 0 1px 2px 0 rgba(0,0,0,.2);
    padding: 0px 0px 0px 10px;
}

    /* Custom background color */
    .navbar.bg-light {
        background-color: #fff !important; /* Change as per your theme */
    }

/* Navbar brand (logo) */
.navbar-brand img {
    max-height: 65px; /* Adjust size of the logo */
    width: auto;
}

/* Navbar link customization */
.navbar-nav .nav-link {
    padding: 0.75rem 1.25rem; /* Adjust padding */
    color: #333;
    font-size: 1.17rem;
}

/* Active link */
.navbar-nav .nav-item.active .nav-link {
    color: #333;
    font-size: 1.17rem;
}

/* Reset default toggler icon */
.navbar-toggler-icon {
    background-image: none !important;
}

/* Hamburger bars */
.toggler-icon {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #333;
    transition: all 0.3s ease-in-out;
}

.navbar-light .navbar-toggler {
    margin-right: 5px;
}
/* When open, turn into X */
.navbar-toggler.open .toggler-icon:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggler.open .toggler-icon:nth-child(2) {
    opacity: 0;
}

.navbar-toggler.open .toggler-icon:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Adjustments for collapsible navbar */
.navbar-collapse {
    justify-content: flex-end; /* Align items to the right */
}

/* Spacing below the navbar */
.content {
    padding-top: 70px; /* Height of the navbar */
}



/* Make all nav items vertically centered */
.nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 35px;
    padding: 0 15px;
}

    /* Active state with kids-friendly style */
    .nav-item.active {
        background: linear-gradient(135deg, #4facfe, #00d2ff, #007bff);
        background-size: 300% 300%;
        border-radius: 20px;
        transform: scale(1.08);
        transition: all 0.4s ease;
        animation: blueGradientShift 4s ease infinite;
    }

@@media (max-width: 1024px) {
    .navbar-nav {
        margin-bottom: 20px !important;
    }
    /* Mobile & iPads: solid background, no animation */
    .nav-item.active {
        background-color: #007bff;
        border-radius: 20px;
        transform: scale(1);
    }
}

@@keyframes blueGradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Link style */
.nav-link {
    color: #333;
    font-weight: bold;
    padding: 0; /* remove Bootstrap default padding */
}

/* Active link text */
.nav-item.active .nav-link {
    color: #fff !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

/* Hover effect */
.nav-item:hover {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}
