html {
  scroll-behavior: smooth;
}

*, ::after, ::before {
  box-sizing: border-box;
}

.clear-float {
  clear: both;
}

a.page-anchor {
  display: block;
  padding-top: 5rem;
}

body {
  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
  text-align: left;
  margin: 0;
  background-color: whitesmoke;
  min-width: 320px;
  min-height: 320px;
}

.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
  margin-bottom: .5rem;
  font-weight: 500;
  line-height: 1.2;
}

h2 {
  color: #0D699B;
  width: 100%;
  margin: 2rem 0;
  text-align: center;
  padding: 0 2rem;
  font-size: 1.8rem;
}

h2:before {
  content: url(./img/h2Icon.png);
  padding-right: 10px;
}

h3 {
  border-bottom: 1px solid #0D699B;
  color: #0D699B;
  width: 100%;
  margin: 0 0 1rem 0;
  padding-left: 1.5rem;
  padding-bottom: 5px;
  font-size: 1.75rem;
}

h4 {
  font-size: 1.3rem;
  margin-left: 0.5rem;
}

a {
  color: #0D699B;
  text-decoration: none;
  background-color: transparent;
}

a:hover {
  text-decoration: underline;
}

div.header {
  position: relative;
  height: 25rem;
  background-color: rgb(0, 45, 143);
  background-image: linear-gradient(to right, rgba(0, 45, 143, 1) 0%, rgba(0, 45, 143, 0.0) 100%), url('./img/hdr-v-s.jpg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

div.header p {
  position: absolute;
  right: 0rem;
  width: 100%;
  margin: 0;
  padding: 0;
  color: rgba(255,255,255, 0.95);
  text-shadow: 0.2rem 0.2rem 2rem rgba(0,0,0, 0.80);
}

div.header .nadpis {
  top: 0;
  left: 0;
  /*font-family: 'Times New Roman', Times, serif; */
  font-weight: 600;
  font-size: 4.5rem;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

div.header .nazev {
  top: 6rem;
  left: 0;
  /*  font-family: 'Times New Roman', Times, serif; */
  font-weight: 500;
  font-size: 2.5rem;
  text-align: center;
}

div.header .moto {
  bottom: 1.5rem;
  left: 0;
  font-size: 1rem;
  text-align: center;
  text-shadow: 0 0 0.5rem rgba(0,0,0, 1);
}

@media screen and (orientation:landscape) {

  /* for lanscape displays */
  div.header {
    height: 12rem;
    background-image: linear-gradient(to right, rgba(0, 45, 143, 1) 0%, rgba(0, 45, 143, 0) 100%), url('./img/hdr-h-s.jpg');
  }

}

/* ---------  navbar --------------- */
#navbar {
  overflow: hidden;
  background-color:midnightblue;
  background-image: url('./img/nav.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  align-items: center;
  box-shadow: 0 5px 15px rgba(0,0,0, 0.3);
  z-index: 1020;
  position: sticky;
  top: 0;
}

#navbar ul {
  display: flex;
  flex-direction: row;
  padding: 0;
  margin: 0;
  list-style: none;
  justify-content: center;
}

/* Navbar links */
#navbar a {
  float: left;
  display: block;
  color: rgba(255,255,255, 0.75);
  text-align: center;
  padding: 14px;
  text-decoration: none;
}

#navbar a:hover {
  color: rgba(255,255,255, 1);
}

.kontakty-odstavec {
  margin-left: 3rem;
}

/* ---------  col-body --------------- */
div.col-body {
  max-width: 1024px;
  width: 100%;
  margin: 0 auto 0 auto;
  padding: 0; 

  background-color: whitesmoke;
}

div.col-body>div.row {
  padding: 10px 0;
  width: 100%;
/*  border-top: 1px solid rgba(0,0,128, 0.3); 
  border-bottom: 1px solid rgba(128,0,0, 0.3); */
}

div.col-body>div.row div.col-body-icons {
  float: left;
  padding: 0;
  width: 100%;
  text-align: center;
/*  border: 1px solid rgba(0,128,0, 0.3);  */
}

div.col-body>div.row div.col-body-icons .ikony {
  margin: 4rem 0 0 0;
}

