/*! HTML5 Boilerplate v7.2.0 | MIT License | https://html5boilerplate.com/ */

/* main.css 2.0.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: 0.9em;
  line-height: 1.4;
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
  margin: 0px;
  padding: 0px
}

body {
  margin: 0px;
  padding: 0px
}

/*
 * 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;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
  margin: 0.2em 0;
  background: #ccc;
  color: #000;
  padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.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: " ";
  /* 1 */
  display: table;
  /* 2 */
}

.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: transparent !important;
    color: #000 !important;
    /* Black prints faster */
    -webkit-box-shadow: none !important;
    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;
  }
}

nav {
  width: 100%;
  padding: 20px 0px;
  position: fixed;
  top: 0px;
  background-color: white;
  box-shadow: 2px 0px 2px rgba(0, 0, 0, 0.05);
}

.navHolder {
  width: 80%;
  margin: auto;
  display: flex;
  justify-content: space-between;
}

nav a {
  text-decoration: none;
  color: #514E64;
  padding: 0px 10px;
}

nav a:hover {
  color: #ED2024;
}

header {
  height: 70vh;
  width: 100%;
  background-image: url(../img/header-bkg.svg);
  background-size: 100% auto;
  background-position: bottom;
  margin: 0px;
  min-height: 500px;
  background-repeat: no-repeat;
}

header h1 {
  margin: 20vh 0 0 15%;
  font-size: 85px;
  font-weight: 300;
  width: 50%;
  color: #514E64;
  min-width: 850px;
}

header h1 span.orange {
  color: #ED2024;
}

header h1 span.green {
  color: #61C7CD;
}

header h1 span.headline {
  font-weight: bold;
}

header div.scroll {
  height: 50px;
  width: 50px;
  background-color: white;
  border-radius: 35px;
  margin: auto;
  position: absolute;
  left: 50%;
  margin-left: -25px;
  bottom: 50px;

  box-shadow: 2px 0px 2px rgba(0, 0, 0, 0.05);
}

header div.scroll img {
  width: 30%;
  margin-left: 35%;
  margin-top: 20px;
}

header div.scroll p {
  position: absolute;
  width: 150%;
  left: -20%;
  bottom: -45px;
}

.service {
  display: flex;
  justify-content: center;
  margin: 80px 0px;

  padding: 50px 0px;
}

.service .txtHolder {
  width: 30%;
  max-width: 400px;
  margin: 50px 50px 0;
}

.service .txtHolder h3 {
  font-weight: 300;
  font-size: 38px;
  line-height: 56px;
  color: #61C7CD;
}

.service.orange {
  background-color: #fbfbfb;
}

.service.orange .txtHolder {
  text-align: right;
}

.service.orange .txtHolder h3 {
  color: #ED2024;
}

.contentWrapper {
  width: 70%;
  margin: auto;
  margin-top: 20vh;
}

.contentWrapper h2 {
  font-weight: 300;
  font-size: 48px;
  line-height: 56px;

  color: #514E64;
  padding-top: 90px;
}

.clientHolder img.prvi {
  height: 130px;
  margin: 10px;
}

.clientHolder img.drugi {
  height: 100px;
  margin: 10px;
}

footer {
  background: #535461;
  padding: 1px;
}

footer p {
  color: white;
  text-align: center;
}

form {
  width: 60%;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-bottom: 150px; 
}

form input {
  width: 46%;
  height: 50px;
  margin: 20px 0px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 0px 10px
}

form input:first-of-type {
  width: 100%;
}

form input:nth-child(4) {
  width: 100% !important;
}

form input[type=submit] {
  height: 60px;
  background: #ED2024;
  color: white;

  font-weight: 300;
font-size: 16px;
line-height: 21px;

color: #FFFFFF;
}

.navRight{
  margin-top: 10px;
}

@media screen and (max-width: 600px) {

  body{
    max-width: 100%;
    overflow-x: hidden;
  }

  .navHolder {
    width: 100%;
  }

  header h1 {
    margin: 20vh 0 0 10%;
    font-size: 40px;
    font-weight: 300;
    width: 80%;
    min-width: auto;
  }

  header {
    height: 50vh;
    min-height: auto;
  }

  .contentWrapper {
    width: 90%;
  }

  .contentWrapper h2 {
    font-weight: 300;
    font-size: 38px;
  }

  form {
    width: 96%;
  }

  form input {
    width: 100%;
  }

  .clientHolder img.prvi {
    height: 90px;
    margin: 10px;
  }
  
  .clientHolder img.drugi {
    height: 70px;
    margin: 10px;
  }

  .service {
    flex-wrap: wrap;
}

.service .txtHolder {
  width: 100%;
  max-width: auto;
  
  text-align: center;
}

.service.orange .txtHolder {
  text-align: center;
}

.service.orange img {
  margin-top: 70px;
}


}