﻿.seaContainer {
    position: absolute;
    bottom: 16px;
    left: 0%;
    width: 100%;
    height: 260px;
    /*background: #130560;*/
    overflow: hidden;
}

.submarine__container {
    position: absolute;
    bottom: 0px;
    left: 40%;
    width: 400px;
    height: 200px;
    /*transform: translate(-50%, -50%);*/
}

.submarine__body {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 250px;
    height: 80px;
    background: #e30449;
    border-radius: 50px;
    transform: translate(-50%, -50%);
}

.submarine__propeller {
    position: absolute;
    left: 80%;
    top: 50%;
    width: 30px;
    height: 50px;
    transform: translate(0%, -50%);
    perspective: 600px;
}

.propeller__perspective {
    width: 100%;
    height: 100%;
    transition: transform 1s;
    transform-style: preserve-3d;
    animation: rotateInfinite 1s linear infinite;
    cursor: pointer;
}

.submarine__propeller-parts {
    position: absolute;
    left: 0%;
    width: 100%;
    height: 100%;
    top: 0%;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.darkOne {
    top: 0%;
    background: #f7ac08;
    transform: rotateY(180deg)rotateX(225deg)
}

.lightOne {
    top: 0%;
    background: #f7e349;
    transform: rotateX(45deg);
}

.submarine__sail {
    position: absolute;
    top: 40%;
    left: 50%;
    width: 90px;
    height: 50px;
    transform: translate(-50%, -100%);
    background: #c6003d;
    clip-path: polygon(0% 0%, 70% 0%, 100% 100%, 0% 100%);
}

.submarine__sail-shadow {
    position: absolute;
    width: 160%;
    height: 10%;
    background: #a10532;
    border-radius: 5px;
}

.dark1 {
    left: 0%;
    top: 0%;
    transform: translate(0%, -33%);
}

.dark2 {
    left: 0%;
    top: 50%;
}

.light1 {
    left: 20%;
    top: 20%;
    width: 50%;
    background: $lightShadowColor;
}

.submarine__window {
    width: 25px;
    height: 25px;
    border-radius: 100%;
    background-image: linear-gradient(45deg,#c9e5d9,#fff);
    border: 8px solid #a10532;
    z-index: 10;
    animation: shadow-change 1s linear infinite;
}

.one,
.two {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
}

.one {
    left: 40%;
}

.two {
    left: 20%;
}

.submarine__shadow-dark {
    position: absolute;
    left: 70%;
    top: 50%;
    width: 70px;
    height: 10px;
    border-radius: 5px;
    transform: translate(-50%, -50%);
    background: #a10532;
}

.submarine__shadow-light {
    position: absolute;
    left: 35%;
    top: 13%;
    width: 100px;
    height: 6px;
    border-radius: 5px;
    transform: translate(-50%, -50%);
    background: $lightShadowColor;
}

.submarine__shadow-arcLight {
    position: absolute;
    top: 65%;
    left: 80%;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: $lightShadowColor;
}

.submarine__periscope {
    position: absolute;
    top: 0%;
    left: 40%;
    width: 20px;
    height: 50px;
    border-right: 10px solid #e92d77;
    border-top: 10px solid #c6003d;
    border-left: 0px solid transparent;
    border-bottom: 0px solid transparent;
    border-top-right-radius: 10px;
}

.submarine__periscope-glass {
    position: absolute;
    left: 40%;
    top: 0%;
    width: 5px;
    height: 15px;
    background: #f7ac08;
    transform: translate(-50%, -15%);
}

.light {
    position: absolute;
    top: 0%;
    left: 0%;
    width: 500px;
    height: 100px;
    background: linear-gradient(to left, #eeeeee80, #ffffff05);
    /* The points are: centered top, left bottom, right bottom */
    clip-path: polygon(0% 0%, 50% 45%, 50% 55%, 0% 100%);
    transform: translate(-18%, -45%);
}

.bubbles__container {
    position: absolute;
    top: 50%;
    left: 55%;
    width: 100px;
    height: 50px;
    transform: translate(100%,-50%);
}

.bubbles {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 100%;
    left: 5%;
    top: 5%;
    background: #fff;
    opacity: 0.8;
}

.ground__container {
    position: absolute;
    top: 75%;
    left: 0%;
    width: 100%;
    height: 25%;
    background: #08003b;
    margin-top: 20px;
}

.ground1 {
    top: 75%;
    height: 100%;
    background: #0c0051;
}

.ground2 {
    position: absolute;
    top: 35%;
    width: 100%;
    height: 100%;
    background: #08003b;
}

.ground span {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 100%;
}

.ground1 span {
    background: #0c0051;
}

.ground2 span {
    background: #08003b;
    width: 80px;
    height: 80px;
    border-radius: 100%;
    transform: translateY(30%);
}


/*//animation

@keyframes shadow-change {
    0%,100%

{
    background-image: linear-gradient(45deg,#c9e5d9 0%,#c9e5d9 20%,#fff 21%, #fff 39%, #c9e5d9 40%,#fff 41%,#fff 59%,#c9e5d9 60%);
}

20% {
    background-image: linear-gradient(45deg,#c9e5d9 20%,#c9e5d9 40%,#fff 41%, #fff 59%, #c9e5d9 60%,#fff 61%,#fff 79%,#c9e5d9 80%);
}

40% {
    background-image: linear-gradient(45deg,#c9e5d9 40%,#c9e5d9 60%,#fff 61%, #fff 79%, #c9e5d9 80%,#fff 81%,#fff 99%,#c9e5d9 0%);
}

60% {
    background-image: linear-gradient(45deg,#c9e5d9 60%,#c9e5d9 80%,#fff 81%, #fff 99%, #c9e5d9 0%,#fff 1%,#fff 19%,#c9e5d9 20%);
}

80% {
    background-image: linear-gradient(45deg,#c9e5d9 80%,#c9e5d9 0%,#fff 1%, #fff 19%, #c9e5d9 20%,#fff 21%,#fff 39%,#c9e5d9 40%);
}*/


@keyframes move-right {
    0% {
        opacity: 0;
    }

    10% {
        opacity: 0.4;
        transform: translate(10%,10%);
    }

    50% {
        opacity: 0.2;
        transform: translate(450%,25%);
    }

    80% {
        opacity: 0;
        transform: translateX(555%);
    }

    100% {
        opacity: 0;
        left: 0%;
        top: 0%;
    }
}

@keyframes rotateInfinite {
    0% {
        transform: rotateX(0deg);
    }

    50% {
        transform: rotateX(180deg);
    }

    100% {
        transform: rotateX(360deg);
    }
}

@keyframes moveThegroundRight {
    90% {
        opacity: 1;
        left: 100%;
    }

    95%,100% {
        left: 1050%;
        opacity: 0;
    }
}


/*Fish*/
svg#fish {
    top: 5em;
}
/* Fish Animation */
svg.fish {
    overflow: visible;
}

@-webkit-keyframes swim {
    0% {
        margin-left: -235px
    }

    90% {
        margin-left: 100%;
    }

    100% {
        margin-left: 100%;
    }
}

@keyframes swim {
    0% {
        margin-left: -235px
    }

    70% {
        margin-left: 100%;
    }

    100% {
        margin-left: 100%;
    }
}

.fish {
    width: 235px;
    height: 104px;
    margin-left: -235px;
    position: absolute;
    animation: swim 20s;
    -webkit-animation: swim 20s;
    animation-iteration-count: infinite;
    -webkit-animation-iteration-count: infinite;
    animation-timing-function: linear;
    -webkit-animation-timing-function: linear;
}

svg #fish1,
svg #fish2,
svg #fish3,
svg #fish4,
svg #fish5,
svg #fish6 {
    fill: #528484;
    -moz-animation: bounce 2s infinite;
    -webkit-animation: bounce 2s infinite;
    animation: bounce 2s infinite;
}

svg #fish2 {
    animation-delay: 0.5s;
    -webkit-animation-delay: 0.5s;
}

