html{
    scroll-behavior: smooth;
}

body{
    width: 100%;
    margin: 0;
}

.loadingcontainer{
    height: 100vh;
    width: 100vw;
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    overflow-y: hidden;
    background-color: black;
    z-index: 10;
}

.ring{
    width: 300px;
    height: 300px;
    border: 0px solid rgb(0, 0, 0);
    border-radius: 50%;
    position: absolute;
    overflow-y: hidden;
}

.ring:nth-child(1){
    border-bottom-width: 8px;
    border-color: fuchsia;
    animation: rotate1 2s linear infinite;
}

.ring:nth-child(2){
    border-right-width: 8px;
    border-color: aqua;
    animation: rotate2 2s linear infinite;
}

.ring:nth-child(3){
    border-top-width: 8px;
    border-color: white;
    animation: rotate3 2s linear infinite;
}

.loadingtext{
    color: white;
    font-family: 'MuseoModerno', sans-serif;
    font-weight: 200;
    font-size: 25px;
    overflow-y: hidden;
}

@keyframes rotate1{
    0%{
        transform: rotateX(35deg) rotateY(-45deg) rotateZ(0deg);
    }
    100%{
        transform: rotateX(35deg) rotateY(-45deg) rotateZ(360deg);
    }
}

@keyframes rotate2{
    0%{
        transform: rotateX(50deg) rotateY(10deg) rotateZ(0deg);
    }
    100%{
        transform: rotateX(50deg) rotateY(10deg) rotateZ(360deg);
    }
}

@keyframes rotate3{
    0%{
        transform: rotateX(35deg) rotateY(55deg) rotateZ(0deg);
    }
    100%{
        transform: rotateX(35deg) rotateY(55deg) rotateZ(360deg);
    }
}

.homepage{
    background-color: black;
    height: 600px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
    z-index: 1;
    overflow-y: hidden;
}

.homepage p{
    color: white;
    font-size: 30px;
    font-family: 'MuseoModerno', sans-serif;
    margin-top: -5px;
    margin-bottom: -5px;
    position: relative;
    left: 10%;
    top: -5%;
    font-weight: 200;
    
}

#title{
    font-size: 30px;
    color: white;
    position: fixed;
    font-family: 'MuseoModerno', sans-serif;
    text-decoration: none;
    left: 10%;
    top: 30px;
    z-index: 5;
    text-shadow: 0 0 3px #000000, 0 0 5px aqua;
}

#menumobile{
    position: fixed;
    right: 10%;
    top: 35px;
    height: 40px;
    width: 40px;
    border-radius: 50%;
    border: solid 2px aqua;
    background-color: transparent;
    object-fit: contain;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
    cursor: pointer;
}

.bottonemenu{
    max-width:100%;
    max-height:100%;
}


.frecciagiu{
    height: 5.5em;
    width: 5.5em;
    border-radius: 50%;
    border: solid 2px fuchsia;
    position: absolute;
    left: 10%;
    bottom: 5%;
    object-fit: contain;
    display: flex;
    justify-content: center;
    align-items: center;
}

.freccia{
    max-width:70%;
}

#page0{
    height: 500px;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.rotatingpanel{
    height: 200px;
    width:80%;
    background: white;
    position: absolute;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    border-radius: 10px;
}

.rotatingpanelup{
    height: 170px;
    width:60%;
    background: rgb(248, 248, 248);
    position: relative;
    border-radius: 10px;
    filter: blur(2px);
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.rotatingpanelbottom{
  height: 170px;
  width:60%;
  background: rgb(232, 232, 232);
  position: relative;
  border-radius: 10px;
  filter: blur(2px);
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.page1{
    background-color: white;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 0.5em solid black;
    border-right: 0.5em solid black;
    position: relative;
    overflow-x: hidden;
    overflow-y: hidden;
}

#page1{
    background-color: rgb(255, 255, 255);
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
    overflow-y: hidden;
    flex-direction: column;
}

#page1 span{
    font-family: 'MuseoModerno', sans-serif;
    font-size: 20px;
    color: black;
    display: flex;
    text-align: center;
    font-weight: 600;
    padding-left: 2em;
    padding-right: 2em;
}

.page1 span{
    font-family: 'MuseoModerno', sans-serif;
    font-size: 1.6em;
    color: black;
    display: flex;
    text-align: center;
    font-weight: 600;
    padding-left: 2em;
    padding-right: 2em;
    z-index: 1;
}

.droning{
    height: 100vh;
    display: flex;
    align-items: center;
    overflow-x: hidden;
    position: relative;
    flex-flow: column;
}

#droningvideo {
    width: 100%;
    height: 100%;
    object-fit: cover; 
  }

.droning span{
    color: black;
    font-family: 'MuseoModerno', sans-serif;
    text-align: center;
    font-size: 1.3em;
    padding-right: 3em;
    padding-left: 3em;
    font-weight: 600;
}

