/*Importing a few Google fonts to make stuff look nicer.*/ @import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Exo+2:wght@300;400;700&family=IBM+Plex+Mono:wght@300;400;700&family=VT323&display=swap'); /*These are the general colors and styles I want to use across my webpages for a consistent look*/ /*Needed for parallax to work correctly*/ body, html { height: 100%; margin: 0; } /*HTML tags*/ body{ background-color: #161A25; color: #8FC4E6; font-family: 'Exo 2 Medium'; } h1{ color: #FFBC42; font-family: VT323, monospace; font-size: 48px; text-shadow: #B17300 3px 3px 7px; } h2{ color: #FFBC42; font-family: 'Bebas Neue', cursive; font-size: 36px; text-shadow: #B17300 3px 3px 7px; text-align: center; } h3{ color: #FFBC42; font-family: 'Bebas Neue', cursive; font-size: 24px; text-shadow: #B17300 3px 3px 7px; } p{ font-weight: 400; font-size: 20px; } li{ font-weight: 400; font-size: 20px; } hr{ width: 45%; border-top: 5px double #88c0d0; } table{ border-spacing: 30px; width: 100%; text-align: center; } td{ font-size: 24px; } a{ font-family: VT323, monospace; font-size: 24px; } a:link { color: #8FC4E6; } a:hover { color: #B17300; } a:active { color: #FFBC42; } a:visited { color: #FFBC42; } /*Animations*/ @keyframes shadowPulse { from {text-shadow: #B17300 3px 3px 10px;} to {text-shadow: #664400 3px 3px 7px;} } .fadeIn { animation-name: fadeIn; animation-duration: 2s; } @keyframes fadeIn { from {opacity: 0%;} to {opacity: 100%;} } /*Classes*/ /*CSS code for parallax scrolling effect modified from W3Schools*/ .parallax { position: relative; background-attachment: fixed; background-position: center; background-repeat: no-repeat; background-size: cover; } .background1{ background-image: url("../img/mainBackground.png"); } .spacer-small{ min-height: 25px; } .spacer-large{ min-height: 100px; } .centerImage{ margin-left: auto; margin-right: auto; display: block; } .contentBackground{ background-color: RGBA(40, 48, 68, 0.7); box-shadow: RGBA(177, 115, 0, 0.8) 3px 3px 10px; } .roundCorners{ border-radius: 20px; } /*Responsive iframe stuff*/ .responsive-iframe-container { position: relative; overflow: hidden; width: 100%; padding-top: 56.25%; /* 16:9 Aspect Ratio (divide 9 by 16 = 0.5625) */ } .responsive-iframe { position: absolute; top: 0; left: 0; bottom: 0; right: 0; width: 100%; height: 100%; } /*TEMP: Used for TEMPORARY content, to be replaced with actual content later.*/ .temporary-box { background-color: steelblue; color: lightsteelblue; } /**Learned how to do this from this question on StackOverflow: https://stackoverflow.com/questions/15161674/responsive-design-rearrange-element-positions-with-css**/ @media only screen and (max-width: 768px){ .reverseOnMobile{ float: none; display: table; } .firstOnMobile{ float: none; display: table-header-group; } .lastOnMobile{ display: table-footer-group; } } /*IDs*/ #page-title{ text-align: center; letter-spacing: 2px; animation-name: shadowPulse; animation-duration: 1.5s; animation-iteration-count: infinite; animation-direction: alternate; } #logo { max-height: 250px; } #footer-spacer{ min-height: 90px; } @media only screen and (min-width: 768px) { #footer { position: fixed; height: 70px; width: 100%; bottom: 0; left: 0; background-color: #161A25; color: #8FC4E6; text-align: right; } #footer-logo { max-height: 50px; } #footer-text { position: relative; bottom: 20px; } } @media only screen and (max-width: 768px) { #footer { position: fixed; height: 70px; width: 100%; bottom: 0; left: 0; background-color: #161A25; color: #8FC4E6; text-align: right; } #footer-logo { position: relative; bottom: 35px; max-height: 50px; } #footer-text { position: relative; bottom: 55px; } }