/* Fonts */
body {
    font-family: 'Sora', sans-serif; /* Apply Sora font to the entire body */
}

    
/* NAV BAR */

.button {
    background-color: #2563eb;
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    transition: background-color 0.3s ease, padding 0.2s ease;
    font-family: 'Sora', sans-serif;
    font-weight: 500;
}

.button:hover {
    padding: 12px 22px; /* Slightly larger padding */
    color: #ffffff; /* Ensure text stays white */
}
.button2 {
    color: white;
    border-radius: 20px;
    text-decoration: none;
    transition: background-color 0.3s ease, padding 0.2s ease;
    font-family: 'Sora', sans-serif;
    font-weight: 500;
}

.button2:hover {
    background-color: #2564eb00;
    padding: 12px 22px; /* Slightly larger padding */
    color: #ffffff; /* Ensure text stays white */
}
.button3 {
    background-color: #2563eb;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    text-decoration: none;
    transition: background-color 0.3s ease, padding 0.2s ease;
    font-family: 'Sora', sans-serif;
    font-weight: 500;
}

.button3:hover {
    padding: 12px 22px; /* Slightly larger padding */
    color: #ffffff; /* Ensure text stays white */
}

nav {
    background-color: white; /* Match background */
    padding: 10px 20px; /* Padding for spacing */
    display: flex; /* Flexbox for layout */
    justify-content: space-between; /* Space between logo and buttons */
    align-items: center; /* Vertical alignment */
    border-radius: 20px; /* Rounded corners */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Subtle shadow */
    max-width: 650px; /* Limit the width of the navigation bar */
    margin: 0 auto; /* Center the navigation bar horizontally */
}
nav img {
    height: 40px;
    width: auto;
}
nav span {
    margin-left: 10px;
    font-size: 24px;
    font-weight: bold;
}
nav a {
    margin-right: 20px;
    text-decoration: none;
    color: black;
    font-weight: 500;
}
nav a:last-child {
    background-color: #000000;
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
}

/* LEFT SIDE */
h1 {
    font-size: 100px; /* Much larger font size for the main heading */
    font-weight: bold; /* Ensure it's bold to stand out */
    color: #000000; /* Optional: specify a color if needed */
}
a {
    transition: background-color 0.3s ease, padding 0.2s ease; /* Smooth transition for hover effects */
}

a:hover {
    background-color: #1A4DA2; /* Lighter blue on hover */
    padding: 12px 22px; /* Slightly larger padding */
    color: #ffffff; /* Ensure text stays white */
}

/* RIGHT SIDE */
.content-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}
.text-container {
    flex: 1; /* Assign flex to take half of the space */
    margin-right: 20px; /* Add some space between the text and the image */
}
.image-container {
    flex: 1; /* Assign flex to take half of the space */
}
.image-container img {
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition for hover effects */
    border-radius: 10px; /* Optional: Rounded corners */
}

.image-container img:hover {
    transform: scale(1.01) translateY(-10px); /* Slightly enlarge and move upward */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); /* Add shadow for depth */
}


/*SCROLLER */
/* Keyframes for seamless scrolling */
@keyframes scroll {
    0% {
        transform: translateX(0); /* Start at the initial position */
    }
    100% {
        transform: translateX(-4000px); /* Move by the total width of one image set */
    }
}
.scrolling-gallery {
    overflow: hidden; /* Disable scrolling */
    white-space: normal; /* Allow images to wrap */
    margin: 0 auto; /* Center the gallery */
    max-width: 100%; /* Ensure it fits within the viewport */
}


.image-scroll-container img {
    max-width: 5%; /* Ensure images are responsive */
    height: auto;
    display: block; /* Ensure proper alignment */
}

body {
    overflow-x: hidden; /* Prevent horizontal scrolling for the entire page */
}

.image-scroll-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: hidden; /* Hide horizontal scrollbar */
    animation: scroll 170s linear infinite; /* Adjust timing for smooth scrolling */
    width: calc((200px + 20px) * 24); /* Set the width to match the total width of the images */
}

.image-set {
    display: flex; /* Align images horizontally */
}

.image-set img {
    flex-shrink: 0; /* Prevent images from resizing */
    height: 200px; /* Set the height of the images */
    width: auto; /* Maintain aspect ratio */
    margin-right: 20px; /* Space between images */
}
body {
    overflow-x: hidden; /* Prevent horizontal scrolling */
}
/* General mobile styles */
@media (max-width: 768px) {
    body {
        font-size: 14px; /* Adjust font size for smaller screens */
        padding: 10px;
    }

    nav {
        flex-direction: column; /* Stack navigation items vertically */
        align-items: flex-start;
    }

    .tabbed-interface {
        flex-wrap: wrap; /* Allow tabs to wrap on smaller screens */
        justify-content: center;
    }

    .cta-button, .button {
        width: 100%; /* Make buttons full-width */
        margin-bottom: 10px;
    }

    #equation-list {
        grid-template-columns: 1fr; /* Display equations in a single column */
    }

    .popup-content {
        width: 95%; /* Ensure popups fit within the screen */
    }

    footer {
        font-size: 0.8rem; /* Reduce footer font size */
    }
}

/* Hide user count on mobile */
@media (max-width: 600px) {
    .hide-on-mobile {
        display: none !important;
    }

    /* Make the description and image container full width */
    .description {
        font-size: 16px !important;
        margin: 0 auto !important;
        padding: 0 15px !important;
        text-align: center !important;
        line-height: 1.5 !important;
    }

    .image-container.full-width-mobile {
        margin: 0 auto !important;
        width: 100% !important;
        text-align: center !important;
    }

    /* Adjust navbar for mobile */
    nav {
        max-width: 100% !important;
        padding: 10px 15px !important;
        justify-content: space-between !important;
    }

    /* Ensure scrolling gallery fits mobile */
    .scrolling-gallery {
        overflow-x: auto !important;
        white-space: nowrap !important;
        padding: 10px 0 !important;
    }

    .scrolling-gallery img {
        width: 80px !important;
        height: auto !important;
        margin-right: 10px !important;
    }

    .content-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0 15px;
    }

    .intro img {
        width: 100% !important;
        max-width: 300px;
        margin: 0 auto;
    }

    .image-container.full-width-mobile img {
        width: 100% !important;
        height: auto;
        margin: 20px 0;
    }

    .description {
        font-size: 16px !important;
        text-align: center !important;
        line-height: 1.5 !important;
        margin: 0 auto !important;
    }

    .action {
        margin-top: 20px !important;
        text-align: center !important;
    }
}