Private
Public Access
1
0
Files
EscapeFromTeacher/cmd/client/web/style.css
Sebastian Unterschütz 98e955aad9
All checks were successful
Dynamic Branch Deploy / build-and-deploy (push) Successful in 2m23s
Add analog joystick support with fine control adjustments, improve prediction smoothing, reduce correction thresholds, and enhance lobby and overlay UI responsiveness.
2026-01-04 19:43:09 +01:00

165 lines
9.8 KiB
CSS

@font-face{font-display:swap;font-family:'Press Start 2P';font-style:normal;font-weight:400;src:url('../assets/fonts/press-start-2p-v16-latin-regular.woff2') format('woff2')}
body,html{margin:0;padding:0;width:100%;height:100%;background-color:#1a1a1a;color:#fff;overflow:hidden;font-family:'Press Start 2P',cursive;font-size:14px}
#game-container{position:relative;width:100%;height:100%;box-shadow:0 0 50px rgba(0,0,0,.8);border:4px solid #444;background:#000}
canvas{position:fixed!important;top:0!important;left:0!important;width:100%!important;height:100%!important;z-index:1!important;background:#000;image-rendering:pixelated;opacity:0;pointer-events:none;transition:opacity .3s;visibility:hidden}
canvas.game-active{opacity:1;pointer-events:auto;z-index:2000!important;visibility:visible}
.overlay-screen{position:fixed!important;top:0;left:0;width:100%;height:100%;background:url('background.jpg') center/cover no-repeat,rgba(0,0,0,.85);display:flex;justify-content:center;align-items:center;z-index:1000;box-sizing:border-box;padding:20px}
.overlay-screen.hidden{display:none!important}
#startScreen{display:flex;flex-direction:row;gap:40px;width:100%;height:100%;align-items:center;justify-content:center}
.start-left{flex:2;display:flex;flex-direction:column;align-items:center;justify-content:center;max-width:60%}
.start-right{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;max-width:35%}
.center-box{display:flex;flex-direction:column;align-items:center;justify-content:center;max-width:600px;width:100%}
h1{font-size:32px;color:#f44;text-shadow:4px 4px 0 #000;line-height:1.4;margin:10px 0 25px;text-align:center;text-transform:uppercase}
button{font-family:'Press Start 2P',cursive;background:#fc0;border:4px solid #fff;padding:18px 30px;font-size:18px;cursor:pointer;color:#000;box-shadow:0 6px 0 #997a00;text-transform:uppercase;margin:12px;transition:all .1s}
button:hover{background:#ffd700}
button:active{transform:translateY(4px);box-shadow:0 1px 0 #997a00}
.big-btn{font-size:22px;padding:20px 40px}
.back-btn{background:#fc0;border:3px solid #fff;color:#000;box-shadow:0 4px 0 #997a00;font-size:12px;padding:10px 20px;margin-top:30px;font-weight:700}
.back-btn:hover{background:#ffd700;color:#000;transform:translateY(2px);box-shadow:0 2px 0 #997a00}
.legal-btn{font-size:10px;padding:8px 12px;margin:5px;background:rgba(0,0,0,.6);border:2px solid #fc0;color:#fc0;box-shadow:none}
.legal-btn:hover{background:rgba(255,204,0,.2);color:#fff;border-color:#fff}
input[type=text]{font-family:'Press Start 2P',cursive;padding:12px;font-size:16px;border:3px solid #fff;background:#222;color:#fff;text-align:center;margin-bottom:15px;width:100%;max-width:350px;outline:0;box-sizing:border-box}
input[type=text]::placeholder{color:#666}
input[type=text]:focus{border-color:#fc0;box-shadow:0 0 10px rgba(255,204,0,.5)}
input[type=range]{width:100%;max-width:300px}
.info-box{background:rgba(0,0,0,.6);border:4px solid #fc0;padding:15px;margin:8px 0;width:100%;max-width:320px;text-align:left;box-sizing:border-box}
.info-box p{font-family:sans-serif;font-size:14px;color:#ccc;line-height:1.4;margin:0}
.info-title{color:#fc0;font-size:12px;margin-bottom:6px;text-align:center;text-decoration:underline}
.legal-bar{margin-top:20px;display:flex;gap:15px;flex-wrap:wrap;justify-content:center}
.hall-of-fame-box{background:rgba(0,0,0,.6);border:4px solid #fc0;padding:15px;width:100%;max-height:300px;overflow-y:auto;box-shadow:0 0 15px rgba(255,204,0,.1)}
.hall-of-fame-box h3{color:#fc0;text-align:center;margin-top:0;margin-bottom:10px;border-bottom:2px solid #555;padding-bottom:8px;font-size:14px}
.leaderboard-box{background:rgba(0,0,0,.5);border:4px solid #666;padding:15px;width:100%;max-width:500px;max-height:400px;overflow-y:auto;font-family:sans-serif;color:#ddd}
.leaderboard-item{display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px dotted #444;font-size:12px;font-family:sans-serif;color:#ddd;line-height:1.4}
.leaderboard-rank{color:#fc0;font-weight:700;margin-right:10px;min-width:40px}
.leaderboard-name{flex:1}
.leaderboard-score{color:#fff;font-weight:700}
.settings-group{display:flex;flex-direction:column;gap:25px;width:100%;max-width:500px;margin:20px 0}
.setting-item{display:flex;flex-direction:column;align-items:center;gap:10px}
.setting-item label{color:#fc0;font-size:12px}
.setting-item span{color:#fff;font-size:14px}
.loading-screen{position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.95);display:flex;flex-direction:column;justify-content:center;align-items:center;z-index:9999}
.spinner{border:8px solid #333;border-top:8px solid #fc0;border-radius:50%;width:60px;height:60px;animation:spin 1s linear infinite}
@keyframes spin{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}
#mute-btn{position:fixed;top:10px;left:10px;z-index:10000;background:rgba(0,0,0,.5);border:2px solid #555;color:#fff;font-size:20px;width:40px;height:40px;border-radius:50%;cursor:pointer;padding:0;margin:0;display:flex;align-items:center;justify-content:center;box-shadow:0 0 10px rgba(0,0,0,.5)}
#mute-btn:hover{background:rgba(255,255,255,.2);border-color:#fff}
#rotate-overlay{display:none;position:fixed;top:0;left:0;width:100%;height:100%;background:#222;z-index:99999;color:#fff;flex-direction:column;align-items:center;justify-content:center;text-align:center}
.icon{font-size:60px;margin-bottom:20px}
/* Viewport-basierte dynamische Skalierung für Mobile */
@media (min-width:1024px){
h1{font-size:48px;margin-bottom:40px}
button{font-size:22px;padding:20px 40px}
input[type=text]{width:350px;font-size:20px;padding:15px}
.info-box{max-width:500px}
.info-box p{font-size:16px}
.info-title{font-size:14px}
.hall-of-fame-box{max-height:400px}
}
@media (max-height:500px){
#startScreen{
flex-direction:row;
align-items:center;
justify-content:center;
gap:20px;
padding:10px;
overflow-y:auto;
}
.start-left{
width:45%;
max-width:none;
align-items:center;
text-align:center;
margin:0;
}
.start-right{
width:45%;
max-width:none;
height:auto;
margin:0;
}
h1{font-size:18px;margin:0 0 10px 0;line-height:1.2}
.info-box{display:none}
.legal-bar{margin-top:5px;gap:10px}
button{padding:8px 12px;font-size:10px;margin:5px}
.hall-of-fame-box{max-height:180px}
.hall-of-fame-box h3{font-size:10px;margin-bottom:5px}
/* Game Over Screen */
#gameOverScreen{justify-content:center;align-items:center;padding:10px;overflow-y:auto}
#gameOverScreen h1{font-size:16px;margin:5px 0}
#gameOverScreen p{font-size:10px;margin:5px 0}
#finalScore{font-size:18px!important}
/* Coop Menu */
#coopMenu .center-box{max-width:90%;padding:10px}
#coopMenu h1{font-size:16px;margin:5px 0}
#coopMenu input{width:200px}
/* Lobby Screen */
#lobbyScreen .center-box{max-width:95%;padding:5px}
#lobbyScreen h1{font-size:14px;margin:3px 0}
#lobbyContent{gap:10px!important}
#lobbyContent>div{flex:1!important;max-width:48%!important}
#lobbyScreen p{font-size:9px!important;margin:3px 0!important}
#lobbyRoomCode{font-size:14px!important;padding:6px!important;letter-spacing:1px!important}
#lobbyPlayerList{padding:8px!important;min-height:60px!important;font-size:9px!important;max-height:100px!important}
#lobbyTeamName{padding:5px!important;font-size:10px!important}
#lobbyTeamNameBox{margin:5px 0!important;max-width:90%!important}
#lobbyHostControls{margin:5px 0!important}
#lobbyStatus{font-size:9px!important;margin:5px 0!important}
#currentTeamName{font-size:9px!important}
#teamNameDisplay{font-size:9px!important}
/* Settings Menu */
#settingsMenu .center-box{max-width:90%;padding:10px}
#settingsMenu h1{font-size:16px;margin:5px 0}
.settings-group{gap:10px;margin:10px 0}
.setting-item{gap:5px;flex-direction:column;align-items:center}
.setting-item label{font-size:10px}
.setting-item span{font-size:10px}
input[type=range]{max-width:200px;height:20px}
/* Leaderboard Menu */
#leaderboardMenu .center-box{max-width:90%;padding:10px}
#leaderboardMenu h1{font-size:16px;margin:5px 0}
/* My Codes Menu */
#myCodesMenu .center-box{max-width:90%;padding:10px}
#myCodesMenu h1{font-size:16px;margin:5px 0}
/* Impressum & Datenschutz */
#impressumMenu .center-box,#datenschutzMenu .center-box{max-width:95%;padding:10px}
#impressumMenu h1,#datenschutzMenu h1{font-size:14px;margin:5px 0}
#impressumMenu .leaderboard-box,#datenschutzMenu .leaderboard-box{
max-height:250px!important;
padding:10px!important;
font-size:9px!important;
line-height:1.3!important;
}
#impressumMenu h3,#datenschutzMenu h3{font-size:10px!important;margin:10px 0 5px 0!important}
#impressumMenu h4,#datenschutzMenu h4{font-size:9px!important;margin:8px 0 3px 0!important}
#impressumMenu p,#datenschutzMenu p{font-size:9px!important;margin:3px 0!important}
#impressumMenu ul,#datenschutzMenu ul{margin:3px 0!important;padding-left:15px!important}
#impressumMenu li,#datenschutzMenu li{font-size:9px!important;margin:2px 0!important}
/* Common */
input{padding:5px;font-size:12px;width:150px;margin-bottom:5px}
.leaderboard-box{max-height:120px;padding:8px;margin-top:5px;font-size:10px}
.leaderboard-item{font-size:9px;padding:3px 0}
.leaderboard-rank,.leaderboard-name,.leaderboard-score{font-size:9px}
.big-btn{padding:8px 12px;font-size:10px;margin:5px}
.back-btn{padding:8px 12px;font-size:10px;margin-top:10px}
.center-box{max-width:90%;padding:10px}
.legal-btn{padding:6px 10px;font-size:8px;margin:3px}
p{font-size:10px;margin:5px 0}
/* Overlay Screens */
.overlay-screen{padding:10px;overflow-y:auto}
}
@media screen and (orientation:portrait){
#rotate-overlay{display:flex}
#game-container{display:none!important}
}