/* fonts */
@font-face {
  font-family: "VodafoneBold";
  src: url("fonts/vodafone_bd-webfont.woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "VodafoneRg";
  src: url("fonts/vodafonerg-webfont.woff");
  font-weight: normal;
  font-style: normal;
}

html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
}
/* main */
body {
  font-family: "VodafoneRg", serif;
  background: #e60000;
  z-index: 1;
  position: relative;
}

h1 {
  font-family: "VodafoneBold", serif;
  font-size: 4rem;
  line-height: 4.5rem;
  color: #fff;
  font-weight: 100;
  margin-bottom: 30px;
}

a {
  font-family: "VodafoneBold", serif;
  padding: 10px 20px;
  background: #ffffff 0 0 no-repeat padding-box;
  box-shadow: 0 10px 24px #ac7dfd29;
  border-radius: 4px;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  color: #e60000;
  font-weight: 600;
  letter-spacing: 0.03em;
  font-size: 1.2em;
  display: inline-block;
}

/* Logo */
.logo-wrapper {
  margin-top: 30px;
}

.logo-wrapper img {
  max-width: 100px;
}

/* Main Section */
.section {
  margin: 200px auto;
  padding: 0 80px;
}

.section_overlay {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  right: 0;
  z-index: -2;
  background-image: url(../img/whitebg.png);
  background-size: 70%;
  background-position-x: right;
  background-position-y: bottom;
  background-repeat: no-repeat;
  padding-top: 5%;
}

img.overlay-image {
  width: 43%;
  position: absolute;
  bottom: 5%;
  right: -1%;
  z-index: -1;
}

img.foglia-image {
  width: 15%;
  position: absolute;
  bottom: -10%;
  z-index: -1;
  left: -3%;
}

img.clouds-overlay-image {
  position: absolute;
  top: 20vh;
  width: 43%;
  z-index: -1;
  right: -3%;
  animation: 5s linear 0s slide normal;
}

@keyframes slide {
  from {
    right: 100%;
  }
  to {
    right: -3%;
    transform: translateX(0);
  }
}

/* animation */
canvas {
  margin-left: -30px;
}

span {
  height: 7px;
  width: 20px;
  display: inline-block;
  cursor: pointer;
  position: absolute;
  top: 0;
  transition: height 0.2s;
  -o-transition: height 0.2s;
  -moz-transition: height 0.2s;
  -webkit-transition: height 0.2s;
}

span:hover {
  height: 12px;
}

#blue {
  background-color: #e60000;
  left: 30px;
}

#container {
  width: 100%;
}

.d-none {
  display: none;
}

@media only screen and (max-device-width: 449px) {
  .section {
    margin: 25vh auto;
  }

  .container {
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
  }

  .logo-wrapper img {
    float: unset;
    width: 100%;
    max-width: 100px;
  }

  h1 {
    font-size: 4.5rem;
  }

  img.overlay-image {
    width: 100%;
    bottom: 2%;
    right: -3%;
  }

  img.clouds-overlay-image {
    width: 100%;
    top: 45vh;
    right: -6%;
  }

  img.foglia-image {
    display: none;
  }

  .section_overlay {
    background-size: 140%;
    background-position-x: right;
    background-position-y: bottom;
  }

  a {
    font-size: 2.2em;
    border-radius: 10px;
    letter-spacing: 0;
    padding: 0.7em;
  }

  @keyframes slide {
    from {
      right: 100%;
    }
    to {
      right: -6%;
      transform: translateX(0);
    }
  }
}

@media only screen and (min-device-width: 450px) and (max-device-width: 768px) {
  .container {
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
  }

  .logo-wrapper img {
    float: unset;
    width: 100%;
    max-width: 100px;
  }

  h1 {
    font-size: 3.5rem;
    line-height: unset;
  }

  img.overlay-image {
    width: 100%;
    bottom: 2%;
    right: -3%;
  }

  img.clouds-overlay-image {
    width: 100%;
    top: 25vh;
    right: -6%;
  }

  img.foglia-image {
    display: none;
  }

  .section_overlay {
    background-size: 150%;
    background-position-x: right;
    background-position-y: bottom;
  }

  .section {
    margin-top: 100px;
  }

  a {
    font-size: 1.6em;
    letter-spacing: 0;
    padding: 0.7em;
    margin: 0 -10em;
  }

  @keyframes slide {
    from {
      right: 100%;
    }
    to {
      right: -6%;
      transform: translateX(0);
    }
  }
}

@media only screen and (min-device-width: 769px) and (max-device-width: 1024px) {
  .container {
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
  }

  .logo-wrapper img {
    float: unset;
    width: 100%;
    max-width: 100px;
  }

  h1 {
    font-size: 4.5rem;
  }

  img.overlay-image {
    width: 100%;
    bottom: 2%;
    right: -3%;
  }

  img.foglia-image {
    display: none;
  }

  img.clouds-overlay-image {
    width: 100%;
    top: 25vh;
    right: -6%;
  }

  .section_overlay {
    background-size: 140%;
    background-position-x: right;
    background-position-y: bottom;
  }

  a {
    font-size: 2.2em;
    border-radius: 10px;
    letter-spacing: 0;
    padding: 0.7em;
  }

  @keyframes slide {
    from {
      right: 100%;
    }
    to {
      right: -6%;
      transform: translateX(0);
    }
  }
}

@media screen and (orientation: landscape) and (max-device-width: 1024px) {
  body {
    display: flex;
  }

  .section {
    margin: auto;
    text-align: center;
  }

  .landscape-d-none {
    display: none !important;
  }

  h1 {
    font-size: 2.5rem;
    line-height: unset;
  }

  a {
    font-size: 1.2em;
  }
}
