@font-face {
  font-family: akzidenz;
  src: url(fonts/AkzidenzGrotesk-LightCond.otf);
}

html,
body {
  color: #fff;
  font-size: 20px;
  font-family: akzidenz, sans-serif;
  font-weight: normal;
  letter-spacing: 2px;
  padding: 0;
  margin: 0;
  background: #000;
}

/* da rimettere*/
#loader {
  width: 100vw;
  height: 100vh;
  background: #000;
  position: fixed;
  z-index: 9999999;
  top: 0;
  text-align: center;
  padding-top: 50vh;
  background: #000 url("img/loader.gif") no-repeat;
  background-position: center 25%;
}

a {
  text-decoration: none;
  color: white;
}

section#main {
  width: 100%;
  height: 100vh;
  position: relative;
  z-index: 9999999;
  margin: 0;
  overflow-x: hidden;
}

header {
  display: block;
  width: 650px;
  margin: 0 auto;
  text-align: center;
}
/*titolo header*/
#titolo {
  height: 100vh;
  margin: 0;
  padding: 0;
}

#titolo img {
  margin-top: 50vh;
  transform: translateY(-50%);
}

/*freccia giu header*/
#freccia {
  height: 100px;
  margin-top: -100px;
}

#footer {
  height: 50vh;
  text-align: center;
  margin-top: 35vh;
}

#footer p {
  margin-bottom: 60px;
  line-height: 30px;
}

.project {
  width: 100vw;
  height: 100vw;
  margin-top: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  @media (max-width: 1024px) {
    height: 180vw;
    margin-bottom: 200px;
  }
}

.canvas {
  /*  pointer-events: none;*/
  /* new    z-index: 10; !!!*/
  z-index: -10;
  /*width: 100%;
  height: 100%;*/
  position: absolute;
  /*height: 100vh !important;*/
  overflow: none;
}

/* iframe + testo right*/
.content {
  width: 100%;
  height: 100%;
  position: relative;
}

iframe {
  /*aspect i frame 100/56 */
  width: 40%;
  height: 22.5%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  @media (max-width: 1024px) {
    width: 100%;
    /* height: 56%; */
  }
}

/* titolo e dida progetto*/
.testo_right {
  margin: 0 auto;
  text-align: center;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 64%;
  /* offset-x | offset-y | blur-radius | color */
  text-shadow: 2px 2px 3px black;

  @media (max-width: 1024px) {
    /* top: 68%; */
    font-size: 2em;
  }
}

/*titolo progetto e projtoggle*/
.titoloprogetto {
  font-weight: normal;
  margin-bottom: 0;
  font-size: 30px;
  color: #fff;
}

.projToggle {
  font-size: 30px;
  margin: 0;
}

.descrizioneprogetto {
  margin: 10px 0 0 0;
  font-size: 20px;

  font-weight: normal;
}

/* dida progetto*/
.didaprogetto {
  margin: 20px 0 0 0;
  font-size: 12px;
  line-height: 120%;
  font-family: "Open Sans", sans-serif;
  font-weight: normal;
}

#menu {
  background: none;
  position: fixed;
  flex-direction: column;
  z-index: 999;
  top: 50%;
  transform: translateY(-50%);
  left: -300px;
  width: 250px;
  height: 50vh;
  padding: 25px;
  text-align: left;
  overflow-y: scroll;
  direction: rtl;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 1), rgba(0, 0, 0, 1), rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 1), rgba(0, 0, 0, 1), rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
  transition: left 1s, background 1s;
  -moz-transition: left 1s, background 1s;
  -webkit-transition: left 1s, background 1s;
  -o-transition: left 1s, background 1s;

  @media (max-width: 1024px) {
    position: fixed;
    top: 0px;
    left: -400px;
    width: 150%;
    height: calc(100% - 50px);
    transform: none;
    background: none;
    pointer-events: none;
  }
}

#menu.visible {
  display: flex;
  left: 0px;
  
  @media (max-width: 1024px) {
    display: block;
    left: 0;
    background: rgba(0, 0, 0, 0.8);
    pointer-events: all;
  }
}

#menu::-webkit-scrollbar {
  width: 5px;
}

#menu a {
  color: rgb(255, 255, 255);
  /*opacity: 1;*/
}

#menu a:hover {
  color: rgb(220, 220, 220);
  /*opacity: 0.7;*/
}

#menu div {
  padding-top: 5px;
}

/*icona apri menu*/
#menu_cross {
  position: fixed;
  left: 30px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  z-index: 1000;
  transition: left 1s;
  -moz-transition: left 1s;
  -webkit-transition: left 1s;
  -o-transition: left 1s;

  @media (max-width: 1024px) {
    transform: none;
    z-index: 99999;
    display: block;
    position: fixed;
    bottom: 15px;
    right: 20px;
    left: auto;
    top: auto;
  }
}

#menu_cross.opened {
  left: 250px;
  @media (max-width: 1024px) {
    left: auto;
    right: 20px;
  }
}

statuspanel {
  display: none !important;
}

#statuspanel #statuspanel-label {
  display: none !important;
}

/*cloudchamber js */
#background {
  position: fixed;
  left: 0;
  top: 0;
}

#asdo {
  position: fixed;
  top: 0;
  left: 0;
  background-color: red;
}

/* altri setting per mobile??*/
@media (max-width: 1024px) {
  #menu::-webkit-scrollbar {
    width: 0;
  }

  #menu a {
    opacity: 1;
    font-size: 30px;
  }

  #menu_cross img {
    width: 30px;
    height: 30px;
  }

  header {
    width: 100vw;
  }

  section h1 {
    left: 5vw;
    width: 80vw;
  }

  section h1 img {
    width: 90vw;
    transition: 0.3s;
  }

  #freccia {
    margin-top: -200px;
  }

  #freccia a img {
    width: 50px;
  }

  .projToggle {
    margin-top: 10px;
  }

  .projToggle a img {
    width: 30px;
  }

  #footer img {
    display: none;
  }

  #footer p {
    width: 90vw;
    margin-left: 5vw;
  }

  p {
    font-size: 16px;
    margin: 20px 20px 20px 20px;
  }

  #asdo {
    background-color: greenyellow;
  }
}
