/* =======================================================Global Variables======================================================= */
:root {
    /* Glow Sizes */
    --glow-size-large: 30px; /* Adjusted for general use */
    --glow-size-medium: 20px;
    --glow-size-small: 10px;

    /* Colors */
    --darkestColor: #101010;
    --darkColor: #1a1a1a;
    --wrapper: #1a1a1a;
    --main: #2b2b2bc9;
    --primaryAccent: #8f63a9; /* Primary accent color */
    --secondaryAccent: #46525e;
    --highlightPink: #ae99f4; /* Bright highlight color */
    --mediumColor: #8f63a9; /* Matches primaryAccent */
    --second: #7163a9; /* Secondary glow color */
    --lightestAccent: #f499d9; /* Light glow */
    --secondAccent: #46525e; /* Additional secondary accent */
    --pank: #9766ad; /* Another vibrant accent */
    --accentColor: #ffd700; /* Gold sparkle color */

    /* Fonts and Links */
    --fontColor: #ffffff; /* Base text color */
    --link-hover: #7163a9; /* Link hover color */
    --hover-color: #8f63a9; /* Button hover color */
}






/* =======================================================Base Styling for HTML and Body======================================================= */
html {
    min-height: 100vh; /* Ensure the body spans at least the full viewport height */
    scroll-behavior: smooth; /* Smooth scrolling for anchor links */
    scroll-padding-top: 80px; /* Adjust based on the height of your menu bar */

      
}

body {
    /* Background and layout */
    background-image: url('/estorica_assets/images/hero-bg.jpg');
    background-size: cover; /* Ensure the image covers the viewport */
    background-attachment: fixed; /* Keep the image fixed during scrolling */
    background-position: center; /* Center the image */
    color: var(--fontColor); /* Font color */
    font-family: Arial, sans-serif; /* Font family */
    margin: 0;
    padding: 0;
    padding-top: 50px; /* Adjust padding to accommodate the fixed navbar and logo */
    line-height: 1.6; /* Comfortable line spacing */
    min-height: 100vh; /* Ensure content spans the full viewport height */
    overflow-x: hidden; /* Prevent horizontal scrolling */
    display: block; /* Default layout for `body` */
    
}

body.animations-disabled * {
    animation: none !important;
    transition: none !important;
}

/* =======================================================Scrollbar Styling======================================================= */
body::-webkit-scrollbar {
    width: 8px;
    background-color: var(--darkColor);
    border: 1px solid var(--darkestColor);
}

body::-webkit-scrollbar-thumb {
    background: var(--primaryAccent); /* Consistent with accent colors */
    border: 1px solid var(--darkestColor);
}

/* Firefox Scrollbar Styling */
body {
    scrollbar-width: thin; /* Makes the scrollbar thinner */
    scrollbar-color: var(--primaryAccent) var(--darkColor); /* Set thumb and track colors */
}

/* =======================================================Utils======================================================= */
button#toggle-article-selector {
    margin: 20px;
}

/* Margin */
.margin-auto {
    margin: 0 auto;
}

.margin-small {
    margin: 10px;
}

.margin-large {
    margin: 40px;
}
/* Rounded Corners */
.rounded {
    border-radius: 8px;
}

.rounded-small {
    border-radius: 4px;
}

