*,*::after,*::before {
    box-sizing: border-box;
    font-family: Eczar;
}

:root {
    --c-neleti : rgb(199, 118, 118);
    --c-leti : rgb(133, 152, 233);
    --c-defaultSelect : #400000;
    --c-hoverBrown : #610000;
    --c-defaultCell: white;
    --c-defaultText: white;

    --pic-hlavickaTabNahore : "https://www.panhradu.cz/i/title/tabulka_mala_hlavicka.gif";
    --pic-hlavickaTabBody: "https://www.panhradu.cz/i/title/tabulka_mala_bc.gif" ;
    --pic-hlavickaTabDole: "https://www.panhradu.cz/i/title/tabulka_mala_paticka.gif";
    
}

body {
    min-height: 100vh;
    position: relative;
    display:flex;
    flex-direction: column;
}

select, button, select:not(select.unit-type) {
    width: fit-content;
    border: none;
    color: var(--c-defaultText);
    background-color: var(--c-defaultSelect);
    transition: background-color 0.15s ease-in-out,
                color 0.15s ease-in-out;
    will-change: background-color, color;
    padding: 10px 15px;
}

select:hover, button:hover, select:not(select.unit-type)  {
    background-color: var(--c-hoverBrown);
    cursor: pointer;
}

/* container */

.container {
    display:flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100%;
    margin-bottom: auto;
    margin-top: 5vw;
}

.select-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 0.5em;
    margin: 7.5px auto;
}

h2, h4 {
    margin: 0;
}

form {
    padding: 15px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
}

/* tool-settings */

.tool-settings {
    margin-bottom: 20px;
}

.target-input {
    width: 40px;
    height: 40px;
    text-align: center;
    -moz-appearance: textfield;
}

.target-input::-webkit-outer-spin-button,
.target-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cil {
    margin-top:30px;
    margin-bottom: 7.5px;
}

.casy-container {
    display:flex;
    flex-direction: column;
    gap: 5px;
}

.casy-container ol .target-cas {
    text-align: left;
    padding-top: 5px;
    padding-bottom: 5px;
}

.target-cas div {
    position: relative;
    display:flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 15px;
}

.target-cas div input[type="checkbox"] {
    position: relative;
    width: 20px;
    height: 20px;
}


/* přehled */

.submit-mapa {
    margin-top: 15px;
}

.table-div {
    display:flex;
    flex-direction: column;
    overflow-x: auto;
    height: max-content;
    padding-left: auto;
    margin: 0 auto;
}

@media only screen and (max-width: 1032px){
    .table-div {
        margin: 0 !important;
    }

}

.table-row, #table-row {
    display:flex;
    flex-direction: row;
    max-width: max-content; 
    min-width: 560px;
}

#table-row {
    font-weight: bold;
}

.table-cell {
    display:flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 120px;
    min-width: 120px !important;
    border: 1px solid rgba(0, 0, 0, 0.445);
    padding: 5px;
    margin: 1px; 
    transition: background-color 0.15s ease-in-out,
                color 0.15s ease-in-out;
    will-change: background-color, color;
    text-align: center;
}

.table-cell.link a {
    color: purple;
}

.table-cell.unit-type,
.table-cell.vysadek {
    width: 160px !important;
    max-width: 160px !important;
    min-width: 160px !important;
}

.table-cell.unit-type select {
    width: 135px !important;
    max-width: 135px !important;
    padding: 0 !important;
}

.table-cell.unit-typem
.table-cell.unit-type select {
    background-color: initial;
}

.table-cell.unit-type.unit-active {
    color: white;
    font-weight: bold;
}
.table-cell.unit-type.unit-active select {
    border: none;
    color: white;
    font-weight: bold;
}

.table-cell:hover {
    background-color: rgb(223, 223, 223);
}

.table-cell:nth-child(2) {
    min-width: 150px;
}

.table-checkbox input[type="checkbox"] {
    min-height: 25px;
    min-width: 25px;
}

#table-warning {
    display:none;
}

@media only screen and (max-width: 1026px) {
    #table-warning {
        text-align: left;
        display:block;
    }
}

.utok {
    display: none;
}

.utok.aktivni-utok {
    display: flex;
}

/* footer */

footer {

    position: relative;
    bottom: 0;
}