/*https://stackoverflow.com/questions/18915550/fix-footer-to-bottom-of-page*/

*{
    padding: 0; 
    margin: 0;
    box-sizing: border-box;
}

html {
    font-size: 14px;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
}

#chart {
    max-height: 90vh;
    min-height: 85vh;
}

a, a:visited, a:link {
    text-decoration: none;
    color: black;
}
a:hover, a:active {
    text-decoration: underline;
    color: rgb(3, 96, 114);
}

input, select {
    outline: none;
    height: 1.8rem;
    padding: 0.2rem 0.4rem;
    margin-right: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.5;
    background-color: white;
    background-clip: padding-box;
    color: rgb(32, 32, 32);
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color .2s ease-in-out, box-shadow .2s ease-in-out;
}
input:focus, select:focus {
    border: 1px solid #037f9e;
    box-shadow: 0 0 5px #037f9e;
}

input.error {
    border-color: red;
    box-shadow: 0 0 5px red;
}   

button {
    font-weight: 400;
    color: white;
    text-align: center;
    vertical-align: middle;
    border: 1px solid #728f96;
    background-color: #728f96;
    padding: .15rem .8rem;
    font-size: 0.9rem;
    line-height: 1.5;
    border-radius: .25rem;
    transition: all .2s ease-in-out;
    outline: none;
}
.button-primary {
    color: white;
    background-color: #037f9e;
    border: 1px solid #037f9e;
}
button:focus, button:hover {
    box-shadow: 0 0 5px #728f96;
}
.button-primary:focus, .button-primary:hover {
    background-color: #03657e;
    border-color: #03657e;
    box-shadow: 0 0 5px #037f9e;
}
.button-primary:focus {
    box-shadow: 0 0 0 .2rem rgba(38,146,255,0.5);
}


p#graphControls {
    margin-top: 0.5rem;
    margin-left: 0.5rem;
}   


#temperatures-page {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: rgb(245, 245, 245);
    padding-bottom: 5rem;
}

#temperatures-page #table {
    width: 95vw; 
    max-width: 25rem; 
    background: white;
    border-radius: 6px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

#temperatures-page table {
    width: 100%;
    border-collapse: collapse;
}

#temperatures-page th, #temperatures-page td {
    padding: 0.6rem;
    text-align: center;
    border-bottom: 1px solid #ddd;
    font-size: 1.2rem;
}

#temperatures-page th {
    background: #3a3a3a;
    color: white;
}

#temperatures-page tr:nth-child(even) {
    background: #f9f9f9;
}

#temperatures-page td:nth-child(2) {
    font-weight: bold;
    text-align: right;
}

#temperatures-page tbody tr:hover {
    background-color: #e7e7e7;
}

#temperatures-page tbody {
    cursor: pointer;
}

#tariff {
    width: 95vw; 
    max-width: 25rem; 
    text-align: center;
    margin-top: 1rem;
    font-size: 1.0rem;
    color: #333333;
}
#tariff b.low  {
    color: green;
}
#tariff b.high {
    color: red;
}

#default-graph {
    width: 95vw; 
    max-width: 25rem; 
    text-align: center;
}
#default-graph img {
    display: inline-block;
    width: 10%;
    max-width: 400px;
}

/*#temperatures-page td span {
    color: #6b6b6b;
    font-size: 1.0rem;
    font-weight: normal;
}*/

.arrow {
    font-size: 1rem;
    display: inline-block;
    transition: transform 0.3s ease-in-out;
}

/* pro animovaný progressbar na spodní hraně tabulky: */
#temperatures-page table {
    position: relative;
    margin-bottom: 5px;
    --progress: 0%;
}
#temperatures-page table::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: var(--progress); /* nutno takhle, aby šlo měnit pomocí JS */
    height: 5px;
    background-color: #6b6b6b;
    transition: width 2.0s ease;
}
/* end */

@media (max-height: 500px) {
    #temperatures-page th, #temperatures-page td {
        padding: 0.2rem;
        font-size: 1.2rem;
    }
}