.rounded-large {
    border-radius: 12px;
}
/* Shadow Effects */
.shadow {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.shadow-heavy {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.shadow-light {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
/* Text Alignment */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}
/* Visibility Utilities */
.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

/* ======================================================= Buttons ======================================================= */

/* Base Button */
.btn {
    display: block;
    font-size: 16px;
    font-weight: bold;
    color: var(--fontColor);
    background-color: var(--primaryAccent);
    border: none;
    border-radius: 5px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
    background-color: var(--hover-color);
    transform: scale(1.05);
}

.btn:focus {
    outline: 2px solid var(--hover-color);
    outline-offset: 2px;
}

/* Button Variations */
.btn-primary {
    background-color: var(--primaryAccent);
}

.btn-primary:hover {
    background-color: #9766ad; /* A slightly darker shade */
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--secondaryAccent);
}

.btn-light {
    background-color: var(--wrapper);
    color: var(--primaryAccent);
    border: 1px solid var(--primaryAccent);
}

.btn-light:hover {
    background-color: var(--primaryAccent);
    color: var(--fontColor);
}
/* ======================================================= Forms ======================================================= */
/* Form Container */
.form-container {
    background-color: var(--darkColor);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.5);
    text-align: center;
    color: var(--fontColor);
    max-width: 600px;
    margin: 20px auto;
}

/* Input Fields */
input[type="text"], input[type="email"], textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    font-size: 14px;
    border: 1px solid var(--primaryAccent);
    border-radius: 5px;
    box-sizing: border-box;
    background-color: var(--wrapper);
    color: var(--fontColor);
}

input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
    outline: 2px solid var(--hover-color);
}

