
@font-face {
  font-family: menu;
  src: url("/font/Folks-Bold.ttf");
}
@font-face {
  font-family: "title";
  src: url("/font/agentorange.ttf");
}
@font-face {
  font-family: "text";
  size-adjust: 100%;   /* 150%; this font is to small */
  src: url("/font/LT Expo.otf");
}

#Menu, #Html, .title, #Article {
  --MenuWidth: 150px;
  --MenuHeight: 43px;
  --MenuPadH: 12px;   /* text + 2x padding = 43px */
  --MenuPadW: 18px;   
  --ArticleMargin: 40px;
}

html {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
}
body {
  width: 100%;
  height: 100%;
  margin: 0;
  background: transparent;
}

/* decoration */
u { text-underline-offset: 4px; }

/* INDEX */

#Main {
  position: relative;
  width: 100%;
  height: 100%;
}

#Menu {
  position: absolute;
  top:0; left:0;
  height: 100%;
  width: var(--MenuWidth);
  overflow: hidden;  
  z-index: 1;
}
body.h {
  height: auto;  /* avoid parent overflow */
}
#Html iframe,
#Menu iframe {
  display:block;  /* avoid parent overflow -> scrollbar because iframe has default display: inline */
  height: 100%;
  width: 100%;
  border: 0; 
  overflow: hidden;
}
#Html iframe.center {
  width: 85%;
  /* height: 70%; */
  margin: auto;
  padding-left: var(--MenuWidth); 
}

#Html {
  position: absolute;
  width: 100%;
  height: 100%;
}
#Html.h {
  top: var(--MenuHeight);
  left: 0;
  height: calc( 100% - var(--MenuHeight) ); 
}


/* MENU */

#Menu {
  overflow-x: hidden;
  font-family: menu,"Helvetica Neue",Helvetica,Roboto,Arial,sans-serif;
  font-size: 15px;
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: white;
}
#Menu.h {
  height: var(--MenuHeight);  
  width: 100%;
} 

#Menu ul {
  height: 100%; 
  width: 100%;
  overflow-x: hidden;
  padding: 0;
  margin: 0;
  list-style-type:none;
}
#Menu.h ul {
  display: flex;
}
#Menu.h.left {
  left: calc( var(--MenuWidth) );
  width: calc( 100% - var(--MenuWidth) ); 
}

#Menu ul li {
  display: block;
  height: var(--MenuHeight);
  padding: 0px; 
  background: rgba(149,252,255,0.2);  /* #eee; */
  opacity: 1;
  transition: opacity 0.7s ease-in-out;
}
#Menu.h ul li {
  margin: auto;
  flex: 1 1 auto;  /* not 100% -> home more small */
  min-width: 70px;
}
#Menu ul li.lang { 
  box-sizing: border-box;
  /* border: 2px white solid; */
  background: #c336ff;  /* deeppink; */
}
#Menu ul.fold.a li.main.a,
#Menu ul.fold.b li.main.b  { 
  background: #33c0e2;
}
#Menu ul li.fold {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-in-out;
  /* padding: 0 15px; */
}
#Menu ul.menu.fold.a li.fold.a,
#Menu ul.menu.fold.b li.fold.b {
  max-height: 100px;
}
#Menu ul li.fold a:before {
  content: "";  /* 232f */  /* 0160 2606 26b9 */
  line-height: 20px;
  font-size: 20px;
  color: #ffff00;
  padding-right: 0px;  /* 10px */
}
#Menu ul.menu.fold.a li:not(.lang):not(.main.a):not(.fold.a),
#Menu ul.menu.fold.b li:not(.lang):not(.main.b):not(.fold.b) {
  opacity: 0.5;
}
#Menu   ul li:hover  { background: #f5b504; }
#Menu   ul li.active { background: #9bd300; }  /* #A5E100; */
#Menu.h ul li.active { background: #f015d8; } /* #f015d8; */

#Menu ul.menu a {
  display: block;         /* link is not limited to its content (allow click on all line) */
  padding: var(--MenuPadH) var(--MenuPadW);     /* indent text */
  text-decoration: none;
  color: white;
}
#Menu.h ul.menu a {
  width: 100%;            /* link is not limited to its content (allow click on all line) */
  padding: var(--MenuPadH) 0;
  text-align: center;
}

