:root {
    --color-purple: #9A258D;
    --color-gray: #333;
    --color-gray-dark: #1B1B1B;
    --color-gray-light: #d8d8d8;
}

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

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

/* GLOBAL STYLES */
.allContent {
    display: none;
}

.allContent.show {
    display: block;
}

.container {
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
    max-width: 940px;
}

.overlap-previous {
    margin-top: -36px;
}

.no-break {
    white-space: nowrap;
}

a img {
    pointer-events: none;
}

/* HEADER */
.header-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    padding: 30px 15px;
    width: 100%;
    max-width: 940px;
}

.header-links-logo {
    text-decoration: none;
}

.header-links-logo a {
    display: inline-block;
}

.header-links-nav {
    text-align: right;
}

.header-links-nav a {
    color: var(--color-purple);
    font-size: 0.875rem;
    line-height: 1rem;
    font-weight: 700;
}

.header-links-nav a:hover {
    color: var(--color-gray);
}

/* HERO */
.hero {
    padding: 36px 0 64px;
    background: linear-gradient(90deg, #9A258F 0%, #702F65 100%);
}

.hero h1 {
    margin-bottom: 8px;
    font-size: 2rem;
    line-height: 2.5rem;
    font-weight: 900;
    color: #fff;
}

.hero p {
    font-size: 1rem;
    line-height: 1.5rem;
    font-weight: 700;
    color: #fff;
}

/* CARDS */
.cards {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
}

.card {
    flex: 1 1 100%;
    margin: 0 0 36px;
    padding: 40px 20px;
    width: 100%;
    max-width: 460px;
    height: 100%;
    min-height: 100%;
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0px 2px 24px 0px rgba(0, 0, 0, 0.24);
}

.card-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    height: 100%;
}

.card-content-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 0 0 52px;
    margin-bottom: 16px;
    height: 52px;
}

.card-content-text {
    flex: 1 0 auto;
}

.card h2 {
    margin-bottom: 8px;
    font-size: 1.25rem;
    line-height: 1.625rem;
    font-weight: 700;
    color: var(--color-purple);
}

.card p {
    font-size: 1rem;
    line-height: 1.5rem;
    font-weight: 400;
    color: var(--color-gray-dark);
    margin-bottom: 16px;
}

.card-content-link {
    flex: 0 0 100%;
}

.card a {
    display: inline-block;
    padding: 20px;
    font-size: 1rem;
    line-height: 1.5rem;
    font-weight: 700;
    color: var(--color-purple);
    text-decoration: none;
    background-color: #fff;
    border-radius: 24px;
    border: 2px solid #000;
}

/* FOOTER */
footer {
    background-color: var(--color-gray-light);
    margin: 0;
    padding: 10px;
    width: 100%;
}

footer p,
footer a {
    font-size: 0.8125rem;
    line-height: 1.125rem;
}

footer p {
    margin-bottom: 1rem;
    color: var(--color-gray);
    font-weight: 500;
}

footer p * {
    font-weight: 500;
}

.footer-links {
    list-style: none;
    margin: 20px 0;
    padding: 0;
}

.footer-link {
    margin-bottom: 0.9375rem;
}

.footer-link a {
    color: var(--color-purple);
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}

.footer-link a:hover {
    color: var(--color-gray);
    text-decoration: none;
}

footer .logo {
    display: inline-block;
    margin-bottom: 1rem;
}

/* MODAL */
.modal {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    padding: 50px 45px 25px;
    width: 750px;
    max-width: 80%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    box-shadow: 0px 2px 24px 0px rgba(0, 0, 0, 0.24);
}

.modal .closeButton {
    position: absolute;
    top: 20px;
    right: 30px;
    padding-right: 14px;
    background-color: transparent;
    border: none;
    font-size: 1rem;
    color: var(--color-purple);
    cursor: pointer;
}

.modal .closeButton:before,
.modal .closeButton:after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    width: 2px;
    height: 20px;
    background-color: var(--color-purple);
    transform: translateY(-50%) rotate(45deg);
}

.modal .closeButton:after {
    transform: translateY(-50%) rotate(-45deg);
}
.modal .closeButton:hover {
    background-color: transparent;
    color: var(--color-gray);
}
.modal .closeButton:hover:before,
.modal .closeButton:hover:after {
    background-color: var(--color-gray);
}
.modal .closeButton:focus {
    outline: none;
}

.modal-content h4 {
    display: block;
    margin-bottom: 20px;
    font-size: 1.5rem;
    line-height: 1.75rem;
    font-weight: 400;
    color: var(--color-gray);
    text-align: center;
}

.modal-buttons {
    display: flex;
    justify-content: space-around;
}

.modal-buttons a {
    display: inline-block;
    margin-bottom: 30px;
    font-size: 0.9375rem;
    line-height: 1.25rem;
    font-weight: 700;
    color: var(--color-purple);
    cursor: pointer;
}

.modal-buttons a:hover {
    color: var(--color-gray);
}

/* MEDIA QUERIES */
@media (max-width: 480px) {
    .header-links-logo img {
        width: 142px;
        height: auto;
    }
}

@media (min-width: 992px) {
    .hero {
        padding: 64px 0 88px;
    }

    .header-links {
        padding: 30px 0;
    }

    .cards {
        justify-content: space-between;
    }

    .card {
        flex: 0 0 460px;
        height: 340px;
    }

    .container {
        padding: 0;
    }

    footer {
        padding: 20px 0 10px;
    }

    footer p,
    footer a {
        font-size: 0.9375rem;
        line-height: 1.25rem;
    }

    .footer-links {
        display: flex;
        justify-content: flex-start;
    }

    .footer-link {
        margin-right: 20px;
        margin-bottom: 10px;
    }

    .modal-buttons {
        padding: 0 100px;
    }
}