* {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    margin: 0;
}

body{
    background-color: #F9F6F0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1{
    font-size: 200%
}

/* LOGO */

.logo{
    display: flex;
    justify-content: center;
}

.logo img{
    width: 150px;
    height: 150px;
}

/* NADPIS */

.nadpis{
    display: flex;
    justify-content: center;
    flex-direction: column;
    font-size: 2rem;
    margin-top: 2vh;
    align-items: center;
}

/* NAVIGACE */

.menuAnimace {
    display: inline-block;
    position: relative;
    color: #0087ca;
  }

.menuAnimace::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #0087ca;
    transform-origin: middle;
    transition: transform 0.45s ease-out;
  }
  
  .menuAnimace:hover::after {
    transform: scaleX(0.8);
    transform-origin: middle;
  }

  .topNav{
    margin: 25px 0px 25px 0px;
    font-size: 12px;
    display: flex;
    justify-content: center;
  }

  .topNav a{
    padding: 15px;
  }

  /* ODKAZY */

a{
    padding: 5px;
    font-size: 2em;
    margin:0;
    padding: 0 .07em;
}

a:link {
    color: black;
    text-decoration: none;
}

a:hover {
    color: black;
    text-decoration: solid;
}

a:visited{
    color: black;
}

/* OBRÁZKOVÉ MENU */

hr{
    display: flex;
    justify-content: center;
    margin: auto;
    width: 70%;
    opacity: 0.5;
}

.formContainer{
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
    align-items: center;
}

.formContainer img{
    width: 500px;
    height: 500px;
}


/* PRVNÍ CONTAINER */

.prvniContainer{
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 25px 0px 25px 0px;
}

/* DRUHÝ CONTAINER */

.druhyContainer{
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 25px 0px 25px 0px;
}

/* TŘETÍ CONTAINER */

.tretiContainer{
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 25px 0px 25px 0px;
}

/* ČTVRTÝ CONTAINER */

.ctvrtyContainer{
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 25px 0px 25px 0px;
}


/* OBRÁZKY */

.prvniObrazek{
    position: relative;
    text-align: center;
    display: flex;
    justify-content: center;
}

.druhyObrazek{
    position: relative;
    text-align: center;
    display: flex;
    justify-content: center;
}

.polohaTextu{
    position: absolute;
    top: 75%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.polohaTextu p{
    color: white;
    font-size: 50px;
    padding: 15px;
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.7);
    transition: transform .2s;
}

.polohaTextu p:hover{
    transform: scale(1.25);
}

/* FOOTER */

footer{
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    margin-top: auto;
}

/* SCROLL BAR */
::-webkit-scrollbar {
    width: 2.5px;
}

::-webkit-scrollbar-thumb {
    background: #0087ca;
    border-radius: 10px;
} 

/* RESPONZIVITA */

@media only screen and (max-width: 1024px) {
    .formContainer img {
        width: 400px;
        height: 400px;
    }
}

@media only screen and (max-width: 840px) {
    .formContainer img {
        width: 350px;
        height: 350px;
    }
}

@media only screen and (max-width: 768px) {
    .formContainer img {
        width: 300px;
        height: 300px;
    }
}

@media only screen and (max-width: 640px) {
    .prvniContainer, .druhyContainer, .tretiContainer, .ctvrtyContainer{
        flex-direction: column;
    }

    h1{
        font-size: 150%;
    }
}

@media only screen and (max-width: 500px) {
    h1{
        font-size: 100%;
    }

    .topNav{
        flex-direction: column;
        align-items: center;
        }
    
    .polohaTextu p{
        font-size: 40px;
    }
}

@media only screen and (max-width: 360px) {
    .formContainer img {
        width: 250px;
        height: 250px;
    }
}

@media only screen and (max-width: 320px) {
    h1{
        font-size: 85%
    }
}