body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    color: #8a4f9e;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul li {
  margin: 12px 0;
  padding: 10px 15px;
  background-color: #f3f3f3;
  border-radius: 8px;
  transition: background-color 0.3s ease;
  border: 2px solid #b48fce;
}

ul li a {
  text-decoration: none;
  font-weight: 500;
  display: block;
}

ul li:hover {
  background-color: #deffd8;
}

h1 {
    font-size: 2.5em;
    font-weight: 700;
    color: #8a4f9e; /* A soft purple to match the theme */
    text-align: center;
    margin: 10px 0;
    padding: 10px 15px;
    border-radius: 20px;
}

h1 {
    animation: fadeInScale 0.6s ease-out;
}

p {
    color: #333333;
    font-size: large;
    text-align: center;
}

p {
    animation: fadeInScale 0.6s ease-out;
}

ul {
    animation: fadeInScale 0.6s ease-out;
}


@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.content-area {
    position: relative;
    background-image: url('../public/left_dots.png');
    background-size: 20%;
    background-repeat: no-repeat;
    background-position: left top;
    background-color: #ffffff; /* Set a fallback background color */
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center the content */
    justify-content: flex-start; /* Center the content vertically */
    min-height: 80vh;
    width: 80vw;
    padding: 140px 20px 20px 20px; /* Add top padding to avoid overlap with nav */
    margin: 0 auto; /* Center the content area */
    border-radius: 10px;
    z-index: 1;
}

.content-area::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../public/cover.png');
    background-repeat: no-repeat;
    background-size: 40%;
    background-position: top center;
    background-position-y: 80px;
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
}

.content-area .text-area {
    opacity: 1;
    z-index: 2;
}

.nav-container {
    background: transparent;
    width: 80vw; /* Match content area width */
    display: flex;
    flex-direction: column; /* Stack the main and sub-nav */
    justify-content: flex-start; /* Center the content vertically */
    align-items: center; /* Center the container content horizontally */
    padding: 5px 0;
    position: absolute; /* Position over the content */
    top: 20px; /* Space from the top of the page */
    left: 50%; /* Center horizontally */
    transform: translateX(-50%); /* Fine-tune horizontal centering */
    z-index: 10; /* Ensure it's on top */
    border-radius: 15px; /* Rounded corners */
    opacity: 0.95; /* Slightly transparent */
}

.navbar {
    font-weight: bold;
    font-size: 17px; /* Large font size */
    display: flex;
    background: linear-gradient(to bottom, #d8fcfd, #ffe4f8);
    border-radius: 50px; /* Large border radius for the cigar shape */
    padding: 10px 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    width: 100%; /* Adjust width to content */
    justify-content: center; /* Center the navigation items */
    margin-bottom: 10px; /* Add some space between the main and sub-nav */
}

.navbar a {
    color: #000000; /* White text */
    text-decoration: none;
    padding: 10px 20px;
    margin: 0 10px;
    border-radius: 25px; /* Rounded corners for nav items */
    transition: background-color 0.3s ease; /* Smooth transition */
    font-weight: 500; /* Medium font weight */
}

.navbar a:hover {
    background-color: #ffc6f0; /* Pastel pink on hover */
    color: #0b5200;
}

.navbar a.active {
    background-color: #ceffc9; /* Light green for active page */
    color: #000000;
}

.sub-navbar {
    display: flex;
    background-color: #f0e6ef; /* A slightly different pastel color */
    border-radius: 50px;
    padding: 8px 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    width: fit-content;
}

.sub-navbar a {
    color: #333;
    text-decoration: none;
    padding: 8px 15px;
    margin: 0 8px;
    border-radius: 20px;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

.sub-navbar a:hover {
    background-color: #e0b0d4; /* A darker shade on hover */
}

.sub-navbar a.sub-active {
    background-color: #b3e5fc; /* Another pastel color for active sub-item */
    font-weight: 600;
}

/* Responsive adjustments for tablets and smaller screens */
@media (max-width: 768px) {
    .nav-container {
        padding: 15px 0; /* Slightly reduce padding */
    }

    .navbar {
        display: flex; /* Keep main nav horizontal */
        flex-direction: row; /* Ensure horizontal flow */
        justify-content: center; /* Center the items */
        align-items: center; /* Vertically align items if needed */
        padding: 10px;
        border-radius: 50px; /* Maintain rounded shape */
        margin-bottom: 10px;
        overflow-x: auto; /* Enable horizontal scrolling if items overflow */
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    }

    .navbar a {
        margin: 0 8px; /* Adjust horizontal spacing */
        padding: 10px 15px; /* Adjust padding */
        width: auto; /* Adjust width to content */
        text-align: center;
        border-radius: 25px; /* Maintain rounded corners */
        font-size: 1em;
        white-space: nowrap; /* Prevent text wrapping */
    }

    .sub-navbar {
        display: flex; /* Keep sub-nav horizontal */
        flex-direction: row; /* Ensure horizontal flow */
        justify-content: center; /* Center the items */
        align-items: center; /* Vertically align items if needed */
        padding: 8px;
        border-radius: 50px;
        overflow-x: auto; /* Enable horizontal scrolling if items overflow */
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    }

    .sub-navbar a {
        margin: 0 6px; /* Adjust horizontal spacing */
        padding: 8px 12px; /* Adjust padding */
        width: auto; /* Adjust width to content */
        text-align: center;
        border-radius: 20px;
        font-size: 0.9em;
        white-space: nowrap; /* Prevent text wrapping */
    }

    h1 {
        font-size: 2em;
    }
}

/* Further adjustments for very small mobile screens (e.g., phones) */
@media (max-width: 480px) {
    .nav-container {
        top: 5px; /* Remove the extra gap */
        padding-top: 0; /* Optional: tighten spacing even more */
        width: 100%;
    }
    .content-area {
        width: 100%;
        height: 100%;
        background-repeat: repeat-y;
        background-size: 50px;
        border-radius: 0px; /* Rounded corners */
        padding: 0px 0px 0px 0px;
        min-height: 100vh;
    }

    .content-area::after {
       background-size: 70%;
       top: 0;
       bottom: 0;
       left: 0;
       right: 0;
    }

    .navbar {
        padding: 4px; /* Further reduce padding */
        border-radius: 20px;
        width: 90%;
    }

    .navbar a {
        margin: 0 6px;
        padding: 8px 12px;
        font-size: 0.9em;
        border-radius: 10px;
    }

    .sub-navbar {
        padding: px;
        border-radius: 40px;
    }

    .sub-navbar a {
        margin: 0 4px;
        padding: 3px 10px;
        font-size: 0.85em;
        border-radius: 15px;
    }

    #content-area {
        padding: 70px 0px; /* Adjust content area padding */
        margin-top: 00px;
        font-size: 0.9em; /* Slightly smaller content text */
    }

    h1 {
        font-size: 1.5em;
    }
}
