﻿.home-page-body {
    padding: 8px 24px 58px 24px;
    border: 2px solid lightgray;
    border-radius: 4px;
    margin: 8px 0px -58px 0px; /* A little messy, but negative margin used here to encapsulate footer inside the border of this div */
}

.home-page-body h1 {
    text-align: center;
    font-weight: bold;
    font-size: calc(min(3.5vw, 36px)); /* Use vw in font-size calculation to scale text on smaller screens to keep this header always a single line */
}

.home-page-body .carousel {
    border: 1px solid #BB001D;
}

.blockContainer {
    margin: 0px 15px;
    display: flex;
    justify-content: space-around;
    padding-bottom: 15px;
    gap: 10px;
}

.marketingBlock {
    padding: 8px;
    background-color: #BB001D;
    flex: 1 1 0;
    max-height: 200px;
    display: flex;
    flex-direction: column;
}

.marketingBlock img {
    object-fit: cover;
    object-position: center;
    height: calc(100% - 24px);
    width: 100%;
}

.marketingBlock p {
    color: white;
    margin: 4px 0px 0px 0px;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
}

@media (max-width: 768px) {

    .blockContainer {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-around;
        padding: 0 0 15px 0;
        gap: 15px
    }

    .marketingBlock {
        width: 45%;
        flex: 0 1 auto;
        max-height: 100%;
    }

    .marketingBlock p {
        font-size: 14px;
    }

    .marketingBlock img {
        height: unset;
    }
}