/* Submit Buttons */
input[type="submit"], input[type="button"] {
    background: var(--primaryAccent);
    color: var(--fontColor);
    font-size: 14px;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
/* ======================================================= Responsive Design ======================================================= */

input[type="submit"]:hover, input[type="button"]:hover {
    background-color: var(--hover-color);
}

/* Mobile Adjustments */
@media (max-width: 480px) {
    a.site-title span{
        font-size: clamp(2.5rem, 6vw, 3rem); /* Broaden the range for better scaling */
    }

    .banner {
        background: #1a1a1a7a; /* Keep background consistent */
    }

    .sub-title, .logo {
        font-size: clamp(1.9rem, 8vw, 2.2rem); /* Adjusted for mobiles */
    }

    .logo {
        padding-top: 10%;
        padding-bottom: 10%;
    }

    /* Navigation adjustments */
    nav {
        align-items: center;
    }
    nav a {
        padding: 10px; /* Ensure touch-friendly targets */
        font-size: 12px;
    }
    ul {
        padding-inline-start: 0; /* Unified list padding */
    }

    /* Image scaling */
    img {
        max-width: 100%; /* Ensure images fit within the container */
        height: auto;
    }

    /* Header adjustments */
    header {
        padding: 10px 15px;
        font-size: 1rem; /* Reduce header size for smaller screens */
    }

    /* Content adjustments */
    .section-content {
        margin: 5px 0;
        padding: 10px;
    }

    .content-section {
        width: 95%; /* Adjust width for very small screens */
    }

    /* Buttons */
    .btn {
        width: 100%; /* Make buttons full width for easier interaction */
        margin-bottom: 10px; /* Add spacing between buttons */
        font-size: 14px; /* Consistent font size */
    }

    /* Input fields */
    input[type="text"], input[type="email"], textarea {
        width: 100%; /* Ensure inputs are full width */
        box-sizing: border-box; /* Prevent padding from affecting width */
        font-size: 12px; /* Unified input font size */
    }

    /* Additional spacing and design elements */
 
    .rounded {
        border-radius: 4px;
    }

    .container {
        max-width: 100%;
        margin: 5px auto;
    }
}


    @media (max-width: 768px) {
        .banner {
            min-height: 80px; /* Consistent height */
        }
    
        .sub-title {
            font-size: clamp(1rem, 2.5vw, 1.5rem); /* Adjust sub-title for smaller devices */
        }
    
        .logo {
            padding-top: 8%;
            padding-bottom: 8%;
            font-size: clamp(3.8rem, 5vw, 4.6rem); /* Slightly larger for tablets */
        }
    
        a.site-title span{
            font-size: clamp(3rem, 4vw, 5rem); /* Slightly smaller range */
        }
        a.site-title{
            background-color: #2b2b2bc9;    }

        .content-section {
            width: 90%; /* Adjust width for tablets and smaller screens */
        }
    
        .section-content {
            max-width: 100%;
            margin: 10px 0;
        }
    
        .form-container {
            padding: 15px;
        }
    
        input[type="text"], input[type="email"], textarea {
            font-size: 14px;
            padding: 8px;
        }
    

        .container {
            max-width: 90%;
            margin: 10px auto;
        }
    
    
        .rounded {
            border-radius: 5px;
        }
    
        .text-center {
            text-align: center;
        }
    
        /* Navigation adjustments */

        nav a {
            padding: 10px; /* Ensure touch-friendly targets */
            font-size: 14px; /* Adjust for readability */
        }
    
        /* Button adjustments */
        .btn {
            font-size: 14px;
        }
    
        /* Image scaling */
        img {
            max-width: 100%; /* Ensure images do not overflow their containers */
            height: auto;
        }
    
        /* Header adjustments */
        header {
            padding: 10px 15px;
            font-size: 1.2rem; /* Reduce font size for headings */
        }
    
        /* Additional spacing */
        .margin-large {
            margin: 20px;
        }
    }
    

/* ======================================================= Animations ======================================================= */

.btn-glow {
    background-color: var(--primaryAccent);
    color: var(--fontColor);
    box-shadow: 0 0 5px var(--primaryAccent), 0 0 15px var(--primaryAccent);
    animation: glowEffect 2s ease-in-out infinite;
}

.btn-sparkle {
    background-color: var(--secondaryAccent);
    color: var(--fontColor);
    box-shadow: 0 0 5px white, 0 0 15px white;
    animation: sparkleEffect 1s infinite;
}
/* Header Glow */
.header-glow {
    animation: glowEffect 3s ease-in-out infinite;
}

/* Link Hover Sparkle */
.link-sparkle:hover {
    animation: sparkleEffect 1s infinite;
}

/* =======================================================Banner Keyframes and Animations======================================================= */
/* ======================================================= Site title ======================================================= */
@font-face {
    font-family: 'Zachar Book Scratched';
    src: url('/estorica_assets/fonts/ZacharBookScratched.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
.banner h1, .banner p { 
    margin: 0; /* Remove default margins */
    text-align: center; /* Ensure text alignment */
    line-height: 1.2; /* Improve spacing between text */
}
.banner {
    width: 100%;
    min-height: 94px;
    text-align: center;
    overflow: hidden;
    justify-content: center; /* Horizontal centering */
    align-items: center; /* Vertical centering */
    background: #1a1a1a7a; /* Ensure background consistency */
}


    .logo {
    padding-top: 5%; /* Existing styles */
    padding-bottom: 5%;
    line-height: 1; /* Existing styles */
    color: #fff;
    font-size: clamp(2rem, 4vw, 3rem); /* Existing styles */
    font-family: 'Zachar-BookScratched', sans-serif; /* Add this line for font */
    }

    .sub-title {
    display: block;
    font-size: clamp(1.5rem, 4vw, 2.5rem); /* Adjusted to scale responsively */
    position: relative;
    top: 8px;
    left: 0;
    letter-spacing: normal;
    font-family: 'Zachar-BookScratched', sans-serif; /* Ensure font consistency */
    }

a.site-title {

    -webkit-background-clip: text;
    color: var(--fontColor);
    font-size: clamp(5.5rem, 5vw, 9.5rem);
    line-height: 1;
    letter-spacing: -0.05em;
    font-family: 'Zachar-BookScratched', sans-serif;
}


    a.site-title span {
    -webkit-animation: glow 2s ease-in-out both infinite;
    animation: glow 2s ease-in-out both infinite;
    }

    a.site-title span:nth-child(1) { animation-delay: -0.32s; }
    a.site-title span:nth-child(2) { animation-delay: -1.17s; }
    a.site-title span:nth-child(3) { animation-delay: -0.45s; }
    a.site-title span:nth-child(4) { animation-delay: -0.76s; }
    a.site-title span:nth-child(5) { animation-delay: -1.89s; }
    a.site-title span:nth-child(6) { animation-delay: -1.02s; }
    a.site-title span:nth-child(7) { animation-delay: -0.58s; }
    a.site-title span:nth-child(8) { animation-delay: -1.33s; }

    @keyframes glow {
    0%, 100% {
      text-shadow: 
        0 -10px var(--glow-size-large) var(--mediumColor), 
        -10px 10px var(--glow-size-large) var(--second), 
        10px 10px var(--glow-size-large) var(--lightestAccent);
    }
    10% {
      text-shadow: 
        0 -10px var(--glow-size-large) var(--secondAccent), 
        -10px 10px var(--glow-size-large) var(--wrapper), 
        10px 10px var(--glow-size-large) var(--pank);
    }
    30% {
      text-shadow: 
        5px -5px var(--glow-size-large) var(--mediumColor), 
        -5px 5px var(--glow-size-large) var(--second), 
        0 7px var(--glow-size-large) var(--lightestAccent);
    }
    50% {
      text-shadow: 
        0 -10px var(--glow-size-large) var(--secondAccent), 
        -10px 10px var(--glow-size-large) var(--wrapper), 
        10px 10px var(--glow-size-large) var(--pank);
    }
    70% {
      text-shadow: 
        0 -10px var(--glow-size-large) var(--mediumColor), 
        -10px 10px var(--glow-size-large) var(--second), 
        10px 10px var(--glow-size-large) var(--lightestAccent);
    }
    90% {
      text-shadow: 
        0 -10px var(--glow-size-large) var(--secondAccent), 
        -10px 10px var(--glow-size-large) var(--wrapper), 
        10px 10px var(--glow-size-large) var(--pank);
    }
    }


/* ======================================================= Home Page Content Style ======================================================= */
.content-section {
    align-items: stretch;
    margin: 20px auto; /* Center the section horizontally */
    padding: 20px;
    background-color: var(--darkColor);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    width: 80%; /* Fixed width for all sections */
    max-width: 1200px; /* Limit the width for larger screens */
    box-sizing: border-box; /* Ensure padding doesn't increase the width */
}





/* Content Styling */
.section-content {
    padding: 20px;
    color: var(--fontColor);
    font-size: 1rem;
    line-height: 1.8;
    border-radius: 10px;
}

.section-content h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--primaryAccent);
}

.section-content p {
    margin-bottom: 10px;
}

/* Progress Bar */
.progress-bar {
    height: 25px;
    margin-top: 10px;
    border-radius: 5px;
    overflow: hidden;
    background-color: var(--secondaryAccent);
}

.progress-segment {
    text-align: center;
    line-height: 25px;
    color: var(--fontColor);
    font-size: 0.9rem;
}

.progress-segment.completed {
    background-color: var(--secondaryAccent);
}

.progress-segment.incomplete {
    background-color: var(--primaryAccent);
}

.progress-segment.not-started {
    background-color: var(--darkColor);
}
/* ======================================================= Documentation Pages ======================================================= */
.documentation-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 30px;
    background-color: var(--wrapper); /* Background to contrast with the main site */
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    font-family: Arial, sans-serif;
    color: var(--fontColor);
    line-height: 1.8;
}

.documentation-container h1, .documentation-container h2, .documentation-container h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--primaryAccent);
    font-weight: bold;
}

