/* General Page Styling */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background-color: white;
    min-height: 100vh; /* Ensure full height */
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Background patterns container */
.background-patterns {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Base styling for all pattern layers */
.background-patterns > div {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-repeat: repeat;
    opacity: 0.15;
    will-change: transform;
}

/* Individual pattern layers */
body {
    background-image: url('../images/pattern1.svg');
    background-repeat: repeat;
    background-size: 300px 300px;
}

.pattern-layer-4 {
    z-index: -3;
    background-image: url('../images/pattern4.svg');
    background-size: 450px 450px;
    animation: floatPattern 4s infinite ease-in-out;
    animation-delay: 0.5s;
}

.pattern-layer-5 {
    z-index: -4;
    background-image: url('../images/pattern5.svg');
    background-size: 500px 500px;
    animation: floatPattern 4s infinite ease-in-out;
    animation-delay: 1s;
}

.pattern-layer-6 {
    z-index: -5;
    background-image: url('../images/pattern6.svg');
    background-size: 550px 550px;
    animation: floatPattern 4s infinite ease-in-out;
    animation-delay: 1.5s;
}

.pattern-layer-7 {
    z-index: -6;
    background-image: url('../images/pattern7.svg');
    background-size: 600px 600px;
    animation: floatPattern 8s infinite ease-in-out;
    animation-delay: 2s;
}

.pattern-layer-8 {
    z-index: -7;
    background-image: url('../images/pattern8.svg');
    background-size: 650px 650px;
    animation: floatPattern 8s infinite ease-in-out;
    animation-delay: 2.5s;
}

.pattern-layer-9 {
    z-index: -8;
    background-image: url('../images/pattern9.svg');
    background-size: 700px 700px;
    animation: floatPattern 8s infinite ease-in-out;
    animation-delay: 3s;
}

.pattern-layer-10 {
    z-index: -9;
    background-image: url('../images/pattern10.svg');
    background-size: 750px 750px;
    animation: floatPattern 8s infinite ease-in-out;
    animation-delay: 3.5s;
}

/* Header Styling */
.quiz-header {
    background-color: #FFD700 ;
    padding: 10px 10px;
    display: flex;
    justify-content: center; /* Align items to the left */
    align-items: center;
    gap: 10px; /* Space between header elements */
    width: 100%;
    box-sizing: border-box; /* Ensure padding doesn't overflow */
}

.quiz-header h1 {
    margin: 0;
    font-size: 2rem;
    color: black;
}

.back-btn {
    background-color: #333;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
}

/* Page Content Styling */
.page-content {
    flex: 1; /* This will take up all available space, pushing the footer down */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px; /* Padding to prevent overflow */
    box-sizing: border-box;
}

/* Container Styling */
.container {
    background-color: white;
    border: 2px solid black;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    padding: 20px;
    width: 100%;
    max-width: 1200px;
    box-sizing: border-box;
    border-spacing: 5px;
}

/* Ensure container has comfortable spacing on small screens */
@media (max-width: 600px) {
    .container {
    margin: 12px auto !important;
    padding: 12px;
    border-width: 1px;
    box-sizing: border-box;
    max-width: calc(100% - 24px); /* ensure 12px gap on both sides */
    overflow-x: hidden; /* prevent horizontal overflow from children */
    }
}

/* Question Container Styling */
.question-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    flex-grow: 1;
}


.card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    width: 100%;
    max-width: 600px; /* Set a maximum width for better readability */
    overflow-wrap: break-word; /* Ensure long text wraps properly */
    text-align: left;
}

/* Radio Options */
.radio-option {
    margin: 10px 0;
    align-items: center; /* Center-aligns if needed */
}

/* Apply justification to both the question and options */
#question-content p, #options-container .form-check-label {
    text-align: justify; /* Justify text */
}

.radio-option input[type="radio"] {
    margin-top: 0; /* Ensure input stays aligned */
    transform: scale(1.2); /* Adjust size slightly for better visibility on mobile */
}

.radio-option label {
    line-height: 1.0; /* Align label text with input */
}




input[type="radio"] {
    margin-right: 10px;
}


/* Interest Buttons Styling */
.interest-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.interest-buttons form {
    display: flex;
    flex-direction: column;
    width: 100%; /* Ensure buttons take full width */
}

.interest-btn {
    background-color: #ffcc00;
    border: 2px;
    color: white;
    padding: 15px 30px;
    margin: 10px 0;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.3s ease;
    width: 100%;
}

.interest-btn:hover {
    transform: scale(1.1);
    background-color: #FFD700;
}

/* Footer Styling */
.footer {
    background-color: black;
    text-align: center;
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
}

.footer p {
    margin: 0;
    font-size: 16px;
    color: white;
}

