body {
    background-image: url("img/yellowishbg.png");
    background-attachment: fixed;
    background-repeat: no-repeat;
}

iframe {
    min-height: 315;
    min-width: 560;
    max-width: 980;
    max-height: 551.25;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0; 
    right: 0; 
    bottom: 0; 
    left: 0;
    margin: auto;
    object-fit: contain;
}

/* Animated Footer */

@keyframes waves{
    from {
        background-position: 36000vw 0;
    }
    to {
        background-position: 0 0;
    }
}

@keyframes bob{
    from{
        transform: translateY(0%);
        -moz-transform: -moz-translateY(0%);
        -webkit-transform: -webkit-translateY(0%);
    }
    to{
        transform: translateY(5%);
        -moz-transform: -moz-translateY(5%);
        -webkit-transform: -webkit-translateX(5%);
    }
}

@keyframes setSail{
    from{
        transform: translate(0);
    }
    50%{
        left: 101vw;
        visibility: hidden;
    }
    75%{
        left: -101vw;
        visibility: hidden;
    }
    to{
        transform: translate(0);
        visibility: visible;
    }
}

#animated-border{
    overflow: hidden;
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    height: 20%;
    background: url("img/wavesbg.png") no-repeat 0 0;
    background-size: 100% 75%;
    background-position: bottom;
    margin-top: 50px;
    pointer-events:none;
}

#waves{
    animation-duration: 7200s;
    animation-name: waves;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
    background: url("img/wavesfg.png") repeat-x;
    background-size: cover;
    position: fixed;
    bottom: -1.5vh;
    width: 100%;
    height: 10%;
}

#ship{
    position: absolute;
    max-height: 80%;
    left: 50px;
    bottom: 10%;
    pointer-events: all;
    cursor: pointer;
}

.setSail{
    animation-name: setSail;
    animation-duration: 10s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
    animation-timing-function: ease-in;
}

#ship-container{
    min-height: 100%;
    animation-duration: 1s;
    animation-name: bob;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
    animation-direction: alternate;
}

/* Mobile Style Differences */

@media only screen and (max-device-width: 480px){
    body{
        background-size: cover;
    }
    
    #footer{
        margin-bottom: 25%;
    }
}