/* ------------------------------------------------------------------------------ */
/* ------------------------------------------------------------- 6.0/00 - 15-12-2022
/* colors   -> #EE741D | rgba(238,116,29) | hsla(25,86%,53%) */
/* ------------------------------------------------------------------------------ */
/* link     -> https://codepen.io/shshaw/pen/RyzaYY */
/* info     -> start2slider */
/* ------------------------------------------------------------------------------ */
/* ROOT and VARIABLES */

@font-face {
  font-family: 'Oxanium';
  src: url('fonts/Oxanium-VariableFont_wght.ttf') format('truetype');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Anodina-Light';
  src: url('fonts/Anodina-Light.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
	--hover-bgr:hsla(210,100%,56%,1);
    
    /* cards */
    --card-front-col: rgba(0,0,0,.6); /* black, gray OR client-color */
    --card-front-bgr: #fff;
    --card-back-col: #fff;
    --card-back-bgr: #EE741D;
    --card-ibox-hgt: 14rem;         /* min-height of the card - depends of the text card-back - def 14rem */
    --card-body-bdr: 1px solid rgba(0,0,0,.05);     /* border - def 1px */
    /* grid-area */
    --grid-area-gap: 1rem;          /* gap between flipboxes - def 1rem | min .3rem - check used shadow */
    --grid-area-pad: 1rem;          /* padding - check card-border-radius - def 1rem | min .3rem */
    --grid-area-bgr: none;          /* background - def none */
    --grid-area-bdr: 0px solid rgba(0,0,0,.25);     /* border - def 0px  */
    --grid-area-rad: 0rem;          /* border-radius - def 0rem */
    /* counter - card-front */ 
    --count-color: rgb(255,255,255,.6);  /* color of the counter - must be the same as card-back-background AND no transparent */
    --count-size: 3.6rem;                 /* counter size - def 4rem */
    /*--count-pos-top:1.4rem;             /* counter position top - def 1rem */
    /*--count-pos-right:1rem;             /* counter position right - def 1.2rem */
    --count-pos-left: 2rem;       /* counter position left - NOT IN USE */
    --count-pos-bottom: .8rem;     /* counter position bottom - NOT IN USE */ 
    --count-width: 1px;             /* counter stroke - def 1px | max 3px */
    /* animation */
    --time-flip: 0.8s;              /* def 0.8s */
	}

/* ------------------------------------------------------------------------------ */
/* ------------------------------------------------------------ 6.0/00 - 29-11-22 */
/* RESET COUNTER -> SEE design.css */
/* START2SLIDER */

/*@import url("https://fonts.googleapis.com/css?family=Raleway:400,800");
@import url("https://fonts.googleapis.com/css?family=Oswald:500");*/

::-moz-selection {
  background-color: #2256A1;
  color: white;
}
::selection {
  background-color: #2256A1;
  color: white;
}

#site {
  display: grid;
  grid-template-rows: 3fr 2fr;
  grid-template-columns: 4rem 1fr 1fr 5rem;
  width: 90vw;
  height: 90vh;
  box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.1);
  background-color: #fff;
  color: #000;
  font-family: 'Oxanium', sans-serif;
  overflow: hidden;
}
#site * {
  transition: all 0.6s cubic-bezier(0.2, 0, 0.2, 1);
}

#site {
  --total: 4;
  --scene: 1;
  --percentage: calc(var(--scene) / var(--total));
}

input[name=scene] {
  position: absolute;
  top: 0;
  left: -100%;
  visibility: hidden;
  z-index: 5;
}

input[value="1"]:checked ~ #site {
  --scene: 1;
}

input[value="2"]:checked ~ #site {
  --scene: 2;
}

input[value="3"]:checked ~ #site {
  --scene: 3;
}

input[value="4"]:checked ~ #site {
  --scene: 4;
}

