Files
Gambling_API/public/styles_home.css
T
2026-05-05 11:24:34 +02:00

344 lines
5.9 KiB
CSS

body {
background: radial-gradient(circle at top, #111, #000);
color: #0f0;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
margin: 0;
height: 100vh;
position: relative;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
body::before {
content: "♠ ♥ Welcome to Gambling API ♦ ♣";
font-size: 24px;
color: #0f0;
margin-bottom: 40px;
display: block;
text-shadow: 0 0 5px #0f0, 0 0 10px #0f0;
}
button {
background-color: #0f0;
color: #000;
border: none;
padding: 15px 30px;
font-size: 16px;
font-weight: bold;
border-radius: 12px;
cursor: pointer;
box-shadow: 0 0 10px #0f0, 0 0 5px #0f0 inset;
transition: background 0.2s ease-in-out, transform 0.2s;
}
button:hover {
background-color: #1f1;
transform: scale(1.05);
}
button.logout {
position: absolute;
top: 20px;
right: 20px;
padding: 10px 20px;
font-size: 14px;
}
.balance {
margin-top: 20px;
color: #0f0;
text-shadow: 0 0 5px #0f0, 0 0 10px #0f0;
}
.lobby-buttons {
display: flex;
gap: 20px;
margin-top: 30px;
}
.host-form {
display: grid;
gap: 12px;
justify-items: center;
margin-top: 18px;
}
.lobby-visibility {
color: #fff;
font-family: monospace;
display: flex;
align-items: center;
gap: 8px;
text-shadow: 0 0 3px #0f0;
}
.lobby-visibility label {
border: 1px solid rgba(0, 255, 0, 0.5);
border-radius: 8px;
padding: 8px 12px;
background: rgba(0, 0, 0, 0.65);
cursor: pointer;
}
.lobby-visibility input {
width: 16px;
height: 16px;
accent-color: #0f0;
vertical-align: middle;
}
.lobby-room {
background: rgba(0, 0, 0, 0.7);
border: 2px solid #0f0;
border-radius: 12px;
padding: 30px;
margin-top: 40px;
width: 400px;
text-align: center;
box-shadow: 0 0 10px #0f0;
}
.lobby-room h2 {
color: #0f0;
font-size: 20px;
margin-bottom: 20px;
text-shadow: 0 0 5px #0f0;
}
#player-list {
color: #fff;
}
.hidden {
display: none;
}
.join-browser {
margin-top: 20px;
width: min(520px, calc(100vw - 32px));
background: rgba(0, 0, 0, 0.78);
border: 2px solid #0f0;
border-radius: 10px;
box-shadow: 0 0 10px #0f0;
padding: 18px;
box-sizing: border-box;
}
.join-code-row {
display: flex;
gap: 10px;
}
#join-form:not(.hidden) {
display: block;
}
#join-form input {
padding: 10px;
border-radius: 8px;
border: 2px solid #0f0;
background-color: #111;
color: #0f0;
font-size: 16px;
box-shadow: 0 0 5px #0f0 inset;
width: 200px;
}
.browser-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
margin-top: 16px;
border-top: 1px solid rgba(0, 255, 0, 0.35);
padding-top: 14px;
}
.browser-header h2 {
margin: 0;
font-size: 18px;
color: #0f0;
font-family: monospace;
}
.browser-header button,
.public-lobby button {
padding: 8px 14px;
font-size: 13px;
border-radius: 8px;
}
.public-lobbies {
display: grid;
gap: 10px;
margin-top: 12px;
max-height: 220px;
overflow: auto;
}
.public-lobbies p {
margin: 0;
color: #fff;
font-family: monospace;
}
.public-lobby {
display: grid;
grid-template-columns: 1fr auto;
align-items: center;
gap: 12px;
border: 1px solid rgba(0, 255, 0, 0.45);
border-radius: 8px;
padding: 10px;
background: rgba(0, 255, 0, 0.06);
}
.public-lobby-info {
display: grid;
gap: 4px;
color: #fff;
font-family: monospace;
min-width: 0;
}
.public-lobby-info strong {
color: #0f0;
overflow-wrap: anywhere;
}
.public-lobby-info span {
font-size: 13px;
color: #d8ffd8;
}
#join-form button {
background-color: #0f0;
color: #000;
font-weight: bold;
padding: 10px 20px;
border-radius: 8px;
border: none;
cursor: pointer;
transition: 0.2s;
}
.error-message {
color: red;
margin-top: 10px;
font-weight: bold;
text-shadow: 0 0 3px red;
}
.hidden {
display: none;
}
#matrix-canvas {
position: fixed;
top: 0;
left: 0;
z-index: -1;
width: 100vw;
height: 100vh;
background: transparent;
pointer-events: none;
}
.leaderboard {
position: absolute;
top: 100px;
left: 20px;
background: rgba(0, 0, 0, 0.7);
border: 2px solid #0f0;
border-radius: 10px;
padding: 20px;
width: 200px;
color: #0f0;
font-family: monospace;
box-shadow: 0 0 10px #0f0;
z-index: 1;
}
.leaderboard h3 {
margin-top: 0;
font-size: 18px;
text-align: center;
text-shadow: 0 0 5px #0f0;
}
.leaderboard ul {
list-style: none;
padding: 0;
margin: 0;
}
.leaderboard li {
margin: 5px 0;
font-size: 14px;
text-shadow: 0 0 3px #0f0;
}
.leaderboard li.you {
font-weight: bold;
color: #ff0;
text-shadow: 0 0 5px #ff0;
}
.your-rank {
margin-top: 10px;
font-size: 14px;
color: #fff;
text-align: center;
text-shadow: 0 0 3px #0f0;
}
.lobby-room {
position: relative;
background: rgba(0, 0, 0, 0.7);
border: 2px solid #0f0;
border-radius: 12px;
padding: 30px;
margin-top: 40px;
width: 400px;
text-align: center;
box-shadow: 0 0 10px #0f0;
}
.lobby-header {
position: absolute;
top: 10px;
right: 10px;
}
.leave-button {
background-color: #f00;
color: #fff;
font-size: 12px;
padding: 8px 12px;
border: none;
border-radius: 8px;
box-shadow: 0 0 5px red;
cursor: pointer;
transition: background 0.2s, transform 0.2s;
}
.leave-button:hover {
background-color: #c00;
transform: scale(1.05);
}
.start-game {
margin-top: 20px;
width: 100%;
}
.start-game:disabled {
background-color: #163016;
color: #67a667;
cursor: not-allowed;
box-shadow: 0 0 5px #0f0 inset;
transform: none;
}