204 lines
3.6 KiB
CSS
204 lines
3.6 KiB
CSS
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
body {
|
|
background: #050505;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
min-height: 100vh;
|
|
font-family: "Courier New", monospace;
|
|
overflow: hidden;
|
|
}
|
|
#game-container {
|
|
width: 500px;
|
|
height: 950px;
|
|
position: relative;
|
|
background: #0a0a0a;
|
|
border: 2px solid #00ff41;
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
box-shadow:
|
|
0 0 30px rgba(0, 255, 65, 0.2),
|
|
inset 0 0 60px rgba(0, 255, 65, 0.05);
|
|
}
|
|
#game-canvas {
|
|
width: 100%;
|
|
height: 100%;
|
|
display: block;
|
|
}
|
|
#game-container::after {
|
|
content: "";
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: repeating-linear-gradient(
|
|
0deg,
|
|
transparent,
|
|
transparent 2px,
|
|
rgba(0, 255, 65, 0.03) 2px,
|
|
rgba(0, 255, 65, 0.03) 4px
|
|
);
|
|
pointer-events: none;
|
|
z-index: 10;
|
|
}
|
|
#ui-overlay {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
padding: 12px 16px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
z-index: 5;
|
|
background: rgba(0, 0, 0, 0.7);
|
|
border-bottom: 1px solid #00ff41;
|
|
}
|
|
.ui-text {
|
|
color: #00ff41;
|
|
font-size: 14px;
|
|
text-shadow: 0 0 8px #00ff41;
|
|
letter-spacing: 1px;
|
|
}
|
|
#input-display {
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
padding: 14px 16px;
|
|
background: rgba(0, 0, 0, 0.85);
|
|
border-top: 1px solid #00ff41;
|
|
z-index: 5;
|
|
text-align: center;
|
|
}
|
|
#typed-text {
|
|
color: #00ff41;
|
|
font-size: 20px;
|
|
min-height: 28px;
|
|
letter-spacing: 2px;
|
|
text-shadow: 0 0 10px #00ff41;
|
|
}
|
|
#start-screen,
|
|
#gameover-screen {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: center;
|
|
background: rgba(5, 5, 5, 0.95);
|
|
z-index: 20;
|
|
text-align: center;
|
|
}
|
|
.screen-title {
|
|
color: #00ff41;
|
|
font-size: 32px;
|
|
margin-bottom: 12px;
|
|
text-shadow: 0 0 20px #00ff41;
|
|
letter-spacing: 4px;
|
|
}
|
|
.screen-subtitle {
|
|
color: #00cc33;
|
|
font-size: 14px;
|
|
margin-bottom: 30px;
|
|
opacity: 0.8;
|
|
}
|
|
.hidden {
|
|
display: none !important;
|
|
}
|
|
.glitch {
|
|
animation: glitch 0.3s ease-in-out;
|
|
}
|
|
@keyframes glitch {
|
|
0%,
|
|
100% {
|
|
transform: translate(0);
|
|
}
|
|
20% {
|
|
transform: translate(-3px, 2px);
|
|
}
|
|
40% {
|
|
transform: translate(3px, -2px);
|
|
}
|
|
60% {
|
|
transform: translate(-2px, -1px);
|
|
}
|
|
80% {
|
|
transform: translate(2px, 1px);
|
|
}
|
|
}
|
|
|
|
/* index.html */
|
|
#channel-form {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: center;
|
|
background: rgba(5, 5, 5, 0.95);
|
|
z-index: 20;
|
|
text-align: center;
|
|
gap: 16px;
|
|
}
|
|
#channel-form input {
|
|
background: transparent;
|
|
border: 1px solid #00ff41;
|
|
color: #00ff41;
|
|
font-size: 18px;
|
|
padding: 10px 16px;
|
|
width: 260px;
|
|
text-align: center;
|
|
outline: none;
|
|
text-shadow: 0 0 8px #00ff41;
|
|
box-shadow: 0 0 10px rgba(0, 255, 65, 0.15);
|
|
}
|
|
#channel-form input:focus {
|
|
box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
|
|
}
|
|
#channel-form button {
|
|
background: transparent;
|
|
border: 1px solid #00ff41;
|
|
color: #00ff41;
|
|
font-size: 16px;
|
|
padding: 8px 32px;
|
|
cursor: pointer;
|
|
text-shadow: 0 0 8px #00ff41;
|
|
box-shadow: 0 0 10px rgba(0, 255, 65, 0.15);
|
|
transition: all 0.15s;
|
|
min-width: 220px;
|
|
}
|
|
#channel-form button:hover {
|
|
background: rgba(0, 255, 65, 0.1);
|
|
box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
|
|
}
|
|
#game-link {
|
|
margin-top: 8px;
|
|
color: #00cc33;
|
|
font-size: 14px;
|
|
min-height: 20px;
|
|
}
|
|
#game-link.copied {
|
|
color: #00ff41;
|
|
text-shadow: 0 0 8px #00ff41;
|
|
}
|
|
.obs-note {
|
|
margin-top: 24px;
|
|
color: #00cc33;
|
|
font-size: 12px;
|
|
opacity: 0.6;
|
|
line-height: 1.6;
|
|
max-width: 300px;
|
|
}
|