.drone {
    height: 10em;
    position: absolute;
    left: 0;
    top: 0;
  }
  
  @keyframes move {
    from {
      transform: translateY(-15em);
    }
    to {
      transform: translateY(0px);
    }
  }

  /* Main menu positionning */
.main-nav {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    text-align: center;
    background: aqua;
    opacity: 0;
    z-index: -1;
    visibility: hidden;
    transition: all .375s;
    overflow: hidden;
}

.main-nav.is-open {
    opacity: 1;
    z-index: 3;
    visibility: visible;
    overflow: hidden;
    position: fixed;
}

/* Yellow band effect */
.main-nav::before {
	 content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: -30px;
    background: black;
    transform-origin: 0 0;
    transform: skew(-14deg) translateX(-120%);
    transition: all .275s .1s;
}

.main-nav.is-open::before {
    transform: skew(-14deg) translateX(0);
}

/* Skewing effect on menu links */
.main-nav ul {
    display: inline-flex;
    flex-direction: column;
    height: 93%; /* Should be 100%, but we have a notice message :D */
    align-items: flex-end;
    justify-content: center;
    transform: translateX(-18%) skew(-16deg);
}

.main-nav li {
    display: block;
    margin: .5rem 0;
    text-align: right;
    transform: skew(16deg);
}

/* Apparition effect on links */
.main-nav a {
    opacity: 0;
    transform: translateY(-10px);
}

.main-nav.is-open a {
    opacity: 1;
    transform: translateY(0);
}
.main-nav li:nth-child(1) a {
	transition: all 275ms 175ms
}
.main-nav li:nth-child(2) a {
	transition: all 275ms 225ms
}
.main-nav li:nth-child(3) a {
	transition: all 275ms 275ms
}
.main-nav li:nth-child(4) a {
	transition: all 275ms 325ms
}
.main-nav li:nth-child(5) a {
	transition: all 275ms 375ms
}


/* Decoration */
.main-nav ul,
.main-nav li {
	list-style: none;
	padding: 0;
    font-family: 'MuseoModerno', sans-serif;
}
.main-nav a {
	display: block;
	padding: 12px 0;
	color: white;
	font-size: 2em;
	text-decoration: none;
	font-weight: bold;
}

/* Burger Style: @see: https://codepen.io/CreativeJuiz/full/oMZNXy */
.open-main-nav {
	position: fixed;
	top: 90px;
	padding-top: 20px;
	right: 10%;
	z-index: 3;
	background: none;
	border: 0;
	cursor: pointer;
}
.open-main-nav:focus {
	outline: none;
}


/* Notice */
.notice {
	position: absolute;
	bottom: -170px;
	background: fuchsia;
	z-index: 3;
    height: 340px;
    width: 200%;
    transform: skew(290deg);
}

.footer{
    height: 3em;
    background-color: black;
    display: flex;
    align-items: center;
    position: absolute;
    bottom: 0;
    width: 100vw;
    color: white;
}

.namefooter{
    font-size: 0.8em;
    color: white;
    font-family: 'MuseoModerno', sans-serif;
    position: absolute;
    right: 2%;
    font-weight: 700;
}

.rightsfooter{
    font-size: 0.8em;
    color: white;
    font-family: 'MuseoModerno', sans-serif;
    position: absolute;
    left: 2%;
    font-weight: 700;
}

.project{
    background-color: black;
    height: 100vh;
    display: flex;
    overflow-x: hidden;
    position: relative;
    align-items: center;
    justify-content: center;
}

.project span{
    color: white;
    font-family: 'MuseoModerno', sans-serif;
    text-align: center;
    font-size: 2em;
    padding-left: 3em;
    padding-right: 3em;
}

