/* CSS Reset */
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
font,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    font-size: 100%;
    vertical-align: baseline;
    background: transparent;
    box-sizing: border-box;
}

/* Normalize */
body {
    line-height: 1;
}

ol,
ul {
    list-style: none;
}

blockquote,
q {
    quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
    content: "";
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

h2 {
    font-size: 40px;
    margin-bottom: 20px;
}

/* Custom */

body {
    width: 100%;
    background-color: rgb(250, 244, 236)
}

.main-image {
    background-image: url('img/tires.jpeg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    height: 200px;
}

.nav-bar .nav-bar-items {
    display: flex;
    flex-direction: row;
    justify-content:flex-start;
    align-items: center;
    padding: 10px 20px;
    background-color: #333;
    color: white;
}

.nav-bar .nav-bar-items li {
    margin: 10px 40px;
}

.nav-bar .nav-bar-items a {
    font-size: 20px;
    color: white;
    text-decoration: none;
}

.contents {
    padding: 30px;
    width: 100%;
    background-color: white;
}

.main-content {
    margin: 0px;
    display: flex;
    justify-content: center;
    background-color: white;;
}

.main-content-item {
    margin: 50px;
}

.main-content-item > h2 {
    font-size: 40px;
    margin: 10px 0 20px;
}

.main-content-item > p {
    font-size: 24px;
}

.main-content-item:nth-child(1) {
    flex: 1
}

.main-content-item:nth-child(2) {
    flex: 1
}

.promo-image {
    /* max-height: 60vh; */
    width: 100%;;
}

.featured-products-section {
    background-color: white;
    margin: 20px 0;
    padding: 50px;
}

.featured-products-section > h2 {
    font-size: 40px;
    margin: 10px 0 20px;
}

.featured-products-wrapper.horizontal {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.featured-product {
    margin: 10px;
}

.featured-product > img {
    width: 70%;
    padding: 60px;
}



/* for mobile */
@media only screen and (max-width: 425px) {
    body {
        background-color: lightblue;
    }

    .main-image {
        height: 150px;
    }

    .nav-bar .nav-bar-items {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px;
    }

    .nav-bar .nav-bar-items li {
        margin: 10px 0;
    }

    .main-content {
        flex-direction: column;
    }

    .main-content-item {
        margin: 20px 0;
    }

    .main-content-item > h2 {
        font-size: 30px;
        margin: 10px 0 10px;
    }

    .main-content-item > p {
        font-size: 18px;
    }

    .promo-image {
        max-height: 300px;
    }

    .featured-products-section {
        padding: 30px;
    }

    .featured-products-section > h2 {
        font-size: 30px;
        margin: 10px 0 20px;
    }

    .featured-products-wrapper.horizontal {
        flex-wrap: wrap;
    }

    .featured-product {
        margin: 10px 0;
    }

    .featured-product > img {
        width: 100%;
        padding: 20px;
    }
}

/* for tablet */
@media only screen and (min-width: 426px) and (max-width: 1024px) {
    body {
        background-color: lightgreen;
    }

    .main-image {
        height: 150px;
    }

    .nav-bar .nav-bar-items {
        align-items: flex-start;
        padding: 10px;
    }

    .main-content {
        flex-direction: column;
    }

    .main-content-item {
        margin: 20px 0;
    }

    .main-content-item > h2 {
        font-size: 30px;
        margin: 10px 0 10px;
    }

    .main-content-item > p {
        font-size: 18px;
    }

    .featured-products-section {
        padding: 30px;
    }

    .featured-products-section > h2 {
        font-size: 30px;
        margin: 10px 0 20px;
    }

    .featured-products-wrapper.horizontal {
        flex-wrap: wrap;
    }

    .featured-product {
        margin: 10px 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .featured-product > img {
        width: 40%;
        padding: 20px;
    }
}