/* Base CSS (Desktop) */
body {
    font-family: 'Open Sans', sans-serif;
    text-align: center;
    padding: 0;
    margin: 0 auto;
    background-color: #fff;
}

.main-content {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2em;
    margin: 0 auto;
    max-width: 1030px;
}

h1 {
    font-size: 1.4rem;
    color: #333;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    margin-bottom: 0.6em;
}

h2 {
    font-size: 4rem;
    line-height: 1.2em;
    color: #333;
    margin: 10px 0;
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
}

h3 {
    font-size: 1.5rem;
    color: #333;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    margin-top: 0.75em;
    margin-bottom: 0.4em;
}

h4 {
    font-size: 1.2rem;
    line-height: 1.3em;
    color: #333;
    margin-bottom: 10px;
    font-family: 'Open Sans', sans-serif;
}

#subhead {
    font-size: 1.35rem;
    line-height: 1.4em;
    color: #333;
    margin-bottom: 10px;
    font-family: 'Open Sans', sans-serif;
}

#width {
    max-width: 750px;
    margin: 0 auto;
}

#underline {
    text-decoration: underline;
}

#bolder {
    color: #6e28d9;
    font-weight: 900;
    font-style: italic;
}

.strike {
    text-decoration: line-through;
}

.red-bold {
    color: #6e28d9;
    font-weight: 900;
}

.italic {
    font-style: italic;
}

.cta-button {
    background-color: #6e28d9;
    color: white;
    padding: 1.5rem 2rem;
    width: 45rem;
    text-decoration: none;
    font-size: 2.5rem;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    border-radius: 5px;
    display: inline-block;
    margin-top: 0.4em;
    border: none;
    cursor: pointer;
    animation: rock 2s infinite;
}

.cta-button:hover {
    background-color: #5820ae;
}

@keyframes rock {
    0% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(1deg);
    }

    50% {
        transform: rotate(0deg);
    }

    75% {
        transform: rotate(-1deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

.footer {
    font-size: 12px;
    color: #999;
    margin-top: 50px;
    margin-left: auto;
    margin-right: auto;
    max-width: 750px;
}

.footer a {
    color: #999;
    text-decoration: none;
}

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.popup-content {
    background: #fff;
    padding: 30px;
    border-radius: 5px;
    text-align: center;
    width: 80%;
    max-width: 700px;
    position: relative;
}

.popup-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    font-family: 'Oswald', sans-serif;
}

.popup-content form input[type="text"],
.popup-content form input[type="email"],
.popup-content form input[type="tel"] {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-left: 10px;
    font-size: 16px;
    font-family: 'Open Sans', sans-serif;
}

.popup-content form label {
    font-size: 12px;
    display: block;
    margin-bottom: 10px;
    text-align: left;
    font-family: 'Open Sans', sans-serif;
}

.popup-content form .cta-button {
    width: 100%;
    padding: 10px;
    margin-left: 0;
}

.popup-content p {
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
    color: #999;
    font-family: 'Open Sans', sans-serif;
}

.close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    cursor: pointer;
    font-family: 'Open Sans', sans-serif;
}

/* Tablet (min-width: 768px and max-width: 1024px) */
@media screen and (max-width: 1024px) {
    .main-content {
        flex-direction: column;
        padding: 1.5em;
        max-width: 95%;
    }

    h1 {
        font-size: 1.3rem;
    }

    h2 {
        font-size: 3.5rem;
    }

    h3 {
        font-size: 1.35rem;
    }

    #subhead {
        font-size: 1.2rem;
    }

    .cta-button {
        width: 35rem;
        font-size: 2rem;
        padding: 1rem 1.5rem;
    }

    .popup-content h2 {
        font-size: 2.4rem;
    }
}

/* Mobile (max-width: 767px) */
@media screen and (max-width: 767px) {
    body {
        text-align: left;
        padding: 0 10px;
    }

    .main-content {
        flex-direction: column;
        padding: 1em;
        max-width: 100%;
    }

    h1 {
        font-size: 1.2rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    h3 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }

    #subhead {
        font-size: 1.1rem;
    }

    .cta-button {
        width: 100%;
        font-size: 1.8rem;
        padding: 0.8rem 1.2rem;
    }

    .footer {
        font-size: 10px;
        margin-top: 30px;
    }

    .popup-content {
        padding: 20px;
    }

    .popup-content h2 {
        font-size: 2rem;
    }

    .popup-content form input[type="text"],
    .popup-content form input[type="email"],
    .popup-content form input[type="tel"] {
        font-size: 14px;
        padding: 8px;
        margin-left: 0;
    }

    .popup-content p {
        font-size: 10px;
    }

    .close {
        font-size: 18px;
    }
}
