* {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    margin: 0;
}

html {
	scroll-behavior: smooth;
}

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;
}

hr{
    display: flex;
    justify-content: center;
    margin: auto;
    width: 70%;
    opacity: 0.5;
}

/* 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: 15px 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;
}

/* CONTAINER */
.container{
    display: flex;
    width: 100%;
    flex-direction: column;
}

/* LEFT ROW */
.firstRow{
    display: flex;
    float: left;
    width: 100%;
    flex-direction: row;
    margin-top: 15px;
    margin-bottom: 15px;
}

.firstTxt{
    width: 30%;
    margin-left: 2%;
}

.firstImg{
    width: 40%;
    margin-left: 10%;
}

.firstImg img{
    width: 90%;
    float: right;
}

/* SECOND ROW */
.secondRow{
    display: flex;
    float: left;
    width: 100%;
    flex-direction: row;
    margin-top: 15px;
    margin-bottom: 15px;
}

.secondTxt{
    width: 30%;
    margin-left: 2%;
}

.secondImg{
    width: 40%;
    margin-left: 10%;
}

.secondImg img{
    width: 90%;
    float: right;
}

/* CV */
.cv{
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    width: 100%;
}

.cv a:hover{
    color: #0087ca;
    transition: 0.2s;
}

/* 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: 768px) {
    .firstRow{
        flex-direction: column;
        align-items: center;
    }

    .firstImg{
        margin-left: 0;
    }

    .secondRow{
        flex-direction: column;
        align-items: center;
    }

    .secondImg{
        margin-left: 0;
    }

    .firstTxt{
        margin-top: 15px;
        width: 65%;
    }

    .secondTxt{
        margin-top: 15px;
        width: 65%;
    }
}

@media only screen and (max-width: 640px) {
    h1{
        font-size: 150%;
    }
}

@media only screen and (max-width: 500px) {
    h1{
        font-size: 100%;
    }
}


@media only screen and (max-width: 426px) {
    .cv{
        display: flex;
        flex-direction: column;
        width: 100%;
        align-items: center;
    }
}


@media only screen and (max-width: 320px) {
    h1{
        font-size: 85%
    }

    .cv a{
        font-size: 150%;
    }
}