/*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.com/ *//* * What follows is the result of much research on cross-browser styling. * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal, * Kroc Camen, and the H5BP dev community and team. */
:root {
    --color-green: #339933;
    --color-light: lightgreen;
    --color-titles: lime;
    --font-normal: 400;
    --padding-borderline: 7px;
    --padding-default: 20px;
}

/* ==========================================================================   Base styles: opinionated defaults   ========================================================================== */
html, button, input, select, textarea {
    color: #222;
}

html {
    font-size: 1em;
    line-height: 1.4;
}

/* * Remove text-shadow in selection highlight: h5bp.com/i * These selection rule sets have to be separate. * Customize the background color to match your design. * */
::-moz-selection {
    background: #d8f8fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/* * A better looking default horizontal rule */
hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1rem 0;
    padding: 0;
}

/* * Remove the gap between images, videos, audio and canvas and the bottom of * their containers: h5bp.com/i/440 */
audio, canvas, img, video {
    vertical-align: middle;
}

/* * Remove default fieldset styles. */
fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/* * Allow only vertical resizing of textareas. */
textarea {
    resize: vertical;
}

/* ==========================================================================   Author's custom styles   ========================================================================== */
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
    display: block;
}

body, html {
    text-shadow: none;
    font-family: 'Roboto', sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-variation-settings:
            "wdth" 100;
    font-weight: var(--font-normal);
    font-size: 12px;
    background-color: var(--color-green);
    color: #000;
    margin: 0;
}

button, input, select, textarea {
    font-family: 'Roboto', sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-variation-settings:
            "wdth" 100;
    font-weight: var(--font-normal);
    font-size: 12px;
}

a {
    color: #fff;
    text-decoration: underline;
    transition: all 0.3s ease-in-out;
}

a:hover {
    color: #000000;
}

div.todo {
    background-color: red;
    padding: 20px;
    border: none;
    margin: 0 0 10px 0;
}

img.full {
    width: 100%;
}

img.cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.flex {
    display: flex;
    flex-flow: row nowrap;
    width: 100%;
}

.grid {
    display: grid;
}

.anchor {
    display: block;
    font-size: 0;
    line-height: 0;
    height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
    position: relative;
}

.anchor.relative {
    top: -100px;
}

.abscover {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.centered {
    text-align: center;
}

/* chyby v poupuech */
.fix-content ul.error, .fix-content ul.flashes {
    background-color: transparent;
    color: #000000;
}

ul.flashes .error {
    background-color: #ee630f;
}

/* - - - */
a[href^="error:"] {
    background: red;
    color: white;
}

/* ==========================================================================   Helper classes   ========================================================================== *//* * Hide from both screenreaders and browsers: h5bp.com/u */
.hidden {
    display: none !important;
    visibility: hidden;
}

div.center {
    text-align: center;
}

/* * Clearfix: contain floats * * For modern browsers * 1. The space content is one way to avoid an Opera bug when the *    `contenteditable` attribute is included anywhere else in the document. *    Otherwise it causes space to appear at the top and bottom of elements *    that receive the `clearfix` class. * 2. The use of `table` rather than `block` is only necessary if using *    `:before` to contain the top-margins of child elements. */
.clearfix:before, .clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/* * For IE 6/7 only * Include this rule to trigger hasLayout and contain floats. */
.clearfix {
    *zoom: 1;
}

/* --- project --- */
.content, .layout {
    width: 100%;
    margin: 0 auto;
    max-width: 1280px;
    min-width: 320px;
    box-sizing: border-box;
    position: relative;
}


@media (min-width: 1280px) {
    .content, .layout {
        padding: 0 20px;
    }
}

h1 {
    color: #fff;
    font-weight: 700;
    text-shadow: #000 2px 2px;
    text-align: center;
    margin: 0 0 0.5em 0;
    padding: 0.2em 0 0 0;
    font-size: 250%;
}

h1 a {
    text-decoration: none;
}

h1 a:hover {
    color: var(--color-titles);
}

.center-info-box {
    text-align: center;
    padding: 6px var(--padding-default);

    &:last-of-type {
        padding-top: 0;
    }
}


.hp-grid {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat( 2 , minmax( 160px , 250px));
    justify-content: center;
    align-items: stretch;
    grid-gap: 30px;
    margin-bottom: 30px;
}

.hp-grid .grid-item {
    text-align: center;
    background: url("../img/line.png") repeat;
    padding: var(--padding-borderline);
}

.hp-grid .grid-item > div {
    height: 100%;
    background-color: var(--color-green);
}

.hp-table {
    width: 100%;
    margin: 0 auto;
    padding-bottom: 10px;

    td {
        padding: 1px 2px;
    }

    th {
        background-color: var(--color-light);
        padding: 4px 2px;
    }

    tr td:nth-of-type(2) {
        text-align: left;
    }
}

#main-menu {
    position: fixed;
    top: 0;
    right: 0;
    inset: 0;
    background-color: #339933ee;
    z-index: 2;
    height: 100vh;
    opacity: 0;
    transform: translate( 0 , -100%);
    transition: all 0.4s ease-in-out;
}

