@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap');

:root {
    --base-color: black;
    --base-bgcolor: white;
    --grid-border-color: gray;
}

html, body {
    color: var(--base-color);
    background-color: var(--base-bgcolor);
    font-family: 'Open Sans', sans-serif;
    font-size: 9pt;
}
@media screen and (min-width: 900px) {
    html, body {
        font-size: 10pt;
    }
}

@media screen and (min-width: 1100px) {
    html, body {
        font-size: 12pt;
    }
}

body {
    width: 100%;
    max-width: 1200px;
    margin: auto;
}

header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0;
}

header h1, header a, header img {
    margin: 0;
    padding: 0;
}

header a img {
    height: 2.5rem;
}

h3 {
    font-size: 1.5rem;
    margin-top: 0.3rem;
    margin-bottom: 0.3rem;
}

.formulare {
    display: flex;
    min-width: 800px;
}

form {
    padding: 1em 2em;
    /*border-left: 1px solid var(--grid-border-color);*/
    /*border-right: 1px solid var(--grid-border-color);*/
}

label {
    display: inline-block;
    width: 7em;
}

select {
    display: inline-block;
    width: 16em;
}

.rozvrh {
    display: grid;
    grid-template-columns: auto repeat( 10, 1fr );
    background-color: var(--grid-border-color);
    grid-gap: 1px;
    align-items: stretch;
    justify-items: stretch;

    border: 2px solid var(--grid-border-color);
    margin-bottom: 2rem;
}

.rozvrh > * {
    min-height: 4em;
    background-color: var(--base-bgcolor);
    z-index: 1;
}

.rozvrh > .zahlavi  {
    grid-row: 1;
    grid-column: 1 / span 11;
    min-height: 1em;
}

.rozvrh > .cas {
    grid-row: 2;
    min-height: 1em;
}

.rozvrh > .datum {
    grid-column-start: 1;
    padding: 0.5em 0.2em;
}

.rozvrh > .zahlavi,
.rozvrh > .cas,
.rozvrh > .datum {
    display: flex;
    justify-content: center;
    align-items: center;
}

.rozvrh > .hodina {
    outline : 1px solid black;
}

.rozvrh > .pozadi {
    background-color: var(--base-bgcolor);
    z-index: 0;
}

.rozvrh > .hodina.odlozeno,
.rozvrh > .hodina.presunutoKam {
    background-color: #c0c0c0;
    color: #ffffff;
}

.rozvrh > .hodina.odlozeno  span,
.rozvrh > .hodina.presunutoKam  span
{
    text-decoration: line-through;
}
.rozvrh > .hodina span.odlozeno-detail,
.rozvrh > .hodina span.presunutoKam-detail {
    font-weight: bold;
    color: #ff0000;
    text-decoration: none;
}

.rozvrh > .hodina .presunutoZ-detail {
    font-weight: bold;
    font-style: italic;
}

.rozvrh .hodina-detail {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-content: stretch;
    justify-items: stretch;
    justify-content: center;
    height: 100%;
}

a.hodina-detail {
    font-weight: bold;
}

.hodina-detail:hover {
    background-color:rgba(0,0,0,0.10); /*where 0.5 stands for 50% opacity*/
    /*color:rgba(0,0,0,0.90);*/
}

