* {
    box-sizing: border-box;
}

#bg {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    display: block;
    background: radial-gradient(rgba(0, 0, 0, 0.455) 7%, rgba(0, 0, 0, 0.12)),
        url('../img/mmbpbuilding1.webp') no-repeat;
    height: 970px;
    width: 576px;
}

.main {
    margin-bottom: 6rem;
    max-width: 75rem;
}

.team-header {
    margin-top: 1rem;
}

hr {
    opacity: .6;
    color: white;
    width: 85%;
    margin: 1rem auto;
}

#radiator {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: .5rem;
    margin-top: .5rem;
}

#radiator-text {
    text-align: center;
    margin-top: auto;
    margin-bottom: auto;
}

#phone {
    text-align: center;
    font-size: 21px;
}

.supplier-link {
    color: white;
    font-weight: bold;
}

.supplier-link:hover {
    cursor: pointer;
    color: rgb(152, 179, 255);
}

.about-container,
.returns {
    width: 85%;
    margin: auto;
}

#google-header {
    margin: 2rem auto;
}

#apply {
    text-align: center;
    font-size: 19px;
}

.services-container {
    margin: auto;
    width: 85%;
    color: white;
}

.service-header,
.employ-header {
    Font-Family: 'Roboto', Sans-Serif;
    text-align: center;
    color: white;
}

#asterisk {
    font-weight: 300;
    font-size: 12px;
}

.inventory {
    width: 100%;
    border-radius: 5px;
    margin: 1rem auto;
}

.service-img {
    border-radius: 5px;
    margin-bottom: 1rem;
}

.job-list {
    color: white;
}

.border-row {
    border-bottom: 1px solid gray;
}

.border-cell {
    border-right: 1px solid gray;
    padding: 2px;
}

.inv {
    width: 33%;
    text-align: center;
}

.returns {
    color: white;
    margin: 1rem auto 8rem;
}

.returns-table {
    margin: auto;
}

.man-cell {
    width: 10%;
}

.returns-cell {
    text-align: center;
    width: auto;
}

.panel-list {
    display: grid;
    grid-template-columns: repeat(2, auto);
    justify-content: center;
}

.panel-list>li:nth-child(even) {
    margin-left: 3rem;
}

#home-about {
    color: white;
}

#hiring-desktop {
    display: none;
}

#hiring-mobile {
    margin-top: 1rem;
    text-align: center;
}

/* =====================================
============== HEADER ==================
======================================== */

.hr-header {
    color: black;
}

.nav-logo {
    width: 12rem;
}

.navbar-toggler {
    border: none;
}

.about-container>div>p {
    color: white;
}

.about-container>p {
    color: white;
    margin: 1rem 5px auto;
}

.navbar {
    background-color: white;
}

.hidden {
    display: none;
}

.header-svg {
    height: 35px;
    width: auto;
    transform: translateX(50%);
}

.nav-link {
    position: relative;
    width: 90px;
    overflow: hidden;
}

.nav-link:hover {
    cursor: pointer;
}

.header-svg,
.slider {
    transition-duration: .5s;
}

.nav-link:hover .slider {
    opacity: 1;
}

.nav-link:hover .header-svg {
    transform: translate(50%, -35px);
}

.slider {
    color: black;
    font-family: 'Rubik Mono One', sans-serif;
    font-style: italic;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 45%;
    opacity: 0;
}

#text-b {
    text-align: center;
}

/* =====================================
=============== CARDS ==================
======================================== */

.card-container {
    display: flex;
    flex-wrap: wrap;
    width: 85%;
    margin: auto;
    column-gap: 15px;
}

.flip-card {
    position: absolute;
    background-color: transparent;
    bottom: 1rem;
    width: 90%;
    height: 15rem;
    transform: translate3d(0px, 0px, 0px);
}

.staff-card {
    height: 21rem;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition-duration: 0.8s;
    transform-style: preserve-3d;
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    color: black;
    transform-style: preserve-3d;
}

.flip-card-back {
    transform: rotateY(180deg);
}

.card {
    margin: 2rem auto 1rem;
    width: 18rem;
    box-shadow: 0 0 10px white;
}

