/* ------------------------------------------------------------------------------ */
/* ------------------------------------------------------------ 6.0/00 - 11-10-2022
/* colors   -> #EE741D | rgba(238,116,29) | hsla(25,86%,53%) */
/* ------------------------------------------------------------------------------ */
/* link     -> https://codepen.io/xdesro/pen/KrMGoy*/
/* info     -> day2night */
/* ------------------------------------------------------------------------------ */
/* ROOT and VARIBLES */
: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,1);  /* color of the counter - must be the same as card-back-background AND no transparent */
    --count-size: 2.2rem;                 /* 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:1rem;       /* counter position left - NOT IN USE */
    /*--count-pos-bottom: -70%;     /* 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 - 16-10-22 */
/* RESET COUNTER -> SEE design.css */
/* DAY2NIGHT */

.day2night {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  min-height: 100vh;
}
/*
body *,
body *:before,
body *:after {
  box-sizing: border-box;
}
*/
svg {
  position: absolute;
}

.scene {
  font-size: 0.55vmin;
  position: relative;
  overflow: hidden;
  width: 50vmin;
  height: 50vmin;
  transition: all 0.2s ease-in;
  border-radius: 100%;
  background-image: linear-gradient(to bottom, #ff3800, #ffd938 60%);
  box-shadow: 0 10em 15em rgba(255, 56, 0, 0.2);
}
.scene * {
  transition: all 0.2s ease-in;
}
.scene:before {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  content: "";
  filter: url(#grain);
}

.sky {
  position: relative;
  width: 100%;
  height: 64%;
}

.sun {
  position: absolute;
  right: 7em;
  bottom: 0;
  width: 30em;
  height: 30em;
  border-radius: 100%;
  background: #ffe535;
  filter: saturate(90%);
}

.moon {
  position: absolute;
  z-index: 1;
  top: 10em;
  left: 10em;
  width: 20em;
  height: 20em;
  transform: rotate(0);
  transform-origin: 50% 200%;
  opacity: 0;
  border-radius: 100%;
  background: white;
  -webkit-clip-path: url(#moon);
          clip-path: url(#moon);
}

.stars {
  position: absolute;
  top: 7em;
  right: 0;
  left: 0;
  width: 45em;
  height: 15em;
  margin: 0 auto;
  background: rgba(255, 183, 37, 0.5);
  -webkit-clip-path: url(#stars);
          clip-path: url(#stars);
}

.clouds {
  position: absolute;
  top: 27em;
  width: 100em;
  height: 19em;
  background-image: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.15), transparent 50em), radial-gradient(circle at 60% 90%, rgba(255, 255, 255, 0.5), transparent 15em), radial-gradient(circle at 100% 80%, rgba(255, 255, 255, 0.5), transparent 30em);
  -webkit-clip-path: url(#clouds);
          clip-path: url(#clouds);
}

.foreground {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 55%;
}

.mountain {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
}
.mountain:nth-of-type(1) {
  -webkit-clip-path: url(#mountain-1);
          clip-path: url(#mountain-1);
}
.mountain:nth-of-type(2) {
  -webkit-clip-path: url(#mountain-2);
          clip-path: url(#mountain-2);
}
.mountain:nth-of-type(3) {
  -webkit-clip-path: url(#mountain-3);
          clip-path: url(#mountain-3);
}
.mountain:nth-of-type(4) {
  -webkit-clip-path: url(#mountain-4);
          clip-path: url(#mountain-4);
}
.mountain:nth-of-type(5) {
  -webkit-clip-path: url(#mountain-5);
          clip-path: url(#mountain-5);
}
.mountain:nth-of-type(6) {
  -webkit-clip-path: url(#mountain-6);
          clip-path: url(#mountain-6);
}
.mountain:nth-of-type(1) {
  height: 37em;
  background-image: radial-gradient(circle at top right, rgba(255, 182, 49, 0.9), transparent 60em);
}
.mountain:nth-of-type(2) {
  height: 100%;
  background-image: radial-gradient(circle at top left, #ff5f25, transparent 60em), radial-gradient(circle at 90% 30%, rgba(255, 95, 37, 0.8), transparent 10em), radial-gradient(circle at 67% 40%, rgba(255, 95, 37, 0.3), transparent 10em);
}
.mountain:nth-of-type(3) {
  height: 39em;
  background-image: radial-gradient(circle at top left, #eb2e19, transparent 90em);
}
.mountain:nth-of-type(4) {
  height: 32em;
  background-image: radial-gradient(circle at top left, #c00e0a, #fa4b18, transparent 80em);
}
.mountain:nth-of-type(5) {
  height: 27em;
  background-image: linear-gradient(to left, #d62d00, #f14116 70%);
}
.mountain:nth-of-type(6) {
  height: 18em;
  background: black;
  background-image: linear-gradient(to right, #ab1514, #f23113 50em);
}

.background {
  background: white;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  transition: all 0.3s linear;
}

.hover {
  position: absolute;
  z-index: 3;
  top: 50%;
  width: 50vmin;
  height: 50vmin;
  margin: 0 auto;
  content: "";
  cursor: pointer;
  transform: translateY(-50%);
  border-radius: 100%;
}

.hover:before {
  content: "";
  opacity: 0.2;
  text-transform: uppercase;
  letter-spacing: 1vmin;
  font-size: 2vmin;
  position: absolute;
  bottom: -4vmin;
  left: 0;
  right: 0;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}
.hover:hover:before {
  color: white;
}
.hover:hover ~ .scene {
  filter: hue-rotate(-180deg) brightness(70%);
}
.hover:hover ~ .scene .sun {
  transform: translateY(100%);
}
.hover:hover ~ .scene .moon {
  transform: rotate(20deg);
  opacity: 1;
}
.hover:hover ~ .scene .stars {
  transform: scale(1.2) translateY(5em);
}
.hover:hover ~ .scene .clouds {
  opacity: 0.5;
}
.hover:hover ~ .background {
  background: #111;
}

/* ------------------------------------------------------------------------------ */
/* ------------------------------------------------------------ 6.0/00 - 21-08-22 */
/* css-counter postion background */
/* https://stackoverflow.com/questions/43514987/css-increasing-number-as-background-images-for-css */	
.box-counter::before { 
	position:absolute;
  display:flex;
	top:var(--count-pos-top,1.2rem);
  /*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 */	
/* ------------------------------------------------------------------------------ */