.documentation-container h1 {
    font-size: 2.5rem;
    border-bottom: 2px solid var(--primaryAccent);
    padding-bottom: 5px;
}

.documentation-container h2 {
    font-size: 2rem;
    border-bottom: 1px solid var(--secondaryAccent);
    padding-bottom: 3px;
}

.documentation-container h3 {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--highlightPink);
}

.documentation-container p {
    margin-bottom: 15px;
    text-align: justify;
}

.documentation-container ul {
    margin: 20px 0;
    padding-left: 40px;
    list-style: disc;
}

.documentation-container ul li {
    margin-bottom: 10px;
}

.documentation-container pre, .documentation-container code {
    display: block;
    background-color: var(--darkColor);
    padding: 10px;
    border-radius: 8px;
    color: var(--lightestAccent);
    font-family: 'Courier New', Courier, monospace;
    overflow-x: auto;
    margin-bottom: 20px;
}

.documentation-container a {
    color: var(--highlightPink);
    text-decoration: none;
    border-bottom: 1px dashed var(--highlightPink);
    transition: color 0.3s ease;
}

.documentation-container a:hover {
    color: var(--link-hover);
    border-bottom: 1px solid var(--link-hover);
}

/* Table Styling */
.documentation-container table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 1rem;
}

.documentation-container table th, 
.documentation-container table td {
    padding: 15px;
    text-align: left;
    border: 1px solid var(--secondaryAccent);
}

