/*! HTML5 Boilerplate v8.0.0 | MIT License | https://html5boilerplate.com/ */

/* main.css 2.1.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

body {
  font-family: 'Montserrat', sans-serif;
  overflow-x: hidden; 
  color: #707070;
  font-size: 18px;
  padding: 0px; margin: 0px;
}

section { margin-bottom: 50px;}
section h2 { margin-bottom: 50px;}
section p { padding-bottom: 30px;}

h2 {
  font-weight: 700;
  font-size: 30px;
  text-align: center;
  color: #707070;
  padding-top: 50px;
  padding-bottom: 50px;
  background: url('../img/background-nadpis.png'); background-position: center bottom; background-repeat: no-repeat;
}

header { 
  height: 700px;
  position: relative;
  background: url('../img/background-header.jpg'); background-position: center bottom; background-repeat: no-repeat;
}

header .container { position: relative;  }

header .logo { position: absolute; top: 40px; left: 100px; width: 240px; height: 40px;  }

header nav { position: absolute; top: 30px; right: 100px;}
nav ul li { list-style: none; display: inline-block; padding: 20px; }
nav ul li a {
   text-align: center;
   font: normal normal 300 18px/22px Montserrat;
   letter-spacing: 0px;
   color: #707070; text-decoration: none; }
nav a:hover { color: #E44218; font-weight: 400; }   

header .otvirak { position: absolute; right: 50%; top: 30%; max-width: 50%; padding: 20px; text-align: center; padding-top: 300px; display: block; width: 100%;}
.otvirak h2 { text-align: left; font-weight: normal; font-size: 20px; background: none; padding-bottom: 0px;}
.otvirak h1 { color: #E44218; font-size: 60px; font-weight: 800;border: 1px #707070 solid;  background: rgba(255,255,255,0.3); padding: 50px; width: 110%;  }
.otvirak h1 span { color: #707070; }


#reference { background: #E44218;}

#reference h2 {
  color: #fff;
  background: url('../img/background-nadpis-inv.psng'); background-position: center bottom; background-repeat: no-repeat; padding-bottom: 0px; margin-bottom: 0px;
}

#reference p {
  color: #fff;
  background: url('../img/background-nadpis-inv.png'); background-position: center bottom; background-repeat: no-repeat;
  padding-top: 20px;
  padding-bottom: 50px;
  margin-bottom: 50px !important;
}

.clovek {
  font-size: 18px;
}

.clovek h3 { font-style: normal; font-size: 18px; }
.clovek span { font-weight: 800;}

.adresaa { padding-right: 100px;}
.adresa span { font-weight: 800;}

#reference p , #sluzby .uvod , #mise p { max-width: 700px; margin: 0 auto; text-align: center; }
#reference p { color: #fff;}

.article { position: relative; padding: 0px; margin: 0px; float: left; width: 100%; }

.article:hover * {
-webkit-transition    : all .5s ease;
    -moz-transition       : all 0.3s ease;
    -o-transition         : all 0.3s ease;
    -ms-transition        : all 0.3s ease;
    transition            : all 0.3s ease;
  
}

.article img { height: 360px;}
.article:hover p {
  position: absolute; top: 0px !important; padding-top: 150px !important;
  width: 100%; height: 360px;
  background: rgba(230, 59, 17, 0.7);
  background-size: cover;
  top: 0;
}
.article:hover h3 {
  position: absolute; top: 0px !important; margin-top: 50px;
  padding: 0px; font-size: 30px; color: #000; width: 100%; height: auto;
  top: 0;
}

#sluzby .nabizime .col-md-6 { height: 360px; padding: 0 !important; margin: 0 !important; overflow: hidden;}
#sluzby .article h3 { color: #000; font-weight: 700; padding: 15px; z-index: 1002; position: absolute; text-align: center; font-size: 25px; width: 100%; top: 130px; text-transform: uppercase;}
#sluzby .article p { color: #fff; height: 360px; text-align: center; padding: 40px; width: 100% !important; font-size: 16px; }


#kontakt { background: url('../img/background-footer.jpg'); background-position: -200px bottom; background-repeat: no-repeat; min-height: 700px; margin-bottom: 0px;}

#kontakt h2 { padding-top: 0px; margin-bottom: 0px;}
.clovek, .adresa { padding-top: 30px; padding-bottom: 30px; }
#kontakt .clovek { text-align: center; padding-bottom: 30px;}
.ad_adresa { border-left: 1px #000 solid; padding-left: 40px; }

.clovek h3 { padding-top: 15px;}
#kontakt .clovek img { text-align: center; max-width: 200px; height: 200px; margin: 0 auto; }



.gallery {
  position: relative;
  margin: 30px 0 0 150px;
  text-align: center;
  padding-bottom: 50px;
  /* usually an «overflow:hidden» is set here */
}

