body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    position: relative;
    overflow-x: hidden;
}

#background-logo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/logo3NoBackground.png') no-repeat center center;
    background-size: contain;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.5s ease-in-out;
}

section {
    padding: 2rem;
}

section h2 {
    text-align: center;
}

.top-video {
    width: 80%;
    margin: 0 auto;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.top-video video {
    width: 100%;
    height: auto;
    max-height: 80vh;
    max-width: 100vw;
    display: block;
}

.features .feature-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-bottom: 200px;
}

.features .feature-item {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 1rem;
    margin: 1rem;
    width: calc(33% - 2rem);
    transition: transform 0.3s;
    text-align: center; /* Center text within the feature item */
    display: flex;
    flex-direction: column;
    align-items: center; /* Center children horizontally */
    overflow: hidden; /* Ensure no overflow */
    position: relative; /* Ensure child elements are positioned relative to this container */
}

.features .feature-item:hover {
    transform: translateY(-10px);
}

.image-slider {
    width: 100%;
    height: 500px; /* Set a fixed height for the image container */
    position: relative;
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.image-slider img {
    max-height: 100%; /* Ensure the image fits within the height of the container */
    width: auto; /* Maintain aspect ratio */
    position: absolute;
    top: 50%; /* Center vertically */
    left: 50%; /* Center horizontally */
    transform: translate(-50%, -50%); /* Center the image */
    transition: opacity 0.5s ease-in-out;
    opacity: 0; /* Hide all images initially */
    border-radius: 10px;
}

.image-slider img.active {
    opacity: 1; /* Show the active image */
}

.download .store-links {
    display: flex;
    justify-content: center;
    align-items: center;
}

.store-logo {
    
    margin: 1rem;
    transition: transform 0.3s, box-shadow 0.3s;
    border-radius: 10px;
}

.store-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.apple-logo {
    border: 2px solid #fff;
    width: 100px;
}

.google-play-logo {
    border: 0px solid #fff;
    width: 90px;
}

.qr-code {
    width: 100px;
    display: none;
}

.video video {
    width: 100%;
    max-width: 600px;
    display: block;
    margin: 0 auto;
}

footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 1rem 0;
    width: 100%;
    margin-top: auto; /* Ensure the footer is at the bottom */
}

footer p {
    margin: 0.5rem 0;
}

footer a {
    color: white; /* Ensure the link has white text */
    text-decoration: none;
    margin: 0 0.5rem;
    display: inline-block;
}

footer a:hover {
    text-decoration: underline;
}

.terms, .about, .faq {
    margin-bottom: 5rem; /* Add margin at the bottom to prevent content from being hidden behind the footer */
}


/* Keep long guide headings and tables from widening the whole page on phones. */
.article-body { overflow-wrap: break-word; }
.table-scroll {
    max-width: 100%;
    margin: 1.5rem 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: #72859f #eef2f8;
}
.table-scroll > .data-table { margin: 0; }
.verb-section .table-scroll { margin: 0; }
.table-scroll:focus-visible { outline: 3px solid #b24d1d; outline-offset: 4px; }

@media (max-width: 768px) {
    .features .feature-item {
        width: calc(100% - 2rem);
    }

    .qr-code {
        display: none;
    }
}

@media (min-width: 769px) {
    .qr-code {
        display: inline;
    }
}