.img-ph {
    width: 100%;
    height: 15rem;
    margin: .5rem auto 1.5rem;
    box-shadow: 0 0 12px gray;
    border-radius: 4px;
}

.card-header {
    margin-top: 2rem;
    Font-Family: 'Roboto', Sans-Serif;
    Font-Size: 35px;
}

.card-title {
    font-weight: bold;
}

.card-header {
    margin-left: 3px;
    margin-right: 3px;
}

.card-header,
#contact,
.team-header {
    color: white;
    text-align: center;
}

.card-main {
    width: 19rem;
}

.card-main-body {
    padding-bottom: 0;
}

.main-img-ph {
    width: 100%;
    margin-bottom: .5rem;
    box-shadow: 0 0 15px gray;
    border-radius: 4px;
}

.staff-button,
.back-button {
    font-weight: lighter;
    position: absolute;
    background: rgba(236, 236, 236);
    text-align: center;
    right: 5px;
    top: 5px;
    color: black;
    border: 1px solid lightgray;
    width: 40%;
    white-space: nowrap;
    text-decoration: none;
    font-size: 13px;
    transition-duration: .3s;
    border-radius: 3px;
}

.back-button {
    z-index: -1;
}

/* =====================================
============== FOOTER ==================
======================================== */

.foot-slogan {
    font-weight: 200;
    margin-top: 1rem;
    color: white;
    font-style: italic;
}

.footer {
    position: fixed;
    bottom: 1rem;
    height: 3rem;
    width: 100%;
    opacity: 85%;
    background-color: black;
    z-index: 3;
}

.footer-content {
    display: flex;
    height: 3rem;
    background-color: black;
    margin: auto;
    justify-content: space-evenly;
    align-items: center;
}

.foot-svg {
    transition-duration: .5s;
    height: 35px;
    width: 35px;
}

.foot-svg:hover {
    transform: scale(1.3);
    cursor: pointer;
}

#fire-svg {
    height: 35px;
    width: 35px;
}

#fire-container:hover {
    transform: scale(1.3);
    cursor: pointer;
}

#fire-container {
    position: relative;
    transition-duration: .5s;
}

#deals-link {
    position: absolute;
    white-space: nowrap;
    overflow: visible;
    font-size: 11px;
    color: white;
    left: -25px;
    top: 50%;
    transform: translateY(-40%);
    font-family: 'Rubik Mono One', sans-serif;
}

/* =====================================
============== MODAL ==================
======================================== */

.modal-body {
    margin: 0rem auto;
    padding-top: 0;
}

.hours-list {
    background-color: rgba(236, 236, 236, 0.308);
    height: fit-content;
}

.line {
    display: flex;
    justify-content: space-between;
    padding: 4px;
}

.time {
    text-align: right;
}

.line:nth-child(odd) {
    background-color: rgba(202, 202, 202, 0.308);
}

.line:last-child {
    border-radius: 0 0 5px 5px;
}

.line:first-child {
    border-radius: 5px 5px 0 0;
}

.building-block {
    margin-top: 1rem;
}

.address {
    margin-bottom: 1rem;
}

.address>p,
.address-hidden>p {
    text-align: center;
    margin: 0;
    padding: 0;
    font-weight: 600;
    color: black;
}

.walk-in {
    margin-bottom: 1rem;
    color: black;
}

.modal-img-container {
    display: none;
    width: 48%;
    height: 28.3%;
}

.closed {
    display: flex;
    justify-content: space-between;
    padding: 4px;
    background-color: rgb(252, 95, 95);
    color: white;
    transform: scale(1.06);
    box-shadow: 0 0 16px rgb(68, 68, 68);
    border-radius: 4px;
}

.open {
    display: flex;
    justify-content: space-between;
    padding: 4px;
    background-color: rgb(77, 172, 33);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 0 8px gray;
    border-radius: 4px;
}

/* =====================================
============== CAROUSEL ================
======================================== */


.carousel {
    display: none;
    margin: 3rem auto 1rem;
}

.staff-carousel {
    height: 25rem;
    width: 25rem;
    margin: 1rem auto;
    border-radius: 5px;
}

/* =====================================
=============== DEALS ==================
======================================== */

.deals-container {
    color: white;
    width: 90%;
    margin: auto;
    text-align: center;
}

