/* styles.css Project: Author: Date: Helpful links: Web colors: https://en.wikipedia.org/wiki/Web_colors#X11_color_names Color picker tool: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Colors/Color_picker_tool http://colorpicker.com */ /*@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@100&family=Lato&family=Montserrat&family=Open+Sans&family=Raleway&family=Roboto&family=Roboto+Slab:wght@100&display=swap'); */ * { box-sizing: border-box; } /*div, section { border: 1px solid black; }*/ img { width: 100%; display: block; } body, html { font-family: 'Roboto', monospace; } h1, h2, h3, .pullquote { font-family: 'Josefin Sans'; } header { width: 100%; position: sticky; top: 0; z-index: -1; background-color: black; /*max-height: 600px;*/ } .header { position: sticky; width: 100%; /* height: auto;*/ } .title1 { position: absolute; width: 100%; top: 15%; color: white; padding: 3%; } .title1 h1 { position: sticky; color: white; padding-top: 0%; padding-bottom: 5%; padding-left: 0%; font-size: 6.1em; text-align: left; font-family: 'Bebas Neue', sans-serif; margin-bottom: -2px; } .title1 h2 { position: absolute; color: white; text-align: right; font-size: 2em; font-family: Roboto, thin; font-weight: 100; margin-right: 10px; margin-bottom: 20px; padding-bottom: 15%; } .title1 h3 { margin-top: 10%; font-family: Josefin Sans, sans-serif; font-weight: lighter; font-size: 1.2em; font-style: italic; } .topbox { /* position: sticky;*/ display: grid; grid-template-columns: 44.9% 55.1%; grid-column-gap: 1%; margin-bottom: 13px; direction: ltr; } .topbox video { /* position: sticky;*/ width: 100%; } .bottombox { /* position: sticky;*/ display: grid; grid-template-columns: 66.2% 33.8% ; grid-column-gap: 1%; direction: ltr; } /*.bottombox video { position: sticky; padding-top: 0px; padding-left: -30px; padding-bottom: 1px; width: 100%; }*/ .img2{ width: 10%; } .title2 { width: 100%; /* border: 1px solid black; */ font-family: 'Roboto Slab', sans-serif; color: orangered; padding: 3% 10%; } .title2 h1 { font-family: 'Bebas Neue', sans-serif; text-align-last:justify; font-size: 2.6em; margin-bottom: -4px; } .title2 h2 { font-size: 1.2em; } .title2 h3 { font-family: Roboto Slab; margin-top: 2%; margin-bottom: 4px; font-size: 0.8em; font-size: .9em; font-style:; margin-right: 46.2%; } .title2 h4{ font-size: 1.8em; } .content { width: 100%; background-color: white; overflow-x: hidden; } .underline{ width: 100%; } .maintext { font-family: Roboto; max-width: 640px; margin: auto; color: black; font-size: 1.05em; text-align: justify; font-weight: 380; line-height: 2em; padding: 1%; margin-bottom: -3%; margin-top: -1% ; } .maintext h1 { font-family: Lato; font-style: italic; font-size: 1em; } .maintext h5{ color: black; font-size: 0.75em; margin-top: -0.5%; margin-bottom: -5%; } .maintext h6 { color: gray; font-size0.5em; font-style: italic; padding-top: -50%; margin-top: ; } .pullquote { width: 50%; font-size: 1.4em; line-height: 1.6em; font-style: italic; text-align: left; } .name { font-size: 0.7em; text-align: center; line-height: 0.1em; padding-bottom: 30px; } .left { float: left; padding-right: 20px; margin-left: -40px; } .right { float: right; padding-left: 20px; margin-right: -40px; } .sectionhead { text-align: center; color: darkslategray; line-height: 1.2em; } .bigphoto { position: relative; } .img { object-position: relative; object-fit: scale-down; height: 20px; size: 100px; padding-left: 200px; margin-right: -500px; } .photocaption { position: absolute; bottom: 0px; width: 100%; padding-left: 1%; color: white; font-family: Josefin Sans; background-color: rgba(0,0,0,0.4); } .photogrid { display: grid; grid-template-columns: auto auto; grid-gap: 5px; } .gridpic { position: relative; } .gridpic .photocaption { display: none; } TML CSSResult Skip Results Iframe EDIT ON #post, #content { width: 500px; height: auto; margin: 0px auto; position: relative; font-family:sans-serif; } #post-img { width: inherit; } #social { width: 80px; height: 240px; z-index: 10; position: absolute; left: -82px; top: 50%; margin-top: -123px; } .social { width: 80px; height: 80px; position: relative; } .social img { width: 30px; height: 30px; position: absolute; top: 50%; left: 50%; margin-top: -15px; margin-left: -15px; } #pinterest img { width:60px; height:60px; margin-top: -30px; margin-left: -30px; } #facebook { background: #8B9DC3; border: 1px solid #8b9dc3; } #twitter { background: lightblue; border: 1px solid lightblue; } #pinterest { background: #d73532; border: 1px solid #d73532; } .social:hover { cursor: pointer; width: 86px; height:86px; margin-top:-6px; border: 1px solid grey; left: -3px; z-index:15; } .cycle-slideshow { max-width: 700px; margin: auto; } .arrows width: 48px; height: 48px; color: white; border-color: #000 position: absolute top: 50% margin-top: -31px .prev border-bottom: 6px solid border-left: 6px solid transform: rotate(45deg) left: 10px .next border-bottom: 6px solid border-left: 6px solid transform: rotate(-135deg) right: 10px .whitebox{ position: relative; width: 78%; height: 0%; border-top: 125px solid black; border-color: black; background-color: white; } .whitebox1{ width: 100%; padding-top: 150px; background-color: white; } .whitebox2{ width: 100%; padding-top: 25px; background-color: white; } .blackbox{ background-color: black; width: 100%; padding-top: 15px; margin-top: 5%; } .blackbox1{ background-color: black; width: 100%; padding-top: 1px; display: grid; grid-template-columns: 67% 33%; direction: rtl; } .titletext { color: white; padding: 5%; background-color: black; font-family: 'Bebas Neue', sans-serif; text-align: left; } .titletext h1 { color: white; padding-top: 0%; padding-bottom: 5%; padding-left: 0%; font-size: 6em; text-align: left; font-family: 'Bebas Neue', sans-serif; margin-bottom: -2px; } .titletext h2 { color: white; font-size: 2em; font-family: Roboto, thin; font-weight: 100; margin-right: 10px; margin-bottom: 20px; padding-bottom: 15%; } .blackbox2{ background-color: black; width: 100%; /*padding-top: 15px; padding-bottom: 15px;*/ /*margin-bottom: 20px;*/ margin-top: -3%; } .knightlab { max-width: 1000px; margin: auto; background-color: black; border: 5px solid black; } .soundcite-loaded{ display: inline; } .googlemap { overflow:hidden; padding-bottom:56.25%; position:relative; height:0; max-width: 700px; margin: auto; } .googlemap iframe { left:0; top:0; height:100%; width:100%; position:absolute; } .youtube { max-width: 700px; margin: auto; } .responsivecontainer { position: relative; /* content: width-device-width; */ padding-bottom: 56.25%; padding-top: 30px; height: 0; overflow: hidden; } .responsivecontainer1 { position: relative; /* content: width-device-width; */ padding-bottom: 40%; padding-top: 1px; height: 0; overflow: hidden; } .responsivecontainer iframe, .responsivecontainer object, .responsivecontainer embed { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } .clickhere { font-style: italic; font-size: 0.7em; text-align: right; padding-right: 1%; } .voxpop { max-width: 700px; margin: auto; } .voxgrid { display: grid; grid-template-columns: 25% 25% 25% 25%; grid-gap: 5px; } .person { border-radius: 5px; box-shadow: 2px 3px 3px lightslategrey; overflow: hidden; } .person audio { width: 100%; } .headshot { position: relative; text-align: center; } .infographic { max-width: 700px; margin: auto; } .datawrapper { left:0; top:0; height:100%; width:100%; margin: auto; max-width: 1000px; } .highlightme { background-color:white; border-left: 2px; border-right: -10px; } footer { background-color: black; font-size: 60%; color: white; padding: 0.5%; text-align: right; } /* Slideshow container */ .slideshow-container { max-width: 700px; position: relative; margin: auto; } /* Hide the images by default */ .mySlides { display: none; } /* Next & previous buttons */ .prev, .next { cursor: pointer; position: absolute; top: 50%; width: auto; margin-top: -0px; padding: 10px; color: white; font-weight: bold; font-size: 18px; transition: 0.6s ease; border-radius: 0 3px 3px 0; user-select: none; } /* Position the "next button" to the right */ .next { right: 0; border-radius: 3px 0 0 3px; } /* On hover, add a black background color with a little bit see-through */ .prev:hover, .next:hover { background-color: rgba(0,0,0,0.8); } /* Caption text */ .text { color: #f2f2f2; font-size: 15px; padding: 8px 12px; position: absolute; bottom: 8px; width: 100%; text-align: center; } /* Number text (1/3 etc) */ .numbertext { color: #f2f2f2; font-size: 12px; padding: 8px 12px; position: absolute; top: 0; } /* The dots/bullets/indicators */ .dot { cursor: pointer; height: 15px; width: 15px; margin: 0 2px; background-color: #bbb; border-radius: 50%; display: inline-block; transition: background-color 0.6s ease; } .active, .dot:hover { background-color: #717171; } /* Fading animation */ .fade { -webkit-animation-name: fade; -webkit-animation-duration: 1.5s; animation-name: fade; animation-duration: 1.5s; } @-webkit-keyframes fade { from {opacity: .4} to {opacity: 1} } @keyframes fade { from {opacity: .4} to {opacity: 1} } /*media query for responsive design */ @media only screen and (max-width: 800px) { .pullquote { display: none; } } @media only screen and (max-width: 640px) { .title1 { top: 1%; } .title1 h1 { font-size: 3em; } .title1 h2 { display: none; } .title1 h3 { font-size: 0.9em; } .blackbox1 { grid-template-columns: 100%; } .titletext { } }