/* Establish color variables to use through the rest of the file*/
:root {
    --primary_color: #BE1919;
    --primary_color_darker: #9e1515;
    --secondary_color: #ECC72D;
    --dark_color: #26222D;
}

/* Set media settings for whole site if used from a phone */
@media screen and (max-width: 800px) {
    body {
        text-align: center;
    }
}

body {
    background-color: #fffafa;
    font-family: 'Tahoma', 'Verdana', 'Sans-serif';
}

/* Navbar stylings */

.nav-styles {
    height: 4em;
    width: 100%;
    background-color: var(--primary_color);
    font-weight: bold;
    color: white;
    position: sticky;
    top: 0;
}

.main-nav {
    height: inherit;
    display: flex;
    justify-content: space-between;
}

.nav-img {
    height: inherit;
}

.nav-hamburger {
    height: inherit;
    padding: 7px;
}

.nav-hamburger:active {
    transform: scale(0.9);
}

.sec-nav {
    display: none;
    height: 2em;
    background-color: var(--primary_color_darker);
    width: 100%;
    position: relative;
    z-index: 3;
    text-align: center;
    align-content: center;
    font-family: 'Verdana';
    font-size: x-large;
}

/* .nav-hamburger:hover .sec-nav {
    display: block;
} */

.nav-styles a {
    margin-left: 1em;
    text-decoration: none;
    color: white;
    height: 4em;
}

.nav-styles a:hover {
    color: black;
}

.nav-styles a:active {
    color: white;
}

/* .nav-styles:hover .sec-nav {
    transform: translate(-2em);
} */

/* Homepage landing banner stylings */

.banner {
    background-image: url('./assets/images/mechanic-parts-floor.jpg');
    background-size: 100%;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-height: 20em;
    min-height: 15em;
    z-index: -1;
}

.home-banner-text {
    background-color: rgb(0, 0, 0, .3);
    padding: 1em 3em;
    color: white;
    text-align: center;
}

/* Styles for the services section of the website */
.services-header {
    margin: 2em 2em 0 2em;
}

.services-header h2 {
    font-weight: bolder;
}

.services-cards {
    display: flex;
    flex-direction: column;
    color: white;
}

.services-card {
    width: calc(100% - 4em);
    height: 100%;
    margin: 1em 2em;
    background-color: var(--dark_color);
}

.services-card p {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.services-card img {
    width: 100%;
    margin-bottom: 1em;
}

.services-list {
    text-align: left;
    width: 80%;
    margin: 0 auto 1em auto;
}

.services-flyers {
    width: 100%;
    text-align: center;
}

.services-flyers h4 {
    margin-bottom: 1em;
}

.services-flyer {
    width: 100%;
    margin: 0 auto 2em auto;
}


/* Styles for the contact section of the website */

.contact-header {
    margin: 1em 1em 2em 1em;
    text-align: center;
}

.contact-flex {
    margin: 0em 3em;
}

/* .contact-frame {
    width:50%;
} */

.contact-frame iframe {
    margin-top: 1em;
    width: 100%;
}

.contact-info {
    padding: 0em 1em;
}

.show {
    display: block;
}

/* Sytles for the footer of the website */
footer {
    margin-bottom: 1em;
}

.footer-items {
    height: 5em;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}