/* Honeycomb button container */
.button-honeycomb {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Center buttons */
    width: 100%; /* Full width */
}

/* Styling for individual honeycomb buttons */
.mesh-btn {
    margin: 5px; /* Space between buttons */
    padding: 10px 20px; /* Padding inside buttons */
    position: relative; /* For pseudo-elements */
    display: inline-block; /* Allow positioning */
    text-align: center; /* Center text */
}

/* Create the honeycomb effect */
.mesh-btn::before,
.mesh-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background-color: inherit; /* Inherit background color */
    transform: translate(-50%, -50%);
    z-index: -1; /* Place behind the button */
}

.mesh-btn::before {
    border-radius: 15%; /* Rounded corners for the honeycomb */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Optional shadow */
}

.mesh-btn:nth-child(odd) {
    margin-left: 25px; /* Stagger odd buttons */
}



/* Button Hover Effect */
.mesh-btn:hover {
    transform: scale(1.1);
}

/* Hint Button Styling */
.hint-btn {
    background-color: #fff;
    color: #007bff;
    border: 2px solid #007bff;
    border-radius: 5px;
    padding: 10px 15px;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s, color 0.3s;
}

.hint-btn:hover {
    background-color: #007bff;
    color: white;
}

/* AI Hint Message Styling */
.ai-hint-message {
    background-color: #f1f1f1;
    border-radius: 8px;
    padding: 10px 15px;
    margin-top: 10px;
    font-style: italic;
    border-left: 4px solid #007bff;
    color: #333;
    animation: fadeIn 0.5s;
    display: block;
    justify-content: center; /* Align items to the left */
    text-align: justify; /* Justify text for alignment */
    align-items: center; /* Center items vertically */
}

/* Initially hidden hint message */
.hidden {
    display: none;
}

/* Fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}


.ai-message {
    margin-top: 10px;
    padding: 15px;
    background-color: #f1f1f1;
    border-radius: 8px;
    font-style: italic;
    color: #333;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

h1 {
    font-family: 'Baloo Bhai 2', cursive;
    font-size: 3rem; /* Adjust size as needed */
    color: #fe0808 ; /* Yellow color for the text */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2); /* Subtle shadow for a bubble effect */
    margin: 0;
    padding: 10px;
}

.custom-outline-button {
    font-weight: bold; /* Make the text bold */
}

.tagline-container {
    text-align: center;
    font-size: 1.8rem;
    font-weight: bold;
    margin-top: 40px;  /* Adds space below the header */
    line-height: 1.5;
    color: #333;
}

.ai-highlight {
    color: #0077b6;  /* Light blue for AI emphasis */
    font-weight: bold;
    display: block;  /* Moves the text after AI to the next line */
    margin-top: 5px;
}

/* Typing animation */
@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink {
    50% { border-color: transparent; }
}

.tagline-text {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid #333;
    animation: typing 4s steps(40, end) forwards, blink 0.7s step-end infinite;
    width: 0;
}

.domain-display-container {
    text-align: center;
    margin: 20px auto;
    padding: 10px;
    border: 2px solid black;
    border-radius: 10px;
    width: 80%;
    font-size: 1.5rem;
    background-color: black;
    font-family: 'Baloo Bhai 2';
}

.tagline-container {
    font-family: 'Baloo Bhai 2', cursive;
    text-align: center;
    color: white ;
}

.tagline-container span.ai {
    color: black;
}

.tagline-container p {
    margin: 0;
    line-height: 1.8;
    font-size: 36px; /* Adjusted for larger font */
}

.image-gallery {
    display: flex; /* Use flexbox for better layout */
    justify-content: center; /* Center the images */
    flex-wrap: wrap; /* Wrap images to the next line if necessary */
}

.image-gallery img {
    width: 300px; /* Set image width */
    margin: 10px; /* Add some margin */
    opacity: 0.5; /* Set initial opacity to 50% */
    transition: opacity 0.3s ease; /* Smooth transition for hover effect */
}

.image-gallery img:hover {
    opacity: 1; /* Set opacity to 100% on hover */
}

.dynamic-text {
    font-size: clamp(16px, 5vw, 36px); /* Min: 16px, Max: 36px */
}

.highlight-text {
    display: inline-block; /* Ensures background wraps around the text properly */
    background-color: #000000; /* Neon blue background */
    color: white; /* Dark text for contrast */
    padding: 5px 2px; /* Space around the text */
    border-radius: 8px; /* Rounded corners for smoother look */
    box-shadow: 0 0 10px rgba(0, 191, 255, 0.7); /* Neon glow effect */
    transition: background-color 0.3s ease, color 0.3s ease; /* Smooth hover transition */
}

