* { -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; } html, body { width: 100%; height: 100%; margin: 0; padding: 0; background: #fff; box-sizing: border-box; text-rendering: optimizeLegibility; font-family: 'Roboto', sans-serif; font-weight: 300; font-size: 13px; color: black; transition: opacity 200ms; } .loading body { opacity: 0; } .loading * { transition: all 0s ease 0s !important; } .desktop { overflow: hidden; } /* header */ .header { position: fixed; top: 0; right: 0; width: 300px; padding: 20px; background: white; z-index: 2; } /* body */ .cell { display: flex; height: 100vh; width: 100vw; } .cell:nth-child(6n+1) { background-color: hsl(0, 10%, 98%); } .cell:nth-child(6n+2) { background-color: hsl(50, 10%, 99%); } .cell:nth-child(6n+3) { background-color: hsl(120, 10%, 98%); } .cell:nth-child(6n+4) { background-color: hsl(190, 10%, 99%); } .cell:nth-child(6n+5) { background-color: hsl(260, 10%, 98%); } .cell:nth-child(6n+6) { background-color: hsl(310, 10%, 99%); } .scroller { transition: transform 400ms; } .painting { display: flex; align-items: center; flex: 1; padding: 20px; } .painting .image { flex: 1; height: 90%; background-size: contain; background-position: center center; background-repeat: no-repeat; } .about { flex: 0 0 300px; padding: 20px; display: flex; align-items: center; background: white; } /* modal */ body.inModal { overflow: hidden; } .modal { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: hsl(0, 10%, 98%); transform: translate3d(100%,0,0); transition: transform 400ms; overflow: hidden; } .inModal .modal { transform: translate3d(0,0,0); overflow-y: scroll; } /* details page */ .details { padding: 20px; } h1, h2 { font-size: 18px; font-weight: 300; } h2 { margin-top: 0; } .details .stats { margin-bottom: 20px; } .details img { max-width: 90%; margin-bottom: 20px; } .parameters { max-width: 90%; display: flex; flex-wrap: wrap; } .parameters div { font-size: 10px; max-width: 33%; padding-right: 20px; } a { color: #0088ff; } @media (max-width: 700px) { .header { width: 100%; text-align: center; } .modal > div { padding-top: 40px; padding-bottom: 20px; } .cell { flex-direction: column; } .about { flex: 0 0 120px; } }