.contact{
    background-color: black;
    height: 100vh;
    display: flex;
    overflow-x: hidden;
    position: relative;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.contact span{
    color: white;
    font-family: 'MuseoModerno', sans-serif;
    text-align: center;
    font-size: 1.5em;
    padding-left: 3em;
    padding-right: 3em;
}

.cube {
    position: absolute;
    top: 80vh;
    left: 45vw;
    width: 10px;
    height: 10px;
    border: solid 1px rgb(220, 236, 240);
    transform-origin: top left;
    transform: scale(0) rotate(0deg) translate(-50%, -50%);
    -webkit-animation: cube 16s ease-in forwards infinite;
            animation: cube 16s ease-in forwards infinite;
  }
  .cube:nth-child(2n) {
    border-color: rgb(223, 241, 255);
  }
  .cube:nth-child(2) {
    -webkit-animation-delay: 0.1s;
            animation-delay: 0.1s;
    left: 25vw;
    top: 40vh;
  }
  .cube:nth-child(3) {
    -webkit-animation-delay: 1s;
            animation-delay: 1s;
    left: 75vw;
    top: 50vh;
  }
  .cube:nth-child(4) {
    -webkit-animation-delay: 2s;
            animation-delay: 2s;
    left: 90vw;
    top: 10vh;
  }
  .cube:nth-child(5) {
    -webkit-animation-delay: 3s;
            animation-delay: 3s;
    left: 10vw;
    top: 85vh;
  }
  .cube:nth-child(6) {
    -webkit-animation-delay: 4s;
            animation-delay: 4s;
    left: 50vw;
    top: 10vh;
  }
  .cube:nth-child(7) {
    -webkit-animation-delay: 5s;
            animation-delay: 5s;
    left: 30vw;
    top: 30vh;
  }
  .cube:nth-child(8) {
    -webkit-animation-delay: 6s;
            animation-delay: 6s;
    left: 70vw;
    top: 30vh;
  }
  .cube:nth-child(9) {
    -webkit-animation-delay: 7s;
            animation-delay: 7s;
    left: 70vw;
    top: 80vh;
  }
  .cube:nth-child(10) {
    -webkit-animation-delay: 8s;
            animation-delay: 8s;
    left: 40vw;
    top: 60vh;
  }
  .cube:nth-child(11) {
    -webkit-animation-delay: 9s;
            animation-delay: 9s;
    left: 20vw;
    top: 70vh;
  }
  .cube:nth-child(12) {
    -webkit-animation-delay: 10s;
            animation-delay: 10s;
    left: 90vw;
    top: 80vh;
  }
  
  @-webkit-keyframes cube {
    from {
      transform: scale(0) rotate(0deg) translate(-50%, -50%);
      opacity: 1;
    }
    to {
      transform: scale(20) rotate(960deg) translate(-50%, -50%);
      opacity: 0;
    }
  }
  
  @keyframes cube {
    from {
      transform: scale(0) rotate(0deg) translate(-50%, -50%);
      opacity: 1;
    }
    to {
      transform: scale(20) rotate(960deg) translate(-50%, -50%);
      opacity: 0;
    }
  }

  .cube2 {
    position: absolute;
    top: 80vh;
    left: 45vw;
    width: 10px;
    height: 10px;
    border: solid 1px rgb(250, 255, 162);
    transform-origin: top left;
    transform: scale(0) rotate(0deg) translate(-50%, -50%);
    -webkit-animation: cube 16s ease-in forwards infinite;
            animation: cube 16s ease-in forwards infinite;
  }
  .cube2:nth-child(2n) {
    border-color: rgb(178, 183, 108);
  }
  .cube2:nth-child(2) {
    -webkit-animation-delay: 0.1s;
            animation-delay: 0.1s;
    left: 25vw;
    top: 40vh;
  }
  .cube2:nth-child(3) {
    -webkit-animation-delay: 1s;
            animation-delay: 1s;
    left: 75vw;
    top: 50vh;
  }
  .cube2:nth-child(4) {
    -webkit-animation-delay: 2s;
            animation-delay: 2s;
    left: 90vw;
    top: 10vh;
  }
  .cube2:nth-child(5) {
    -webkit-animation-delay: 3s;
            animation-delay: 3s;
    left: 10vw;
    top: 85vh;
  }
  .cube2:nth-child(6) {
    -webkit-animation-delay: 4s;
            animation-delay: 4s;
    left: 50vw;
    top: 10vh;
  }
  .cube2:nth-child(7) {
    -webkit-animation-delay: 5s;
            animation-delay: 5s;
    left: 30vw;
    top: 30vh;
  }
  .cube2:nth-child(8) {
    -webkit-animation-delay: 6s;
            animation-delay: 6s;
    left: 70vw;
    top: 30vh;
  }
  .cube2:nth-child(9) {
    -webkit-animation-delay: 7s;
            animation-delay: 7s;
    left: 70vw;
    top: 80vh;
  }
  .cube2:nth-child(10) {
    -webkit-animation-delay: 8s;
            animation-delay: 8s;
    left: 40vw;
    top: 60vh;
  }
  .cube2:nth-child(11) {
    -webkit-animation-delay: 9s;
            animation-delay: 9s;
    left: 20vw;
    top: 70vh;
  }
  .cube2:nth-child(12) {
    -webkit-animation-delay: 10s;
            animation-delay: 10s;
    left: 90vw;
    top: 80vh;
  }
  
  @-webkit-keyframes cube2 {
    from {
      transform: scale(0) rotate(0deg) translate(-50%, -50%);
      opacity: 1;
    }
    to {
      transform: scale(20) rotate(960deg) translate(-50%, -50%);
      opacity: 0;
    }
  }
  
  @keyframes cube2 {
    from {
      transform: scale(0) rotate(0deg) translate(-50%, -50%);
      opacity: 1;
    }
    to {
      transform: scale(20) rotate(960deg) translate(-50%, -50%);
      opacity: 0;
    }
  }

  #about2{
    background-color: rgb(227, 227, 227);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
    border-left: 0.5em solid black;
    border-right: 0.5em solid black;
  }

  #about2 span{
    font-family: 'MuseoModerno', sans-serif;
    font-size: 1.2em;
    color: black;
    display: flex;
    text-align: center;
    font-weight: 600;
    padding-left: 2em;
    padding-right: 2em;
    z-index: 1;
}

