@font-face {
    src: url(../fonts/PatrickHand-Regular.ttf);
    font-family: r_thin;
}

@font-face {
    src: url(../fonts/PatrickHand-Regular.ttf);
    font-family: r_regular;
}

* {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    -moz-transition-duration: 0.5s;
    -webkit-transition-duration: 0.5s; /* Safari 4.0 - 8.0 */
    transition-duration: 0.5s;
    font-family: r_regular;
}

html {
    position: relative;
    min-height: 100%;
    width: 100%;
}

body {
    margin-bottom: 180px;
}

div#load_screen {
    background-color: grey;
    opacity: 1;
    position: fixed;
    z-index: 999;
    top: 0;
    width: 100%;
    height: 100%;
    color: #fff;
    font-size: 2em;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* SCROLL SHADOW */
.black {
    background-color: #fff;
    -webkit-box-shadow: 0px 0px 6px 0px rgba(138, 138, 138, .5);
    -moz-box-shadow: 0px 0px 6px 0px rgba(138, 138, 138, .5);
    box-shadow: 0px 0px 6px 0px rgba(138, 138, 138, .5);
    -moz-transition-duration: 0.6s;
    -webkit-transition-duration: 0.6s; /* Safari 4.0 - 8.0 */
    transition-duration: 0.6s;
}
/* SCROLL SHADOW */

/* HAMBURGER */
#wrapper {
    width: 100%;
    height: 43px;
    -webkit-box-shadow: 0px 0px 6px 0px rgba(138, 138, 138, .5);
    -moz-box-shadow: 0px 0px 6px 0px rgba(138, 138, 138, .5);
    box-shadow: 0px 0px 6px 0px rgba(138, 138, 138, .5);
    -moz-transition-duration: 0.5s;
    -webkit-transition-duration: 0.5s; /* Safari 4.0 - 8.0 */
    transition-duration: 0.5s;
}

.main-item {
	width: 28px;
	height: 28px;
	position: relative;
    left: 80%;
    top: 4.9px;
}

.line {
	position: absolute;
	height: 4px;
	width: 100%;
	background: rgb(42, 42, 42);
	border-radius: 20px;
	transition: all cubic-bezier(0.25, 0.1, 0.28, 1.54) 0.32s;
}

.line01 {
	top: 19%;
}

.line02 {
	top: 49%;
}

.line03 {
	top: 79%;
}

.menu.close .line01 {
	transform: rotate(45deg);
	top: 49%;
}

.menu.close .line02, .menu.close .line03 {
	transform: rotate(-45deg);
	top: 49%;
}

/* HAMBURGER */





nav {
    position: fixed;
    width: 100%;
    line-height: 20px;
    z-index: 2;
    top: 0;
    background-color: #fff;
    -webkit-box-shadow: 0px 0px 6px 0px rgba(138, 138, 138, .5);
    -moz-box-shadow: 0px 0px 6px 0px rgba(138, 138, 138, .5);
    box-shadow: 0px 0px 6px 0px rgba(138, 138, 138, .5);
    -moz-transition-duration: 0.5s;
    -webkit-transition-duration: 0.5s; /* Safari 4.0 - 8.0 */
    transition-duration: 0.5s;
}

nav ul {
    line-height: 20px;
    list-style: none;
    overflow-x: hidden;
    overflow-y: hidden;
    color: #fff;
    margin: 0;
    padding: 0 30px;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
    -moz-transition-duration: 0.5s;
    -webkit-transition-duration: 0.5s; /* Safari 4.0 - 8.0 */
    transition-duration: 0.5s; 
}

nav ul li {
    display: inline-block;
    float: left; /* Aby tam nebyla ta mezera, když je to float right */
    -moz-transition-duration: 0.5s;
    -webkit-transition-duration: 0.5s; /* Safari 4.0 - 8.0 */
    transition-duration: 0.5s;
}

nav ul li:hover {
    background-color: rgb(245, 245, 245);
    -moz-transition-duration: 0.5s;
    -webkit-transition-duration: 0.5s; /* Safari 4.0 - 8.0 */
    transition-duration: 0.5s;
}

nav ul li a {
    padding: 15px 20px;
    display: block;
    text-decoration: none;
    color: rgb(42, 42, 42);
    font-size: 1em;
    text-transform: uppercase;
    -moz-transition-duration: 0.5s;
    -webkit-transition-duration: 0.5s; /* Safari 4.0 - 8.0 */
    transition-duration: 0.5s;
}

.menu-icon {
    line-height: 25px;
    width: 100%;
    color: #fff;
    background: #fff;
    text-align: right;
    box-sizing: border-box;
    padding: 0;
    cursor: pointer;
    display: none;
}

.flags {
    position: fixed;
    right: 50px;
    top: 13px;
    display: block;
}

.flags img {
    height: 22px;
    margin-left: 10px;
    filter: grayscale(0);
    animation-name: flags-an;
    animation-duration: 2s;
    border: 1px solid #000;
}

.flags img:hover {
    filter: grayscale(0);
}

.flags a {
    height: 100px;
}

@keyframes flags-an {
    0% {filter: grayscale(70%);}
    50% {filter: grayscale(0);}
    100% {filter: grayscale(0);}
}

main .all {
    max-width: 80%;
    width: 1500px;
    margin: auto;
    text-align: center;
    color: #747474;
}

main .all h1 {
    font-family: r_thin;
    font-weight: 800;
    font-size: 3em;
    margin-top: 80px;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 0.5px solid #707070;
}

