html,body {
padding: 0;
margin: 0;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
font-family: sans-serif;
font-weight: 300;
text-align: center;
background: #fff;
}
body.about,
body.entry,
body.submit {
overflow: hidden;
}
a {
color: #2947f3
}
#header {
width: 100%;
margin: 0;
background: #fff;
padding: 10px;
box-shadow: 0 5px 10px #ddd;
}
#testimonials {
margin-top: 15px;
box-shadow: 0 -5px 10px 0px #ddd;
}
#footer {
width: 100%;
margin: 0;
background: #fff;
padding: 10px;
margin-top: 15px;
box-shadow: 0 -5px 10px #ddd;
}
h1, h2 {
font-weight: 300;
}
#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;
}
.cell {
display: inline-block;
width: 24vw;
height: 23vw;
color: white;
cursor: pointer;
background-size: cover;
background-position: center center;
position: relative;
}
.cell .title {
position: absolute;
top: 50%; left: 50%;
transform: translate3d(-50%, -50%, 0);
text-transform: uppercase;
font-weight: bold;
text-align: center;
font-size: 20px;
color: black;
background: white;
padding: 5px;
}
.desktop .cell {
opacity: 0.9;
transition: opacity 0.2s;
}
.desktop .cell:hover {
opacity: 1;
}
.media {
width: 100%;
max-height: 50vh;
}
.content {
text-align: left;
padding: 20px 50px;
line-height: 1.5;
}
.testimonials {
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;
}
.cell:nth-child(2n+1) { background-color: #4f658e; }
.cell:nth-child(2n+2) { background-color: #7a7067; }
.close {
position: absolute;
top: 10px;
right: 10px;
padding: 5px;
font-size: 24px;
color: white;
background: black;
border: 2px solid;
cursor: pointer;
}
@media (max-width: 700px) {
.cell {
width: 100vw;
height: 20vh;
}
}