.documentation-container table th {
    background-color: var(--darkColor);
    color: var(--fontColor);
}

.documentation-container table td {
    background-color: var(--wrapper);
}

/* Breadcrumb Navigation */
.breadcrumb {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--secondaryAccent);
}

.breadcrumb a {
    color: var(--primaryAccent);
    text-decoration: none;
    border-bottom: 1px dashed var(--primaryAccent);
}

.breadcrumb a:hover {
    color: var(--highlightPink);
    border-bottom: 1px solid var(--highlightPink);
}

.background-list > li {
    margin-bottom: 20px;
    padding-left: 10px;
    border-left: 2px solid var(--secondaryAccent); /* Subtle divider */
  }
  
  .examples-list {
    padding-left: 20px;
    list-style-type: disc;
  }
  
  .examples-list > li {
    margin-bottom: 5px;
  }
  .template-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 1rem;
    text-align: left;
  }
  
  .template-table thead {
    background-color: var(--secondaryAccent);
    color: var(--fontColor);
  }
  
  .template-table th, .template-table td {
    padding: 10px 15px;
    border: 1px solid var(--darkColor);
  }
  
  .template-table tbody tr:nth-child(odd) {
    background-color: var(--darkColor);
  }
  
  .template-table tbody tr:nth-child(even) {
    background-color: var(--wrapper);
  }

  section[id]::before {
    content: "";
    display: block;
    height: 60px; /* Height of your menu bar */
    margin-top: -60px; /* Negative margin to offset the height */
  }
  
/* Mobile Adjustments */
@media (max-width: 768px) {
    .documentation-container {
        padding: 20px;
    }

    .documentation-container h1 {
        font-size: 2rem;
    }

    .documentation-container h2 {
        font-size: 1.6rem;
    }

    .documentation-container h3 {
        font-size: 1.3rem;
    }
}

/* ======================================================= Hero Section ======================================================= */
.hero-section {
    position: relative;
    width: 100%;
    height: 90vh; /* Adjust height based on preference */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--fontColor);
    overflow: hidden;
}

.hero-section::before,
.content-image-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
    z-index: 1; /* Keep this below the content */
    pointer-events: none; /* This ensures it does not block clicks */
}

.hero-section div,
.content-image-section .container {
    position: relative;
    z-index: 2; /* Ensure the content is above the overlay */
}


.hero-section h1 {
    font-size: 3rem;
    font-family: 'Zachar-BookScratched', sans-serif;
    color: var(--primaryAccent);
    z-index: 2;
    text-shadow: 0px 0px 10px var(--accentColor);
}

.hero-section p {
    font-size: 1.5rem;
    z-index: 2;
    margin-top: 10px;
}

/* ======================================================= Call-to-Action Buttons ======================================================= */
.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    z-index: 2;
    margin-top: 20px;
}