div.col-body>div.row div.col-body-text {
  float: left;
  padding: 0;
  margin-bottom: 2rem;
  width: 100%;
/*  border: 1px solid rgba(255,0,255, 0.3);  */
}

div.col-body>div.row div.col-body-text p.odstavec {
  text-align: justify;
  padding: 10px;
}

iframe.mapa {
  width: 100%;
  height: 350px;
  border: none;
}

div.footer {
  width: 100%;
  padding: 0 1rem;
  margin: 0 auto;
  background-color: silver;
  background-image: url('./img/Footer.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
/*  border-top: 1px solid gray; */
  font-size: smaller;
}

div.footer a {
  color: rgba(0,0,0, 0.66);
}

div.footer>div.footer-body {
  padding: 10px 0;
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
/*  border-top: 1px solid rgba(0,0,128, 0.3); 
  border-bottom: 1px solid rgba(128,0,0, 0.3); */
}

div.footer .f1, 
div.footer .f2,
div.footer .f3 {
  float: left;
  width: 100%;
  margin: 0;
  padding: 1rem 2rem;
  text-align: center;
}
/*
div.footer .f1 {
  border: 1px solid red;
}

div.footer .f2 {
  border: 1px solid green;
}

div.footer .f3 {
  border: 1px solid blue;
}
*/
div.footer ul {
  display: inline-block;
  margin: 0 auto; 
  text-align: center; 
  list-style: none; 
  padding: 0; 
  font-size: medium;
  line-height: 220%;
}

div.footer .copyright {
  padding: 1rem;
  margin: 0;
  text-align: center;
  color: rgba(0,0,0, 0.66);
}


@media screen and (min-width: 600px) {
  /* For tablets: */
 
  div.header {
    height: 16rem;
    background-image: linear-gradient(to right, rgba(0, 45, 143, 1) 0%, rgba(0, 45, 143, 0.0) 100%), url('./img/hdr-v-m.jpg');
  }

  @media screen and (orientation:landscape) {
    /* for lanscape displays */
    div.header {
      height: 16rem;
      background-image: linear-gradient(to right, rgba(0, 45, 143, 1) 0%, rgba(0, 45, 143, 0) 100%), url('./img/hdr-h-m.jpg');
    }
  }

  div.header .nadpis, 
  div.header .nazev,
  div.header .moto  {
    padding-left: 1rem;
    text-align: left;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  div.col-body {
    width: 90%;
  }
  
  div.col-body>div.row div.col-body-icons {
    width: 30%;
  }
  
  div.col-body>div.row div.col-body-icons .ikony {
    margin: 4rem 0 0 0;
  }
  
  div.col-body>div.row div.col-body-text {
    width: 70%;
  }
  
  iframe.mapa {
    height: 350px;
    border: 1px solid silver;
    box-shadow: 5px 5px 15px rgba(0,0,0, 0.3);
    overflow: hidden;
    border-radius: 4px;
  }

  div.footer .f1 {
    width: 50%;
  }
  
  div.footer .f2 {
    width: 50%;
  }
  
  div.footer .f3 {
    width: 100%;
  }

  div.footer ul {
    text-align: left;
  }

}


@media screen and (min-width: 1000px) {
  /* For desktops: */
  
  div.header {
    height: 20rem;
    background-image: linear-gradient(to right, rgba(0, 45, 143, 1) 0%, rgba(0, 45, 143, 0.0) 100%), url('./img/hdr-v-l.jpg');
  }

  @media screen and (orientation:landscape) {
    /* for lanscape displays */
    div.header {
      height: 20rem;
      background-image: linear-gradient(to right, rgba(0, 45, 143, 1) 0%, rgba(0, 45, 143, 0) 100%), url('./img/hdr-h-l.jpg');
    }
  }

  h2 {
    text-align: left;
    font-size: 2.7rem;
  }
  
  div.col-body {
    width: 60%;
  }
  
  div.col-body>div.row div.col-body-icons {
    width: 250px;
    text-align: left;
  }
  
  div.col-body>div.row div.col-body-icons .ikony {
    margin: 4rem 0 0 20%;
  }
  
  div.col-body>div.row div.col-body-text {
    width: calc( 100% - 250px );
  }

  div.footer .f1 {
    width: 33%;
  }
  
  div.footer .f2 {
    width: 33%;
  }
  
  div.footer .f3 {
    width: 33%;
  }

}