:root{
    --base-colour: rgb(245, 245, 245);
    --text-colour: rgb(44, 44, 44);
    --header-colour: rgb(150, 255, 150);
    --tlacitko-colour-text: rgb(245, 245, 245);
    --tlacitko-colour-background: rgb(44, 44, 44);
    --tlacitko-aktivni-color: rgb(44, 44, 44);
    --tlacitko-aktivni-background: rgb(110, 255, 110);
    --footer-colour: rgb(164, 253, 153);
    --html-colour: rgb(164, 253, 153);
}

.darkmode{
    --base-colour: rgb(43, 43, 43);
    --text-colour: rgb(245, 245, 245);
    --header-colour: rgb(117, 255, 117);
    --tlacitko-colour-text: rgb(43, 43, 43);
    --tlacitko-colour-background: rgb(245, 245, 245);
    --tlacitko-aktivni-color: rgb(99, 255, 99);
    --tlacitko-aktivni-background: rgb(43, 43, 43);
    --footer-colour: rgb(63,63,63);
    --html-colour: rgb(63,63,63);
}

#theme-switch{
    height: 50px;
    width: 50px;
    padding: 0;
    border-radius: 50%;
    background-color: var(--base-colour);
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 20px;
    right:20px;
}

#theme-switch svg{
    fill:var(--text-colour);
}

#theme-switch svg:last-child{
    display: none;
}

.darkmode #theme-switch svg:first-child{
    display: none;
}

.darkmode #theme-switch svg:last-child{
    display: block;
}

@font-face{
    font-family: SansFlex;
    src: url(fonty/GoogleSansFlex_9pt-Regular.ttf);
    font-weight: normal;
}

@font-face{
    font-family: SansFlex;
    src: url(fonty/GoogleSansFlex_9pt-ExtraBold.ttf);
    font-weight: bold;
}

html{
    background: rgb(63,63,63);
}

body{
    font: 16px "sansFlex";
    background: var(--base-colour);
    color: var(--text-colour);
    box-sizing: border-box;
    margin: 0;
    padding: 100px 0px 0px 0px;
    min-width: 960px;
}

body > header{
    height: 100px;
    width: 100%;
    background: var(--header-colour);
    color: var(--base-colour);
    display: flex;
    justify-content: space-evenly;
    position: fixed;
    z-index: 1;
    top: 0;
}

#logo{
    height: 40px;
    margin: auto 0 auto 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: url('obrazky/logo.png') no-repeat;
    background-size: 40px 40px;
}

#logo > * {
    margin: 0 0 0 50px;
}

#logo h1{
    font-weight: normal;
    font-size: 19px;
    line-height: 16px;
    color: rgb(44, 44, 44);
}

#logo h1 span{
    font-weight: bold;
    text-transform: uppercase;
}

#logo small{
    text-transform: uppercase;
    font-size: 12px;
    color: rgb(44, 44, 44);
}

nav ul{
    margin: 0;
    list-style-type: none;
    display: flex;
    align-items: center;
    height: 100%;
}

nav ul a{
    padding: 8px 0;
    margin: 10px;
    text-decoration: none;
    text-transform: uppercase;
}

.tlacitko-1,
.tlacitko-2,
.tlacitko-3{
    color: var(--tlacitko-colour-text);
    background: var(--tlacitko-colour-background);
    padding: 10px 20px;
    border-radius: 20px;
    transition: 0.3s ease, border 0.3s ease;
}

.aktivni{
    color: var(--tlacitko-aktivni-color);
    background: var(--base-colour);
    padding: 10px 20px;
    border-radius: 9px;
}

nav ul a:hover{
    background: var(--base-colour);
    color: var(--text-colour);
    border-radius: 9px;
}

article{
    margin: 0 auto;
    max-width: 960px;
    padding: 50px 50px 10px 50px;
}

article h1,
article h2,
article h4,
article h5,
article h6{
    padding: 10px 0;
    color: var(--text-colour);
}

article h1{
    margin: 0 0 0 190px;
    font-size: 35px;
    font-weight: bold;
    text-transform: uppercase;
    width: max-content;
    border-bottom: 4px solid var(--header-colour);
}

article h2{
    font-size: 28px;
    border-bottom: 3px solid var(--header-colour);
}

article h3{
    color: var(--text-colour);
    font-size: 23px;
}

article header{
    height: 80px;
}

article section p{
    margin-bottom: 20px;
    line-height: 25px;
}

article section a{
    color: var(--tlacitko-aktivni-color);
}

footer{
    box-sizing: border-box;
    text-align: center;
    height: 100px;
    color: rgb(245, 245, 245);
    background: rgb(63,63,63);
    padding: 50px 0 0 0;
    clip-path: polygon(0 30px, 100% 0, 100% 105%, 0 105%);
}

footer a{
    color: var(--text-colour);
    text-decoration: none;
}

.centrovany{
    text-align: center;
}

.avatar{
	float: right;
	width: 300px;
	padding-left: 10px;
	filter: grayscale(1);
}

.cistic{
    clear: both;
}

.dovednosti-tlacitko{
    background: var(--text-colour);
    color: var(--base-colour);
    font-size: 15px;
    text-decoration: none;
    text-transform: uppercase;
    padding: 12px 25px;
    border-radius: 25px;
    transition: 0.3s ease, border 0.3s ease;
    margin-left: 585px;
}

.dovednosti-tlacitko:hover{
    color: var(--tlacitko-aktivni-color);
    border-radius: 9px;
    background: var(--footer-colour);
}

.vlevo{
    float: left;
}

.avatar1{
	float: right;
	width: 170px;
	padding-left: 20px;
    filter: grayscale(0);
}

.avatar2{
	float: left;
	width: 170px;
	padding-right: 30px;
    filter: grayscale(0);
}

.basketbal{
    float: left;
    width: 140px;
    padding-left: 20px;
    filter: grayscale(0);
    border: 20px;
    animation-name: spin;
    animation-duration: 6s;
    animation-iteration-count: infinite;
}

.vlak{
    float: right;
    width: 300px;
    padding-left: 20px;
    filter: grayscale(0);
}

@keyframes spin{
    0%{
    }
    100%{
        transform: rotate(360deg);
    }
}

.email{
	float: left;
	width: 110px;
	padding-right: 30px;
    filter: grayscale(0);
    border: 20px;
}

.phone{
	float: left;
	width: 60px;
	padding-right: 75px;
    filter: grayscale(0);
    border: 20px;
}

.kontakt-text{
    font-size: 20px;
}

.kontakt-text2{
    font-size: 20px;
    padding: 50px 0 0 0;
}