Hand-Pose-Detection / style.css
DHEIVER's picture
Update style.css
cb7541e verified
:root {
--primary-color: #596e73;
--secondary-color: #3498db;
--text-color: white;
--spinner-border: #bebebe;
--font-family: 'Titillium Web', sans-serif;
}
@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
.abs {
position: absolute;
}
a {
color: var(--text-color);
text-decoration: none;
transition: color 0.3s ease;
}
a:hover {
color: var(--secondary-color);
}
body {
background-color: var(--primary-color);
color: var(--text-color);
font-family: var(--font-family);
margin: 0;
overflow: hidden;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
}
.container {
position: absolute;
width: 100%;
max-height: 100%;
}
.input_video {
display: none;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
}
.input_video.selfie {
transform: scale(-1, 1);
}
.canvas-container {
display: flex;
justify-content: center;
align-items: center;
height: 100%;
width: 100%;
}
.output_canvas {
max-width: 100%;
display: block;
position: relative;
}
.logo {
bottom: 10px;
right: 20px;
position: absolute;
}
.logo .title {
font-size: 2rem;
color: var(--text-color);
}
.logo .subtitle {
font-size: 0.8rem;
color: var(--text-color);
position: relative;
left: -30px;
top: 20px;
}
.control-panel {
background-color: rgba(0, 0, 0, 0.7);
padding: 10px;
border-radius: 8px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
position: absolute;
left: 10px;
top: 10px;
}
.loading {
display: flex;
align-items: center;
justify-content: center;
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
opacity: 1;
transition: opacity 0.5s ease-in-out;
}
.loading .message {
font-size: 2rem;
font-weight: bold;
margin-top: 20px;
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
.loading .spinner {
width: 120px;
height: 120px;
animation: spin 1s ease-in-out infinite;
border: 32px solid var(--spinner-border);
border-top: 32px solid var(--secondary-color);
border-radius: 50%;
}
.loaded .loading {
opacity: 0;
}
.shoutout {
position: absolute;
left: 0;
right: 0;
bottom: 40px;
text-align: center;
font-size: 2rem;
color: var(--secondary-color);
}
@media (max-width: 768px) {
.output_canvas {
max-width: 100%;
height: auto;
}
.shoutout {
font-size: 1.5rem;
bottom: 20px;
}
}