/* 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; } .maintext img{ padding: 1%; width: 100%; align-content: center; } audio { display: block; width: 100%; } /*link style*/ a { text-decoration: none; color: darkolivegreen; } a:visited { color: olivedrab; } a:hover, a:active { color: darkolivegreen; } body, html { font-family: 'Source Serif Pro', serif; font-weight: 400; /* background-image: url(../img/header.jpg); background-attachment: fixed; background-size: cover; */} h1, h2, h3, .pullquote { font-family: 'Source Serif Pro', serif; } header { width: 100%; position: fixed; top: 0; z-index: -1; background-color: black; margin-bottom: 70%; /*max-height: 600px;*/ } header img { opacity: 1; } .title1 { position: absolute; width: 60%; top: 13%; color: white; text-align: center; padding: 3%; /* background-color: black;*/ opacity: 100%; margin-top: 5%; margin-left: 20%; border-radius: 20px; } .title1 h1 { font-size: 5.1em; margin-bottom: -4px; } .title1 h2 { font-size: 2em; } .title1 h3 { margin-top: 3%; font-size: 1.2em; font-weight: 300; } .title2 { width: 100%; color: olive; 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; } .backcontent { width: 100%; position: sticky; top: 0px; height: 100vh; background-color: black; z-index: -1; } .backcontent img{ height: 100%; width: 100%; object-fit: cover; } .scrollingtext{ padding: 20px; width: 40%; margin-left: 10%; margin-bottom: 5%; font-size: 1.2em; line-height: 1.4em; text-align: justify; color: white; background-color: rgba(0, 0, 0, .8); border-radius: 5px; } .scrollingtext h3 { margin-left: 30%; font-style: italic; } .snip { text-align: justify-all; color: white; background-color: rgba(0, 0, 0, .8); padding: 10px; display: none; width: 100%; } .snip.carlos h3{ margin-left: 35%; } .snip.bowl { background-color: rgba(0, 0, 0, 0.0); } .snip.line { left: 22%; background-color: rgba(0, 0, 0, 0); height: 500px; } .snip.mes { background-color: white; } .close { position: absolute; cursor: pointer; top: 2px; right: 15px; color: black; font-style: normal; } .definition { color: white; background-color: darkolivegreen; padding: 3px; border-radius: 2px; cursor: pointer; } .content { width: 100%; background-color: pink; overflow-x: hidden; border: 3px solid deeppink; display: none; } .pullquote { width: 50%; font-size: 1.4em; line-height: 1.6em; font-style: italic; text-align: left; margin-left: 35%; color: white; } .maintext iframe { padding: 2%; align-content: center; width: 100%; height: 400px; margin: auto; } .snip { left: 20%; width: 42%; position: absolute; margin-left: 30%; padding: 5px; } .scrollcontainer iframe,{ width: 10%; position: absolute; margin-left: 30%; left: 20%; } .snip.decline{ left: 22%; background-color: rgba(0, 0, 0, 0); } .snip{ font-style: italic; } .photo { max-width: 1000px; opacity: 100%; margin: auto; margin-bottom: 5%; /* border: white 5px solid;*/ /* border-radius: 10px;*/ } .photo img{ /* border-radius: 10px;*/ } .infographic{ padding: 3%; } .caption { position: fixed; bottom: 10px; right: 10px; padding: 5px; color: white; } .photo1 { max-width: 1000px; /* background-color: black;*/ padding: 2%; opacity: 100%; margin: auto; margin-bottom: 5%; font-style: italic; } .name { font-size: 0.7em; text-align: center; line-height: 0.1em; padding-bottom: 30px; } .left { float: left; padding-right: 20px; margin-left: -80px; } .right { float: right; padding-left: 20px; margin-right: -80px; } .sidepic { width: 85%; } .sidecap { margin-top: 0px; font-size: 0.8em; text-align: center; font-style: italic; } .sectionhead { text-align: center; color: white; margin-bottom: 50px; /* outline: double white 4px;*/ padding: 15px; } .photocaption { position: relative; text-align: center; bottom: 0px; width: 100%; padding-left: 0%; color: rgba(0, 0, 0, .7); background-color: none; font-style: italic; } .photogrid { display: grid; grid-template-columns: 1fr 1fr 1fr; grid-gap: 5px; width: 75%; margin-left: 12.5%; } .gridpic { position: relative; } .gridpic .photocaption { display: none; } .knightlab { max-width: 700px; margin: auto; } .responsivecontainer { position: relative; padding-bottom: 56.25%; padding-top: 30px; height: 0; overflow: hidden; } .responsivecontainer iframe, .responsivecontainer object, .responsivecontainer embed { position: absolute; top: 0; left: 0; width: 100%; height: 100%; margin: auto; } .clickhere { font-style: italic; font-size: 0.7em; text-align: right; padding-right: 1%; } .infographic { max-width: 1000px; margin: auto; padding: 2%; opacity: 100%; margin-bottom: 15%; } /* Slideshow container */ .slideshow-container { max-width: 1000px; position: relative; margin: auto; } /* Hide the images by default */ .mySlides { display: none; } .mySlides img { width: 100%; } /* Next & previous buttons */ .prev, .next { cursor: pointer; position: absolute; top: 50%; width: auto; margin-top: -22px; padding: 16px; color: white; font-weight: bold; font-size: 18px; transition: 0.6s ease; border-radius: 0 3px 3px 0; } /* 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 */ .slidetext { color: #f2f2f2; font-size: 15px; padding: 12px; position: absolute; bottom: 0px; width: 100%; text-align: center; background-color: rgba(0, 0, 0, 0.7); } /* Number text (1/3 etc) */ .numbertext { color: #f2f2f2; font-size: 12px; padding: 8px 12px; position: absolute; top: 0; } /* The dots/bullets/indicators */ .dots { margin-top: 10px; width: 100%; display: flex; justify-content: center; } .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; text-align: center; } .active, .dot:hover { background-color: #717171; } .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: left; margin-top: 70%; } /*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) { header { height: 100%; } .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) { header { height: 100%; } .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) { header { height: 100%; display: flex; } .title1 { top: 1%; } .title1 h1 { font-size: 3em; } .title1 h2 { display: none; } .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: 1em; line-height: 1.6em; text-align: left; margin: 0px 15px; } .modal { width: 97%; margin: 10% auto; } .definition { color: white; background-color: black; padding: 0px; border-radius: 0px; cursor: auto; } .snip { visibility: hidden; } .scrollingtext{ width: 90%; margin-left: 5%; } }