@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 h1 {
    font-family: r_regular;
    font-weight: 100;
    font-size: 3em;
    margin-bottom: 0;
    padding-bottom: 0;
    padding-top: 120px;
    max-width: 80%;
    width: 1500px;
    margin: auto;
    text-align: center;
    color: #747474;
}

main .p {
    padding-top: 30px;
    display: flex;
    max-width: 80%;
    width: 1500px;
    justify-content: space-between;
    flex-direction: row;
    margin: auto;
}

main .p a {
    text-decoration: none;
    padding: 0;
}

main .p div {
    width: 300px;
    height: 300px;
    position: relative;
}

main .p .box1 {
    background-image: url(../images/kocky.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    -moz-transition-duration: 0.5s;
    -webkit-transition-duration: 0.5s; /* Safari 4.0 - 8.0 */
    transition-duration: 0.5s;
}

main .p .box1:hover {
    transform: scale(1.05);
}

main .p .box2 {
    background-image: url(../images/kocouri.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    -moz-transition-duration: 0.5s;
    -webkit-transition-duration: 0.5s; /* Safari 4.0 - 8.0 */
    transition-duration: 0.5s;
}

main .p .box2:hover {
    transform: scale(1.05);
}

main .p .box3 {
    background-image: url(../images/kotata.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    -moz-transition-duration: 0.5s;
    -webkit-transition-duration: 0.5s; /* Safari 4.0 - 8.0 */
    transition-duration: 0.5s;
}

main .p .box3:hover {
    transform: scale(1.05);
}

main .p div p {
    font-family: r_regular;
    text-align: center;
    color: #fff;
    text-decoration: none;
    font-size: 2em;
    font-weight: 100;
    margin: 0 auto;
    animation-name: box-an;
    animation-duration: 2s;
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
}

@keyframes box-an {
    0% {color: transparent;}
    50% {color: transparent;}
    100% {color: #fff;}
}

main .text {
    max-width: 80%;
    width: 1500px;
    margin: auto;
    text-align: center;
    color: #747474;
}

main .text h2 {
    font-family: r_regular;
    font-weight: 100;
    font-size: 3em;
    margin-top: 50px;
    margin-bottom: 0;
    padding-bottom: 0;
}

main .text p {
    font-family: r_thin;
    font-size: 1.3em;
    font-weight: 800;
    margin-top: 0;
    padding-top: 0;
}

main .text a {
    color: #00918f;
}

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 h1 {
        font-size: 2.5em;
        padding-top: 80px;
    }
    
    main .p div {
        width: 250px;
        height: 250px;
    }
    
    main .text h2 {
        font-size: 2.5em;
        margin-top: 30px;
    }

    main .text p {
        font-size: 1.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 .p {
        flex-direction: column;
        justify-content: center;
        width: 300px;
    }
    
    main .p div {
        width: 300px;
        height: 300px;
        animation: none;
    }
    
    main .p a {
        height: 300px;
        margin-bottom: 50px;
    }
    
    main .p .box1 {
        filter: grayscale(0);
    }
    
    main .p .box2 {
        filter: grayscale(0);
    }
    
    main .p .box3 {
        filter: grayscale(0);
    }
    
    main .p .box1:hover {
        transform: scale(1);
    }

    main .p .box2:hover {
        transform: scale(1);
    }

    main .p .box3:hover {
        transform: scale(1);
    }
    
    main .p div {
        margin-bottom: 100px;
    }
}

@media only screen and (max-width: 650px) {
    .main-item {
        left: 80%;
    }
}

@media only screen and (max-width: 500px) {
    .main-item {
        left: 73%;
    }
    
    main h1 {
        font-size: 2.3em;
        padding-top: 80px;
    }
    
    main .p {
        width: 250px;
    }
    
    main .p div {
        width: 250px;
        height: 250px;
    }
    
    main .p a {
        height: 250px;
        margin-bottom: 50px;
    }
    
    main .text h2 {
        font-size: 2.3em;
        margin-top: 0;
    }

    main .text p {
        font-size: 1.1em;
    }

    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;
    }
}