#Menu.h ul.menu #Home:before {  /* vertical center of Home Menu icon) */
  content: "\2638";
  font-size: 30px;
  line-height: 20px;
}

/* HTML */

#Article {
  /* display: inline-block; */ /* adapt to content to avoid scrollbar */
  padding-left: calc( var(--MenuWidth) + var(--ArticleMargin) );  
  padding-right: calc( var(--ArticleMargin) );
  font-family: text,"Helvetica Neue",Helvetica,Roboto,Arial,sans-serif;
  font-size: 18px;
  color: white;  /* whitesmoke  #eeece1; */ 
  text-align: justify;
  word-spacing: 2px;
  letter-spacing: 0.5px;
  text-shadow: -1px 1px 0px #666;
}
p.title {
  padding: 0px;
  font-family: "title";
  font-size: 40px;
  font-weight: normal;
  color:white;
  letter-spacing: 4px;
  white-space: nowrap;
  text-align: center;
  vertical-align: middle;
  text-transform: uppercase;
  animation: slide 0.4s ease-in-out;
}
@keyframes slide {
  0%   { margin-left: 0%; opacity: 0%; letter-spacing: 250px; }  /* margin-left: -240%; */
  100% { margin-left: 0%; opacity: 100%; letter-spacing: 4px; }
}
#Article p.text {
  font-size: 30px;
  line-height: 30px;
}
#Article > p.text:last-of-type {  
  padding-bottom: 90px;   /* space at end of article -> wave don't hide */
}
#Article p.text.center {
  text-align: center;
}
#Article p.text a {
  display: inline-block;  /* link is limited to its width, not content (avoid click on all line) */
  font-size: 29px;
  color: #ffed5a;
  padding: 0;  /* padding: 15px 50px; */
  text-align: left;
  text-decoration: underline;
  letter-spacing: 1px;
}
#Article p.text a.space {
  padding: 15px 40px;
}

#Article p .flex {
  display: flex;
}

#Article p.list {
  position: relative;   /* adjust list bullet position in :before */
  padding-left: 60px;
  font-size: 28px;
  color: white;  /* yellow #b7f706; */
}
#Article p.list:before {
  content: "\2022";
  position: absolute;
  top: 7px;
  left: 30px;
}
#Article p.list.nobullet:before {
  content: "";
}
#Article p.list .listfirst {
  color: yellow;  /* greenyellow yellow #b7f706; */
}

#Article p.sublist1,
#Article p.sublist2 {
  position: relative;   /* adjust list bullet position in :before */
  padding-left: 75px;
  margin: 8px 0;
  font-size: 26px;
  color: white;  /* yellow #b7f706; */
  width: max-content;^
}
#Article table.bullet td:before,
#Article table.sublist {
  content: "\20F0";
  position: absolute;
  top: 14px;
  left: 60px;
  font-size: 26px;
  line-height: 26px;
}
#Article table.bullet {
  border-spacing: 10px 15px;
  margin: -20px 0;
  padding-left: 60px;
}
#Article table.bullet td:before {
  top: 20px;
  left: 20px;
}
#Article table.bullet td { 
  vertical-align: top;
  padding-left: 40px;
}
#Article table.bullet td:nth-child(1) { 
  white-space: nowrap;
}
#Article table.bullet tr { 
  position: relative;
}
#Article table { 
  margin: auto;
  font-size: 26px;
  line-height: 26px; 
  color: white; 
  border-spacing: 50px 0;
}

#Article table.sublist tr { 
  line-height: 10px; 
}

#Article p.flex {
  display: flex;
}

#Article p.code,
#Article div.code,
#Article span.code {
  display: block;
  text-align: center;
  font-size: 26px;
  color: yellow;
  padding-bottom: 5px;
}
#Article p.yellow,
#Article div.yellow,
#Article span.yellow {
  color: yellow;
}


/* Video */

#Article p.text.video:before {
  content: '\1F3A5';
  content: '\1F3AC';
  padding-right: 10px;
}
#Article div.video {
  width: 100%;
  max-width: 90%;
  padding: 20px;
  box-sizing: border-box;  
  text-align: center;
}
#Article div video {  /* no more used */
  width: 100%;       /* set in video style instead */
}
#Article iframe.video {
  height: calc(70vw * 0.5625);
  width: 70vw; 
  frameborder: 0;
  scrolling: 0;
}

