.hero {
    height: 100vh;
    background-image:
            linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), /* dark overlay */
            url("/styling/images/hero.png"); /* your image */
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--hero-text-color);
}

.hero .text {
    line-height: 0.95;
}

.hero .text .welcome {
    font-size: var(--hero-welcome-text-size);
}

.hero .text .title {
    font-size: var(--hero-title-text-size);
}

.hero .text .extra {
    margin: 40px 0;
    text-align: center;
    font-size: var(--hero-extra-text-size);
}

.hero .text a {
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    justify-self: center;
    color: var(--hero-cta-btn-text-color);
    border: 1px solid var(--hero-cta-btn-border-color);
    padding: 15px 45px;
    border-radius: 8px;
    background-color: var(--hero-cta-btn-bg-color);
    transition: 0.3s;
    text-align: center;
}

.hero .text a:hover {
    color: var(--hero-cta-btn-text-color-active);
    border: 1px solid var(--hero-cta-btn-border-color-active);
    background-color: var(--hero-cta-btn-bg-color-active);
}

@media only screen and (max-width: 768px) {
    .hero .text .welcome {
        --hero-welcome-text-size: 1rem;
    }

    .hero .text .title {
        --hero-title-text-size: 4.3rem;
    }

    .hero .text .extra {
        --hero-extra-text-size: 1rem;
    }

    .hero .text a {
        padding: 10px 30px;
    }
}

@media only screen and (max-width: 610px) {
    .hero .text .welcome {
        --hero-welcome-text-size: 0.8rem;
    }

    .hero .text .title {
        --hero-title-text-size: 4.1rem;
    }

    .hero .text .extra {
        margin: 25px 0;
        --hero-extra-text-size: 0.8rem;
    }
}

@media only screen and (max-width: 480px) {
    .hero .text .title {
        --hero-title-text-size: 3.5rem;
    }
}

@media only screen and (max-width: 425px) {
    .hero .text .title {
        --hero-title-text-size: 3rem;
    }
}

@media only screen and (max-width: 375px) {
    .hero .text .title {
        --hero-title-text-size: 2.5rem;
    }
}