/*! HTML5 Boilerplate v9.0.0-RC1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.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
   ========================================================================== */
   :root {
    --global-palette1: #08485b;
    --global-palette2: #000000;
    --global-palette3: #042b37;
    --global-palette4: #085065;
    --global-palette5: #0c7594;
    --global-palette6: #109ac3;
    --global-palette7: #a9a9a9;
    --global-palette8: #F7FAFC;
    --global-palette9: #ffffff;
    --global-palette9rgb: 255, 255, 255;
    --global-palette-highlight: var(--global-palette1);
    --global-palette-highlight-alt: var(--global-palette2);
    --global-palette-highlight-alt2: var(--global-palette9);
    --global-palette-btn-bg: var(--global-palette9);
    --global-palette-btn-bg-hover: var(--global-palette9);
    --global-palette-btn: var(--global-palette5);
    --global-palette-btn-hover: var(--global-palette3);
    --global-body-font-family: 'Lato', sans-serif;
    --global-heading-font-family: 'Oxanium', sans-serif;
    --global-primary-nav-font-family: inherit;
    --global-fallback-font: sans-serif;
    --global-display-fallback-font: sans-serif;
    --global-content-width: 1920px;
    --global-content-narrow-width: 481px;
    --global-min-height: 810px;
    --global-calc-content-width: calc(1920px - var(--global-content-edge-padding) - var(--global-content-edge-padding) );
    --wp--style--global--content-size: var(--global-calc-content-width);

    @media (min-width: 1025px){
      --global-p-font-size: 1.125rem;
      --global-testimonial-p-font-size: 1.2rem;      
      --global-content-boxed-padding: 1rem;
      --global-content-edge-padding: 1.5rem;
      --global-header-height: 5rem;
      --global-min-height: 925px;
      --global-flex-direction: row;
      --global-slide-direction: column;
      --global-header-logo-height: 13rem;
      --global-p-margin: .75rem;
    }
    @media (max-width: 1024px) and (min-width: 782px){
      --global-p-font-size: 1.125rem;
      --global-testimonial-p-font-size: 1.2rem;      
      --global-content-boxed-padding: 1rem;
      --global-content-edge-padding: 1.5rem;
      --global-header-height: 4.5rem;
      --global-min-height: 950px;  
      --global-flex-direction: row; 
      --global-slide-direction: column;
      --global-header-logo-height: 12rem;
      --global-p-margin: .75rem;
    }
    @media (max-width: 781px){
      --global-p-font-size: 1.125rem;
      --global-testimonial-p-font-size: 1.2rem;
      --global-content-boxed-padding: .5rem;
      --global-content-edge-padding: .5rem;
      --global-header-height: 4rem;
      --global-min-height: 1350px; 
      --global-flex-direction: column;
      --global-slide-direction: column-reverse;
      --global-header-logo-height: 10rem;           
      --global-p-margin: .75rem;
    }
  }

html {
  color: var(--global-palette3);
  font-size: var(--global-p-font-size);
  font-family: var(--global-body-font-family);
  line-height: 1.4;
}

body{
  margin: 0px;

}
p{
  margin: var(--global-p-margin);
}



/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  text-shadow: none;
}

