body {
    width: 100%;
    margin: 0;
    padding-top: 30px;
    box-sizing: border-box;
    font-size: 18px;
    position: relative;
}

* {
    font-family: "Rubik", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

header {
    width: 100%;
}

.mobile-header {
    max-width: 90%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.desktop-header {
    display: none;
}

h1,
h2,
p {
    margin: 0;
}

main {
    width: 100%;
}

.hero {
    width: 100%;
    height: 91.15vw;
    margin: 40px 0;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__background-image {
    width: 100%;
    max-width: 80%;
    height: 62.86%;
    background-color: hsl(231, 69%, 60%);
    border-top-left-radius: 35%;
    border-bottom-left-radius: 35%;
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: -1;
}

img[alt="hero illustration"] {
    width: 100%;
}

.main-component {
    max-width: 90%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.main-component__heading {
    font-weight: 500;
    text-align: center;
    color: hsl(229, 31%, 21%);
}
.main-component__text {
    text-align: center;
    color: darkgray;
}

.main-component__links {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.links {
    width: 100%;
    padding: 15px 0;
    text-align: center;
    border-radius: 5px;
    box-shadow: 5px 2.5px 10px 5px lightgray;
    color: gray;
    background-color: hsl(0, 0%, 97%);
}

.links--highlighted {
    color: white;
    background-color: hsl(231, 69%, 60%);
}

.features-component {
    margin: 150px auto 0 auto;
    max-width: 90%;
}

.features-component__heading {
    font-weight: 500;
    text-align: center;
    color: hsl(229, 31%, 21%);
}

.features-component__text {
    margin-top: 30px;
    margin-bottom: 60px;
    text-align: center;
    color: darkgray;
}

.tabs-container__item {
    border-top: 1px solid lightgray;
    padding: 20px 0;
    text-align: center;
}

.tabs-container__item:nth-child(3) {
    border-bottom: 1px solid lightgray;
}

.tabs-container__item > p {
    display: inline;
    padding: 17px;
    color: hsl(229, 31%, 21%);
}

.tabs-container--selected-item {
    border-bottom: 4px solid hsl(0, 94%, 66%);
}

.tabs-content-component {
    margin-bottom: 150px;
}

.tabs-container__background-container {
    width: 100%;
    height: 91.15vw;
    margin-bottom: 50px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.background-image {
    width: 100%;
    max-width: 80%;
    height: 62.86%;
    background-color: hsl(231, 69%, 60%);
    border-top-right-radius: 35%;
    border-bottom-right-radius: 35%;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: -1;
}

img[alt="features hero-illustration"] {
    width: 90%;
}

.tabs-container__content-container {
    max-width: 90%;
    margin: 0 auto;
}

.tabs-container__content-container button {
    display: none;
}

.tabs-container__heading {
    font-weight: 500;
    text-align: center;
    color: hsl(229, 31%, 21%);
}

.tabs-container__text {
    margin-top: 30px;
    text-align: center;
    color: darkgray;
}

.downloads-component {
    max-width: 90%;
    margin: 0 auto;
}

.downloads-component__heading {
    font-weight: 500;
    text-align: center;
    color: hsl(229, 31%, 21%);
}

.downloads-component__text {
    margin-top: 30px;
    margin-bottom: 60px;
    text-align: center;
    color: gray;
}

.downloads-component-container {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.card {
    padding: 30px 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    border: 1px solid hsl(0, 0%, 97%);
    border-radius: 20px;
    box-shadow: 3px 1px 10px 7.5px hsl(0, 0%, 97%);
}

.card__heading {
    margin-top: 50px;
    text-align: center;
    color: hsl(229, 31%, 21%);
}

.card__text {
    margin-top: 20px;
    text-align: center;
    color: gray;
}

img[alt="background dots"] {
    margin-top: 50px;
}

.card button {
    padding: 20px;
    margin-top: 30px;
    border: none;
    border-radius: 5px;
    font-weight: 500;
    color: white;
    background-color: hsl(231, 69%, 60%);
}

.faq-component {
    max-width: 90%;
    margin: 150px auto;
}

.faq-component__heading {
    font-weight: 500;
    text-align: center;
    color: hsl(229, 31%, 21%);
}

.faq-component__text {
    margin-top: 30px;
    margin-bottom: 75px;
    text-align: center;
    color: gray;
}

.question-container {
    width: 100%;
    height: 64px;
    border-bottom: 1px solid lightgray;
}

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

.question > button {
    border: none;
    background: none;
    padding: 20px 0;
    font-size: 16px;
    color: hsl(229, 31%, 21%);
}

.question > button:hover {
    cursor: pointer;
}

.answer {
    display: block;
    visibility: hidden;
    font-size: 14px;
    color: hsla(229, 31%, 21%, 0.75);
}

.faq-component__more-info-container {
    margin-top: 50px;
    display: flex;
    justify-content: center;
}
.faq-component__more-info-container > button {
    width: 35%;
    padding: 20px;
    border: none;
    border-radius: 5px;
    font-weight: 500;
    color: white;
    background-color: hsl(231, 69%, 60%);
}

.ContactUs-component {
    width: 100%;
    padding: 75px 0;
    background-color: hsl(231, 69%, 60%);
}

.ContactUs-component__text,
.ContactUs-component__heading {
    text-align: center;
    color: white;
    max-width: 90%;
    margin: 0 auto;
}

.ContactUs-component__text {
    text-transform: uppercase;
}

.ContactUs-component__heading {
    font-weight: 500;
    margin-top: 20px;
}

.ContactUs-component__email-container {
    max-width: 90%;
    margin: 0 auto;
    margin-top: 40px;
}

.ContactUs-component__email-container > form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.email-input-container {
    border-radius: 5px;
    background-color: hsl(0, 94%, 66%);
}

input[type="email"] {
    width: 100%;
    padding: 20px 0;
    padding-left: 20px;
    box-sizing: border-box;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    background-repeat: no-repeat;
    background-position: 95% 50%;
}

.error-message {
    display: none;
    padding: 10px 15px;
    font-style: italic;
    font-size: 16px;
    font-weight: 600;
    color: white;
}

input[type="submit"] {
    padding: 20px 0;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: 500;
    color: white;
    background-color: hsl(0, 94%, 66%);
}

footer {
    width: 100%;
    background-color: hsl(229, 31%, 21%);
    padding: 40px 0;
}

.footer-content {
    max-width: 90%;
    margin: 0 auto;
}

.footer__nav-content {
    text-align: center;
}

.footer__nav-content a {
    display: block;
}

.footer__nav-content img[alt="website logo"] {
    margin-bottom: 35px;
}

.footer__nav-content a {
    margin-bottom: 20px;
    text-transform: uppercase;
    color: white;
}

.footer__nav-content a:nth-child(4) {
    margin-bottom: 40px;
}

.footer__socials-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

/* MOBILE NAVIGATION */
.mobile-overlay {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    opacity: 0.9;
    background-color: hsl(229, 31%, 21%);
}

.mobile-menu {
    display: none;
    width: 100%;
    max-width: 90%;
    position: absolute;
    top: 30px;
    left: 0;
    right: 0;
    margin: 0 auto;
}

.mobile-menu__logo-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.mobile-navigation ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.mobile-navigation li {
    text-align: center;
    text-transform: uppercase;
    color: #ffffff;
    border-top: 1px solid lightgray;
}

.mobile-navigation a {
    display: inline-block;
    width: 100%;
    padding: 20px 0;
    margin: 20px 0;
    border-radius: 5px;
    box-sizing: border-box;
}

.mobile-navigation a:hover,
img[alt="hamburger icon"]:hover,
img[alt="menu-close icon"]:hover {
    cursor: pointer;
}

.mobile__socials-links {
    margin-top: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

@media screen and (min-width: 980px) {
    .mobile-header {
        display: none;
    }
    .desktop-header {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 10vw;
        box-sizing: border-box;
    }
    .desktop-header ul {
        padding: 0;
        margin: 0;
        list-style: none;
        display: flex;
        gap: 10px;
    }
    .desktop-header li a {
        display: inline-block;
        width: 120px;
        padding: 10px 0;
        border-radius: 5px;
        text-align: center;
        text-transform: uppercase;
        color: hsl(229, 31%, 21%);
    }
    .desktop-header li a:hover {
        cursor: pointer;
        color: hsl(0, 94%, 66%);
    }
    .desktop-header li:nth-child(4) a {
        color: #ffffff;
        background-color: hsl(0, 94%, 66%);
        box-shadow: 3px 3px 5px lightgray;
    }
    .desktop-header li:nth-child(4) a:hover {
        outline: 2px solid hsl(0, 94%, 66%);
        color: hsl(0, 94%, 66%);
        background-color: white;
    }
    .hero-container {
        display: flex;
        align-items: center;
        gap: 2%;
    }
    .hero {
        height: 40.818vw;
        order: 2;
        width: 50%;
    }
    .main-component {
        width: 50%;
        order: 1;
        padding-left: 10vw;
        box-sizing: border-box;
    }
    .main-component__heading,
    .main-component__text {
        text-align: left;
    }
    .links:nth-child(1):hover {
        color: hsl(231, 69%, 60%);
        background-color: white;
        outline: 2px solid hsl(231, 69%, 60%);
    }
    .links:nth-child(2):hover {
        outline: 2px solid hsla(229, 31%, 21%, 0.75);
        color: hsla(229, 31%, 21%, 0.75);
        background-color: white;
    }
    .features-component {
        max-width: none;
        margin-left: 0;
        margin-right: 0;
        padding: 0 10vw;
    }
    .features-component__tabs-container {
        width: fit-content;
        margin: 0 auto;
        border-bottom: 1px solid lightgray;
        display: flex;
        justify-content: center;
        gap: 50px;
    }
    .tabs-container__item {
        border: none;
    }
    .tabs-container__item:nth-child(3) {
        border-bottom: none;
    }
    .tabs-content-component {
        display: flex;
        gap: 2%;
    }
    .tabs-container__background-container {
        height: 40.818vw;
        width: 50%;
        padding-left: 10vw;
        margin-bottom: 0;
        box-sizing: border-box;
    }
    img[alt="features hero-illustration"] {
        width: 100%;
    }
    .tabs-container__content-container {
        width: 50%;
        padding-right: 10vw;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .tabs-container__content-container button {
        display: inline-block;
        width: 35%;
        padding: 20px;
        border: none;
        border-radius: 5px;
        margin-top: 30px;
        font-weight: 500;
        color: white;
        background-color: hsl(231, 69%, 60%);
    }
    .tabs-container__heading,
    .tabs-container__text {
        text-align: left;
    }
    .downloads-component {
        max-width: none;
        margin: 0;
        padding: 0 25vw;
    }
    .card button:hover {
        cursor: pointer;
        color: hsl(231, 69%, 60%);
        background-color: white;
        outline: 2px solid hsl(231, 69%, 60%);
    }
    .faq-component {
        max-width: none;
        padding: 0 25vw;
        margin: 150px auto;
    }
    .faq-component__more-info-container > button {
        width: 177.133px;
    }
    .question-container:hover button {
        color: hsl(0, 94%, 66%);
    }
    .ContactUs-component__text,
    .ContactUs-component__heading,
    .ContactUs-component__email-container {
        max-width: none;
        padding: 0 10vw;
    }
    .ContactUs-component__email-container > form {
        flex-direction: row;
        justify-content: center;
        align-items: flex-start;
    }
    .email-input-container {
        width: 40%;
    }

    input[type="submit"] {
        width: 15%;
    }
    input[type="submit"]:hover {
        cursor: pointer;
        outline: 2px solid hsl(0, 94%, 66%);
        color: hsl(0, 94%, 66%);
        background-color: white;
    }
    .footer-content {
        max-width: none;
        padding: 0 10vw;
        display: flex;
        justify-content: space-between;
    }
    .footer__nav-content {
        display: flex;
        align-items: center;
        gap: 40px;
    }
    .footer__nav-content img[alt="website logo"] {
        margin-bottom: 0;
    }
    .footer__nav-content a,
    .footer__nav-content a:nth-child(4) {
        margin-bottom: 0;
    }
    .footer__nav-content a:hover {
        cursor: pointer;
        color: hsl(0, 94%, 66%);
    }
    .links:hover,
    .tabs-container__item p:hover,
    .tabs-container__content-container button:hover,
    .footer__socials-links img:hover,
    .faq-component__more-info-container > button:hover,
    .question-container:hover {
        cursor: pointer;
    }
}

@media screen and (min-width: 1200px) {
    .desktop-header,
    .features-component,
    .ContactUs-component__text,
    .ContactUs-component__heading,
    .ContactUs-component__email-container,
    .footer-content {
        padding: 0 12vw;
    }
    .desktop-header ul {
        gap: 40px;
    }
    .main-component {
        padding-left: 12vw;
    }
    .tabs-container__background-container {
        padding-left: 12vw;
    }
    .tabs-container__content-container {
        padding-right: 12vw;
    }
    .downloads-component {
        max-width: none;
        padding: 0 12vw;
    }
    .downloads-component-container {
        height: 500px;
        flex-direction: row;
        justify-content: center;
        align-items: flex-start;
        gap: 30px;
    }
    .card:nth-child(2) {
        align-self: center;
    }
    .card:nth-child(3) {
        align-self: flex-end;
    }
    .faq-component {
        padding: 0 28.5vw;
    }
    .question-container:nth-child(3) {
        border-top: 1px solid lightgray;
    }

    .question > button {
        font-size: 18px;
    }
    .answer {
        font-size: 16px;
    }
    .email-input-container {
        width: 35%;
    }
}
