:root {
    --scale: 0.9;

    --primary-color: #151515;
    --secondary-color: #000000;
    --accent-color: #fd4040;
    --light-color: #ffffff;
    --gray-color: #7c7c7c;
    --dark-gray-color: #333333;
    --code-bg-color: #272822; /* Background color for code */
    --code-text-color: #b6b6b6; /* Text color for code */
}

@import url('https://fonts.cdnfonts.com/css/sf-pro-display');

body {
    font-family: "SF Pro Display", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-variation-settings: "wght" 100;
    height: 100%;
    margin: 0;
    color: var(--light-color); /* Ensure text is white */
    /* cursor: url('Cursor/Cursor32.png'),auto; */

    /* transform: scale(var(--scale));
    transform-origin: top left;
    width: calc(100% / var(--scale));
    height: calc(100% / var(--scale)); */
}

#home {
    background: var(--primary-color); /* Fallback background color */
    background: radial-gradient(circle, rgba(51, 51, 51, 0) 20%, rgba(0, 0, 0, 0.7) 100%), var(--primary-color); /* Vignette effect */
    background-attachment: fixed;
}

#secondarypage {
    background: var(--primary-color); /* Fallback background color */
    background: linear-gradient(to bottom, rgba(51, 51, 51, 0) 20%, rgba(0, 0, 0, 0.7) 100%), var(--primary-color);
    background-attachment: fixed;
}

header {
    text-align: center;
    padding-top: 20px; /* Add some padding to the header */
    padding-left: 20px;
    padding-right: 20px;
}

#center {
    text-align: center;
    padding-left: 10%;
    padding-right: 10%;
}

#primary {
    color: var(--light-color);
    display: inline;
}

#primaryBold {
    color: var(--light-color);
    display: inline;
    font-weight: bold;
}

#primaryRed {
    color: var(--accent-color);
    display: inline;
}

#secondary {
    color: var(--gray-color);
    display: inline;
}

#secondarySmall {
    color: var(--gray-color);
    display: inline;
    font-size: 0.8rem;
}

#tertiary {
    color: var(--code-text-color);
    display: inline;
}

#primaryTitle {
    color: var(--light-color);
    display: inline;
    font-size: 5rem;
}

#primaryTitleBold {
    color: var(--light-color);
    display: inline;
    font-size: 5rem;
    font-weight: bold;
}

#homeheader {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100vh; /* Full viewport height */
}

#peopleCounter {
    font-size: 15rem; /* Make the counter larger */
    font-weight: bold; /* Make the counter bold */
    color: var(--light-color); /* Ensure the counter text is white */
}

#LargeHomeText {
    font-size: 2rem; /* Make the text larger */
    color: var(--gray-color); /* Ensure the text is white */
    font-weight: bold;
    display: inline;
}

#MediumHomeTitle {
    font-size: 5rem; /* Make the text larger */
    color: var(--light-color); /* Ensure the text is white */
    font-weight: bold;
}

#menu {
    display: inline-block;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

#menu li {
    display: inline;
    margin-bottom: 10px;
}

#menu li a {
    display: inline-block;
    text-decoration: none;
    color: var(--light-color);
    padding: 5px 15px;
    border-radius: 15px;
    background-color: rgba(255, 255, 255, 0.2); /* Semi-transparent background */
    transition: background-color 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 10px;
}

#menu li a:hover {
    background-color: rgba(255, 255, 255, 0.4); /* Slightly more opaque on hover */
}

main {
    padding-top: 20px; /* Add some padding to the top of the main content */
}

.table {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--light-color);
    border-radius: 40px;
    display: block;
    overflow-x: auto;
    font-size: 1.25rem;
}

.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table th,
.table td {
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.0);
}

.table thead {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Round the top-left and top-right header cells */
.table thead tr th:first-child {
    border-top-left-radius: 40px;
}
.table thead tr th:last-child {
    border-top-right-radius: 40px;
}

/* Round the bottom-left and bottom-right cells of the last row */
.table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 40px;
}
.table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 40px;
}