input[value="1"]:checked ~ * [data-scene]:not([data-scene="1"]),
input[value="2"]:checked ~ * [data-scene]:not([data-scene="2"]),
input[value="3"]:checked ~ * [data-scene]:not([data-scene="3"]),
input[value="4"]:checked ~ * [data-scene]:not([data-scene="4"]) {
  pointer-events: none;
}
input[value="1"]:checked ~ * [data-scene]:not([data-scene="1"]) .heading, input[value="1"]:checked ~ * [data-scene]:not([data-scene="1"]) .paragraph, input[value="1"]:checked ~ * [data-scene]:not([data-scene="1"]) .fact,
input[value="2"]:checked ~ * [data-scene]:not([data-scene="2"]) .heading,
input[value="2"]:checked ~ * [data-scene]:not([data-scene="2"]) .paragraph,
input[value="2"]:checked ~ * [data-scene]:not([data-scene="2"]) .fact,
input[value="3"]:checked ~ * [data-scene]:not([data-scene="3"]) .heading,
input[value="3"]:checked ~ * [data-scene]:not([data-scene="3"]) .paragraph,
input[value="3"]:checked ~ * [data-scene]:not([data-scene="3"]) .fact,
input[value="4"]:checked ~ * [data-scene]:not([data-scene="4"]) .heading,
input[value="4"]:checked ~ * [data-scene]:not([data-scene="4"]) .paragraph,
input[value="4"]:checked ~ * [data-scene]:not([data-scene="4"]) .fact {
  transform: translateX(-25%);
  opacity: 0;
}

input[value="1"]:checked ~ * [data-scene="1"] + [data-scene] .heading, input[value="1"]:checked ~ * [data-scene="1"] + [data-scene] .paragraph, input[value="1"]:checked ~ * [data-scene="1"] + [data-scene] .fact,
input[value="2"]:checked ~ * [data-scene="2"] + [data-scene] .heading,
input[value="2"]:checked ~ * [data-scene="2"] + [data-scene] .paragraph,
input[value="2"]:checked ~ * [data-scene="2"] + [data-scene] .fact,
input[value="3"]:checked ~ * [data-scene="3"] + [data-scene] .heading,
input[value="3"]:checked ~ * [data-scene="3"] + [data-scene] .paragraph,
input[value="3"]:checked ~ * [data-scene="3"] + [data-scene] .fact,
input[value="4"]:checked ~ * [data-scene="4"] + [data-scene] .heading,
input[value="4"]:checked ~ * [data-scene="4"] + [data-scene] .paragraph,
input[value="4"]:checked ~ * [data-scene="4"] + [data-scene] .fact {
  transform: translateX(25%);
}

.ocean {
  grid-row: 1/2;
  grid-column: 1/-1;
  background-color: blue;
  background-image: url('../content/image-01-1920.webp');
  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden;
}

.ocean-text {
  display: inline-block;
  white-space: nowrap;
  font-size: 25vh; /* self 45vh */
  text-transform: uppercase;
  font-weight: bold;
  font-family: "Raleway", sans-serif;
  position: relative;
  background-image: url('../content/image-03-1920.webp');
  background-size: 160% auto;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  background-position: calc( 25% + (-50% * var(--percentage)) ) 0; /* self - */
  transform: translateX(calc( 50% + ( -100% * var(--percentage) ) ));
}

.left-content {
  float: left;
  grid-row: 2/4;
  grid-column: 2/3;
}
.left-content .layer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.left-content .layer > .subtitle {
  font-weight: bold;
  color: #0D3D4D;
}
.left-content .layer > .subtitle, .left-content .layer > .description {
  font-size: 0.75rem;
}
.left-content .layer > .subtitle, .left-content .layer > .number {
  color: #0D3D4D;
}
.left-content .layer > .number {
  font-size: 2rem;
  font-weight: bold;
  letter-spacing: -1px;
}

