@import url("https://fonts.googleapis.com/css2?family=BenchNine:wght@700&display=swap");
body {
  width: 95%;
  height: 95%;
  margin: 2% auto 2% auto;
  margin: auto;
  overflow-x: hidden;

  -webkit-animation: fadein 4s; /* Safari, Chrome and Opera > 12.1 */
  -moz-animation: fadein 4s; /* Firefox < 16 */
  -ms-animation: fadein 4s; /* Internet Explorer */
  -o-animation: fadein 4s; /* Opera < 12.1 */
  animation: fadein 4s;
}

@keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Firefox < 16 */
@-moz-keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Safari, Chrome and Opera > 12.1 */
@-webkit-keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Internet Explorer */
@-ms-keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Opera < 12.1 */
@-o-keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

nav {
  display: inline-flex;
  width: 100%;
  justify-content: space-around;
  position: fixed;
  margin-top: 3%;
  left: 0;
  right: 0;
  top: 0;
  z-index: 2;
}

a {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  font-size: 30px;
  text-decoration: none;
  color: rgba(38, 38, 38, 0.5);
  display: inline-block;
  text-align: center;
  transition: color 0.3s;
  z-index: 2;

}

nav a img {
  opacity: 0.5;
  width: 20px;
  transition-duration: 0.3s;
  z-index: 2;

}

/* END NAV */

/* START SECTION INTRO */
.title h1 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  text-align: center;
  color: rgb(38, 38, 38);
  font-size: 172px;
  display: flex;
  justify-content: center;
  margin: 0px;
}

.title {
  width: 100%;
  margin-top: 15%;
  margin-bottom: 3%;
}

#text-middle {
  width: 100%;
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

div.intro-text {
  width: 60%;
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-bottom: 3%;
  margin-top: 3%;
}

.intro-text h2 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;

  text-align: center;
  color: rgb(38, 38, 38);
  font-size: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#video_coin {
  width: 100%;
  height: 90%;
  border-radius: 40px;
}

.trailer-video {
  border-radius: 5%;
}
/* END SECTION INTRO */

/* START SECTION 1 */
section.section-projects,
section.section-projects a {
  width: 100%;
  display: flex;
  justify-content: space-around;
  margin-bottom: 5%;
  z-index: 1;

}

section.sezione1 {
  width: 100%;
  display: inline-block;
  justify-content: space-around;
  display: inline-flex;
}

section.section-texts {
  width: 100%;
  justify-content: space-around;
  display: flex;
}

#image-box,
.box1 a,
.box2 a {
  width: 90%;
  margin-bottom: 1%;
  border-radius: 5%;
  align-items: center;
}

.box1 #box,
.box2 #box {
  justify-content: space-around;
  position: relative;
  transition-duration: 0.5s;
}

.box1 h2,
.box2 h2 {
  color: rgba(38, 38, 38, 0.85);

  font-size: 250%;
  position: absolute;
  align-items: center;
  display: block;
  transition-duration: 0.5s;
}
.box_ img {
  transition-duration: 0.5s;
}
/* START EFFECTS */

nav a:hover {
  color: rgba(38, 38, 38, 1);
}
footer a:hover {
  color: rgba(38, 38, 38, 1);
}
nav a img:hover {
  opacity: 1;
}
footer a img:hover {
  opacity: 0.3;
}

#image-box:hover {
  opacity: 0.3;
}

.box1 a h2:hover {
  opacity: 0.8;
}

footer {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 35px;
}

footer p {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  color: rgb(14, 14, 14);
  font-size: small;
  text-align: center;
  width: fit-content;
  margin: auto;
  display: block;
}

@media (max-width: 950px) {
  .title h1 {
    font-size: 600%;
  }

  nav a {
    font-size: 20px;
    display: inline-flex;
    align-items: center;
    margin-top: 3%;
  }

  .title {
    margin-top: 25%;
  }

  div.intro-text {
    width: 85%;
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 3%;
    margin-top: 3%;
  }

  #video_coin {
    width: 100%;
    height: 60%;
    border-radius: 40px;
  }

  .intro-text h2 {
    font-size: 25px;
  }

  section.section-projects {
    flex-direction: column;
    margin: 0px;
  }

  #image-box,
  .box1 a,
  .box2 a {
    width: 90%;
    height: 90%;
    border-radius: 5%;
    align-items: center;
  }

  #image-box {
    margin-bottom: 5%;
    opacity: 0.8;
  }

  .box1 a,
  .box2 a {
    display: flex;
    align-content: flex-end;
    flex-direction: column;
  }

  .box1 h2,
  .box2 h2 {
    color: rgb(38, 38, 38);
    opacity: 1;
    font-size: 50px;
    position: absolute;
    align-items: center;
    display: block;
    transition-duration: 0.5s;
  }
}

@media (max-width: 550px) {
  .title h1 {
    font-size: 300%;
  }
}

@media (min-width: 2500px) {
  #text-middle div {
    width: 40%;
    margin: 5%;
  }

  .title h1 {
    font-size: 250px;
  }

  .box1 h2,
  .box2 h2 {
    font-size: 90px;
  }

  .intro-text h2 {
    font-size: 65px;
  }
}
