
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


@media (max-width: 768px) {
    nav {
        padding: 10px 0;
        position: relative; 
        width: 100%;
        background-color: rgba(51, 51, 51, 0.8); 
    }
    nav ul {
        list-style-type: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column; 
        align-items: flex-start; 
    }
    nav ul li {
        margin: 5px 0;
    }
    nav ul li a.logo {
        position: static; 
        transform: none;
        font-size: 20px;
        margin-left: 10px; 
        order: 1; 
    }
    nav ul li:nth-child(2) { 
        margin-left: auto; 
        margin-right: auto; 
        order: 2;
    }
    nav ul li a {
        font-size: 14px;
        color: white;
        text-align: center;
    }
}


.video-background video {
    width: 100% !important;
    height: 100dvh !important;
    object-fit: cover;
}


.container.hero {
    text-align: center;
    padding-left: 10px;
    margin-top: 50px !important;
    max-width: 80%;
    margin-left: 90px;
    margin-right: auto;
}

.container.hero h1 {
    font-size: 28px !important;
    margin-left: 0;
    text-align: center;
    display: block;
    width: auto;
    line-height: 1.2;
}

.machealthcheck-hero {
    padding: 150px 20px !important;
    max-width: 100%;
    margin-left: 90px;
    margin-right: auto;
    text-align: center;
}

.text-container {
    padding: 0 10px !important;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.machealthcheck-hero h1 {
    font-size: 28px !important;
    text-align: center;
}

.machealthcheck-description {
    width: 100%;
    margin-top: 0;
    text-align: center;
    max-width: 100%;
}

.machealthcheck-description p,
.machealthcheck-description ul {
    font-size: 14px;
    margin: 0 auto;
    max-width: 100%;
    padding-left: 0;
    list-style-position: inside;
}


.product-waitlist {
    width: 90% !important;
    margin: 20px auto !important;
    padding: 15px !important;
    text-align: center;
}

.product-waitlist h2 {
    font-size: 20px !important;
}

.product-waitlist p {
    font-size: 14px;
    margin: 0 auto;
    max-width: 90%;
}

.product-waitlist .form-group {
    margin-bottom: 15px;
    width: 100%;
    text-align: center;
}

.product-waitlist input[type="text"],
.product-waitlist input[type="email"] {
    padding: 10px 15px;
    font-size: 14px !important;
    width: 100%;
    box-sizing: border-box;
    display: block;
    margin: 0 auto;
}

.product-waitlist .cta-button {
    padding: 10px 20px;
    font-size: 16px !important;
    width: 100%;
    display: block;
    margin: 0 auto;
}


@media (max-width: 390px) {
    .product-waitlist {
        padding: 10px !important;
    }
    .product-waitlist input[type="text"],
    .product-waitlist input[type="email"] {
        padding: 8px 12px;
        font-size: 12px !important;
    }
    .product-waitlist .cta-button {
        font-size: 14px !important;
        padding: 8px 15px;
    }
    .machealthcheck-hero {
        padding: 100px 10px !important;
        max-width: 80%; /* Increase width for smaller screens */
        margin-left: 80px; /* Match top hero shift */
    }
    .machealthcheck-hero h1 {
        font-size: 24px !important;
    }
    nav ul li a.logo {
        font-size: 18px;
    }
    nav ul li:nth-child(2) a {
        font-size: 12px;
    }
    .container.hero {
        max-width: 70%;
        margin-left: 80px;
        padding-left: 5px;
    }
    .container.hero h1 {
        font-size: 24px !important;
        text-align: center;
    }
    .machealthcheck-description {
        max-width: 100%;
    }
    .machealthcheck-description p,
    .machealthcheck-description ul {
        max-width: 100%;
    }
}


footer {
    padding: 15px;
    font-size: 12px;
    text-align: center;
}


body {
    font-size: 14px;
}

.container {
    margin-top: 50px !important;
    margin-bottom: 300px !important;
    text-align: center;
}