/* Image */

/* Gif */

#Article div.img.flex {
  display: flex;
  justify-content: center;
  align-items: end;
}
#Article figure.two {
  flex: 0 0 50%;
}
#Article figcaption {
  text-align: center;  /* center caption */
  padding: 10px;
  font-size: 25px;
  white-space: nowrap;
}

/* linklogo:  link & logo */
#Article div.linklogo {
  position: relative;
  display: flex;
  align-items: center;
}
#Article div.linklogo p.text {
  flex: 1 1 auto;
  margin: 0;   /* or margin top & bottom are added */
}
/* #Article div { position: relative; } */
#Article div.linklogo { position: relative; }
#Article div.linklogo.left p.text
#Article div.linklogo.left p.text  { padding-left: 80px; }  /* add padding before | after -> space for img */
#Article div.linklogo.right p.text { padding-right: 80px; }
#Article div.linklogo img.right { padding-left: 30px; }

#Article img.absolute { position: absolute; }
#Article img.right { right: 0px; }
#Article img.left { left: 0px; }
#Article img.center { display: block; margin: auto; }
#Article img.sizefull { width: 100%; }
#Article img.glow { filter: drop-shadow(0 0 10px white); }
#Article img.shadow { filter: drop-shadow(1px 1px 5px #777); }

/* ICON */

#Article .icon {
  display: inline-block;
  width:25px;
  height:25px;
  font-size: 20px;
  line-height: 25px;
}
#Article .icon.fullwhite {
  filter: brightness(0) invert(1);
}
#Article .butWrap div {
  background: white;
  filter: drop-shadow(1px 2px 1px #555);
}
#Article .icon.back.white {
  filter: drop-shadow(1px 2px 1px #555) brightness(1.1);
  border: none !important;
}
#Article .icon.print {
  filter: grayscale(0%);
}
#Article .icon.dys:before {
  content:"Dys";
}
#Article .icon.invert {
  border-color: black;
  filter: invert(100%);
}

#Article p.list .butWrap {
  display: inline-block;
  flex: 0 0 45px;
}
#Article .button {
  display: inline-block;
  width: 25px;
  height: 25px;
  padding: 3px;
  vertical-align: middle;
  border: 2px solid white;
}

#Article button.print {
  display: block;
  padding: 0px 10px;
  font-size: 22px;
  font-weight: bold;
}
#Article button.center {
  margin: auto;
  margin-bottom: 10px;
  padding: 0px 10px;
}

/* Image Note */

#Article .note.arrow {
  position: absolute;
  color: #ff4df2;
}
#Article .note.arrow:before,
#Article .note.arrow:after {
  font-size: 60px;
  text-shadow: 1px 1px 0.5px #AAA;
} 
#Article .note.arrow.left:before  { content:'\2B05'; }
#Article .note.arrow.right:before { content:'\2B95'; }

#Article .note.label {
  position: absolute;
  font-size: 24px;
  text-align: center;
}

/* APP */

/* Jsmol */
#Article button.jsmol {
  width: 40px;
  height: 30px;
  margin: 10px;
}

/* ANIMATION */

/* Text Wiggle */

p.title { 
    display:flex; 
    justify-content: center;
}
p.title .wg {
    display: block;
    vertical-align: middle;
    text-align: center;
    color:white;
}
.wiggle {
    transform: translateZ(10px);    
    animation: wiggle ease-in-out infinite;
}
@keyframes wiggle {
  10% { transform: translateX(5px) translateZ(30px) rotate(20deg); }
  20% { transform: translateX(-5px) rotateY(-10deg) rotate(-20deg); }
  30% { transform: translateX(3px) rotate(20deg); }
  40% { transform: translateX(-3px) rotateY(15deg) rotate(-20deg); }
  40% { transform: translateX(2px) rotate(10deg); }
  50% { transform: translateX(-2px) rotate(-10deg); }
  60% { transform: translateX(2px) rotateY(-30deg) rotate(10deg); }
  70% { transform: translateX(-2px) rotate(-5deg); }
  80% { transform: translateX(1px) rotateY(15deg) rotate(0deg); }
  100% { transform: translateX(-1px) rotate(0deg); }
}

/* Phybox + Wifi ᯤ */

#Article p.title svg {
   width: 49px;
   height: 60px;
   vertical-align: bottom;
   animation: wiggle ease-in-out infinite;
}

