2025-03-15 21:57:16 -04:00

188 lines
3.6 KiB
CSS

body {
margin: 0;
overflow: hidden;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-color: #000000;
background-image: url('assets/image/background.png');
background-repeat: repeat;
background-size: 128px 128px;
}
#canvasContainer {
width: 100vmin;
height: 100vmin;
position: relative;
overflow: hidden;
float: left;
object-fit: contain;
}
canvas {
width: 100%;
height: 100%;
}
#settingsHolder {
visibility: visible;
position: fixed;
top: 50%;
left: 0;
transform: translateY(-50%);
width: auto;
height: auto;
z-index: 100;
}
#settingsHolder .settings {
display: flex;
flex-direction: column;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
color: white;
visibility: visible;
opacity: 0.8;
padding: 10px;
background-color: rgba(25, 25, 25, 0.7);
border-radius: 5px;
transition: opacity 0.3s ease;
}
#settingsHolder:hover .settings {
opacity: 1;
}
.settings {
display: flex;
flex-direction: column;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
color: white;
visibility: visible;
opacity: 0;
padding: 10px;
background-color: rgba(25, 25, 25, 0.7);
transition: opacity 0.3s ease;
}
.dangerous-options {
display: none;
border-top: 1px solid rgba(255, 0, 0, 0.5);
margin-top: 10px;
padding-top: 10px;
}
.dangerous-options.revealed {
display: block;
}
#showDangerousBtn {
background-color: #6b0000;
color: white;
border: none;
padding: 5px 10px;
margin-top: 10px;
border-radius: 3px;
cursor: pointer;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
transition: background-color 0.3s;
}
#showDangerousBtn:hover {
background-color: #8a0000;
}
@media (max-width: 600px),
(max-height: 600px) {
#settingsHolder {
display: none;
}
}
@media (max-width: 400px),
(max-height: 400px) {
#canvasContainer::before {
content: 'settings';
position: fixed;
top: 10px;
left: 10px;
background-color: rgba(25, 25, 25, 0.7);
color: white;
width: 30px;
height: 30px;
border-radius: 15px;
display: flex;
align-items: center;
justify-content: center;
font-size: 16px;
cursor: pointer;
z-index: 101;
}
}
#playerSelect {
background-color: #333;
color: #fff;
border: 1px solid #555;
padding: 5px;
border-radius: 4px;
margin-left: 5px;
cursor: pointer;
min-width: 150px;
}
#playerSelect:hover {
background-color: #444;
}
#playerSelect option {
background-color: #333;
color: #fff;
padding: 5px;
}
#playerSelect option:hover {
background-color: #444;
}
.player-focus {
margin-top: 10px;
}
#hideMenuBtn {
background-color: #333;
color: white;
border: none;
padding: 5px 10px;
margin-top: 10px;
border-radius: 3px;
cursor: pointer;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
transition: background-color 0.3s;
width: 100%;
}
#hideMenuBtn:hover {
background-color: #444;
}
#showMenuBtn {
position: fixed;
top: 10px;
left: 10px;
background-color: rgba(25, 25, 25, 0.7);
color: white;
border: none;
padding: 5px 10px;
border-radius: 15px;
font-size: 14px;
cursor: pointer;
z-index: 101;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
transition: opacity 0.3s;
opacity: 0.6;
}
#showMenuBtn:hover {
opacity: 1;
}