* {
  margin: 0;
  padding: 0;
}

html {
  margin: 0;
  scroll-behavior: smooth;
}

body {
  /* background: rgb(44, 38, 38); */
  background-image: linear-gradient(to right, #0f0c29, #302b63, #24243e);
  margin: 0;
  padding: 0;
  font-family: Helvetica Neue, Arial, sans-serif;
  color: rgb(255, 255, 255);
}

a {
  color: white;
  font-style: italic;
  text-decoration: underline;
}
a:hover {
  color: white;
  text-decoration: none;
}

header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  height: 100vh;
}

/* -------------------------Btn -------------------------------------*/

.btn_zobraz {
  display: inline-block;
  border-radius: 4px;
  background-color: #952300;
  border: none;
  color: #ffffff;
  text-align: center;
  font-size: 28px;
  padding: 20px;
  width: 200px;
  transition: all 0.5s;
  cursor: pointer;
  margin: 0 auto;
}
.btn_zobraz span {
  cursor: pointer;
  display: inline-block;
  position: relative;
  transition: 0.5s;
}

.btn_zobraz span:after {
  content: "\00bb";
  position: absolute;
  opacity: 0;
  top: 0;
  right: -20px;
  transition: 0.5s;
}

.btn_zobraz:hover span {
  padding-right: 25px;
}

.btn_zobraz:hover span:after {
  opacity: 1;
  right: 0;
}

.fotoprehlidka {
  margin: 0 auto;
  margin-bottom: 50px;
}

/* ------------------------- Main content -------------------------------------*/

.main {
  display: flex;
  width: 66%;
  margin: 0 auto;
}

.main figure {
  margin: 0 auto;
  text-align: center;
  width: 200px;
}

.main figure:nth-child(2) {
  width: 310px;
}

.main figure:nth-child(odd) {
  padding-top: 110px;
}

.main figure figcaption {
  margin-top: 8px;
}

.carousel {
  border-radius: 55px;
  overflow: hidden;
}

.main figure img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 1px solid white;
  box-shadow: rgb(255, 255, 255) 0 0 8px;
}

#img_koordinatori {
  border: none;
  box-shadow: none;
  width: 310px;
  height: 310px;
}

/* -------------------------Kontakty -------------------------------------*/

.kontakty figure:nth-child(odd) {
  margin-top: 20px;
}

.kontakty {
  margin: 0 auto;
  flex-direction: row;
  display: flex;
  width: 22%;
  margin-top: 50px;

  padding-left: 5px;
}
.kontakty figure {
  margin: 0 50 0 50;
  text-align: center;
  width: 100%;
  font-size: 14px;
}

.kontakty figure img {
  width: 45px;
  border-radius: 15%;
  margin-bottom: 7px;
}

footer {
  text-align: center;
  font-size: 12px;
  background-color: rgba(0, 0, 0, 0.568);
}

/* -------------------------Responzivita -------------------------------------*/

@media only screen and (max-width: 1064px) {
  .main {
    display: flex;
    flex-direction: column;
  }

  .main figure {
    margin: 0 auto 35px auto;
    width: 310px;
  }

  .main figure:nth-child(2) {
    width: 310px;
  }

  .main .dekansky_soudek,
  .main .rocnikove_pohovory {
    order: 1;
  }

  .main figure img {
    width: 310px;
    height: 310px;
  }
  .main figure:nth-child(odd) {
    padding-top: 0px;
  }

  .carousel {
    border-radius: 10px;
    overflow: hidden;
  }

  .kontakty {
    width: 100%;
    margin: 0 auto;
  }
}

@media only screen and (max-width: 800px) {
  .main figure img {
    width: 250px;
    height: 250px;
  }
  .main figure {
    margin: 0 auto 35px auto;
    width: 250px;
  }

  #img_koordinatori {
    width: 250px;
    height: 250px;
  }
}

@media only screen and (max-width: 1396px) {
  .kontakty {
    width: 60%;
    margin: 0 auto;
    margin-top: 50px;
  }
}

@media only screen and (max-width: 640px) {
  .main figure img {
    width: 200px;
    height: 200px;
  }
  .main figure {
    margin: 0 auto 35px auto;
    width: 200px;
  }

  #img_koordinatori {
    width: 200px;
    height: 200px;
  }

  .kontakty {
    width: 100%;
    margin: 0 auto;
  }
}
