@font-face { font-family: 'oswald'; src: url('../fonts/Oswald-Regular.ttf'); /* ../fonts/SILOpenFontLicense.txt */ } :root { --nav-height: 65px; --cool-looking-gradient: linear-gradient(to right, #3ad559 0%, #606dc2 100%); } html, body { font-size: 13.5pt; font-family: 'Oswald', sans-serif; margin: 0; height: 100%; background-color: #e6e6e6; } nav { display: flex; flex-direction: row; justify-content: center; position: fixed; height: var(--nav-height); background-color: white; width: 100%; border-bottom: 5px solid transparent; border-image: var(--cool-looking-gradient); border-image-slice: 1; font-size: 22px; user-select: none; z-index: 1; } nav .logo { background-image: url("../imgs/logo.png"); background-repeat: no-repeat; background-size: auto 100%; height: 100%; width: 300px; margin-right: auto; } nav .blank { width: 300px; margin-left: auto; } nav .links { display: flex; flex-direction: row; justify-content: center; } nav .links a { display: flex; justify-content: center; align-items: center; height: 100%; margin: auto 10px auto 10px; text-align: center; color: #6d6b6b; text-decoration: none; transition: color 10ms; font-weight: 900; } nav a:hover { color: black; text-shadow: rgba(0, 0, 0, 0.1) 1px 0 5px; } footer { height: 10px; background-color: rgb(59, 59, 59); width: 100%; background-image: var(--cool-looking-gradient); } #content { display: flex; padding-top: var(--nav-height); flex-direction: column; width: 100%; } #content #banner { display: flex; min-height: 450px; margin-bottom: 30px; justify-content: center; align-items: center; background-image: url('../imgs/banner.JPG'); background-repeat: no-repeat; background-position: 0 -150px; background-size: auto auto; background-attachment: fixed; } #content #banner #bannerTxt { margin-right: auto; margin-left: 80px; width: 500px; font-size: 30px; line-height: 1.3; font-weight: 600; color: white; } #content #banner #quickInfo { display: flex; align-items: center; flex-direction: column; margin-right: 40px; margin-left: auto; width: 320px; height: 340px; font-size: 20px; line-height: 1.15; font-weight: 600; color: white; background-color: #000000a1; border: 1px solid; border-image-slice: 1; border-image-source: linear-gradient(to left, #004abe, #1e6f07); } #content #banner #quickInfo span { align-self: flex-start; margin-left: 20px; } #content #banner #quickInfo span:first-child { margin-top: 10px; } #content #banner #quickInfo p { padding: 0; margin: 10px; } #content .container { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 20px; width: 100%; } #content .container .row { display: flex; flex-wrap: wrap; justify-content: center; width: 100%; } #content .container .service { order: 1; display: flex; flex-direction: column; justify-content: center; margin: 20px; width: 400px; height: 255px; border: solid 1px rgb(94, 94, 94); transition: transform 40ms; user-select: none; cursor: pointer; } #content .container .service:hover{ transform: scale(1.1); } #content .container .service.active:hover{ transform: scale(1); } #content .container .service.active { order: 0; width: 100%; min-height: 500px; height: auto; flex-direction: row; justify-content: start; } #content .container .service.active h1 { display: none; } #content .container .service.active .image { width: 100%; height: 100%; background-size: cover; } #content .container .service.active .image .discription { display: flex; } #content .container .service h1 { margin-top: auto; font-size: 15pt; width: 100%; } #content .container .service .image { margin-bottom: auto; height: 200px; width: 100%; background-size: 100% auto; background-repeat: no-repeat; background-position: 0 0; } #content .container .service .image .discription { display: none; align-items: center; justify-content: center; flex-direction: column; width: 100%; height: 100%; color: white; background-color: rgba(0, 0, 0, 0.9); } #content .container .service .image .discription ul{ text-align: left; } #content .container .service .image .discription .contactLink{ color: rgb(130, 253, 137); text-decoration: none; font-weight: 900; font-size: 20px; } #content .container .service .image.pc { background-image: url('../imgs/pc.jpg'); } #content .container .service .image.pd { background-image: url('../imgs/pd.jpg'); } #content .container .service .image.hvac { background-image: url('../imgs/hvac.jpg'); } #content .container .service .image.pcs { background-image: url('../imgs/pcs.jpg'); } #content .container .contactBox { display: flex; flex-direction: row; justify-content: space-around; align-items: center; width: 100%; padding-top: 20px; background-image: linear-gradient(to bottom, #ccc, transparent); font-size: 20px; font-weight: 600; } #content .container .contactBox .infoContainer { padding-top: 5px; padding-bottom: 5px; border-bottom: solid 1px white; } .coolLookingBox { background-color: #f5f5f5; background-image: linear-gradient(to bottom,#ffffff,#e6e6e6); background-repeat: repeat-x; border: 1px solid #cccccc; border-color: #e6e6e6 #e6e6e6 #bfbfbf; border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); border-bottom-color: #b3b3b3; border-radius: 4px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05); color: #333; display: block; font-size: 125%; font-style: normal; line-height: 20px; margin: 20px 0 0; padding: 10px 20px; text-align: center; text-decoration: none; text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75); } .coolLookingBox.mobile:before { content: 'Mobile: '; font-weight: bold; } .coolLookingBox.landline:before { content: 'Landline: '; font-weight: bold; } .coolLookingBox.email:before { content: 'E-Mail: '; font-weight: bold; } #map { height: 450px; width: 100%; margin: auto; } .divider{ /* Thanks Milan! https://codepen.io/Oddgson */ position: relative; margin-top: 10px; height: 1px; } .div-transparent:before{ content: ""; position: absolute; top: 0; left: 5%; right: 5%; width: 90%; height: 2px; background-image: linear-gradient(to right, transparent, #008cff65, transparent); } @media screen and (max-width: 1200px) { nav .blank { display: none; } } @media screen and (max-width: 1000px) { #content #banner #quickInfo{ display: none; } } @media screen and (max-width: 730px) { nav { height: auto; flex-direction: column; position: relative; } nav .logo { margin: auto; background-position: center; height: 65px; } nav .blank { display: none; } #content { padding-top: 0; } #content #banner { justify-content: center; } #content #banner #bannerTxt { margin: 10px; } #content .container .contactBox { flex-direction: column; } } @media screen and (max-width: 320px) { nav .links { flex-direction: column; } }