#radiator-support {
    width: 90%;
    border-radius: 4px;
    margin: 1rem auto;
    border: 1px solid gray;
}

#products svg {
    width: 155px;
    margin: -25px auto;
    padding: 0;
}

#products h3 {
    margin-bottom: 1rem;
}

/* =====================================
=============== EVENTS =================
======================================== */

#events {
    color: white;
    width: 90%;
    margin: auto;
    text-align: center;
}

/* ================================
========== MEDIA QUERIES ==========
================================ */
@media screen and (min-width: 500px) {
    #bg {
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        background: radial-gradient(rgba(0, 0, 0, 0.455) 7%, rgba(0, 0, 0, 0.12)),
            url('../img/mmbpbuilding2.webp') no-repeat 50% 50%;
        height: auto;
        width: auto;
        background-size: cover;
    }
}

@media screen and (min-width: 1200px) {
    .team-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        grid-template-areas:
            "text-a employ"
            "text-a text-b"
            "text-a list"
            "apply apply";
        column-gap: 10px;
    }

    #text-a {
        grid-area: text-a;
    }

    #text-b {
        grid-area: text-b;
    }

    .employ-header {
        grid-area: employ;
    }

    .job-list {
        grid-area: list;
    }

    #apply {
        grid-area: apply;
    }

}

@media screen and (min-width: 576px) {

    .card-main {
        width: 38rem;
    }

    .card-main-body {
        display: flex;
    }

    .card-main-text {
        order: -1;
        width: 35%
    }

    .card-main-link {
        display: none;
    }

    .carousel {
        display: block;
    }

    .card-bio {
        margin: auto auto .5rem .5rem;
    }

    .card-main-text {
        height: 9rem;
    }

    .main-img-ph {
        float: left;
        display: table-cell;
        width: 40%;
        vertical-align: middle;
        margin: .5rem 1rem 0 auto;
    }

    .modal-img-container {
        display: block;
    }

    .hours-list {
        width: 50%;
    }

    .building-block {
        display: flex;
        justify-content: space-between;
    }

    .address-hidden {
        display: none;
    }

    .returns {
        text-align: center;
    }

    .home-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    #text-a {
        grid-area: text-a;
    }

    #text-b {
        grid-area: text-b;
    }

    .employ-header {
        grid-area: employ;
    }

    .job-list {
        grid-area: list;
    }

    #apply {
        grid-area: apply;
    }

    #radiator-text {
        font-size: 17px;
    }

    .deals-container {
        /* display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem; */
    }

    .staff-button:hover,
    .back-button:hover {
        background: rgb(161, 161, 161);
        border: 1px solid black;
        color: white;
    }

}

@media screen and (min-width: 768px) {
    #products div {
        display: grid;
        grid-template-columns: 20% 20%;
        justify-content: center;
        gap: 10px;
    }

    #radiator-support {
        width: 80%;
    }

    .card-main {
        width: 46rem;
    }

    .card-main-body {
        padding-bottom: .5rem;
    }

    .card-main-text {
        height: 11rem;
    }

    .navbar {
        display: none;
    }

    .about-container {
        margin-top: 1rem;
    }

    .nav-logo {
        margin: auto 2rem;
    }

    .hidden {
        display: flex;
        background-color: white;
        width: 100%;
        justify-content: space-evenly;
        padding: 1rem 10%;
        align-items: center;
    }

    .services-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .footer-content {
        width: 80%;
    }

    #hiring-mobile {
        display: none;
    }

    #hiring-desktop {
        display: block;
        text-align: center;
    }
}

@media screen and (min-width: 992px) {
    .main {
        width: 77%;
        margin: 0 auto 5rem;
    }

    .nav-logo {
        margin: auto 0;
    }

}

@media screen and (min-width: 1200px) {
    .team {
        display: grid;
        gap: 1rem;
        grid-template-columns: 1fr 1fr;
    }

    .carousel {
        margin-top: 1rem;
    }

    .team-container {
        display: block;
    }
}

@media screen and (min-width: 1400px) {
    .about-container {
        width: 70%;
    }

    hr {
        width: 75%;
    }

    .footer-content {
        width: 70%;
    }
}