@media (max-width: 620px) {
    .bannerImage {
        background-image: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0));
    }
}

@media (max-width: 600px) {

    /* core */
    :root {
        --generalMarginLeft: 20px;
        --upBarHeight: 60px;
    }

    /* navigations */
    nav.upBar a {
        display: none;
    }

    .drawer {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    .drawer a,
    .drawer a div {
        display: flex;
    }

    .drawerButton {
        display: flex;
        width: calc(var(--upBarHeight) * 0.5);
        height: calc(var(--upBarHeight) * 0.25);
        right: calc(var(--upBarHeight) * 0.25);
        position: fixed;
        border-radius: 5px;
        filter: var(--shadowColor);
        background-color: var(--customCrimson);
        background-image: url(../assets/icons/menu_white_48dp.svg);
        background-size: 50%;
        background-position: center;
        background-repeat: no-repeat;
    }

    .drawer {
        z-index: 888;
        transition: 0.5s;
        position: fixed;
        display: flex;
        justify-content: flex-start;
        right: 0;
        top: calc(var(--upBarHeight));
        background-color: var(--customCrimson);
        width: 50vw;
        height: 100vh;
    }

    .drawer a div {
        padding-top: 25px;
        padding-left: calc(var(--upBarHeight) / 2);
        font-size: 14px;
        color: white;
        font-weight: bold;
    }

    /* home */
    .bannerLogo {
        width: 35vw;
    }

    .bannerTitle {
        width: 50vw;
        font-size: 20px;
    }

    .bannerSubtitle {
        width: 70vw;
    }

    .bottomBarItem {
        margin-right: 15px;
    }

    .bottomBarItem p {
        font-size: 10px;
    }

    .bannerButton {
        display: flex;
        justify-content: center;
        justify-self: center;
    }

    /* features */
    .featuresTitle {
        width: 95vw;
        margin-bottom: 15px;
        font-size: 18px;
    }

    .featuresCardIcon {
        margin: 15px;
    }

    .featuresCardTitle,
    .featuresCardDetail {
        margin: 5px 15px;
        font-size: 12px;
    }

    /* testimony */
    section.testimony {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .testimonyTitle,
    .testimonySubtitle {
        width: 90vw;
        text-align: center;
    }

    .testimonyTitle {
        font-size: 16px;
    }

    .testimonySubtitle {
        font-size: 12px;
    }

    .testimonyCardImage {
        width: 45px;
        height: 45px;
    }

    .testimonyCardTitle {
        font-size: 12px;
    }

    .testimonyCardQuote {
        font-size: 11px;
    }

    .testimonyCardJob {
        font-size: 10px;
    }

    /* locations */

    .locationsTitle {
        font-size: 16px;
    }

    .globe {
        width: 45vw;
        height: 45vw;
    }

    .city {
        font-size: 11px;
        width: 18vw;
        padding-right: 10px;
    }
}

@media(max-width: 550px) {

    .bannerTitle,
    .bannerSubtitle {
        width: 80vw;
        margin-top: 20px;
    }

    .cities {
        grid-template-columns: repeat(4, 1fr);
    }

    .city {
        font-size: 10px;
    }

    section.footer {
        grid-template-areas: "footerLogo footerLogo""identityAndSocialMedia identityAndSocialMedia""footerTag footerTag""copyright copyright";
        grid-template-rows: 1fr 3fr 3fr 1fr;
    }

    .footerLogo {
        width: 25vw;
    }

    .identity {
        width: 50vw;
    }

    .footerTag {
        margin-left: var(--generalMarginLeft);
        justify-content: flex-start;
    }
}

@media (max-width: 500px) {

    .bannerTitle,
    .bannerSubtitle {
        width: 90vw;
    }

    /* footer */
    .socialMediaTitle {
        width: 30vw;
    }
}

@media (max-width: 450px) {
    section.footer {
        font-size: 11px;
    }
}

@media (max-width: 400px) {
    :root {
        --generalMarginLeft: 0;
        --marginLeftFooter: 15px;
    }

    /* navigation */
    .drawer a div {
        font-size: 11px;
    }

    /* home */
    .bannerImage {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .testimonyCardList {
        align-items: center;
    }

    .bottomBar {
        display: flex;
        justify-content: center;
        /* transform: translateY(calc(-1 * var(--upBarHeight))); */
        /* background-color: transparent; */
    }

    .bottomBarItem {
        padding: 2px;
        border-width: 1px;
    }

    section.home {
        padding-bottom: 10px;
    }

    /* testimony */
    .testimonyCardList {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* footer */
    section.footer {
        font-size: 10px;
    }

    .footerLogo,
    .identityAndSocialMedia,
    .footerTag {
        margin-left: var(--marginLeftFooter);
    }
}

@media (max-width: 350px) {

    /* core */
    .primaryButton {
        font-size: 12px;
    }

    .cities {
        grid-template-columns: repeat(3, 1fr);
    }

    .summary,
    .solution,
    .aboutUs {
        padding-right: 20px;
    }
}

@media (max-width: 300px) {
    .bannerTitle {
        width: 90vw;
    }

    .bottomBar {
        justify-content: space-evenly;
    }

    .bottomBarItem {
        margin: 0;
    }

    .bottomBarItem p {
        font-size: 8px;
    }

    .testimonyCardImage {
        width: 40px;
        height: 40px;
    }

    .testimonyCardTitle {
        font-size: 11px;
    }

    .testimonyCardQuote {
        width: 50vw;
        font-size: 10px;
    }

    .globe {
        width: 60vw;
        height: 60vw;
    }

    .testimonyCard {
        padding-left: 24vw;
    }

    .city {
        padding-right: 0;
        font-size: 7px;
    }

    .footerLogo {
        width: 40vw;
    }

    .footerTag {
        font-size: 9px;
    }

    .copyright p {
        font-size: 8px;
    }
}

@media (max-width: 280px) {
    .footerTag {
        font-size: 8px;
    }

    .drawer {
        width: 70vw;
    }

    .copyright {
        margin: auto;
        text-align: center;
        width: 90vw;
    }
}

/* mobile adaptation */
@media (min-height: 600px) {
    section.footer {
        height: 70vh;
    }

    section.locations {
        font-size: 10px;
    }

    section.home,
    .upBarColor {
        height: 75vh;
    }
}

@media(max-height: 530px) {
    .bannerLogo {
        width: 80px;
    }
}