@media (max-width: 768px) {
    .w3-display-container {
        height: 100vh; /* Ensure it covers mobile screens */
    }
    img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}
/* Taglines Styling */
.taglines p {
    color: white;
    font-size: 1.6rem;
    margin: 0;
    line-height: 1.5;
    text-align: center;
}

/* Dropdown Container Styling */
.dropdown-container {
    background-color: rgba(100, 100, 100, 0.9);
    padding: 10px;
    border-radius: 10px;
    width: 100%;
    max-width: 800px;
    margin: auto;
    transition: width 0.3s ease-in-out;
    text-align: center;
}



/* Form Select Styling */
.form-select {
    flex: 1;
    min-width: 200px;
    max-width: calc(100% - 80px);
}

/* Go Button Styling */
.go-button {
    background-color: black;
    color: white;
    border: none;
    font-size: 0.9rem; /* Smaller font size */
    padding: 8px 20px; /* Small padding */
    width: auto; /* Keep width consistent */
    flex-shrink: 0; /* Prevent shrinking */
}

/* Pattern animation */
@keyframes floatPattern {
    0% {
        transform: translate(0, 0);
        opacity: 0.2;
    }
    25% {
        transform: translate(20px, -20px);
        opacity: 0.3;
    }
    50% {
        transform: translate(0, -40px);
        opacity: 0.4;
    }
    75% {
        transform: translate(-20px, -20px);
        opacity: 0.3;
    }
    100% {
        transform: translate(0, 0);
        opacity: 0.2;
    }
}

@keyframes pattern2 {
    0%, 100% { background-position: 0% 0%, 10% 10%, 20% 20%, 30% 30%, 40% 40%, 50% 50%, 60% 60%, 70% 70%, 80% 80%, 90% 90%; }
    50% { background-position: 0% 0%, 60% -30%, 20% 20%, 30% 30%, 40% 40%, 50% 50%, 60% 60%, 70% 70%, 80% 80%, 90% 90%; }
}

@keyframes pattern3 {
    0%, 100% { background-position: 0% 0%, 10% 10%, 20% 20%, 30% 30%, 40% 40%, 50% 50%, 60% 60%, 70% 70%, 80% 80%, 90% 90%; }
    50% { background-position: 0% 0%, 10% 10%, -50% 70%, 30% 30%, 40% 40%, 50% 50%, 60% 60%, 70% 70%, 80% 80%, 90% 90%; }
}

@keyframes pattern4 {
    0%, 100% { background-position: 0% 0%, 10% 10%, 20% 20%, 30% 30%, 40% 40%, 50% 50%, 60% 60%, 70% 70%, 80% 80%, 90% 90%; }
    50% { background-position: 0% 0%, 10% 10%, 20% 20%, 70% -60%, 40% 40%, 50% 50%, 60% 60%, 70% 70%, 80% 80%, 90% 90%; }
}

@keyframes pattern5 {
    0%, 100% { background-position: 0% 0%, 10% 10%, 20% 20%, 30% 30%, 40% 40%, 50% 50%, 60% 60%, 70% 70%, 80% 80%, 90% 90%; }
    50% { background-position: 0% 0%, 10% 10%, 20% 20%, 30% 30%, -70% 40%, 50% 50%, 60% 60%, 70% 70%, 80% 80%, 90% 90%; }
}

@keyframes pattern6 {
    0%, 100% { background-position: 0% 0%, 10% 10%, 20% 20%, 30% 30%, 40% 40%, 50% 50%, 60% 60%, 70% 70%, 80% 80%, 90% 90%; }
    50% { background-position: 0% 0%, 10% 10%, 20% 20%, 30% 30%, 40% 40%, 80% -40%, 60% 60%, 70% 70%, 80% 80%, 90% 90%; }
}

@keyframes pattern7 {
    0%, 100% { background-position: 0% 0%, 10% 10%, 20% 20%, 30% 30%, 40% 40%, 50% 50%, 60% 60%, 70% 70%, 80% 80%, 90% 90%; }
    50% { background-position: 0% 0%, 10% 10%, 20% 20%, 30% 30%, 40% 40%, 50% 50%, -60% 70%, 70% 70%, 80% 80%, 90% 90%; }
}

@keyframes pattern8 {
    0%, 100% { background-position: 0% 0%, 10% 10%, 20% 20%, 30% 30%, 40% 40%, 50% 50%, 60% 60%, 70% 70%, 80% 80%, 90% 90%; }
    50% { background-position: 0% 0%, 10% 10%, 20% 20%, 30% 30%, 40% 40%, 50% 50%, 60% 60%, 90% -70%, 80% 80%, 90% 90%; }
}

