html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

.body {
    background-color: #92c0bd;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}
.play-wrapper {
    position: absolute;
    z-index: 900;
    text-align: center;
    bottom: 7vh;
    width: 100%;
}
#play-icon {
    color: #fff;
    background-color: #000;
    padding: 10px 20px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
}
.title {
    position: absolute;
    z-index: 20;
    top: 7vh;
    left: 0;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}
h1 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #000;
    text-align: center;    
    font-family: 'Uncial Antiqua', cursive;
    font-weight: 900;
    width: 100%;
    font-size: 120px;
    /* text-shadow: 0 1px 0 #ccc,
               0 2px 0 #c9c9c9,
               0 3px 0 #bbb,
               0 6px 1px rgba(0,0,0,.1),
               0 0 5px rgba(0,0,0,.1),
               0 1px 3px rgba(0,0,0,.3),
               0 3px 5px rgba(0,0,0,.2),
               0 5px 10px rgba(0,0,0,.25),
               0 10px 10px rgba(0,0,0,.2),
               0 20px 20px rgba(0,0,0,.15);*/
}

.langs {
    text-align: center;
    left: 0;
    width:100%;
    justify-content: center;
    z-index: 200;
    display: flex;
}
.langs a {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4px 4px 2px;    
    
    background: #000000;
    border-radius: 6px; 
    color: #fff;  
    text-decoration: none;  
}
.langs a .flag {
    width: 50px;
    height: 24px;  
    flex: none;
    order: 0;
    flex-grow: 0; 
    margin-bottom: 2px;
    background-size: cover;
    background-position: center center;
}
.langs a span {
    font-family: 'Mulish';
    font-weight: 900;
    font-size: 11px;
    line-height: 15px;
}
.langs .eng, .langs .ita {
    margin-right: 18px;
}
.eng .flag {
    background-image: url(../img/eng.png);
}
.ita .flag {
    background-image: url(../img/ita.png);
}
.esp .flag {
    background-image: url(../img/esp.png);
}
.social {
    position: absolute;
    z-index: 50;
    bottom: 14vh;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
}
.social a {
    margin: 0 4px;
}



audio {
    position: absolute;
    z-index: 50;
}

.background {
    width: 100%;
    height: 100%;
    background-image: url(../img/bg.jpg);
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.plan-4 {
    width: calc(100% + 40px);
    height: 125vh;
    top: -15%;
    position: absolute;
    left: 0;
    background-image: url(../img/plan-4.png);
    background-size: 100% auto;
    background-position: center center;
    z-index: 3;
    animation: wave 14s ease-in infinite;
    background-repeat: no-repeat;
}
.plan-4-eye {
    width: 100%;
    height: 100%;
    background-image: url(../img/plan-4-eye.png);
    background-size: 100% auto;
    background-position: center center;
    animation: spark 5s infinite;
    background-repeat: no-repeat;
}

.plan-3 {
    width: calc(100% + 40px);
    height: 95vh;
    bottom: 6vh;
    position: absolute;
    left: 0;
    background-image: url(../img/plan-3.png);
    background-size: 100% auto;
    background-position: center center;
    z-index: 5;
    animation: wave 12s ease-out -4s infinite;
    background-repeat: no-repeat;
}

.plan-2 {
    width: calc(100% + 40px);
    height: 36vh;
    bottom: 2vh;
    position: absolute;
    left: 0;
    background-image: url(../img/plan-2.png);
    background-size: 100% auto;
    background-position: top center;
    z-index: 7;
    animation: wave 10s ease-in infinite;
    background-repeat: no-repeat;
}

.plan-1 {
    width: calc(100% + 40px);
    height: 28vh;
    bottom: 0;
    position: absolute;
    left: 0;
    background-image: url(../img/plan-1.png);
    background-size: 100% auto;
    background-position: top center;
    z-index: 9;
    animation: wave 10s ease-in -5s infinite;
    background-repeat: no-repeat;
}

@media (orientation: portrait) {
    .title {
        top: 5vh;        
    }
    .play-wrapper {
        bottom: 5vh;
    }
    h1 {
        line-height: 1.1;
    }
    .plan-4 {
        height: 73vh;
        bottom: 14vh;
        top: auto;
        background-position: center bottom;
    }
    .plan-4-eye {
        background-position: center bottom;
    }
    .plan-3 {
        height: 68vh;
        bottom: 9vh;
        background-position: center bottom;
    }
    .plan-2 {
        height: 44vh;
        bottom: 6vh;
        background-position: center bottom;
    }
    .plan-1 {
        height: 39vh;
        background-position: center bottom;
    }
}
@media screen and (max-device-width: 1200px)  {
    h1 {
        font-size: 90px;
    }
}
@media screen and (max-device-width: 1000px)  {
    h1 {
        font-size: 70px;
    }
}
@media screen and (max-device-width: 800px)  {
    h1 {
        font-size: 50px;
    }
}
@media screen and (max-device-width: 600px)  {
    h1 {
        font-size: 40px;
    }
    .langs a {
        padding: 3px 3px 2px;    
    }
    .langs a .flag {
        width: 36px;
        height: 16px;  
    }
}
@media screen and (max-device-width: 500px)  {
    h1 {
        font-size: 32px;
    }
}
@media screen and (max-device-width: 991px)  {
    .plan-1 {
        animation: wavemobile 10s ease-in-out -5s infinite;
        background-image: url(../img/plan-1-sm.png);
    }
    .plan-2 {
        animation: wavemobile 10s ease-in infinite;
        background-image: url(../img/plan-2-sm.png);
    }
    .plan-3 {
        animation: wavemobile 12s ease-out -4s infinite;
        background-image: url(../img/plan-3-sm.png);
    }
    .plan-4 {
        animation: wavemobile 14s ease-in infinite;
        background-image: url(../img/plan-4-sm.png);
    }
    .plan-4-eye {
        background-image: url(../img/plan-4-eye-sm.png);
    }
}

@keyframes wave {
    0% {
      transform: translate(0,0);
    }
    12.5% {
        transform: translate(-10px,5px);
    }
    25% {
        transform: translate(-20px,0);
    }
    37.5% {
        transform: translate(-30px,7px);
    }
    50% {
        transform: translate(-40px,0);
    }
    62.5% {
        transform: translate(-30px,7px);
    }
    75% {
        transform: translate(-20px,0);
    }
    87.5% {
        transform: translate(-10px,5px);
    }
    100% {
        transform: translate(0,0);
    }
  }


  @keyframes wavemobile {
    0% {
      transform: translate(0,0);
    }
    12.5% {
        transform: translate(-5px,2px);
    }
    25% {
        transform: translate(-10px,0);
    }
    37.5% {
        transform: translate(-15px,3px);
    }
    50% {
        transform: translate(-20px,0);
    }
    62.5% {
        transform: translate(-15px,3px);
    }
    75% {
        transform: translate(-10px,0);
    }
    87.5% {
        transform: translate(-5px,2px);
    }
    100% {
        transform: translate(0,0);
    }
  }
  @keyframes spark {
    0% {
        opacity: 0;
    }
    25% {
        opacity: 0.5;
    }
    30% {
        opacity: 0;
    }
    50% {
        opacity: 0.7;
    }
    60% {
        opacity: 0;
    }
    95% {
        opacity: 0;
    }
    96% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
  }
