@font-face {
    font-family: 'Rubik';
    font-style: normal;
    font-weight: 400;
    src: url('../../font/Rubik-Regular.eot');
    src: local('open sans extralight'), local('open-sans-extralight'), url('../../font/Rubik-Regular.eot?#iefix') format('embedded-opentype'), url('../../font/Rubik-Regular.woff2') format('woff2'), url('../../font/Rubik-Regular.woff') format('woff'), url('../../font/Rubik-Regular.ttf') format('truetype'), url('../../font/Rubik-Regular.svg#Barlow') format('svg');
}

:root {
    --color_1: #006600;
    --color_2: #001600;
    --color_3: #000800;
    --color_back: black;
    --font: 'Rubik', sans-serif
}

body {
    margin: 10px;
    padding: 0;
    background-color: var(--color_back);
    color: var(--color_1);
    font-family: var(--font);
    font-size: 20px;
    display: inline-grid;
}

button {
    font-size: 20px;
}

/* kropki */

ul.leaders {
    /* max-width: 40em; */
    padding: 0;
    overflow-x: hidden;
    list-style: none;
    width: 500px;
}

ul.leaders li:before {
    float: left;
    width: 0;
    white-space: nowrap;
    content: ". . . . . . . . . . . . . . . . . . . . " ". . . . . . . . . . . . . . . . . . . . " ". . . . . . . . . . . . . . . . . . . . " ". . . . . . . . . . . . . . . . . . . . "
}

ul.leaders span:first-child {
    padding-right: 0.33em;
    background: var(--color_back)
}

ul.leaders span+span {
    float: right;
    padding-left: 0.33em;
    background: var(--color_back)
}

/* opis zdjecia */

figure {
    float: right;
    width: 300px;
    text-align: center;
    font-style: italic;
    font-size: smaller;
    text-indent: 0;
    border: 1px solid silver;
    margin: 0;
    padding: 10px;
}

img.scaled {
    width: 100%;
}

/* srodkowanie */

div.container1 {
    height: 10em;
    position: relative;
    border: 1px solid silver;
    margin-top: 20px;
}

div.container1 p {
    margin: 0;
    background: yellow;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-right: -50%;
    transform: translate(-50%, -50%);
}

div.container2 {
    position: relative;
    border: 1px solid silver;
    margin-top: 20px;
}

IMG.displayed {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

div.container3 {
    border: 1px solid silver;
    margin-top: 20px;
    display: inline-grid;
}

col:first-child {
    background: #FF0
}

col:nth-child(2n+3) {
    background: #CCC
}

#menu {
    position: fixed;
    right: -8.5em;
    top: 50%;
    width: 8em;
    background: hsla(80, 90%, 40%, 0.7);
    color: white;
    margin: -3em 0 0 0;
    padding: 0.5em 0.5em 0.5em 2.5em;
    transition: 0.5s
}

#menu:hover {
    right: 0
}

#menu a {
    position: relative;
    left: 0;
    transition: 0.5s;
}

#menu a:focus {
    left: -7em;
    background: hsla(80, 90%, 40%, 0.7);
}

#menu:hover a:focus {
    left: 0;
    background: none;
}

.hover_test {
    margin-top: 20px;
    width: 50px;
    height: 30px;
    border: 2px solid var(--color_1);
}

.hover_test:after {
    background-color: var(--color_2);
    content: 'test';
}