/* Scss Document */ @import 'reset'; @import 'variables'; body { font-family: $font1; overflow-x: hidden; background: linear-gradient($red, $red - 350); background-attachment: fixed; } a { color: inherit; text-decoration: none; font-family: $font1; } #social { i { padding-right: 5px; } } .container { max-width: 1100px; margin: 0 auto; } header { background: linear-gradient($grey, $grey - 40); #inner-header { padding: 10px 5px; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between; -webkit-box-align: center; -ms-flex-align: center; align-items: center; color: #fff; line-height: 1.4; font-family: $font2; letter-spacing: 1px; #header-left { img { max-width: 220px; } } #header-contact { a { font-family: $font2; } li { text-align: center; &:nth-of-type(1) { font-weight: 700; font-size:21px; } } } #social { text-align: center; a { font-family: $font2; font-size: 21px; } } } } #menuBtn { display: none; } ul#nav { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; -webkit-box-align: center; -ms-flex-align: center; align-items: center; background: $red; border-top: 2px solid #fff; width: 100%; li { font-family: $font2; letter-spacing: 1px; border-bottom: 3px solid transparent; -webkit-transition: .2s all ease-in-out; transition: .2s all ease-in-out; padding: 15px 20px; color: #fff; font-weight: 700; &:hover { border-bottom: 3px solid #fff; background: rgba(0,0,0,.2); } } } .hero { width: 100%; background-size: cover; background-repeat: no-repeat; background-image: url("../graphics/hero.jpg"); height: 500px; background-position: center; background-attachment: fixed; &.repairhero { background-image: url("../graphics/hood.jpg"); } #topcall { 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; height: 400px; h1 { background: rgba(255,255,255,.85); color: $red; font-size: 32px; font-weight: 700; letter-spacing: 1px; font-family: $font2; padding: 10px; margin-bottom: 20px; max-width: 35ch; line-height: 1.2; } h2 { background: rgba(0,0,0,.85); color: #fff; font-size: 21px; padding: 10px; max-width: 50ch; line-height: 1.2; margin-bottom: 20px; } #srchBtn { background: #fff; color: $red; font-family: $font2; font-weight: 700; font-size: 18px; letter-spacing: 2px; text-transform: uppercase; text-align: center; border-bottom: 3px solid transparent; -webkit-transition: .2s all ease-in-out; transition: .2s all ease-in-out; display: inline-block; width: 300px; padding: 10px; a { font-family: $font2; } &:hover { -webkit-transform: translateY(-3px); transform: translateY(-3px); border-bottom: 3px solid $red; } &:active { -webkit-transform: translateY(0); transform: translateY(0); border-bottom: 3px solid transparent; } } } } .about { border-top: 3px solid #fff; background: linear-gradient($red, $red - 350); background-attachment: fixed; &.repairabout { background: linear-gradient($grey + 20, $grey - 280); } #inner-about { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; padding: 3rem 5px; -webkit-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between; #about-left { margin-right: 15px; h1 { margin: 10px; font-family: $font2; font-size: 3rem; color: #fff; font-weight: 700; letter-spacing: 1px; border-bottom: 3px dotted #fff; padding-bottom: 10px; &.repair-call { text-align: right; } } p { line-height: 1.7; margin: 10px; max-width: 85ch; color: #fff; text-align: justify; &.repair-call { text-align: right; } span { font-family: $font2; letter-spacing: 1px; font-size: 24px; } } } #about-photo { background: url("../graphics/lot.jpg"); min-height: 350px; width: 600px; background-size: cover; background-position: center; background-repeat: no-repeat; -webkit-transition: .2s all ease-in-out; transition: .2s all ease-in-out; border: 3px solid #fff; margin-right: 10px; &.repair-about-photo { background: url("../graphics/engine.jpg"); background-size: cover; } } } } #information { width: 100%; padding: 3rem 5px; border-top: 3px solid $grey; background-image: url("../graphics/flag.jpg"); background-blend-mode: screen; background-color: rgba(255,255,255,.85); background-attachment: fixed; #inner-info { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; -webkit-box-align: center; -ms-flex-align: center; align-items: center; > div { margin: 10px 20px; } .info { background-size: cover; background-repeat: no-repeat; background-position: center; height: 250px; width: 250px; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -webkit-transition: .2s all ease-in-out; transition: .2s all ease-in-out; border: 3px solid $grey; p, a { font-size: 18px; color: $red; background: rgba(255,255,255,.8); padding: 25px; height: 60px; width: 60px; border-radius: 50%; font-weight: 700; font-family: $font2; letter-spacing: 1px; text-align: center; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; -webkit-box-align: center; -ms-flex-align: center; align-items: center; border: 3px solid rgba(0,0,0,.5); -webkit-transition: .2s all ease-in-out; transition: .2s all ease-in-out; } &:hover { background-color: rgba(0,0,0,.4); background-blend-mode: multiply; > a, p { background: #fff; border: 3px solid $grey; } } &:nth-of-type(1) { background-image: url("../graphics/cars.jpg"); } &:nth-of-type(2) { background-image: url("../graphics/parts.jpg"); } &:nth-of-type(3) { background-image: url("../graphics/repair.jpg"); } &:nth-of-type(4) { background-image: url("../graphics/tail.jpg"); } } } } /*footer*/ .footer { background: $grey; border-top: 3px solid $red; } .footer-cont { display: -ms-flexbox; display: -webkit-box; display: flex; -ms-flex-pack: justify; -webkit-box-pack: justify; justify-content: space-between; -ms-flex-align: start; -webkit-box-align: start; align-items: flex-start; padding: 1rem .5rem 2rem; color: #fff; .line { width: 100%; margin: 1px; background: #fff; padding: 1px 0; } h1 { font-size: 1.5rem; padding-bottom: 1rem; font-family: $font2; letter-spacing: 2px; } li { line-height: 1.7; font-size: 14px; i { padding-right: .5rem; } } } #footer-mid li:hover, #footer-right li:hover { color: $red + 25; } #copy { font-family: $font2; padding: 8px; color: #fff; background: $red; } /*** SELL YOUR CAR PAGE - FORM ************************************/ .form-hero { background: url("../graphics/truck.jpg"); background-size: cover; background-repeat: no-repeat; background-position: center; background-attachment: fixed; border-bottom: 3px solid $red; } #form-call { display: -ms-flexbox; display: -webkit-box; display: flex; -ms-flex-direction: column; -webkit-box-orient: vertical; -webkit-box-direction: normal; flex-direction: column; -ms-flex-pack: start; -webkit-box-pack: start; justify-content: flex-start; padding: 8rem 0; color: #fff; h1 { font-family: $font2; font-size: 4rem; margin: 1rem .5rem; text-shadow: -2px 2px 0px $grey; } h2 { font-family: $font2; font-size: 1.8rem; margin: 0 .5rem 1rem; text-shadow: -1px 1px 0px $red; max-width: 530px; padding: 10px 20px; background: $grey; } p { margin: 0 .5rem; font-size: 18px; text-shadow: -1px 1px 0px $grey; background: $red; max-width: 450px; padding: 10px 20px; background: $red; } } #mailForm { margin: 2rem auto; padding: 1rem 2rem; background: linear-gradient($grey + 20, $grey - 40); color: #fff; border: 3px solid #fff; } #mailForm h1 { font-size: 16px; } #mailForm label { font-weight: 700; margin: 5px 0; } #mailForm .junkerDetails { border: 3px solid $red; margin: .5em 0; padding: 1em; background: #fff; color: $grey; } #mailForm .fixed { display: inline-block; width: 10ch; } #mailForm .block { display: block; margin-bottom: 1em; } #mailForm .note, #check { margin: 1em 0; } #mailForm textarea { -webkit-box-sizing: border-box; box-sizing: border-box; height: 6em; outline: none; resize: none; width: 100%; } #mailForm input[type="submit"], #mailForm input[type="reset"] { background: $grey - 40; color: #fff; padding: 1rem 4rem; } #mailForm input[type="submit"]:hover, #mailForm input[type="reset"]:hover { background: $red; border-color: $red; } @media all and (max-width: 1000px) { #inner-about { -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; padding: 1rem 15px; #about-left { h1 { text-align: center; line-height: 1.1; } } } #about-photo { height: 350px; max-width: 90vw; -webkit-transition: 0s all ease-in-out; transition: 0s all ease-in-out; border: 3px solid #fff; margin-left: 10px; } } @media all and (max-width: 767px) { #inner-header { -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; } #srchBtn { margin: 0 auto; } /****nav****/ #menuBtn { display: -ms-flexbox; display: -webkit-box; display: flex; -ms-flex-pack: flexend; -webkit-box-pack: end; justify-content: flex-end; -ms-flex-align: center; -webkit-box-align: center; align-items: center; padding: .5rem; z-index: 100; font-size: 2rem; background: $red; i { color: #fff; } } ul#nav { display: none; position: relative; z-index: 101; } #nav.active { display: -ms-flexbox; display: -webkit-box; display: flex; -ms-flex-direction: column; -webkit-box-orient: vertical; -webkit-box-direction: normal; flex-direction: column; -ms-flex-align: start; -webkit-box-align: start; align-items: flex-start; padding-bottom: 0; width: 100%; left: 0; top: 100%; background: -webkit-gradient(linear, left top, left bottom, from(#eee), to(#fff)); background: linear-gradient(#eee, #fff); li { display: -ms-flexbox; display: -webkit-box; display: flex; -ms-flex-direction: column; -webkit-box-orient: vertical; -webkit-box-direction: normal; flex-direction: column; -ms-flex-align: start; -webkit-box-align: start; align-items: flex-start; padding: 1rem; font-size: 1.2rem; width: 100%; color: $grey; } a { width: 100%; border-right: none; border-bottom: 2px solid rgba(0,0,0,.15); } } #nav li:hover, #nav a:hover { background: $grey; color: #fff; } #inner-info { -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; } /***********FOOTER********************/ .footer-cont { -ms-flex-direction: column; -webkit-box-orient: vertical; -webkit-box-direction: normal; flex-direction: column; padding: 1rem; } #copy { font-size: 12px; } /** form page mobile **/ .form-hero { background-position: right; } #form-call { height: auto; padding: 2rem 0; h1 { font-size: 3rem; } p { font-size: 1rem; } } .junkerDetails input { display: block; margin: .5rem 0; } .buttons { input { margin: 5px 0; } } }