::selection {
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

.jcWS-testimonial-p-style {
  font-size: var(--global-testimonial-p-font-size);
  font-style: italic;
  font-weight: 300;
  color: var(--global-palette2);
  line-height: 1.2;
}

hr {
  display: block;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;  
  height: 1px;
  border-top: 3px solid var(--global-palette9);
  width: 32%;
  margin: 1rem 0;
}



/*
 * Hero section background
 */
.jcWS-button-style{
  font-style: normal;
  font-weight: 300;
  font-size: 1.325rem;
  font-family: var(--global-heading-font-family);
  border-radius: 0px;
  border: 0px;
  border-color: var(--global-palette6);
  box-shadow: 0px 0px 0px 0px rgba(0,0,0,0);
  background: var(--global-palette-btn-bg);
  color: var(--global-palette-btn);
  box-sizing: border-box;
  box-shadow: inset 0 0 0 3px var(--global-palette6);
  padding: .75rem 1rem;
  position: relative;
  vertical-align: middle;
	background: var(--global-palette9);
  text-align: center;
  text-decoration: none;
}

.jcWS-button-style::before, .jcWS-button-style::after {
  box-sizing: inherit;
  content: " ";
  position: absolute;
  width: 100%;
  height: 100%;
}

.draw {
  transition: color 0.25s;
}
.draw::before, .draw::after {
  border: 3px solid transparent;
  width: 0;
  height: 0;
}
.draw::before {
  top: 0;
  left: 0;
}
.draw::after {
  bottom: 0;
  right: 0;
}
.draw:hover {
  color: var(--global-palette3);
	background: #fff;
}
.draw:hover::before, .draw:hover::after {
  width: 100%;
  height: 100%;
}
.draw:hover::before {
  border-top-color: var(--global-palette3);
  border-right-color: var(--global-palette3);
  transition: width 0.25s ease-out, height 0.25s ease-out 0.25s;
}
.draw:hover::after {
  border-bottom-color: var(--global-palette3);
  border-left-color: var(--global-palette3);
  transition: border-color 0s ease-out 0.5s, width 0.25s ease-out 0.5s, height 0.25s ease-out 0.75s;
}

.jcWS-button-div{
  display: flex;
  gap: var(--global-content-boxed-padding);
  margin: var(--global-content-boxed-padding);
  justify-content: center;
  flex-direction: var(--global-flex-direction);
}

.jcWS-text-div{
  display: block;
}

.jcWS-header-style{
  position: absolute;
  top:0;
  height: var(--global-header-height);
  width: 100%;
  max-width: 100vw;
}

.jcWS-spacer-height{
  display: flex ;
  height: var(--global-header-height);
  min-height:var(--global-header-height) ;
}

.jcWS-hero-section-bg {
  background-image: url('../img/hero-image.webp');
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  width: 100%;
}
.jcWS-logo-background{
  background-image: url('../img/jc-background.png');
  background-size: 16rem;
  background-position: 100% 100%;
  background-repeat: no-repeat;
  width: 100%;
}

.jcWS-old-logo-background{
  background-image: url('../img/CP-projekty-backgound.png');
  background-size: var(--global-header-logo-height);
  background-position: 0 100%;
  background-repeat: no-repeat;
  height: 100%;
}
@media screen and (min-width: 1025px){
	.jcWS-100VH{
	  	height: 100vh;
	  	min-height: 100vh;
	}
}
@media screen and (max-width: 1024px){
	.jcWS-100VH{
		height: var(--global-min-height);
	  	
	}
}

.jcWS-flex-container{
  max-width: var(--global-content-width);
  display: flex;
  flex-direction: row;
}

.jcWS-min-height{
  min-height: var(--global-min-height);
}

.jcWS-flex-column1{
  width: 66.66%;
  display: flex;
  align-items: flex-start;
  
}

.jcWS-flex-column2{
  display: flex;
  width: 33.34%;
}


@media screen and (max-width: 1024px){
  .jcWS-flex-column2{
    display: none;
  
  }

  .jcWS-flex-column1{
    width: 100%;
    justify-content: center;
  }
}
.jcWS-text-div a,.jcWS-text-div a:visited{
  color:var(--global-palette1);
}
.jcWS-text-div a:hover{
  color:var(--global-palette9);
}
.jcWS-padding-all{
  margin: var(--global-content-edge-padding);
}
.jcWS-margin-all-box{
  margin: var(--global-content-boxed-padding);
  margin-left: var(--global-content-edge-padding);
}

.jcWS-padding-all-box{
  padding: var(--global-content-boxed-padding);
}

.jcWS-slide-style{
  display: flex;
  background-color: rgba(16,154,195,0.9);
  width:  fit-content;
  max-width: 30rem;
  height: max-content;
  min-width: 320px;
  padding: var(--global-content-boxed-padding);
  flex-direction: var(--global-slide-direction);
}

/* animation border start */

.animated-box {
  position: relative;
}
.animated-box-offer {
  position: relative;
}
.animated-box:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 0px;
  background: linear-gradient(140deg, #fff, #A9A9A9, #000);
  background-size: 400% 400%;
  clip-path: polygon(0% 100%, 3px 100%, 3px 3px, calc(100% - 3px) 3px, 
              calc(100% - 3px) calc(100% - 3px), 
              3px calc(100% - 3px), 3px 100%, 100% 100%, 100% 0%, 0% 0%);
}
.animated-box-offer:after{
content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 0px;
  background: linear-gradient(140deg, #fff, #A9A9A9, #109AC3);
  background-size: 400% 400%;
  clip-path: polygon(0% 100%, 3px 100%, 3px 3px, calc(100% - 3px) 3px, calc(100% - 3px) calc(100% - 3px), 3px calc(100% - 3px), 3px 100%, 100% 100%, 100% 0%, 0% 0%);

}

.animated-box.in:after {
  animation: frame-enter 1s forwards ease-in-out reverse, gradient-animation 4s ease-in-out infinite;
}
.animated-box-offer.in:after{
 animation: frame-enter 1s forwards ease-in-out reverse, gradient-animation 4s ease-in-out infinite;	
}
/* motion */
@keyframes gradient-animation {
  0% {
    background-position: 15% 0%;
  }
  50% {
    background-position: 85% 100%;
  }
  100% {
    background-position: 15% 0%;
  }
}

@keyframes frame-enter {
  0% {
    clip-path: polygon(0% 100%, 3px 100%, 3px 3px, calc(100% - 3px) 3px, calc(100% - 3px) calc(100% - 3px), 3px calc(100% - 3px), 3px 100%, 100% 100%, 100% 0%, 0% 0%);
  }
  25% {
    clip-path: polygon(0% 100%, 3px 100%, 3px 3px, calc(100% - 3px) 3px, calc(100% - 3px) calc(100% - 3px), calc(100% - 3px) calc(100% - 3px), calc(100% - 3px) 100%, 100% 100%, 100% 0%, 0% 0%);
  }
  50% {
    clip-path: polygon(0% 100%, 3px 100%, 3px 3px, calc(100% - 3px) 3px, calc(100% - 3px) 3px, calc(100% - 3px) 3px, calc(100% - 3px) 3px, calc(100% - 3px) 3px, 100% 0%, 0% 0%);
  }
  75% {
    -webkit-clip-path: polygon(0% 100%, 3px 100%, 3px 3px, 3px 3px, 3px 3px, 3px 3px, 3px 3px, 3px 3px, 3px 0%, 0% 0%);
  }
  100% {
    -webkit-clip-path: polygon(0% 100%, 3px 100%, 3px 100%, 3px 100%, 3px 100%, 3px 100%, 3px 100%, 3px 100%, 3px 100%, 0% 100%);
  }
}


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

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom 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
 */

.visually-hidden {
  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 .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.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
 *
 * 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;
  }

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

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

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

.cubeB {
  position: absolute;
  top: 10vh;
  left: 15vw;
  width: 10px;
  height: 10px;
  border: solid 1px rgba(169,169,169,.8);
  transform-origin: top left;
  transform: scale(0) rotate(0deg) translate(-50%, -50%);
	@media screen and (min-width: 781px){
 		animation: cube 10s ease-in forwards infinite;
	}
}
.cubeB:nth-child(2n) {
  border-color: rgba(16,154,195,.8);
}
.cubeB:nth-child(2) {
  animation-delay: 2s;
  left: 25vw;
  top: 40vh;
}
.cubeB:nth-child(3) {
	border-color: rgba(169,169,169,.8);
  animation-delay: 4s;
  left: 75vw;
  top: 50vh;
}
.cubeB:nth-child(4) {
	border-color: rgba(16,154,195,.8);
  animation-delay: 6s;
  left: 90vw;
  top: 10vh;
}
.cubeB:nth-child(5) {
	border-color: rgba(169,169,169,.8);
  animation-delay: 8s;
  left: 15vw;
  top: 85vh;
}
.cubeB:nth-child(6) {
	border-color: rgba(16,154,195,.8);
  animation-delay: 10s;
  left: 50vw;
  top: 10vh;
}
.cubeB:nth-child(7) {
	border-color: rgba(169,169,169,.8);
  animation-delay: 8s;
  left: 30vw;
  top: 65vh;
}
.cubeB:nth-child(8) {
	border-color: rgba(16,154,195,.8);
  animation-delay: 10s;
  left: 50vw;
  top: 35vh;
}
.cubeB:nth-child(9) {
	border-color: rgba(169,169,169,.8);
  animation-delay: 8s;
  left: 55vw;
  top: 85vh;
}

@keyframes cube {
	
  from {
  transform: scale(0) rotate(0deg) translate(-50%, -50%);
  opacity: 1;
  }
  to {
  transform: scale(20) rotate(960deg) translate(-50%, -50%);
  opacity: 0;
  }

}