.right-content {
  grid-row: 2/4;
  grid-column: 3/-1;
}
.right-content > .layer {
  padding: 3rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.right-content > .layer > .heading {
  margin: 0;
  font-size: 1rem;
  color: #0D3D4D;
}

/* ---------------------------------- */
.slide-nav {
  position: absolute;
  bottom: 100%;
  right: 0;
  display: flex;
}

.nav-button {
  display: inline-block;
  padding: 0.5em 1em;
  background: #F9FBFB;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  font-weight: bold;
  text-transform: uppercase;
  overflow: hidden;
  color: #8CAAB7;
}
.nav-button.-next {
  color: #2D4451;
  background: #CEDBE5;
}
.nav-button .nav-toggle {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  opacity: 0;
  transform: translateX(0);
  transition: transform 0.5s linear 0s;
  z-index: 1;
}

input[value="1"]:checked ~ * .-next .nav-toggle:not([for=scene-2]),
input[value="2"]:checked ~ * .-next .nav-toggle:not([for=scene-3]),
input[value="3"]:checked ~ * .-next .nav-toggle:not([for=scene-4]),
input[value="4"]:checked ~ * .-next .nav-toggle:not([for=scene-1]),
input[value="1"]:checked ~ * .-prev .nav-toggle:not([for=scene-4]),
input[value="2"]:checked ~ * .-prev .nav-toggle:not([for=scene-1]),
input[value="3"]:checked ~ * .-prev .nav-toggle:not([for=scene-2]),
input[value="4"]:checked ~ * .-prev .nav-toggle:not([for=scene-3]) {
  transform: translateX(100%);
  z-index: 3;
  transition-delay: 0.5s !important;
}

.top-nav {
  grid-column: 2/3;
  grid-row: 1/2;
  margin-top: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  z-index: 2;
  color: #FFF;
  font-weight: bold;
  text-shadow: 0 1px 1em rgba(0, 0, 0, 0.4);
}

/* ---------------------------------- */
.left-side {
  grid-row: 1/2;
  grid-column: 2/3;
  font-size: 4rem;
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  overflow: hidden;
}

.page-numbers {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 1.6em; /* self */
  width: 100%;
  display: flex;
  align-items: flex-end;
  padding: 1rem; /* self */
  overflow: hidden;
  color: #fff;
  background: rgb(0,0,0,.6);
  border: 1px solid rgb(255,255,255.6);
  transform: translateY(0.5rem);
}
.page-numbers:after {
  content: "/ " attr(data-total);
  font-size: 1rem;
  position: absolute;
  top: 1rem;
  left: 7.2rem;
  opacity: 0.7;
}

.page-number {
  display: inline-block;
}
.page-number.-ones {
  transform: translateY(calc((var(--total) - var(--scene)) * (100% / var(--total))));
}

.hero {
  grid-row: 1/2;
  grid-column: 3/-1;
  color: #FFF;
}
.hero > .layer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.hero .heading {
  text-transform: uppercase;
  letter-spacing: 2px;
}
.hero .button {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  border: none;
  padding: 1.2rem;
  background-color: #0D3D4D;
  color: white;
  font-size: 1.2rem;
  font-family: inherit;
}

.layer {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  margin: auto;
}

*, *:before, *:after {
  box-sizing: border-box;
  position: relative;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
}

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}


/* ------------------------------------------------------------------------------ */
/* ------------------------------------------------------------ 6.0/00 - 21-08-22 */
/* css-counter postion background */
/* https://stackoverflow.com/questions/43514987/css-increasing-number-as-background-images-for-css */	
.no-class::before { 
	position:absolute;
  display:flex;
	/*top:var(--count-pos-top);*/
  /*right:var(--count-pos-right);*/
  bottom:var(--count-pos-bottom);
  left:var(--count-pos-left);
	justify-content:center;
  align-items:center;
  counter-increment:Element 1;
	content:counter(Element) '';
	font-size:var(--count-size); 
	font: 800 Arial;
	  -webkit-text-fill-color:transparent; /* works FF, Chrome and Edge */
	  -webkit-text-stroke:var(--count-width,1px);
	  -webkit-font-smoothing:antialiased;
	color:var(--count-color); /* must be the same color als card-back background */
    opacity:1;
	/*z-index:999;*/
	}
/* shadow */
/*
.shadow, .flex-item {
  box-shadow: 0 -1px 1px rgba(0, 0, 0, 0.04), 0 2px 2px rgba(0, 0, 0, 0.04), 0 4px 4px rgba(0, 0, 0, 0.04), 0 8px 8px rgba(0, 0, 0, 0.04), 0 16px 16px rgba(0, 0, 0, 0.04);
}
*/	
/* ------------------------------------------------------------------------------ */
/* END */	
/* ------------------------------------------------------------------------------ */