* { box-sizing: border-box; }
body, html {
    margin: 0; padding: 0; width: 100%; height: 100%;
    background-color: #222; color: white;
    font-family: sans-serif; display: flex;
    justify-content: center; 
    align-items: center; /* Změněno: Tímto se obsah vycentruje vertikálně */
    touch-action: manipulation;
}
.screen { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 600px; padding: 20px; }
.hidden { display: none !important; }
input, button { margin: 10px 0; padding: 12px; font-size: 1.2rem; width: 90%; text-align: center; border-radius: 5px; border: none; }
button { background-color: #4CAF50; color: white; cursor: pointer; font-weight: bold; }
button:active { background-color: #45a049; }
#btn-stats { background-color: #2196F3; }
#btn-stats:active { background-color: #0b7dda; }

canvas { background-color: #e0e0e0; border: 3px solid #555; width: 100%; height: auto; border-radius: 8px;}
#score-board { font-size: 1.5rem; margin-bottom: 10px; font-weight: bold; }

#controls { width: 100%; margin-top: 20px; display: flex; justify-content: center; }
#btn-jump { height: 100px; font-size: 2rem; background-color: #ff9800; border-radius: 20px; box-shadow: 0 5px #c67600; }
#btn-jump:active { background-color: #e68a00; box-shadow: 0 2px #c67600; transform: translateY(3px); }

table { width: 100%; border-collapse: collapse; margin-top: 10px; }
th, td { border: 1px solid #555; padding: 10px; text-align: center; }
th { background-color: #333; }
