|
html, |
|
body { |
|
font-family: "Roboto", sans-serif; |
|
background-color: #1a1b1e; |
|
color: white; |
|
margin: 0; |
|
padding: 0; |
|
height: 100%; |
|
width: 100%; |
|
overflow: hidden; |
|
} |
|
|
|
.banner { |
|
width: 100%; |
|
padding: 0 20px; |
|
margin: 0; |
|
border-bottom: 1px solid #333; |
|
box-sizing: border-box; |
|
cursor: pointer; |
|
} |
|
|
|
.banner h1 { |
|
padding: 0; |
|
margin: 20px 0 0 0; |
|
cursor: pointer; |
|
} |
|
|
|
.banner p { |
|
padding: 0; |
|
margin: 4px 0 20px 0; |
|
color: #aaa; |
|
cursor: pointer; |
|
} |
|
|
|
.muted { |
|
color: #aaa; |
|
} |
|
|
|
.loading-container { |
|
display: flex; |
|
flex-direction: column; |
|
justify-content: center; |
|
align-items: center; |
|
width: 100%; |
|
height: 196px; |
|
} |
|
|
|
.loading-icon { |
|
width: 32px; |
|
height: 32px; |
|
animation: spin 0.5s linear infinite; |
|
color: #aaa; |
|
} |
|
|
|
.loading-text { |
|
color: #aaa; |
|
margin-top: 10px; |
|
} |
|
|
|
@keyframes spin { |
|
from { |
|
transform: rotate(0deg); |
|
} |
|
to { |
|
transform: rotate(360deg); |
|
} |
|
} |
|
|
|
.config-table { |
|
margin: 1rem auto; |
|
} |
|
|
|
@media (min-width: 768px) { |
|
.config-table tr { |
|
display: inline-block; |
|
margin-right: 1rem; |
|
} |
|
} |
|
|
|
.container { |
|
padding: 10px 15px 80px 15px; |
|
margin-left: auto; |
|
margin-right: auto; |
|
height: 100vh; |
|
overflow-y: auto; |
|
position: relative; |
|
box-sizing: border-box; |
|
|
|
@media (min-width: 576px) { |
|
max-width: 540px; |
|
} |
|
|
|
@media (min-width: 768px) { |
|
max-width: 720px; |
|
} |
|
|
|
@media (min-width: 992px) { |
|
max-width: 960px; |
|
} |
|
|
|
@media (min-width: 1200px) { |
|
max-width: 1140px; |
|
} |
|
} |
|
|
|
.canvas-container { |
|
position: relative; |
|
box-sizing: border-box; |
|
display: flex; |
|
flex-direction: column; |
|
justify-content: center; |
|
align-items: center; |
|
width: 100%; |
|
max-height: 50%; |
|
overflow: hidden; |
|
} |
|
|
|
.loading-overlay { |
|
position: absolute; |
|
top: 0; |
|
left: 0; |
|
width: 100%; |
|
height: 100%; |
|
background-color: #1a1b1e; |
|
display: flex; |
|
flex-direction: column; |
|
justify-content: center; |
|
align-items: center; |
|
z-index: 100; |
|
gap: 10px; |
|
} |
|
|
|
.loading-overlay::before { |
|
content: "Loading..."; |
|
color: white; |
|
font-size: 16px; |
|
} |
|
|
|
.loading-bar { |
|
position: relative; |
|
width: 256px; |
|
max-width: 62%; |
|
height: 20px; |
|
border: 2px solid #aaa; |
|
background-color: #1a1b1e; |
|
} |
|
|
|
.loading-bar-fill { |
|
position: absolute; |
|
top: 0; |
|
left: 0; |
|
width: 0%; |
|
height: 100%; |
|
background-color: #555; |
|
transition: width 0.2s ease; |
|
} |
|
|
|
.header { |
|
display: flex; |
|
align-items: center; |
|
justify-content: center; |
|
position: relative; |
|
} |
|
|
|
.back { |
|
position: absolute; |
|
left: 0; |
|
cursor: pointer; |
|
transition: transform 0.1s; |
|
padding: 16px; |
|
} |
|
|
|
.back:hover { |
|
transform: scale(1.2); |
|
} |
|
|
|
.spacer { |
|
flex: 1; |
|
} |
|
|
|
.desktop-spacer { |
|
@media (min-width: 768px) { |
|
flex: 1; |
|
} |
|
} |
|
|
|
.title-button { |
|
background: none; |
|
border: none; |
|
font: inherit; |
|
color: inherit; |
|
cursor: pointer; |
|
} |
|
|
|
.viewer { |
|
margin: 0; |
|
padding: 0; |
|
overflow: hidden; |
|
} |
|
|
|
.grid { |
|
display: flex; |
|
flex-wrap: wrap; |
|
gap: 10px; |
|
width: 100%; |
|
} |
|
|
|
.grid-item { |
|
background: #333; |
|
position: relative; |
|
border: 1px solid #000; |
|
box-sizing: border-box; |
|
overflow: hidden; |
|
width: 100%; |
|
|
|
@media (min-width: 576px) { |
|
width: calc(33.333% - 10px); |
|
} |
|
|
|
@media (min-width: 768px) { |
|
width: calc(25% - 10px); |
|
} |
|
|
|
@media (min-width: 992px) { |
|
width: calc(20% - 10px); |
|
} |
|
|
|
@media (min-width: 1200px) { |
|
width: calc(16.666% - 10px); |
|
} |
|
} |
|
|
|
.grid-item::before { |
|
content: ""; |
|
display: block; |
|
padding-top: 100%; |
|
} |
|
|
|
@media (max-width: 575px) { |
|
.grid-item::before { |
|
padding-top: 56.25%; |
|
} |
|
} |
|
|
|
.grid-item:hover { |
|
cursor: pointer; |
|
} |
|
|
|
.grid-item .title { |
|
position: absolute; |
|
bottom: 0; |
|
left: 0; |
|
width: 100%; |
|
background-color: rgba(0, 0, 0, 0.2); |
|
color: #fff; |
|
text-align: center; |
|
padding: 10px; |
|
box-sizing: border-box; |
|
font-size: 14px; |
|
height: 40px; |
|
overflow: hidden; |
|
transition: height 0.2s ease; |
|
} |
|
|
|
.grid-item:hover .title { |
|
height: 48px; |
|
} |
|
|
|
.grid-item .ranking { |
|
position: absolute; |
|
top: 0; |
|
left: 0; |
|
background-color: #1a1b1e; |
|
color: #aaa; |
|
padding: 10px; |
|
box-sizing: border-box; |
|
font-size: 16px; |
|
overflow: hidden; |
|
transition: background-color 0.2s ease; |
|
} |
|
|
|
.grid-item:hover .ranking { |
|
background-color: #26272c; |
|
} |
|
|
|
.score-container { |
|
position: absolute; |
|
top: 0; |
|
right: 0; |
|
display: flex; |
|
flex-direction: column; |
|
align-items: flex-start; |
|
padding: 10px; |
|
box-sizing: border-box; |
|
color: #aaa; |
|
font-size: 12px; |
|
} |
|
|
|
.score, |
|
.votes { |
|
display: flex; |
|
gap: 10px; |
|
width: 100%; |
|
} |
|
|
|
.label { |
|
font-weight: bold; |
|
justify-content: flex-end; |
|
width: 50px; |
|
} |
|
|
|
.thumbnail { |
|
position: absolute; |
|
top: 50%; |
|
left: 50%; |
|
width: auto; |
|
height: 100%; |
|
overflow: hidden; |
|
scale: 1; |
|
transform: translate(-50%, -50%); |
|
transition: transform 0.2s ease; |
|
} |
|
|
|
.grid-item:hover .thumbnail { |
|
transform: translate(-50%, -50%) scale(1.1); |
|
} |
|
|
|
.center-title { |
|
text-align: center; |
|
display: block; |
|
margin: 0 auto; |
|
padding: 10px; |
|
} |
|
|
|
.voting-container { |
|
display: flex; |
|
justify-content: space-around; |
|
} |
|
|
|
.voting-canvas-wrapper { |
|
position: relative; |
|
display: flex; |
|
flex-direction: column; |
|
align-items: center; |
|
width: 100%; |
|
max-width: 50%; |
|
box-sizing: border-box; |
|
padding: 10px; |
|
} |
|
|
|
.voting-canvas { |
|
width: 100%; |
|
height: auto; |
|
aspect-ratio: 1 / 1; |
|
} |
|
|
|
.viewer-canvas { |
|
aspect-ratio: 16 / 9; |
|
} |
|
|
|
.vote-button { |
|
background-color: #333; |
|
color: #fff; |
|
border: 1px solid #444; |
|
outline: none; |
|
padding: 10px 10px 10px 10px; |
|
font-family: "Roboto", sans-serif; |
|
font-size: 14px; |
|
font-weight: 600; |
|
width: 100%; |
|
height: 56px; |
|
transition: background-color 0.2s ease; |
|
} |
|
|
|
.vote-button:hover { |
|
background-color: #444; |
|
cursor: pointer; |
|
} |
|
|
|
.tabs { |
|
display: flex; |
|
justify-content: left; |
|
margin-top: 10px; |
|
margin-bottom: 10px; |
|
gap: 10px; |
|
width: 100%; |
|
} |
|
|
|
.tabs button { |
|
background-color: #1a1b1e; |
|
color: #ddd; |
|
border: none; |
|
outline: none; |
|
padding: 10px 10px 10px 10px; |
|
font-family: "Roboto", sans-serif; |
|
font-size: 14px; |
|
font-weight: 600; |
|
transition: background-color 0.2s ease; |
|
} |
|
|
|
.tabs button:hover { |
|
cursor: pointer; |
|
background-color: #555; |
|
} |
|
|
|
.tabs button.active { |
|
background-color: #444; |
|
} |
|
|