span.phybox.wifi svg {
  vertical-align: middle;
  width: 25px;
}

/* Phybox + Wifi unicode ᯤ */
/* no more used (unicode not browser friendly) */
span.wifi.unicode::before {
   content: '\1be4';
   font-size: 22px;
   line-height: 30px;
}

/* Wifi animation */

#wifi {
  position: absolute;
  width: 60px;
  height: 60px;
  right: var(--ArticleMargin);
  padding: 0 5px;
  font-family: Roboto, "Lucida Console", Arial, Helvetica;
  font-size: 30px;
  font-weight: bold;
  color: white;
  letter-spacing: 0;
  border: 4px solid white;
  border-radius: 67%;
  background: #bd7edd;
  filter: drop-shadow(1px 1px 1px #333);
  animation: 0.4 ease-in-out;
}
#wifi {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}
#wifi:before { content:"B"; }
#wifi:after  { content:"X"; }

svg.wifi {
  width: 30px;
}
svg.wifi.anim  path.mid,
#wifi svg.wifi path.mid {
  animation: 2s ease blink infinite;
}

svg.wifi.anim path.top,
#wifi svg.wifi path.top {
  animation: 2s ease blink infinite;
  animation-delay: 0.4s;
}

@keyframes blink {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Wifi shake animation */

@keyframes shake {
   0%    { transform: translate(0, 0) rotate(0deg); }
   2.5%  { transform: translate(5px, 5px) rotate(5deg); }
   5%    { transform: translate(0, 0) rotate(0eg); }
   7.5%  { transform: translate(-5px, 5px) rotate(-5deg); }
   10%   { transform: translate(0, 0) rotate(0deg); }
   12.5% { transform: translate(5px, 5px) rotate(5deg); }
   15%   { transform: translate(0, 0) rotate(0eg); }
   17.5% { transform: translate(-5px, 5px) rotate(-5deg); }
   20%   { transform: translate(0, 0) rotate(0deg); }
   22.5% { transform: translate(5px, 5px) rotate(5deg); }
   25%   { transform: translate(0, 0) rotate(0eg); }
   27.5% { transform: translate(-5px, 5px) rotate(-5deg); }
   30%,100% { transform: translate(0, 0) rotate(0deg); }
}

/* BACKGROUND */

body.index {
    /* background: linear-gradient(315deg, rgba(101,0,94,1) 3%, rgba(60,132,206,1) 38%, rgba(48,238,226,1) 68%, rgba(255,25,25,1) 98%); */
    /* background: linear-gradient(315deg, rgb(255, 0, 237) 3%, rgb(80, 132, 187) 18%, rgb(1, 201, 210) 68%, rgb(239, 75, 253) 98%); */
    background: linear-gradient(315deg, #ef4bfd 3%, #5084bb 18%, #05b7bf 68%, #ef4bfd 98%);  /* #ef4bfd */   
    animation: gradient 15s ease infinite;
    background-size: 400% 400%;
    background-attachment: fixed;
}
@keyframes gradient {
    0%   { background-position: 0% 0%; }
    50%  { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}

#Wave {
    position: absolute;
    z-index: 1;   
    pointer-events: none;  /* allow clic on menu */
}
#Wave .wave {
    position: absolute;
    z-index: 1;
    bottom: -6.0em;
    left: 0;
    background: rgb(255 255 255 / 25%);
    border-radius: 1000% 1000% 0 0;
    position: fixed;
    width: 200%;
    height: 12em;
    animation: wave 10s -3s linear infinite;
    transform: translate3d(0, 0, 0);
    opacity: 0.6;  /* 0.8 */
}
#Wave .wave:nth-of-type(2) {
    bottom: -7.25em;  /* -1.25em; */
    animation: wave 18s linear reverse infinite;
    opacity: 0.7;  /* 0.8 */
}
#Wave .wave:nth-of-type(3) {
    bottom: -8.5em;  /* -2.5em; */
    animation: wave 20s -1s reverse infinite;
    opacity: 0.8;  /* 0.9 */
}

@keyframes wave {
    2% { transform: translateX(1%); }
    25% { transform: translateX(-25%); }
    50% { transform: translateX(-50%); }
    75% { transform: translateX(-25%); }
    100% { transform: translateX(1%); }
}