body {
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Helvetica', 'Arial', sans-serif;
}

header, .centered {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

header {
    padding-top: 30px;
    margin-bottom: 30px;
}

article {
    max-width: 1000px;
}

main {
    min-height: 200px;
    padding: 30px 0;
    margin-bottom: 100px;
}

h1, #clockwork {
    font-size: 64px;
    font-weight: bold;
    line-height: 1.2em;
    margin-bottom: 10px;
}

li {
    font-size: 22px;
}

button {
    font-size: 28px;
    font-weight: bold;
    color: #fff;
    background-color: #5b21b6;
    border: none;
    border-radius: 5px;
    padding: 12px 50px 12px 50px;
    cursor: pointer !important;
}

button:hover {
    background-color: #4c1d95;
}

button:active {
    background-color: #2e1065;
}

footer {
    max-width: 80%;
    margin: 0 auto;
}

.centered {
    gap: 50px;
}

.two-columns {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    align-content: center;
}

.column {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: space-between;
}

.bullet-point {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.check {
    width: 30px;
}

.footer-content{
    font-size: 14px;
    margin-bottom: 7px;
}

#eyebrow {
    font-size: 20px;
    font-weight: 300;
    margin-bottom: 7px;
}

#subhead {
    color: #10b981;
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 30px;
}

#clockwork {
    text-decoration: underline;
}

#left-column {
    max-width: 50%;
}

#right-column {
    max-width: 50%;
}

#lauren {
    max-width: 500px;
    border-radius: 10px;
}

#learn {
    font-size: 30px;
    font-weight: 600;
    color: #3f3f46;
    margin-bottom: 15px;
}

#register-button-2 {
    margin-top: 20px;
}

/* Popup styling */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 50%; /* Could be more or less, depending on screen size */
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    display: none;
}

/* Form styling within the modal */
.modal-content form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.modal-content input[type="text"],
.modal-content input[type="email"] {
    margin-bottom: 10px;
    width: calc(100% - 24px); /* Adjust width as needed */
    padding: 10px;
    align-self: center;
    border: solid;
    border-color: #d1d5db;
    border-radius: 5px;
    border-width: 2px;
}

.modal-content button {
    display: block;
    width: calc(100% - 24px);
    margin-top: 5px;
    padding: 10px;
    background-color: #5b21b6;
    color: white;
    border: none;
}

.modal-content button:hover {
    background-color: #4c1d95;
}

.modal-content button:active {
    background-color: #2e1065;
}

#modal-headline {
    text-align: center;
    font-size: 40px;
    font-weight: bold;
    line-height: 1.3em;
}

/* Responsive Media Queries */

/* Tablets and below (max-width: 768px) */
@media (max-width: 768px) {
    body {
        width: 90%; /* Adds padding for smaller screens */
    }

    header {
        flex-direction: column; /* Stack header content vertically */
        padding-top: 20px;
        margin-bottom: 20px;
    }

    footer {
        max-width: 100%; /* Allows the content to fill the available width */
    }

    h1, #clockwork {
        font-size: 50px; /* Reduces font size for readability on smaller devices */
    }

    #subhead {
        width: 90%;
        margin: 0 auto 25px auto;
    }

    #subhead, li {
        font-size: 20px; /* Adjusts font size for subheadings and list items */
    }

    button {
        font-size: 26px; /* Reduces button font size */
        padding: 10px 40px; /* Adjusts button padding */
    }

    .two-columns {
        flex-direction: column;
        gap: 20px; /* Stacks columns vertically */
    }

    .footer-content {
        font-size: 11px; /* Adjusts footer content font size */
        margin-bottom: 2px;
    }

    .modal-content {
        width: 90%; /* Wider in smaller screens */
        margin: 20% auto; /* More top margin to center vertically */
    }

    #modal-headline {
        font-size: 38px; /* Smaller font size for smaller screens */
    }

    .modal-content input[type="text"],
    .modal-content input[type="email"],
    .modal-content button {
        width: calc(100% - 20px); /* Slightly less padding for smaller widths */
    }
}

/* Mobile devices (max-width: 480px) */
@media (max-width: 480px) {
    #eyebrow, #subhead, li {
        font-size: 16px; /* Adjusts font size for better readability on mobile */
    }

    button {
        font-size: 20px; /* Reduces button font size for mobile */
        padding: 8px 35px; /* Adjusts padding to fit smaller screens */
    }

    .centered {
        gap: 20px; /* Reduces gap between flex items in centered layouts */
    }

    .modal-content {
        margin: 25% auto; /* Even more top margin for very small devices */
    }

    #modal-headline {
        font-size: 20px; /* Even smaller font size for tiny screens */
    }
}

/* High-Density Retina Displays */
@media only screen and (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Enhance visual assets for high-resolution displays */
    img, .check {
        image-rendering: -webkit-optimize-contrast; /* Enhances image contrast on high-res devices */
    }
}