/* Keep bottom corners rounded on hover */
.table tbody tr:last-child:hover td:first-child {
    border-bottom-left-radius: 40px;
}
.table tbody tr:last-child:hover td:last-child {
    border-bottom-right-radius: 40px;
}

.table tbody tr:hover {
    transition: background-color 0.2s ease;
    background-color: rgba(255, 255, 255, 0.1);
}

code {
    background-color: var(--code-bg-color); /* Background color for code */
    color: var(--code-text-color); /* Text color for code */
    padding: 2px 4px;
    border-radius: 4px; /* Optional: add rounded corners */
}

/* TypewriterJS cursor customization */
#MediumHomeTitle {
    display: inline-block;
    position: relative;
}

.Typewriter__cursor {
    position: absolute;
    font-weight: 100;
    font-size: 1em;
    right: -0.45em; /* Adjust this value as needed to ensure it aligns correctly */
    visibility: visible; /* Ensure cursor is visible initially */
}

.Typewriter__wrapper {
    display: inline;
}

a {
    color: var(--gray-color); /* Link color */
    text-decoration: none; /* No underline */
    transition: color 0.3s ease;
}

/* Hover state */
a:hover {
    color: var(--light-color);
}

.scaled-image-hand {
    width: auto;
    height: 85px;
    padding-bottom: 25px;
}

.scaled-image-team {
    width: auto;
    height: 120px;
    padding-bottom: 25px;
}

.scaled-image-hand-legal {
    width: auto;
    height: 150px;
    padding: 25px;
}

.scaled-image-leaf {
    width: auto;
    height: 85px;
    padding-bottom: 25px;
}

.scaled-image-counter {
    width: auto;
    height: 100px;
    padding-top: 10px;
    padding-bottom: 25px;
}

.scaled-image-app {
    width: auto;
    height: 125px;
    padding-top: 10px;
    padding-bottom: 25px;
}

.scaled-image {
    width: auto;
    height: 85px;
    padding-bottom: 25px;
}

.text-box {
    flex: 1;
    padding: 20px;
    border-radius: 40px;
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent background */
    transition: background-color 0.3s ease;
    margin: 20px auto; /* Center the box horizontally and add space around it */
    max-width: 100%; /* Optional: Limit the width of the text box */
    position: relative; /* Required for ripple effect and gallery controls */
    overflow: hidden; /* Required for ripple effect */
}

.text-box:hover {
    background-color: rgba(255, 255, 255, 0.15); /* Slightly less transparent on hover */
}

.text-box-legal {
    padding: 20px;
    border-radius: 40px;
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent background */
    transition: background-color 0.3s ease;
    margin: 20px auto;
    max-width: 100%;
    position: relative;
    overflow: hidden;
}

.text-box-a {
    flex: 1;
    padding: 20px;
    border-radius: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease, color 0.3s ease;
    margin: 20px auto;
    max-width: 100%;
    position: relative;
    overflow: hidden;
}

.text-box-a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--light-color);
}

.text-box-container {
    display: flex;
    justify-content: 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.desktop-link {
    display: block;
}

.mobile-button {
    display: none;
    margin: 0 auto;
    text-decoration: none;
    color: var(--light-color);
    padding: 5px 15px;
    border-radius: 15px;
    background-color: rgba(255, 255, 255, 0.2);
    transition: background-color 0.3s ease;
    margin-bottom: 10px;
    border: none;
    cursor: pointer;
    outline: none;
}

.mobile-button:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

#CrowdCountAPI,
#CrowdCountABOUT,
#CrowdCountPRODUCTS,
#CrowdCountLEGAL,
#CrowdCountMAP {
    min-height: 1.4em; /* Adjust the height as needed */
}

#bottom-note {
    font-size: 1rem;
    color: var(--dark-gray-color);
    text-align: center;
    width: 100%;
    padding-bottom: 10px;
}

