html {
  font-size: min(max(1rem, 4vw), 22px);
}
header, section, footer, aside, nav, article, figure, audio, video, canvas {
  display: block;
}

body {
  font-family: Geneva, Arial, Helvetica, sans-serif;
  min-height: 200%;
  text-align: center;  
  font-size: clamp(100%, 1rem + 2vw, 24px);
}

header {
  font-family: Dax, Geneva, Arial, Helvetica, sans-serif;
  margin-bottom: 320px;
}
.video header {margin-bottom: 10px;}

footer {
  /*margin-top: 320px;*/
}
.parallax {
  perspective: 1px;
  overflow-x: hidden;
  overflow-y: auto;
  //
	width: 100vw;
	position: relative;
	transform-style: preserve-3d;
	-webkit-transform-style: preserve-3d;  
  perspective-origin-x: 100%;
}
#brain {
  position: relative;
  display: flex;
  width: 100%;
  height: 319px;
  background-image: url("imgs/h_brain.png");
  background-repeat: no-repeat;
  background-position: center center;
  margin: auto;
  transform-style: preserve-3d;
  perspective-origin-x: 100%;

  
  
  
  /*background-color: #ddd;
    width: 90vw;
    height:95vh;*/
}

#nut-l {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  /*244px*/
  height: 319px;
  background-image: url("imgs/h_leftnut.png");
  background-repeat: no-repeat;
  background-position: center center;
  
  
  transform-origin: 0;
  transform: translateX(-30%);
  
}

#nut-r {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 319px;
  background-image: url("imgs/h_rightnut.png");
  background-repeat: no-repeat;
  background-position: center center;
  
  transform-origin: 0;
  transform: translateX(30%);
}

#open {
  font-size: 400%;
      font-size: min(max(1rem, 4vw), 22px);
  white-space: nowrap;
  text-align: center;
  width: auto;
  margin: auto;
  display: block;
  /*background-color: #123;*/
}

#open span {
  opacity: 0;
  display: inline-block;
  width: 0em;
  background-color: #ccc;
  font-style: italic;
  /*text-align: center;
margin: auto;*/
}

section a:link {
  color: #990000;
  text-decoration: none;
}

section a:hover {
  color: #FF9900;
  text-decoration: underline;
}

section a:visited {
  color: #999999;
  text-decoration: none;
}

nav {
  text-align: left;
  width: auto;
  margin: auto;
  display: inline-block;
}

nav ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  text-align: left;
  font-size: 1.5rem;
}

/* navigazione */

nav {
  text-transform: uppercase;
  font-size: 1.5rem;
  line-height: 1.5rem;
  font-weight: 600;
  text-decoration: none;
  width: 80%;
  margin: auto;
}

nav li li li {
  display: inline;
}

nav li::after {
  content: ". ";
}

nav a:link, nav a:visited {
  text-decoration: none;
  /*display: inline;*/
}

/*
nav:nth-child(odd) a:link, nav:nth-child(odd) a:visited {
  color: #93a3b1;
}*/
.menulist li:nth-child(3n+3) a:link, .menulist li:nth-child(3n+3) a:visited {
  color: #7fb528;
}

.menulist li:nth-child(3n+1) a:link, .menulist li:nth-child(3n+1) a:visited  {
  color: #E45A2F;
}

.menulist li:nth-child(3n+2) a:link, .menulist li:nth-child(3n+2) a:visited {
  color: #305050;
}

.menulist li:nth-child(3n+3) a:hover, .menulist li:nth-child(3n+3) a:focus {
  color: white; background-color: #7fb528;
}

.menulist li:nth-child(3n+1) a:hover, .menulist li:nth-child(3n+1) a:focus  {
  color: white; background-color: #E45A2F;
}

.menulist li:nth-child(3n+2) a:hover, .menulist li:nth-child(3n+2) a:focus {
  color: white; background-color: #305050;
}

@media (any-pointer: coarse) {
  .container a {
    padding: .8em;
  }
}