html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background-image: url(../images/bg.png);
    background-repeat: repeat-x;
    font-family: arial, verdana, tahoma, helvetica, sans-serif;
    background-color: #fffaf7;
}

.header {
    text-align: center;
}

/* main {} */

p {
    margin: 0;
}

.headerImage {
    width: 100%;
}

.sectionTitle {
    /* background-color: gray; */
    text-align: center;
    padding: 5px 0 5px 0;
}

section {
    text-align: center;
    margin: 0 35px 0 35px;
}

.reference img {
    cursor: pointer;
}

.no-bot-margin {
    margin-bottom: 0; /*Všechny obrázky v referencích mají margin top, nadpis reference zase margin bottom => vznikla by zde velká mezera způsobená dvěma marginy */

}

.centeredJustify {
    display: inline-block;
    text-align: justify;
}

.centeredLeft {
    display: inline-block;
    text-align: left;
}

.highlight {
    font-weight: bold;
    text-decoration: underline;
}

footer {
    text-align: center;
    background-color: gray;
    padding: 10px 5px 10px 5px;
    margin-top: 10px;
}

footer p {
    margin: 0;
}

.image {
    position: fixed;
    width: 100vw;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.arrow {
    cursor: pointer;
    display: none;
    width: 10%;
    position: fixed;
    z-index: 3;
    top: 50%;
    transform: translate(0, -50%);
}

#left {
    left: 5%;
}

#right {
    right: 5%;
}

#clona {
    display: none;
    background-color: black;
    opacity: 0.5;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
}

.fade-in {
    animation-name: fade-in;
    animation-duration: 0.5s;
    animation-fill-mode: forwards;
}

@keyframes fade-in {
    from {
        opacity: 0%
    }
    to {
        opacity: 100%
    }
}

.fade-out {
    animation-name: fade-out;
    animation-duration: 0.5s;
    animation-fill-mode: forwards;
}

@keyframes fade-out {
    from {
        opacity: 100%;
    }
    to {
        opacity: 0%;
    }
}

.slide-in-right {
    animation: slideinright 0.5s;
    animation-fill-mode: forwards;
    animation-timing-function: ease;

}

@keyframes slideinright {
    0% {
        left: 200%;
    }
    100% {
        left: 50%;
    }
}

.slide-out-right {
    animation: slideoutright 0.5s;
    animation-fill-mode: forwards;
    animation-timing-function: ease;
}

@keyframes slideoutright {
    0% {
        left: 50%;
    }
    100% {
        left: -50%;
    }
}

.slide-in-left {
    animation: slideinleft 0.5s;
    animation-fill-mode: forwards;
    animation-timing-function: ease;

}

@keyframes slideinleft {
    0% {
        left: -100%;
    }
    100% {
        left: 50%;
    }
}

.slide-out-left {
    animation: slideoutleft 0.5s;
    animation-fill-mode: forwards;
    animation-timing-function: ease;

}

@keyframes slideoutleft {
    0% {
        left: 50%;
    }
    100% {
        left: 150%;
    }
}


.hidden {
    display: none;
}

.reference {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
}

.reference img {
    margin-top: 20px;
}

.ColPadding {
    padding-top: 2rem;
}


/*Telefon na šířku*/

@media screen and (min-width: 560px) {
    .image {
        width: 85vw;
    }
    #left {
        left: 10%;
    }
    
    #right {
        right: 10%;
    }

}

/*Tablet na výšku*/

@media screen and (min-width: 720px) { 
    .image {
        width: 65vw;
    }
    .arrow {
        width: 6%;
    }
    #left {
        left: 20%;
    }
    
    #right {
        right: 20%;
    }
}

/*Tablet na šířku*/

@media screen and (min-width: 960px) {
    section {
        margin: 0 20vw 0 20vw;
    }
    .image {
        width: 50vw;
    }
    .arrow {
        width: 5%;
    }

    #left {
        left: 27%;
    }
    
    #right {
        right: 27%;
    }
    
}

/*Počítačový monitor*/

@media screen and (min-width: 975px) and (max-width: 1184px){
    .Kontakty{
        height: 507px;
    }
}

@media screen and (min-width: 1183px) and (max-width: 1379px){
    .PredmetCinnosti{
        height: 755px;
    }
}


@media screen and (min-width: 1200px) {
    .image {
        width: 35vw;
    }
    .arrow {
        width: 3%;
    }

    #left {
        left: 33%;
    }
    
    #right {
        right: 33%;
    }
}
@media screen and (min-width: 1380px){
    .PredmetCinnosti{
        height: 823px;
    }
}