.menu-open #main-menu {
    opacity: 1;
    transform: translate( 0 , 0);
}

.menu-open #menu-burger img {
    filter: invert(1);
}



.hp-grid h2 {
    color: #fff;
    font-size: 150%;
    font-weight: 600;
    font-style: italic;
    padding: 0;
    margin: 0;
}

.hp-grid h2:after {
    display: block;
    content: "";
    width: 100%;
    height: var(--padding-borderline);
    background: url("../img/line.png") repeat;
}

.content-box {
    position: relative;
    margin: 0 auto;
    width: 100%;
    max-width: 800px;
    background: url("../img/line.png") repeat;
    padding: var(--padding-borderline);

    & > .content-inside {
        background-color: var(--color-green);
    }

    h2 {
        color: var(--color-titles);
        font-size: 120%;
        font-weight: 600;
        margin: 0;
        text-align: center;
        padding: 1em 0;
        text-transform: uppercase;
    }
}

.whole-table {
    width: 100%;
    margin: 0 auto;
    padding-bottom: 20px;
    text-align: center;



    td {
        padding: 1px 2px;
        box-sizing: border-box;
    }

    th {
        padding: 4px 2px;
        background-color: var(--color-light);
        box-sizing: border-box;
    }

    th.count {
        width: 40px;
    }

    &.liga td.nazev { text-align: left; }
    &.liga td.sezona { text-align: left; }
    &.liga td.minule { text-align: left; }
    &.liga td.hriste { text-align: left; }

    &.playfields td {
        vertical-align: top;
        text-align: left;
        padding-bottom: 6px;
    }

    &.players td.jmeno { text-align: left; }
    &.players td.dal { text-align: left; }
    &.players td.asistence { text-align: left; }

}

#menu-burger {
    position: absolute;
    right: 10px;
    top: 10px;
    z-index: 3;
}

#menu-burger img {
    transition: all 0.3s ease-in-out;
}

.menu-content {
    max-width: 100%;
    margin: 20px auto;
    text-align: center;

    nav {
        line-height: 2;
    }

    nav a {
        font-size: 200%;
        color: #000;
        transition: all 0.3s ease-in-out;
        position: relative;
        display: inline-block;
        width: auto;
        text-decoration: none;
        font-weight: 500;
        text-transform: uppercase;
    }

    nav a:after {
        content: "";
        display: block;
        height: 3px;
        background-color: var(--color-titles);
        width: 0;
        transition: all 0.3s ease-in-out;
    }

    nav a:hover {
        color: var(--color-titles);
    }

    nav a:hover:after {
        width: 100%;
    }
}

a.button {
    background-color: #fff;
    padding: 8px 20px;
    color: #000;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 500;
}

a.button:hover {
    background-color: var(--color-titles);
}

.history-menu {
    padding: 20px 0;
    text-align: center;
}

.history-menu a.button {
    display: inline-block;
    margin: 10px;
}

.anchors {
    padding: var(--padding-default);
    background-color: var(--color-green);
    display: flex;
    justify-content: space-evenly;
    flex-flow: row wrap;
}

.anchors a.anchor-link {
    display: inline-block;
    padding: 5px 10px;
    text-align: center;
}

.css-change {
    position: absolute;
    left: var(--padding-default);
    top: var(--padding-default);
}

.css-change svg {
    width: 40px;
    height: 40px;
}

.css-change svg polygon:first-child {
    fill: #000;
}
.css-change svg polygon:last-child {
    fill: #fff;
}


@media screen and (max-width: 800px) {
    .content-box {
        margin: 0 7px 20px 7px;
        width: calc(100% - 14px);
        box-sizing: border-box;
    }

    #menu-burger {
        top: 5px;
    }

    #menu-burger img {
        width: 50px;
    }
}

@media screen and (max-width: 550px) {
    .hp-grid {
        margin-left: var(--padding-borderline);
        margin-right: var(--padding-borderline);
    }

}

@media screen and (max-width: 499px) {
    .center-info-box b {
        display: block;
    }

    .hp-grid {
        margin-top: 10px;
        grid-gap: 20px;
        margin-bottom: 20px;
    }
}
@media screen and (max-width: 400px) {
    .whole-table {
        & th.count {
            width: 20px;
        }
    }

    .content-box:not(.hp) {
        border: 0;
        padding: 0 var(--padding-borderline);
        width: 100%;
        box-sizing: border-box;
        margin: 0 0 var(--padding-default) 0;
        background: none;
    }

    h1 {
        font-size: 166.66%;
        padding-top: 2.6em;
        text-align: center;
    }

    .top-info {
        margin-top: 30px;
    }


    .hp-grid {
        margin-top: 10px;
        grid-gap: 12px;
        margin-bottom: 12px;
        grid-template-columns: 1fr

    }

    :root {
        --padding-default: 12px;
    }

    .content-box {
        margin-bottom: var(--padding-default);
    }

    .content-box > .content-inside.small {
        width: 100%;
        overflow-x: scroll;
    }

    .content-box > .content-inside.small .whole-table {
        font-size: 10px;
    }


}
