body {
        font-family: Arial, sans-serif;
        background-image: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)), url('bg.webp');
        background-size: cover; /* Obrázek se přizpůsobí celé stránce */
        background-position: center;
        background-color:black;
        color: white; /* Bílé písmo */
        height: 100vh;
        margin: 0;
    }

.header {
    height: auto;
    top: 0px;
    left: 0px;
    background: #010188;
    border-bottom-color: red;
    border-bottom-style: double;
    align-content: space-around;
    text-align: center;
    padding: 5px;
    display: block;
}

.cont {
  display: flex;
  flex-wrap: wrap;
   justify-content: space-around;
    align-items: center; 
  gap: 15px;       
  padding: 20px;
  
}

.wind {
    flex: 1 1 35%;
    margin: 5px;
    padding: 5px;
    background-color: #22046040;
    border-radius: 17px;
}

.best {
    border-bottom: 2px solid rgb(0, 229, 46);
    
}

.good {
    border-bottom: 2px solid rgb(255, 234, 0);
    
}

.none {
    border-bottom: 2px solid rgb(255, 0, 0);
    
}

h1 {
    font-size: 18px;
    margin-bottom: 20px;
    color: red;
}
label {
    display: block;
    margin: 10px 0 5px;
    text-align: left; /* Zarovnání labelu vlevo */
}
input[type="text"],
input[type="email"],
input[type="password"] {
    width: calc(100% - 20px); /* Odtah od okrajů */
    padding: 10px;
    margin: 5px 0 15px;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.8); /* Políčka s 50% průhledností */
    color: white; /* Bílé písmo v políčkách */
    border: 1px solid rgba(255, 255, 255, 0.5); /* Bílý okraj s průhledností */
}

        /* Červený okraj po vyplnění políčka */
input[type="text"]:valid,
input[type="password"]:valid,
input[type="email"]:valid {
    border: 1px solid rgba(255, 0, 0, 0.8); /* Červený okraj při vyplnění */
    background-color: rgba(220, 220, 220, 0.3); /* Pozadí políčka zůstane průhledné */
}

button {
    border-radius: 5px;
    background: aquamarine;
    cursor: grab;
    color: #000000;
}

input[type="number"] {
    background-color: rgba(255, 255, 255, 0);
    color: white;
    padding: 5px;
    border: 1px solid rgb(47, 255, 255);
    border-radius: 4px;
    cursor: pointer;
    width: 15px;
}
input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
}/* Pro Chrome, Safari, Edge a Operu */
/* Skryje šipky v základu i při najetí myší */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0;
}



input[type="select"] {
    width: calc(100% - 20px);
    padding: 10px;
    margin: 5px 0 15px;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.8);
    color: #000000;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

input[type="submit"] {
    background-color: #45bbff;
    color: rgb(0, 0, 0);
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
}
input[type="submit"]:hover {
    background-color: #f2ff35;
}
.message {
    margin: 10px 0;
    text-align: center; /* Zarovnání textu na střed */
    background-color: #ff0000b8;
    border-radius: 5px;
}
.error {
    color: red;
    background: #a7a7a7;
    border-radius: 5px;
    margin-top: 10px;
}
.error a {
    color: white;
}
a {
    color: #DD0000;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

.match {
    display: table;
    border-collapse: separate;
    box-sizing: border-box;
    text-indent: initial;
    unicode-bidi: isolate;
    border-spacing: 2px;
    border-color: rgb(255, 0, 0);
}

.match tr:nth-child(even) {
    border-bottom: 2px solid #3498db;
}

/* === tabulka .leaderboard === */
.leaderboard {
    border-collapse: collapse;
    width: 100%;
    margin: 10px 0;
    font-size: 16px;
    font-family: Arial, sans-serif;
    text-align: left;
    /* background-color: #66c2fba4; */
    /* border: 1px solid #1500ff; */
    color: #ffffff;
}

/* Hlavička tabulky */
.leaderboard th {
    color: #fffa00;
    font-weight: bold;
    padding: 8px;
    text-align: left;
    border-inline: 2px solid #197821b5;
    border-radius: 22px;
}

/* Buňky tabulky */
.leaderboard td {
    padding: 2px;
    border-bottom: 1px solid #ddd;
    border-color: #00fff7;
}

/* Zvýraznění řádků při najetí myší */
.leaderboard tr:hover {
    background-color: #1edff4a5;
    color:rgba(0, 0, 0, 0.766)
}

/* Zarovnání pořadí (první sloupec) na střed */
.leaderboard td:first-child, 
.leaderboard th:first-child {
    text-align: center;
    width: 50px;
}