.cta-buttons .btn {
    padding: 10px 20px;
    font-size: 1rem;
    text-transform: uppercase;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.cta-buttons .btn:hover {
    transform: translateY(-3px);
}

/* ======================================================= Content Section with Image Background ======================================================= */
.content-image-section {
    position: relative;
    padding: 50px 20px;
    background-size: cover;
    background-position: center;
    color: var(--fontColor);
}

.content-image-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay */
    z-index: 1;
}

.content-image-section .container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.content-image-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--highlightPink);
    text-shadow: 0px 0px 8px var(--secondaryAccent);
}

.content-image-section p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* ======================================================= Cards for Content ======================================================= */
.card {
    background-color: var(--darkColor);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin: 20px auto; /* Center horizontally */
    transition: transform 0.3s ease;
    text-align: left;
    width: 80%;
    max-width: 1200px; /* Restrict maximum width for larger screens */
    box-sizing: border-box; /* Prevent padding overflow */
}

.card:hover {
    transform: translateY(-5px);
}



.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--primaryAccent);
}

.card p {
    font-size: 1rem;
    line-height: 1.6;
}


/* ======================================================= Additional Responsive Adjustments ======================================================= */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 1.2rem;
    }

    .content-image-section h2 {
        font-size: 2rem;
    }

    .content-image-section p {
        font-size: 1rem;
    }

    .cta-buttons .btn {
        font-size: 0.9rem;
        padding: 8px 15px;
    }

    .card {
        margin: 10px;
    }
}


/* =======================================================
     Carousel Widget Styles
======================================================= */
.carousel-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px auto;
    padding: 20px;
    background-color: var(--darkColor);
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    width: 80%;
    max-width: 1200px;
    overflow: hidden;
}

.carousel-slide {
    display: none;
    text-align: center;
    width: 100%;
    animation: fadeIn 0.5s ease-in-out;
}

.carousel-slide.active {
    display: block;
}

