html {
    touch-action: manipulation;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    width: 100vw;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: Arial, sans-serif;
    font-size: 1rem;
    text-align: center;
    color: #eee;
    background-color: #333;
    box-sizing: border-box;
}

main {
    flex: 1;
    padding: 5rem 0;
    margin: 0;
    width: 100%;
    max-width: 800px;
    min-height: 100vh;
    box-sizing: border-box;
    overflow-y: auto;
}

.section {
    min-height: 100%; 
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

input, textarea, select {
    font-size: 16px;
}

a {
    color: #eee;
}

header {
    position: fixed;
    width: 100%;
    top: 0;
    background-color: #444;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 1rem;
    padding-left: 4rem;
}

header a {
    text-decoration: none;
    color: #eee;
}

header h1 {
    margin: 0;
    font-size: 2rem;
}

footer {
    position: fixed;
    width: 100%;
    bottom: 0;
    background-color: #444;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: end;
    padding-right: 2rem;
}

.nav {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    background-color: #222;
    padding: 1rem;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    transform: translateX(-100%); 
    transition: transform 0.3s ease;
}

.nav.active {
    transform: translateX(0); 
}

.nav a {
    display: block;
    padding: 1rem;
    text-decoration: none;
    color: #eee;
    background-color: #444;
    margin: 5px 0;
}
.nav a:hover {
    background-color: #555;
}
.nav a.active {
    background-color: #666;
}
#pvt_container {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
#pvt {
    margin: 0;
    height: 3cm;
    width: 3cm;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    text-align: center;
    border: 0.1cm solid #000;
}
#pvt.stop { background-color: #494; }
#pvt.ready { background-color: #999; }
#pvt.touch { background-color: #c44; }
#pvt.fail { background-color: #999; }


#score_bar {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    width: 100%;
}

span.big {
    font-size: 1.5rem;
    font-weight: bold;
}

.score_item {
    margin: 0.2rem;
    padding: 0.5rem;
    border-radius: 0.5rem;
    background-color: rgba(44, 44, 44, .4);
}

.score_item.hidden {
    display: none;
}

#top_scores_table,
#scores_table {
    width: 100%;
    margin: 0 auto;
    padding: 1rem;
    border-collapse: collapse;
}

table, th, td {
    border: 1px solid #444;
    padding: 1rem;
}