@keyframes pattern9 {
    0%, 100% { background-position: 0% 0%, 10% 10%, 20% 20%, 30% 30%, 40% 40%, 50% 50%, 60% 60%, 70% 70%, 80% 80%, 90% 90%; }
    50% { background-position: 0% 0%, 10% 10%, 20% 20%, 30% 30%, 40% 40%, 50% 50%, 60% 60%, 70% 70%, -50% 80%, 90% 90%; }
}

@keyframes pattern10 {
    0%, 100% { background-position: 0% 0%, 10% 10%, 20% 20%, 30% 30%, 40% 40%, 50% 50%, 60% 60%, 70% 70%, 80% 80%, 90% 90%; }
    50% { background-position: 0% 0%, 10% 10%, 20% 20%, 30% 30%, 40% 40%, 50% 50%, 60% 60%, 70% 70%, 80% 80%, 80% -60%; }
}

/* Responsive Layout */
@media (max-width: 768px) {
    .dropdown-container {
        width: 100%;
    }
    .d-flex {
        flex-direction: column;
        align-items: stretch;
    }
    .form-select {
        margin-bottom: 10px;
    }
    
}

/* Tagline Styling to Mimic Selected Text */
.highlighted-text {
    background-color:  black; /* Light blue (selection color) */
    color: white; /* White text (like selected text) */
    padding: 0px 10px; /* Fit the container to text size */
    border-radius: 10px; /* Add slight rounding */
    display: inline-block; /* Fit to content size */
    user-select: none; /* Disable real selection */
}

/* Adjust Container Layout */
.taglines {
    text-align: center;
    margin-bottom: 20px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .highlighted-text {
        font-size: 1rem; /* Adjust size on small screens */
    }
}

.loader-wrapper {
    display: flex;
    align-items: center;  /* Align items vertically */
    justify-content: center;  /* Center horizontally */
    gap: 10px;  /* Add spacing between text and loader */
    flex-wrap: wrap;  /* Prevent overlap on smaller screens */
    text-align: center;
}
/* HTML: <div class="loader"></div> */
.loader {
    width: 4px;
    color: #000;
    aspect-ratio: 1;
    border-radius: 50%;
    box-shadow: 
      19px -19px 0 0px, 38px -19px 0 0px, 57px -19px 0 0px,
      19px 0     0 5px, 38px 0     0 5px, 57px 0     0 5px,
      19px 19px  0 0px, 38px 19px  0 0px, 57px 19px  0 0px;
    transform: translateX(-38px);
    animation: l26 2s infinite linear;
  }
  @keyframes l26 {
    12.5% {box-shadow: 
      19px -19px 0 0px, 38px -19px 0 0px, 57px -19px 0 5px,
      19px 0     0 5px, 38px 0     0 0px, 57px 0     0 5px,
      19px 19px  0 0px, 38px 19px  0 0px, 57px 19px  0 0px}
    25%   {box-shadow: 
      19px -19px 0 5px, 38px -19px 0 0px, 57px -19px 0 5px,
      19px 0     0 0px, 38px 0     0 0px, 57px 0     0 0px,
      19px 19px  0 0px, 38px 19px  0 5px, 57px 19px  0 0px}
    50%   {box-shadow: 
      19px -19px 0 5px, 38px -19px 0 5px, 57px -19px 0 0px,
      19px 0     0 0px, 38px 0     0 0px, 57px 0     0 0px,
      19px 19px  0 0px, 38px 19px  0 0px, 57px 19px  0 5px}
    62.5% {box-shadow: 
      19px -19px 0 0px, 38px -19px 0 0px, 57px -19px 0 0px,
      19px 0     0 5px, 38px 0     0 0px, 57px 0     0 0px,
      19px 19px  0 0px, 38px 19px  0 5px, 57px 19px  0 5px}
    75%   {box-shadow: 
      19px -19px 0 0px, 38px -19px 0 5px, 57px -19px 0 0px,
      19px 0     0 0px, 38px 0     0 0px, 57px 0     0 5px,
      19px 19px  0 0px, 38px 19px  0 0px, 57px 19px  0 5px}
    87.5% {box-shadow: 
      19px -19px 0 0px, 38px -19px 0 5px, 57px -19px 0 0px,
      19px 0     0 0px, 38px 0     0 5px, 57px 0     0 0px,
      19px 19px  0 5px, 38px 19px  0 0px, 57px 19px  0 0px}
  }

.loading-text {
    font-size: 16px;
    color: #000;
    margin: 0;
    padding-right: 25px;
}

.logo-container {
    position: relative;
}

.logo-image {
    position: relative;
    /* top: -20px; /* Adjust this value to control the overlap */
    width: 140px
}