/* Scss Document */ @import 'reset'; @import 'variables'; @import 'header'; @import 'footer'; @import 'location'; @import 'contact'; body { font-family: $font2; overflow-x: hidden; background: #eee; } a { color: inherit; text-decoration: none; } .container { max-width: 1200px; margin: 0 auto; padding: 0 10px; } .main-info { margin: 1rem 0; .top-info { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: start; -ms-flex-align: start; align-items: flex-start; -webkit-box-pack: justify; -ms-flex-pack: justify; justify-content: space-around; margin: 2rem 0 3.2rem; color: $grey; #top-left { max-width: 50%; margin: 10px; h1 { max-width: 21ch; font-size: 64px; font-weight: 700; font-family: $font2; line-height: 1.1; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid $grey; span { color: $red; } } p { max-width: 65ch; line-height: 1.7; font-size: 18px; margin: 20px 0; } } ul.top-list { max-width: 50%; margin: -10px 10px; li { margin: 30px 0; max-width: 60ch; line-height: 1.7; position: relative; font-size: 18px; span { font-family: $font2; font-size: 21px; font-weight: 700; border-bottom: 2px solid $red; &.from-loc { font-size: 14px; letter-spacing: 0px; font-weight: 400; border-bottom: none; color: $red; } } } } } } /*grid*/ ul.four-grid { width: 100%; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; li { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; -webkit-box-align: start; -ms-flex-align: start; align-items: flex-start; width: 24%; background-position: center; background-repeat: no-repeat; max-height: 300px; height: 24vw; margin: 0 auto; background-size: cover; border-top: 5px solid $red; &:hover { -webkit-transition: .35s all ease-in-out; -o-transition: .35s all ease-in-out; transition: .35s all ease-in-out; background-color: rgba(0,0,0,.4); background-blend-mode: multiply; } &:nth-of-type(1) { background-image: url("../graphics/dark.jpg"); } &:nth-of-type(2) { background-image: url("../graphics/drive.jpg"); } &:nth-of-type(3) { background-image: url("../graphics/speed.jpg"); } &:nth-of-type(4) { background-image: url("../graphics/snow.jpg"); } } } h1.title { background: rgba(0,0,0,.75); color: #fff; padding: 10px 15px; font-size: 15px; text-transform: uppercase; } h2.tag { background: rgba($red, .8); color: #fff; padding: 20px 15px; font-size: 18px; text-transform: uppercase; } /*end call*/ #end-call { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 50px 0; p { text-align: center; max-width: 78ch; margin: 20px auto; letter-spacing: 1px; font-size: 18px; line-height: 1.7; &:nth-of-type(3) { font-size: 24px; color: $red; font-weight: 700; a { color: inherit; text-decoration: none; } } } } @media all and (max-width: 1000px) { ul.four-grid { -ms-flex-wrap: wrap; flex-wrap: wrap; li { height: 40vw; width: 45vw; margin: 10px; } } } @media all and (max-width: 767px) { .main-info { .top-info { -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; -webkit-box-align: center; -ms-flex-align: center; align-items: center; &#location-info { align-items: flex-start; } #top-left { max-width: 100%; h1 { font-size: 42px; } p { max-width: 100%; } } ul.top-list { max-width: 100%; li { max-width: 100%; } } } } #inner-services { -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; #services { padding: 1rem 10px; p { max-width: 100%; } } } #ebay-section { -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; } ul.four-grid { -ms-flex-wrap: wrap; flex-wrap: wrap; li { height: 50vw; width: 100%; } } }