/* ------------------------------------------------------------------------------ */
/* ------------------------------------------------------------- 6.0/00 - 07-01-2023
/* colors   -> #EE741D | rgba(238,116,29) | hsla(25,86%,53%) */
/* ------------------------------------------------------------------------------ */
/* link     -> https://codepen.io/finnhvman/pen/oPwXRa */
/* info     -> word2word */
/* ------------------------------------------------------------------------------ */
/* 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;
}

@font-face {
  font-family: 'Hanken-Grotesk';
  src: url('fonts/HankenGrotesk-VariableFont_wght.ttf') format('truetype');
  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: 3rem;                 	/* counter size - def 4rem */
	--count-font: Arial;					/* font-familiy ARIAL */
    /*--count-pos-top:1.4rem;             	/* counter position top - def 1rem NOT IN USE*/
    --count-pos-right:1.6rem;             	/* counter position right - def 1.2rem */
    /*--count-pos-left: 2rem;       		/* counter position left - NOT IN USE */
    --count-pos-bottom: 1.4rem;     			/* counter position bottom -  */ 
    --count-width: 1px;             		/* counter stroke - def 1px | max 3px */
    /* animation */
    --time-flip: 0.8s;              		/* def 0.8s */
	}

/* ------------------------------------------------------------------------------ */
/* ------------------------------------------------------------ 6.0/00 - 31-12-22 */
/* RESET COUNTER -> SEE design.css */
/* SWOERD2WORD */

/* Show/Hide Warning if no container Queries Support */
@supports (container-type: inline-size) {
	.info {
		display: none;
	}
}

@supports (card:has) {
	.info {
		display: none;
	}
}

.info, .warning {
  text-align: center;
	padding: 1em;
	border: 1px solid #123456;
	background: rgba(205 230 255 / 0.8);
}
.warning {
	background: rgba(255 255 225 / 0.9);
}
.info p, .warning p {
	margin: 0;
	padding: 0;
	color: #123456;
}

/* ------------------------------------------------------------------------------ */

html {
  font-family: 'Hanken-Grotesk', Roboto, Helvetica, Arial, sans-serif;
  font-size: 62.5%;
  font-weight: normal;
}

body {
  margin: 0;
}

header {
  padding: 1.2rem 2.4rem;
  background-color: #2196f3;
}

h1 {
  margin: 0;
  font-size: 4.8rem;
  font-weight: normal;
  color: white;
}

main {
  display: flex;
  flex-flow: row wrap;
  padding: 0 1.2rem;
}

button {
  margin: 0 12px;
}

#actions {
  flex: 3 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  padding: 1.2rem;
}

#actions > label {
  margin-right: 0.6rem;
}

#options {
  flex: 1 0 0;
  padding: 1.2rem;
  min-width: 20rem;
}

#options > label {
  width: 100%;
}

hr {
  margin: 0;
  border: none;
  width: 100%;
  height: 0;
}

mark {
  margin: -0.2rem;
  border: 0.2rem solid transparent;
  border-radius: 0.4rem;
  color: transparent;
  background: transparent;
}

#text {
  position: relative;
  flex: 3 0 0;
  padding: 0 1.2rem;
  transition: height 0.3s;
}

textarea,
#highlights {
  position: absolute;
  top: 0;
  bottom: 0;
  margin: 0;
  border: solid 0.1rem rgba(0, 0, 0, 0.54);
  border-radius: 0.4rem;
  padding: 1.3rem;
  font-family: Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.6rem;
  font-weight: normal;
  line-height: 2rem;
  outline: none;
  transition: height 0.3s;
}

textarea {
  box-sizing: border-box;
  width: calc(100% - 2.4rem);
  height: 100%;
  background: transparent;
  resize: none;
}

textarea:focus {
  border: solid 0.2rem #2196f3;
  padding: 1.2rem;
}

#highlights {
  z-index: -1;
  box-sizing: border-box;
  width: calc(100% - 2.4rem);
  white-space: pre-wrap;
  word-wrap: break-word;
  color: transparent;
  overflow-x: hidden;
  overflow-y: auto;
}

ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

#list {
  position: relative;
  flex: 1 0 0;
  padding: 0 1.2rem;
  min-width: 20rem;
  min-height: calc(100vh - 27.5rem);
  transition: height 0.3s;
}

.item {
  position: absolute;
  transition: top 0.3s, opacity 0.3s;
  animation: add 0.3s;
}

.item > label {
  cursor: pointer;
}

.hidden {
  display: none;
}

.count,
.word {
  display: inline-block;
  border: solid 0.2rem;
  box-shadow: inset 20rem 2rem transparent;
  transition: border 0.3s, background 0.3s, box-shadow 0.3s;
}

.hidden:checked ~ .count,
.hidden:checked ~ .word {
  box-shadow: inset 20rem 2rem white;
}

.count {
  border-radius: 50%;
  min-width: 1.8rem;
  text-align: center;
  font-size: 1.4rem;
  line-height: 1.8rem;
}

.word {
  padding: 0 0.2rem;
  border-radius: 0.4rem;
  font-size: 1.6rem;
}

.obsolete {
  opacity: 0;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.2rem;
  padding: 1.8rem 3.6rem;
  color: #555;
  background-color: #eee;
  font-size: 1.4rem;
}

footer > div:last-child {
  text-align: end;
}

a {
  color: black;
  text-decoration: none;
}

@keyframes add {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}


/* ------------------------------------------------------------------------------ */
/* ------------------------------------------------------------ 6.0/00 - 21-08-22 */
/* css-counter postion background */
/* https://stackoverflow.com/questions/43514987/css-increasing-number-as-background-images-for-css */
.count-reset {
	counter-reset:Element; /* reset must be here */
	}

.count-item::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-family:var(--count-font);
	font: 800 Arial;
	  -webkit-text-fill-color:transparent; /* works FF, Chrome and Edge */
	  -webkit-text-stroke:var(--count-width);
	  -webkit-font-smoothing:antialiased;
	color:red; /*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 */	
/* ------------------------------------------------------------------------------ */