x/* 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=Lato&family=Montserrat&family=Open+Sans&family=Roboto&display=swap'); */ * { box-sizing: border-box; } img, video { width: 100%; display: block; } audio { display: block; } /*link style*/ a { text-decoration: none; color: darkred; } a:visited { color: gray; } a:hover, a:active { color: darkgray; } body, html { font-family: georgia } h1, h2, h3, .pullquote { font-family: 'oswald'; } h1, h2, h3{ display: none; } /*HEADER SECTION */ header { width: 100%; height: 300%; position: sticky; top: 0; z-index: -1; background-color: black; /*max-height: 600px;*/ } header img { /* this opacity makes the header image dark so you can read the headline text more easily. remove the opacity if you do not have your headline on top of the image.*/ opacity: 0.6; } .photocaptionlead { position: absolute; top: 0px; right: 0%; width: 25%; padding-right: 1%; color: white; background-color: rgba(0,0,0,0.4); line-height: 1.5; } .hellobye{ position: absolute; top: 0; width: 100%; display: none; } .container{ background-color: black; /*position: relative;*/ /*height: 100vh;*/ width: 100%; box-sizing: border-box; height: 0px; padding-bottom: 53%; /*display: none;*/ position: relative; } .firstimage{ position: absolute; top: 0px; left: 0px; width: 50%; /*height: 30%;*/ } .secondimage{ position: absolute; width: 40%; /*height: 45%;*/ bottom: 0px; right: 0px; } .title1 { position: absolute; width: 100%; height: 100%; top: 0; /*width: 75%; top: 30%; color: white; text-align: center; padding: 3%; left: 150px; right: 350px;*/ } .headline { position: absolute; top: 9%; right: 1%; color: white; font-size: 70%; width: 40% } .subheader { position: absolute; top: 75%; left: 3%; color: white; font-size: 100%; width: 40%; } .title1 h1 { font-size: 3.1em; top: 0; right: 0; } .title1 h2 { font-size: 1.4em; } .title1 h3 { margin-top: 10%; font-size: 1em; font-style: italic; } .title2 { width: 100%; color: darkslategray; text-align: center; padding: 3% 10%; } .title2 h1 { font-size: 4.7em; margin-bottom: -4px; } .title2 h2 { font-size: 2em; } .title2 h3 { margin-top: 10%; margin-bottom: 0; font-size: 1.1em; font-style: italic; } .content { width: 100%; background-color: white; overflow-x: hidden; } .maintext { max-width: 850px; margin: auto; color: black; font-size: 1.1em; line-height: 1.7em; text-align: justify; /* font-size: 1.4em; font-weight: 300; line-height: 1.8em*/; padding: 1%; } .name { font-size: 0.7em; text-align: center; line-height: 0.1em; padding-bottom: 30px; } /*SOUND IMAGES */ .childone{ margin-bottom: 5%; margin-right: 28%; position: relative; overflow: hidden; } .childtwo{ margin-bottom: 5%; margin-left: 28%; position: relative; overflow: hidden; } .childthree{ margin-bottom: 5%; margin-right: 28%; position: relative; overflow: hidden; } .soundphototitle{ text-align: center; font-size: 1.5em; color: black; } .soundphototitle h3{ text-align: center; font-size: 1.5em; color: black; } .soundcontainer { position: relative; } .sound { width: 5%; height: 5%; } .on1 { position: absolute; top: 0; left: 94%; } .on2 { position: absolute; top: 0; right: 94%; } .on3 { position: absolute; top: 0; left: 94%; } /*INDIA DAUGHTER VIDEO */ .sidepic { width: 50%; } .sidecap{ font-style: italic; font-size: 1em; } .left { /* float: left; */ margin-right: 15%; margin-left: 9%; } .indiavideo{ width: 100% position: relative; text-align: center; /* right: 200px; left: 200px; top: 200px;*/ display: none; } .left { float: left; padding-right: 20px; margin-left: -40px; } .right { float: right; padding-left: 20px; margin-right: -40px; } /*THREE BIG PHOTOS */.photogrid { width: 100%; margin: auto; padding: 1%; overflow: hidden; margin-bottom: 1%; justify-content: center; /* border: 2px solid red; */} .gridpic { width: 32.33%; /*border: 2px solid red;*/ float: left; margin: 5px; position: relative; overflow: hidden; } .thirdgridpic { width: 32.33%; /*border: 2px solid red;*/ float: left; margin: 5px; position: relative; overflow: hidden; } .photocaption { position: absolute; bottom: 0px; width: 100%; padding-left: 1%; color: white; background-color: rgba(0,0,0,0.4); display: none; } .gridpic .photocaption { display: none; } .thirdgridpic .photocaption { display: none; } .liga{ /* width: 32.33; */ float: left; margin: 5px; position: relative; left: 0; width: 470px; display: none; } .infographicone{ left: 400px; } .knightlab { max-width: 700px; margin: auto; } .infographic { max-width: 700px; margin: auto; } /*BIG PHOTO AT THE END */.bigphoto { position: relative; } .bigphoto img { object-fit: cover; height: 100%; } .caption p{ margin: 2%; } .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} } /*footer */ footer { background-color: black; color: white; padding: 1%; text-align: right; } /*popup modal*/ .overlay { position: fixed; top: 0px; left: 0px; height: 100%; width: 100%; background-color: rgba(0, 0, 0, 0.9); overflow-y: scroll; display: none; z-index: 10; } .modal { width: 70%; margin: 2% auto; } .closer { position: absolute; right: 1vh; top: 1vh; width: 10%; cursor: pointer; } /*media query for responsive design */ @media only screen and (max-width: 900px) { .title1 { top: 5%; } .title1 h1 { font-size: 3.5em; } .title1 h2 { font-size: 1.5em } .title1 h3 { font-size: 1.1em; } } @media only screen and (max-width: 800px) { .pullquote { width: 100%; margin: 0px; padding: 0px; text-align: center; display: none; /* remove this line if you want the pullquotes to display on mobile*/ } .left, .right { margin: 0px; padding: 10px; } .sidepic { width: 100%; margin: 0px; padding: 0px; } .popup { margin-bottom: 15px; } .popup .sidecap { display: none; } } @media only screen and (max-width: 640px) { .title1 { top: 1%; } .title1 h1 { font-size: 1em; } .title1 h2 { display: none; font-size: 1em; } .headline{ top: 0%; font-size: 1em; } .subheader{ top: 13%; } .title1 h3 { font-size: 0.9em; } .title2 h1 { font-size: 2em; } .title2 h2 { font-size: 1.3em; } .title2 h3 { font-size: 1em; } .maintext { font-size: 1.4em; line-height: 1.6em; text-align: left; margin: 0px 15px; } .voxgrid { grid-template-columns: 1fr 1fr; } .person audio { background-color: black; } .modal { width: 97%; margin: 10% auto; } }