/*! 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: #000;
  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;
}

button {
  cursor: pointer;
}

img,
picture {
  max-width: 100%;
  vertical-align: middle;
}

picture img {
  width: 100%;
}

*,
*:before,
*:after {
  box-sizing: border-box;
}

p {
  margin-top: 0;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 900;
}

.nobreak {
  white-space: nowrap;
}

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

body {
  font-family: 'Barlow', sans-serif;
  font-size: 16px;
  line-height: calc(22/16);
}

.main-wrap {
  width: 100%;
  overflow-x: hidden;
}

/* header */
.site-header {
  padding-bottom: 25px;
}

.logo {
  width: 120px;
  display: inline-block;
}

/* general */
.cta {
  padding: 12px 30px;
  background-color: #DD1961;
  border-radius: 50px;
  color: #fff;
  text-decoration: none;
  text-align: center;
  display: inline-block;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.cta--disabled {
  opacity: 0.4;
}

.cta span {
  display: inline-flex;
  align-items: center;
}

.cta span:after {
  content: "";
  width: 10px;
  height: 15px;
  margin-left: 15px;
  display: inline-block;
  background: transparent url('../img/arrow.svg') 0 0 no-repeat;
  transition: 0.2s all;
}

.cta:not(.cta--disabled):hover span:after {
  transform: translateX(3px);
}

.cta--large {
  padding-top: 20px;
  padding-bottom: 20px;
  font-size: 24px;
}

h1 {
  font-size: 35px;
  text-align: center;
}

h1 em {
  color: #DD1961;
  font-style: normal;
}

h2 {
  margin-bottom: 1rem;
  font-size: 30px;
}

/* hero */
.hero {
  margin-bottom: 4rem;
}

.hero__content {
  padding: 0 35px;
}

/* section */
.section {
  margin-bottom: 4rem;
  max-width: 1400px;
  margin-right: auto;
  margin-left: auto;
}

.section__content {
  padding: 0 35px;
}

.section__content .cta {
  margin-bottom: 2rem;
}

.section__visual {
  display: flex;
  align-items: center;
}

@media (max-width: 1400px) {

  .section__visual {
    overflow: hidden;
  }

}

.section__visual img,
.section__visual picture {
  display: block;
}

.section--r .section__visual {
  justify-content: flex-end;
}

/* .section--r .section__visual img, */
.section--r .section__visual picture {
  margin-right: -25%;
}

/* .section--l .section__visual img, */
.section--l .section__visual picture {
  margin-left: -25%;
}

/* special */
.special h2 {
  padding: 0 15px;
  margin: 3rem 0 2rem 0;
  text-align: center;
}

.special-razredna,
.special-predmetna {
  transition: 0.3s all ease-in-out;
}

.special-razredna:hover {
  transform: translateX(-25px);
}

.special-predmetna:hover {
  transform: translateX(25px);
}

.pattern-1:before,
.pattern-2:before,
.pattern-3:before {
  content: "";
  position: absolute;
  z-index: -1;
  opacity: 0.5;
  max-width: 100vw;
  background-size: cover;
}

.pattern-1:before {
  width: 1254px;
  height: 1254px;
  right: 0;
  background: transparent url(../img/pattern-1.svg) 0 0 no-repeat;
}

.pattern-2:before {
  width: 978px;
  height: 1613px;
  left: 0;
  background: transparent url(../img/pattern-2.svg) 0 0 no-repeat;
}

.pattern-3:before {
  width: 851px;
  height: 1613px;
  right: 0;
  background: transparent url(../img/pattern-3.svg) 0 0 no-repeat;
}

/* claim */
.claim {
  padding-top: 60px;
  text-align: center;
}

.claim h3 {
  margin-bottom: 3rem;
  color: #fff;
  font-size: 26px;
}

.claim h3 span:first-child {
  padding: 20px 40px 30px 20px;
  background: transparent url(../img/pink.svg) center / contain no-repeat;
  white-space: nowrap;
}

.claim h3 span:last-child {
  padding: 10px;
  background: transparent url(../img/green.svg) center / contain no-repeat;
  white-space: nowrap;
  position: relative;
  top: 10px;
}

/* footer */
.site-footer {
  padding: 50px 25px;
  text-align: center;
  font-size: 12px;
}

@media (max-width: 768px) {

  .section__visual img,
  .section__visual picture {
    max-height: 300px;
  }

}

@media (min-width: 768px) {

  body {
    font-size: 20px;
  }

  h1 {
    text-align: left;
  }
  
  h2 {
    margin-top: 0;
    font-size: 45px;
  }
  
  .cta {
    padding-top: 16px;
    padding-bottom: 16px;
  }
  
  .hero {
    max-width: 1666px;
    margin-right: auto;
    margin-left: auto;
    display: flex;
    align-items: center;
  }
  
  .hero__visual {
    display: flex;
    align-items: center;
  }
  
  /* .hero__visual img, */
  .hero__visual picture {
    max-width: 120%;
  }
  
  .hero__content {
    min-width: 400px;
    max-width: 600px;
  }

  .section {
    display: flex;
  }

  .section--l {
    flex-direction: row-reverse;
  }

  .section__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
  }

  .special-boxes {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
  }

  .claim h3 {
    margin-bottom: 5rem;
    font-size: 65px;
  }

  .claim h3 span:first-child {
    padding: 20px 90px 50px 40px;
  }

  .claim h3 span:last-child {
    padding: 30px;
    top: 20px;
  }

}

@media (max-width: 1023px) {


  .special-predmetna {
    text-align: right;
  }

  .special-razredna-desktop,
  .special-predmetna-desktop {
    display: none;
  }

}

@media (min-width: 1024px) {

  h1 {
    font-size: 60px;
  }

  .hero__content {
    min-width: 600px;
  }

  .section {
    margin-bottom: 6rem;
  }

  .section__content {
    width: 656px;
    flex-shrink: 0;
  }

  /* .section__visual img, */
  .section__visual picture {
    max-width: 130%;
  }

  .section--r .section__visual {
    margin-left: auto;
  }

  .section--r .section__content {
    margin-left: auto;
  }

  .section--l .section__visual {
    margin-right: auto;
  }

  .section--l .section__content {
    margin-right: auto;
  }

  .special-razredna-mobile,
  .special-predmetna-mobile {
    display: none;
  }

}

/* videos */
.videos {
  padding: 30px;
  margin-bottom: 6rem;
  background-color: #F68F54;
}

.videos-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.video-holder {
  height: 0;
  padding-bottom: 56.25%;
  overflow: hidden;
  position: relative;
  border-radius: 25px;
}

.video-slide {
  padding: 15px;
}

.video-inner {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.video-inner iframe {
  width: 100%;
  height: 100%;
}

.slick-arrow {
  padding: 0;
  position: absolute;
  z-index: 2;
  top: 50%;
  margin-top: -40px;
  border: none;
  background: none;
  font-size: 0;
  width: 50px;
  height: 80px;
}

.slick-prev {
  left: -30px;
  background: transparent url(../img/arrow-prev.svg) center no-repeat;
}

.slick-next {
  right: -30px;
  background: transparent url(../img/arrow-next.svg) center no-repeat;
}


/* ==========================================================================
   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;
  }
}