.carousel-slide h3 {
    font-size: 1.8rem;
    color: var(--primaryAccent);
    margin-bottom: 15px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

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

.carousel-slide ul li {
    margin: 10px 0;
    padding: 10px 15px;
    font-size: 1rem;
    color: var(--fontColor);
    background-color: var(--secondaryAccent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.carousel-slide ul li:hover {
    transform: translateY(-3px);
}

.carousel-slide ul li span:first-child {
    margin-right: 10px;
    font-size: 1.5rem;
}

.carousel-controls {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    width: 100%;
}

.carousel-controls button {
    background-color: var(--primaryAccent);
    color: var(--fontColor);
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.carousel-controls button:hover {
    background-color: var(--hover-color);
    transform: scale(1.05);
}

.carousel-controls button:disabled {
    background-color: var(--secondaryAccent);
    cursor: not-allowed;
    box-shadow: none;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .carousel-container {
        width: 95%;
        padding: 15px;
    }

    .carousel-slide h3 {
        font-size: 1.5rem;
    }

    .carousel-slide ul li {
        font-size: 0.9rem;
        padding: 8px 10px;
    }

    .carousel-controls button {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}

/* =======================================================
     Animations
======================================================= */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ======================================================= Contact Form ======================================================= */
#contact-form {
    position: fixed;
    top: var(--top-bar-height, 50px); /* Use a CSS variable for flexibility */
    left: 0;
    width: 100%;
    height: calc(100% - var(--top-bar-height, 50px));
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#contact-form .form-container {
    max-height: 90vh;
    overflow-y: auto;
}

#contact-form:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.modal-open {
    filter: blur(4px);
    transition: filter 0.3s ease;
}

/* Modal Overlay Enhancements */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Smooth transition for modal visibility */
.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-overlay:not(.hidden) {
    opacity: 1;
    pointer-events: all;
}

/* Close button hover */
.close-button {
    font-size: 1.5rem;
    position: absolute;
    top: 10px;
    right: 10px;
    color: var(--fontColor);
    background: transparent;
    border: none;
    cursor: pointer;
}

.close-button:hover {
    color: var(--primaryAccent);
}



/* ======================================================= Mana Navigation ======================================================= */
/* ======================================================= Scoped Variables ======================================================= */
:root {
    --mana-sys-border-radius: 16px;
    --mana-sys-padding: 18px;
    --mana-sys-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    --mana-grid-gap: 20px; /* Space between grid items */
    --mana-grid-item-min-width: 120px; /* Minimum width for grid items */
}

/* ======================================================= Scoped Styles ======================================================= */
/* Scoped dropdown styles */
.mana-dropdown {
  position: relative;
  display: inline-block;
}

.mana-dropdown .dropdown-content {
  display: none; /* Start hidden */
  position: absolute;
  background-color: var(--main);
  min-width: 160px;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1;
  overflow-y: scroll;
  height: 471px;
  scrollbar-width: thin;
  scrollbar-color: var(--primaryAccent) var(--darkColor);
}

.mana-dropdown .dropdown-content::-webkit-scrollbar {
    width: 8px;
    background-color: var(--darkColor);
}

.mana-dropdown .dropdown-content::-webkit-scrollbar-thumb {
    background-color: var(--primaryAccent);
    border-radius: 8px;
    border: 2px solid var(--darkColor);
}

.mana-dropdown .dropdown-content .dropdown-item {
  width: 99%;
  outline: 1px solid #4f4f4f8c;
  color: var(--fontColor);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  background: var(--darkColor);
  border: none;
  text-align: left;
  cursor: pointer;
}

.mana-dropdown .dropdown-content .dropdown-item:hover {
  background-color: var(--primaryAccent);
}

.mana-dropdown:hover .dropdown-content {
  display: block;
}

.mana-dropdown .dropdown-button {
  background-color: var(--primaryAccent);
  color: var(--fontColor);
  padding: 10px 16px;
  font-size: 16px;
  border: none;
  cursor: pointer;
}

.mana-dropdown .dropdown-button:hover {
  background-color: var(--hover-color);
}


/* ======================================================= Mana Card ======================================================= */
/* Mana Details Card */
.mana-card {
    background-color: var(--darkColor);
    color: var(--fontColor);
    border-radius: var(--glow-size-medium);
    padding: var(--glow-size-medium);
    margin: 20px auto;
    box-shadow: 0px 0px var(--glow-size-large) var(--primaryAccent);
    text-align: left;
}

.mana-card h2 {
    font-size: 1.8rem;
    color: var(--primaryAccent);
    margin-bottom: 10px;
    text-align: center;
}

.mana-card h3 {
    font-size: 1.5rem;
    margin-top: 20px;
    color: var(--pank);
}

.mana-card p,
.mana-card ul {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 10px;
}

.mana-card ul {
    list-style: disc;
    margin-left: 20px;
}

.mana-card ul li {
    margin-bottom: 5px;
}

div#mana-container {
    width: 75%;
    margin: auto;
}

@media (max-width: 768px) {
    .mana-card {
        padding: var(--glow-size-small);
    }

    .mana-card h2 {
        font-size: 1.5rem;
    }

    .mana-card h3 {
        font-size: 1.2rem;
    }

    .mana-card p,
    .mana-card ul {
        font-size: 0.9rem;
    }

    div#mana-container {
        width: 100%; /* Full-width container on smaller screens */
        margin: auto; /* Centered */
    }
}
 /* ======================================================= Additional Components ======================================================= */
 /* Adjustments for better touch targets */
button, input {
    touch-action: manipulation; /* Prevent unwanted gestures */
    padding: 12px;
    font-size: 1rem;
}

/* Ensure the navigation bar adapts to small screens */
.mana-navigation {
    flex-wrap: wrap; /* Allow buttons to stack */
    gap: 10px; /* Add space between buttons */
}

/* Adjust input fields */
input[type="text"] {
    width: 100%; /* Make inputs full width on small screens */
    box-sizing: border-box; /* Include padding in width calculation */
}