#bottom-color {
    color: var(--dark-gray-color);
}

#bottom-color:hover {
    color: var(--gray-color);
}

.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

#map-container {
    padding: 0px;
}

#map {
    height: 500px; /* Adjust the height as needed */
    width: 100%;
    border-radius: 40px;
    overflow: hidden; /* Ensure the map respects the border radius */
}

#big-red-button {
    flex: 1;
    padding-left: 80px;
    padding-right: 80px;
    padding-top: 10px;
    padding-bottom: 10px;
    border-radius: 40px;
    color: var(--light-color);
    background-color: var(--accent-color);
    transition: background-color 0.3s ease;
    margin: 20px auto;
    max-width: 100%;
    position: relative;
    overflow: hidden;
}

#big-red-button:hover {
    background-color: #f56363;
}

#big-red-button:disabled {
    color: var(--gray-color);
    background-color: var(--dark-gray-color);
}

.loading,
.success-message,
.error-message {
    text-align: center;
    margin: 20px 0;
}

.loading {
    font-size: 18px;
    color: #555;
}

.success-message {
    font-size: 25px;
    color: #28a745;
}

.error-message {
    font-size: 25px;
    color: var(--accent-color);
}

input,
select,
button {
    padding: 20px;
    margin: 5px;
    border: 0px solid var(--gray-color);
    border-radius: 25px;
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent background */
    color: var(--light-color);
    transition: background-color 0.3s ease;
}

textarea {
    display: block;
    justify-content: center;
    align-items: center;
    padding: 20px;
    margin: 0 auto;
    margin-top: 10px;
    width: 80%;
    border: 0px solid var(--gray-color);
    border-radius: 25px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light-color);
    transition: background-color 0.3s ease;
}

input:focus,
select:focus,
textarea:focus,
button:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.2); /* Slightly more opaque on focus */
}

/* Updated #photo-gallery styles for scroll snapping */
#photo-gallery {
    display: flex;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

#photo-gallery::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}

#photo-gallery img {
    margin: 6.5px; /* Add some space between the images */
    border-radius: 40px; /* Rounded corners */
    border: 6px solid black;
    width: 250px;
    height: auto; /* Maintain aspect ratio */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);

}

/* Updated #dots-container styles */
#dots-container {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    align-items: center;
}

/* New styles for arrow buttons within the dots container */
.gallery-arrow {
    background: none;
    border: none;
    color: rgb(183, 183, 183);
    font-size: 24px;
    cursor: pointer;
    padding: 0 15px;
    margin-top: 20px;
    transition: color 0.3s ease;
}

.gallery-arrow:focus {
    outline: none;
}

.gallery-arrow:hover {
    color: #ffffff;
}

/* Adjusted dot styles */
.dot {
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: #858585;
    border-radius: 50%;
    display: inline-block;
}

.dot.active {
    background-color: #ffffff;
}

/* Hide the arrows on mobile devices */
@media (max-width: 767px) {
    .gallery-arrow {
        display: none;
    }
}

/* Custom Radio Buttons */
input[type="radio"] {
    appearance: none; /* Remove default styling */
    display: none; /* Hide the radio button */
}