svg #fish3 {
    animation-delay: 0.2s;
    -webkit-animation-delay: 0.2s;
}

svg #fish4 {
    animation-delay: 0.4s;
    -webkit-animation-delay: 0.4s;
}

svg #fish5 {
    animation-delay: 0.1s;
    -webkit-animation-delay: 0.1s;
}

svg #fish6 {
    animation-delay: 0.3s;
    -webkit-animation-delay: 0.3s;
}

/**/
@-moz-keyframes bounce {
    0%, 50%, 100% {
        -moz-transform: translateY(0);
        transform: translateY(0);
    }

    25% {
        -moz-transform: translateY(-5px);
        transform: translateY(-5px);
    }

    75% {
        -moz-transform: translateY(-3px);
        transform: translateY(-3px);
    }
}

@-webkit-keyframes bounce {
    0%, 50%, 100% {
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }

    25% {
        -webkit-transform: translateY(-5px);
        transform: translateY(-5px);
    }

    75% {
        -webkit-transform: translateY(-3px);
        transform: translateY(-3px);
    }
}

@keyframes bounce {
    0%, 50%, 100% {
        -moz-transform: translateY(0);
        -ms-transform: translateY(0);
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }

    25% {
        -moz-transform: translateY(-5px);
        -ms-transform: translateY(-5px);
        -webkit-transform: translateY(-5px);
        transform: translateY(-5px);
    }

    75% {
        -moz-transform: translateY(-3px);
        -ms-transform: translateY(-3px);
        -webkit-transform: translateY(-3px);
        transform: translateY(-3px);
    }
}

/*END Fish Animation*/