main .all h2 {
    font-family: r_thin;
    margin-bottom: 10px;
    font-size: 2.2em;
}

main .all .box {
    display: grid;
    grid-template-columns: auto auto;
    grid-column-gap: 30px;
    justify-content: center;
    margin-bottom: 80px;
}

main .all .box > p {
    margin-top: 10px;
    font-size: 1.2em;
    font-weight: 800;
}

main .all .box .group {
    display: grid;
    grid-template-columns: auto auto;
    grid-column-gap: 30px;
    justify-content: center;
}

main .all .box .group .frst {
    display: block;
    text-align: left;
    line-height: 30px;
}

main .all .box .group .scnd {
    display: block;
    text-align: left;
    line-height: 30px;
}

main .all .box .img {
    width: 390px;
    height: 250px;
    background-size: cover;
    background-position: center;
}

.i1 {
    background-image: url(../images/cin_cin.jpg);
}

main .all .box .group .frst p {
    font-family: r_regular;
    font-size: 1.3em;
    font-weight: 800;
}

main .all .box .group .frst a {
    font-family: r_regular;
    color: hotpink;
    font-size: 1.3em;
}

main .all .box .group .scnd p {
    font-family: r_thin;
    font-size: 1.3em;
    font-weight: 800;
}

footer {
    width: 100%;
    background-color: #707070;
    position: absolute;
    bottom: 0;
    text-align: center;
    padding: 30px 0;
}

footer p {
    color: #fff;
    font-size: 1.2em;
}



/* NOTEBOOK */
@media only screen and (max-width: 1280px) {
    nav ul {
        line-height: 12px;
    }
    
    nav ul li a {
        font-size: 1em;
    }

    .flags {
        top: 9px;
    }

    .flags img {
        height: 20px;
    }
    
    main .all h1 {
        font-size: 2.5em;
    }

    main .all h2 {
        font-size: 2em;
        text-transform: uppercase;
    }

    main .all .box {
        margin-bottom: 60px;
    }

    main .all .box .group .frst {
        line-height: 25px;
    }

    main .all .box .group .scnd {
        line-height: 25px;
    }

    main .all .box .img {
        width: 320px;
        height: 200px;
    }

    main .all .box .group .frst p {
        font-size: 1em;
    }

    main .all .box .group .frst a {
        font-size: 1em;
    }

    main .all .box .group .scnd p {
        font-size: 1em;
    }

    footer {
        padding: 20px 0;
    }
    
    footer p {
        font-size: 1em;
    }
    
    body {
        margin-bottom: 130px;
    }
}
/* NOTEBOOK */

@media only screen and (max-width: 1000px) {
    nav ul {
        line-height: 20px;
        max-height: 0px;
        background: rgb(245, 245, 245);
        padding: 0;
        -webkit-box-shadow: 0px 5px 5px 0px rgba(138, 138, 138, .2);
        -moz-box-shadow: 0px 5px 5px 0px rgba(138, 138, 138, .2);
        box-shadow: 0px 5px 5px 0px rgba(138, 138, 138, .2);
        
    }

    #wrapper {
        height: 60px;
    }
    
    nav ul li {
	    background-color: rgb(250, 250, 250);
        box-sizing: border-box;
        width: 100%;
        text-align: center;
        float: none;
        -moz-transition-duration: 0.5s;
        -webkit-transition-duration: 0.5s; /* Safari 4.0 - 8.0 */
        transition-duration: 0.5s;
    }
    
    nav ul li:hover {
        background-color: rgb(245, 245, 245);
    }

    nav ul li a {
        padding: 30px 0;
        font-size: 1.1em;
    }

    .showing {
        max-height: 34em;
    }

    .menu-icon {
        display: block;
    }
    
    .main-item {
        width: 35px;
        height: 35px;
        left: 83%;
        top: 11px;
    }
    
    .line {
        height: 5px;
    }
    
    .flags {
        top: 17px;
        left: 25px;
        width: 110px;
    }

    .flags img {
        height: 25px;
        margin-right: 0px;
    }
    
    
    main .all .box {
        grid-template-columns: auto;
        grid-template-rows: auto auto;
        grid-row-gap: 10px;
        justify-content: center;
    }

    main .all .box .group {
        grid-template-rows: auto auto;
        grid-row-gap: 10px;
        justify-content: center;
    }
    
    main .all h1 {
        font-size: 2.5em;
    }

    main .all h2 {
        font-size: 2em;
    }

    main .all .box {
        margin-bottom: 20px;
    }

    main .all .box .group .frst {
        line-height: 23px;
    }

    main .all .box .group .scnd {
        line-height: 23px;
    }

    main .all .box .img {
        width: 290px;
        height: 170px;
    }

    main .all .box .group .frst p {
        font-size: 1em;
    }

    main .all .box .group .frst a {
        font-size: 1em;
    }

    main .all .box .group .scnd p {
        font-size: 1em;
    }
}

@media only screen and (max-width: 650px) {
    .main-item {
        left: 80%;
    }
}

@media only screen and (max-width: 500px) {
    .main-item {
        left: 73%;
    }

    footer {
        padding: 20px 0;
    }
    
    footer p {
        font-size: 1em;
    }
}

@media only screen and (max-width: 400px) {
    .main-item {
        left: 69%;
    }
}

@media only screen and (max-height: 550px) and (max-width: 1000px) {
    nav ul {
        overflow-y: scroll;
        height: 75vh;
    }
}