input[type="radio"] + label {
    display: inline-block;
    padding: 10px 20px;
    margin: 5px;
    border-radius: 25px;
    cursor: pointer;
    background-color: var(--dark-gray-color);
    color: var(--gray-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

input[type="radio"]:hover + label {
    background-color: rgba(255, 255, 255, 0.15);
}

input[type="radio"]:checked + label {
    background-color: var(--gray-color);
    color: var(--light-color);
}

/* Custom Select Box */
select {
    appearance: none;
    width: 500px;
    padding: 20px;
    border: 0px solid var(--gray-color);
    border-radius: 25px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light-color);
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

select::-ms-expand {
    display: none; /* Remove the default dropdown arrow in IE */
}

.select-container {
    position: relative;
}

.select-container::after {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--gray-color);
}

.alert {
    position: fixed;
    top: -100px; /* Initially off-screen */
    left: 0;
    right: 0;
    background-color: #ffcc00; /* Default color */
    color: black;
    padding: 10px;
    text-align: center;
    font-size: 16px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: top 0.5s ease-in-out; /* Smooth transition */
    z-index: 1000;
}

.alert.show {
    top: 0; /* Slide down to this position */
}

.hidden {
    display: none;
}

video {
    width: 600px;
    border-radius: 30px; /* Adjust the value to control the roundness */
}

/* Add these styles to your styles.css file */

.partners-container {
    max-width: 80%;
    margin-bottom: 30px;
    overflow: hidden;
    position: relative;
}

.partners-scroll {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.partners-track {
    display: flex;
    animation: scroll 30s linear infinite;
    width: max-content;
}

.partners-track:hover {
    animation-play-state: paused;
}

.partner-logo {
    height: 50px;
    margin: 0 20px;
    opacity: 0.6;
    filter: grayscale(100%) brightness(3);
    transition: all 0.3s ease;
}

.partner-logo:hover {
    opacity: 1;
    filter: grayscale(0%) brightness(1);
}

/* Styles for placeholder logos if no images are found */
.partner-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    width: 120px;
    background-color: #f0f0f0;
    border-radius: 5px;
    color: #666;
    font-size: 14px;
    text-align: center;
}

.partner-placeholder:hover {
    background-color: #ffffff;
    color: #333;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Tablet */
@media (max-width: 768px) {
    #primaryTitle,
    #MediumHomeTitle,
    #primaryTitleBold {
        font-size: 4rem;
    }
    #LargeHomeText {
        font-size: 1.75rem;
    }
    #peopleCounter {
        font-size: 12rem;
    }
    #menu {
        font-size: 1rem;
    }

    .desktop-link {
        display: none;
    }

    .mobile-button {
        display: block;
    }

    #CrowdCountAPI,
    #CrowdCountABOUT,
    #CrowdCountPRODUCTS,
    #CrowdCountLEGAL,
    #CrowdCountMAP {
        min-height: 3em; /* Adjust the height as needed */
    }

    .text-box-container {
        flex-direction: column; /* Stacks the items vertically */
        align-items: center; /* Centers the items */
        gap: 20px;
        margin-top: 20px;
    }

    .text-box-container > * {
        margin: 0px; /* Ensures no additional margin between items */
    }

    #bottom-note {
        font-size: 0.75rem;
    }

    video {
        width: 100%;
    }

    /* Hide the controls on tablet and smaller devices */
    #gallery-controls {
        display: none;
    }

    .partners-container {
        max-width: 95%;
    }
    
    .partner-logo {
        height: 40px;
        margin: 0 15px;
    }
    
    .partner-placeholder {
        height: 40px;
        width: 100px;
        font-size: 12px;
    }
}

/* Phone */
@media (max-width: 480px) {
    #center {
        padding-left: 20px;
        padding-right: 20px;
    }

    #primaryTitle,
    #MediumHomeTitle,
    #primaryTitleBold {
        font-size: 3rem;
    }
    #LargeHomeText {
        font-size: 1.5rem;
    }
    #peopleCounter {
        font-size: 10rem;
    }
    #menu {
        font-size: 1.25rem;
    }

    .table {
        font-size: 1rem; /* Make the text size slightly larger */
    }

    .desktop-link {
        display: none;
    }

    .mobile-button {
        display: block;
    }

    #CrowdCountAPI,
    #CrowdCountABOUT,
    #CrowdCountPRODUCTS,
    #CrowdCountLEGAL,
    #CrowdCountMAP {
        min-height: 3em; /* Adjust the height as needed */
    }

    .text-box-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin-top: 20px;
    }

    .text-box-container > * {
        margin: 0px;
    }

    #bottom-note {
        font-size: 0.75rem;
    }

    video {
        width: 95%;
    }

    /* Hide the controls on mobile devices */
    #gallery-controls {
        display: none;
    }
}