* { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; border-radius: 5px; } html,body { padding: 0; margin: 0; font-family: sans-serif; font-weight: 300; text-align: center; background-color: white; color: black; } body.about, body.entry, body.submit { overflow: hidden; } a { color: #2947f3; } #header { width: 100%; display: block; } #footer { width: 100%; margin: 0; background-image: url(footer.jpg); background-size: cover; background-position: center; } #coda { padding: 10px 0; padding-top: 15px; } #coda a { display: inline-block; font-size: 16px; padding: 5px; border-radius: 4px; background: white; margin: 10px; } #logos { background: rgba(255,255,255,0.2); padding: 20px 0; } #logos img { max-height: 10vh; margin: 5px; } h1, h2, h3 { font-weight: 300; display: block; } h1 span, h2 span, h3 span { background: white; padding: 5px; } h2 { box-shadow: 0 2px 4px rgba(0,0,0,0.2); } .desktop h2:hover { background: #ff0; } /* MODALS */ #about, #entry, #submit { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; background: rgba(105,135,195,0.8); transition: opacity 0.2s; cursor: pointer; } .inner { cursor: normal; position: absolute; top: 50%; left: 50%; min-width: 400px; max-width: 80vw; height: 80vh; padding: 10px; transform: translate3d(-50%, -50%, 0); background: #fff; } .about #about, .entry #entry, .submit #submit { opacity: 1; pointer-events: auto; } /* GRID OF POSTS */ #posts { position: relative; background-image: url(postbg.jpg); background-size: cover; background-position: center center; } .cell { display: block; position: relative; padding: 20px; text-align: center; } .cell .title { text-transform: uppercase; font-weight: bold; text-align: center; margin: 0 5px 10px 5px; } .cell .title span { font-size: 20px; color: white; padding: 5px; text-shadow: 0 1px 2px #000; } /* SINGLE POST VIEW */ .media { position: relative; width: 100%; } .media iframe { margin: 10px auto; max-height: 30vh; max-width: 82vw; } .media img { display: block; margin: 10px auto; max-width: 82vw; } .content { padding: 8px; line-height: 1.4; font-size: 15px; background: white; color: black; max-width: 82vw; margin: 0 auto; } #left { position: absolute; top: 0; right: 94vw; max-width: 5vw; height: 30vh; } #right { position: absolute; top: 0; left: 94vw; max-width: 5vw; height: 30vh; } /* TESTIMONIALS */ #testimonials { margin-top: 15px; box-shadow: 0 0 20px 0px rgba(0,0,0,0.4); width: 100%; height: 300px; } .testimonial { position: relative; height: 300px; width: 100%; } .testimonial .blurb { position: absolute; top: 50%; left: 50%; transform: translate3d(-50%, -50%, 0); width: 400px; max-width: 90vw; font-style: italic; background: white; padding: 10px 15px; box-shadow: 0 2px 4px rgba(0,0,0,0.2); line-height: 1.5; } /* MOBILE STYLES */ @media (max-width: 700px) { .cell { display: block; width: 100vw; } #posts { margin: 0; padding: 0; } #testimonials { margin: 0; } #left { left: -3vw; right: auto; } #right { left: auto; right: -3vw; } }