#reference { text-align: center; color: #fff; padding-bottom: 50px;}
#reference img { width: 222px; height: 222px; }




footer { color: #fff; background: #E44218; text-align: center; padding-bottom: 0; border: 1px #E44218 solid; }
footer p { padding: 0px; padding-top: 15px;}
footer a { color: #fff; text-decoration: none;}
footer a:hover { color: #fff;}

.center {
  padding: 70px 0;
  border: 3px solid green;
  text-align: center;
}

/* MOBIL •/

/* Smartphones (portrait and landscape) ----------- */
@media only screen
and (min-device-width : 320px)
and (max-device-width : 480px) {
  header { height: 100vh; background-position: center top;}
  header .otvirak { max-width: 100% !important;}
  .otvirak { position: initial !important; margin-top: 0px; margin-right: 30px; width: 100% !important;  }
  .otvirak h1 { font-size: 34px; padding: 10px; width: 100%;}
  nav { display: none;}
  #reference .col { padding-bottom: 15px;}
  .adresa {  }
  .ad_adresa { border: 0px; text-align: center;  padding-left: 0 !important; }
  #kontakt { background: none; text-align: center;}

/* Styles */
}

/* Smartphones (landscape) ----------- */
@media only screen
and (min-width : 321px) {
/* Styles */
}

/* Smartphones (portrait) ----------- */
@media only screen
and (max-width : 320px) {
/* Styles */
}

/* iPads (portrait and landscape) ----------- */
@media only screen
and (min-device-width : 768px)
and (max-device-width : 1024px) {
  header { height: 100vh; background-position: center top;}
  .otvirak { position: initial !important; margin-top: 0px; }
  .otvirak h1 { font-size: 34px; }
  nav { display: none;}
  #reference .col { padding-bottom: 15px;}
  .ad_adresa { border: 0px; text-align: center;}
  #kontakt { background: none; text-align: center;}

/* Styles */
}

/* iPads (landscape) ----------- */
@media only screen
and (min-device-width : 768px)
and (max-device-width : 1024px)
and (orientation : landscape) {
/* Styles */
}

/* iPads (portrait) ----------- */
@media only screen
and (min-device-width : 768px)
and (max-device-width : 1024px)
and (orientation : portrait) {
/* Styles */
}

/* Desktops and laptops ----------- */
@media only screen
and (min-width : 1224px) {
/* Styles */
}

/* Large screens ----------- */
@media only screen
and (min-width : 1824px) {
/* Styles */
}

/* iPhone 4 ----------- */
@media
only screen and (-webkit-min-device-pixel-ratio : 1.5),
only screen and (min-device-pixel-ratio : 1.5) {

/* Styles */
}


/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.sr-only {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .sr-only class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.sr-only.focusable:active,
.sr-only.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: " ";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  /*
   * Printing Tables:
   * https://web.archive.org/web/20180815150934/http://css-discuss.incutio.com/wiki/Printing_Tables
   */
  thead {
    display: table-header-group;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}

