/* ------------------------------------------------------------------------------ */
/* ------------------------------------------------------------- 6.0/00 - 26-12-2022
/* colors   -> #EE741D | rgba(238,116,29) | hsla(25,86%,53%) */
/* ------------------------------------------------------------------------------ */
/* link     -> https://codepen.io/manukn/pen/geoaxM */
/* 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 - 26-12-22 */
/* RESET COUNTER -> SEE design.css */
/* START2SLIDER */

body {
  background: #dddddd;
  padding: 0;
  margin: 0;
}


.header {
  background-color: #ffffff;
  width: 100%;
  height: 100vh;
}

#slider {
  margin: 0 auto;
  width: 100%;
  max-width: 100%;
  text-align:center;
  overflow: hidden;
}

#slider input[type=radio] {
  display:none;
}

#slider label {
  cursor: pointer;
  text-decoration: none;
}

#slides {
  background: #ffffff;
  position: relative;
  z-index: 1;
}

#overflow {
  width: 100%;
  overflow: hidden; 
}

#slide1:checked ~ #slides .inner {
  margin-left: 0;
    animation: slide1 1s forwards;
}

#slide2:checked ~ #slides .inner {
  margin-left: -100%;
  animation: slide2 1s forwards;
}

#slide3:checked ~ #slides .inner {
  margin-left: -200%;
  animation: slide3 1s forwards;
}

#slide4:checked ~ #slides .inner {
  margin-left: -300%;
  animation: slide4 1s forwards;
}

#slides .inner {
/*   transition: margin-left 800ms cubic-bezier(0.770, 0.000, 0.175, 1.000); */
  width: 400%;
  line-height:0;
  height: 100vh;

}


#slides .slide {
  width:25%;
  float: left;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  color: #fff;
}

#slides .slide_1 {
  background: #00408e;
}

#slides .slide_2 {
  background: #00171f;
}

#slides .slide_3 {
  background: #c3a9ff;
}

#slides .slide_4 {
  background: #9d950e;
}


#controls {
  width: 100%;
  height: 50px;
  z-index: 3;
  position: relative;
}

#controls label {
  transition: opacity 0.2s ease-out;
  display:none;
  width: 50px;
  height: 50px;
  opacity: .4;
}

#controls label:hover {
  opacity: .1;
}

#slide1:checked ~ #controls label:nth-child(2),
#slide2:checked ~ #controls label:nth-child(3),
#slide3:checked ~ #controls label:nth-child(4),
#slide4:checked ~ #controls label:nth-child(1) {
  background: url(https://www.flaticon.com/svg/static/icons/svg/271/271228.svg) no-repeat;
  float:right;
  margin: 0 -100px 0 0;
  display:block;
  color:red;
}

#slide1:checked ~ #controls label:nth-last-child(1),
#slide2:checked ~ #controls label:nth-last-child(4),
#slide3:checked ~ #controls label:nth-last-child(3),
#slide4:checked ~ #controls label:nth-last-child(2) {
  background: url(https://www.flaticon.com/svg/static/icons/svg/271/271220.svg) no-repeat;
  float:left;
  margin: 0 0 0 -100px;
  display:block;
  color:red;
}

#bullets {
  text-align:center;
  position: absolute;
  z-index:20;
  bottom: 20px;
  right: 100px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

#bullets label {
  width: 180px;
  height: 250px;
  border-radius: 10px;
  background: #cccccc;
  flex-basis: 32%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
  -webkit-animation: in .3s;
  position:relative;
}
#bullets label img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  border-radius: 10px;
}

#bullets label:hover {
  box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
  position:relative;
  -webkit-animation: out .3s forwards;
}

@-webkit-keyframes in {
    0%   { bottom:25px; }
    100% { bottom:1px; }
}


@-webkit-keyframes out {
    0%   { bottom:0px; }
    100% { bottom:25px; }
}

#slide1:checked ~ #bullets label:nth-child(1),
#slide2:checked ~ #bullets label:nth-child(2),
#slide3:checked ~ #bullets label:nth-child(3),
#slide4:checked ~ #bullets label:nth-child(4) {
  background: #444;
  display:none;
}

#slide1:checked ~ #bullets label:nth-child(1) {
  order: 1;
}

#slide2:checked ~ #bullets label:nth-child(2) {
  order: 2;
}

#slide2:checked ~ #bullets label:nth-child(1) {
    order: 1;
}

#slide3:checked ~ #bullets label:nth-child(3) {
  order: 1;
}

#slide3:checked ~ #bullets label:nth-child(4) {
  order: -1;
}

.body {
  background-color: #cccccc;
  width: 100%;
  height: 100vh;
  padding: 20px;
  box-sizing: border-box;
}

@keyframes slide1 {
  0% { clip-path: polygon(0 0, 100% 0, 100% 100%, 100% 0);
}
  100% {clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}
}

@keyframes slide2 {
  0% { clip-path: polygon(0 0, 100% 0, 100% 100%, 100% 0);
}
  100% {clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}
}

@keyframes slide3 {
  0% { clip-path: polygon(0 0, 100% 0, 100% 100%, 100% 0);
}
  100% {clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}
}

@keyframes slide4 {
  0% { clip-path: polygon(0 0, 100% 0, 100% 100%, 100% 0);
}
  100% {clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}
}

@media (min-width: 900px) {
  #slide1:checked ~ #controls label:nth-child(2),
  #slide2:checked ~ #controls label:nth-child(3),
  #slide3:checked ~ #controls label:nth-child(4),
  #slide4:checked ~ #controls label:nth-child(1),
  #slide1:checked ~ #controls label:nth-last-child(2),
  #slide2:checked ~ #controls label:nth-last-child(3),
  #slide3:checked ~ #controls label:nth-last-child(4),
  #slide4:checked ~ #controls label:nth-last-child(1) {

  }
}


/* ------------------------------------------------------------------------------ */
/* ------------------------------------------------------------ 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 */	
/* ------------------------------------------------------------------------------ */