html {
    scroll-behavior: smooth;
    transition: 0s ease-in;
}

* {
    position: relative;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Times New Roman", Times, serif;
}

body {
    min-height: 100vh;
    max-width: 100vw;
    background: #05021b;
    justify-content: center;
    overflow-x: hidden;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 20px;
    padding: 30px 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #07030ee2;
    z-index: 2000;
    transition: 2s ease-in;
}

header::before {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0px;
    top: 50px;
    width: 100%;
    height: 70px;
    background: linear-gradient(to bottom, #07030e19, transparent);
    z-index: 500;
}

header .logo {
    position: absolute;
    width: 20px;
    transform: scale(0.15);
    border-radius: 50%;
    left: 0;
    z-index: 1000;
}

header .logo:hover {
    opacity: 0.4;
}

header ul {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    list-style-type: none;
    font-weight: bold;
    z-index: 1000;
    margin-left: 220px;
    font-size: 20px;
}

header ul li a {
    text-decoration: none;
    padding: 6px 15px;
    color: #fff;
    border-radius: 20px;
    margin-left: 55px;
    z-index: 1000;
    transition: 1s;
}

header ul li a:hover,
#active {
    background: #fff;
    color: #2b1055;
}

section {
    position: absolute;
    width: 100%;
    height: 100vh;
    padding: 100px;
    bottom: 20px;
    top: -60px;
}

section img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

section img#sky {
    filter: brightness(20%);
    transition: ease-in;
    margin-left: 60px;
    transform: scale(1.2);
}

section img#stars {
    filter: brightness(70%);
    transition: ease-in;
    margin-bottom: 100px;
    height: 500px;
}

section img#moonland {
    position: absolute;
    margin-top: 300px;
    z-index: 10;
}

section img#spaceship1 {
    position: absolute;
    top: -40px;
    margin-left: 500px;
    transform: scale(0.6);
    transition: ease-in;
    filter: brightness(30%);
}

section img#spaceship2 {
    position: absolute;
    top: -40px;
    margin-left: -470px;
    transform: scale(0.6);
    transition: ease-in;
    filter: brightness(30%);
}

#cartoonanim {
    position: absolute;
    z-index: 5000;
}

#eyes .eye {
    position: absolute;
    z-index: 5000;
    width: 35px;
}

#lefteye {
    margin-left: 68px;
    margin-top: -12px;
    filter: brightness(04%);
    z-index: 5000;
}

#righteye {
    margin-left: 5px;
    margin-top: -12px;
    filter: brightness(04%);
    z-index: 5000;
}

#anchor {
    position: absolute;
    width: 108px;
    margin-top: -33px;
    filter: brightness(40%);
    z-index: 5000;
}

.btn {
    text-decoration: none;
    display: inline-block;
    padding: 8px 30px;
    border-radius: 40px;
    background: rgba(200, 199, 213, 0.758);
    color: #2b1055;
    font-size: 1.5em;
    z-index: 200;
    margin-left: 470px;
    margin-top: 200px;
    cursor: pointer;
}

#oceandive {
    position: absolute;
    margin-left: -149px;
    top: -6px;
    padding: 8px 20px;
}

.btn:hover {
    background: #600808;
    color: white;
}

#oceandive:hover {
    background: url(images/oceandive.jpg);
}

section img#tesla {
    position: absolute;
    transform: scale(1.3);
    height: 640px;
    width: 744px;
    margin-top: 270px;
    margin-left: 390px;
    transition: ease-in;
    filter: brightness(80%);
    z-index: 20;
}

section img#clouds {
    position: absolute;
    margin-top: -98px;
    width: 1800px;
    height: 500px;
    margin-left: 300px;
    transition: ease-in;
    filter: brightness(30%);
    z-index: 20;
    opacity: 15%;
}

section img#city {
    position: absolute;
    margin-top: 180px;
    width: 1920px;
    height: 1080px;
    margin-left: -295px;
    transition: ease-in;
    filter: brightness(20%);
    z-index: 2;
}

#welcome {
    position: absolute;
    font-size: 7.5vw;
    white-space: nowrap;
    margin-top: 240px;
    margin-left: 427px;
    color: white;
    z-index: 15;
}

#info h1 {
    font-size: 40px;
}

#info {
    position: relative;
    bottom: -890px;
    text-align: center;
    z-index: 1000;
    color: rgb(255, 255, 255);
    background: rgb(97, 91, 88);
    width: 400px;
    border-radius: 20px;
    align-items: center;
    justify-content: center;
    margin-left: -1200px;
    padding: 10px;
}

#info p {
    margin-bottom: 20px;
    font-size: 40px;
}

#clouds {
    position: relative;
    width: 100%;
    height: 80px;
    top: 790px;
    transform: scale(1.3);
    filter: brightness(20%);
}

#about {
    position: absolute;
    margin-top: 980px;
    text-align: center;
    z-index: 1000;
    color: rgb(255, 255, 255);
    background: rgb(97, 91, 88);
    width: 400px;
    border-radius: 20px;
    align-items: center;
    justify-content: center;
    padding: 10px;
    z-index: 200;
    font-size: 30px;
    margin-left: 2700px;
}

#aboutlink {
    position: absolute;
    bottom: -100px;
}

.column {
    float: left;
    width: 33.33%;
    padding: 5px;
    transition: 0.5s ease-in;
    cursor: pointer;
}

#portfolio h1 {
    font-size: 30px;
    color: white;
    margin-left: -1800px;
    margin-bottom: 40px;
}

.row {
    position: absolute;
    top: 1450px;
    z-index: 20;
}

.column:hover {
    transform: scale(1.04);
}


/* Clearfix (clear floats) */

.row::after {
    content: "";
    clear: both;
    display: table;
}

input[type="text"],
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    margin-top: 6px;
    margin-bottom: 16px;
    resize: vertical;
    background-color: rgb(2, 10, 22);
}

input[type="submit"] {
    background-color: #000000;
    color: rgb(255, 255, 255);
    padding: 12px 20px;
    border: solid white;
    border-radius: 6px;
    cursor: pointer;
}

#country {
    color: rgb(99, 97, 97);
}

input[type="submit"]:hover {
    background-color: #ffffff;
    border: solid black 4px;
    color: black;
}

label {
    color: white;
}

.container {
    position: relative;
    top: 3209px;
    border-radius: 10px solid white;
    background-color: #0a1e4100;
    padding: 20px;
    z-index: 10;
}

#contactus {
    color: white;
    text-align: center;
    text-decoration: none;
}

#contactus a {
    text-decoration: none;
    color: white;
    font-size: large;
    transition: 0.5s ease-in;
}

#contactus a:hover {
    color: #755ba0;
}

#contact {
    position: absolute;
    background-color: rgba(5, 5, 131, 0.468);
    display: inline;
    padding-left: 6px;
    padding-right: 6px;
    border: solid 4px rgba(255, 255, 255, 0.587);
    border-radius: 12px;
    margin-top: -306px;
    margin-left: -89px;
}

#contac p {
    z-index: 4;
    padding: 8px;
    border: 8px;
}

#youtube {
    position: absolute;
    top: 2865px;
    margin-bottom: 20px;
    margin-left: 320px;
    right: 266px;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

#youtube h1 {
    position: absolute;
    top: -145px;
    color: white;
    font-size: 60px;
    left: 134px;
}

#youtube h2 {
    position: absolute;
    top: -72px;
    color: white;
    font-size: 30px;
    left: 47px;
}


/* fish tank */

section img#oceanback {
    position: absolute;
    margin-top: 4270px;
    width: 100%;
    height: 1080px;
    z-index: -5;
    animation: oceanback 20s ease-in forwards infinite;
}

@keyframes oceanback {
    0% {
        opacity: 100%;
    }
    50% {
        opacity: 80%;
    }
    100% {
        opacity: 100%;
    }
}

section img#oceanfront {
    position: absolute;
    margin-top: 4270px;
    width: 100%;
    height: 1080px;
    z-index: 50;
    opacity: 10%;
    animation: oceanfront 15s ease-in forwards infinite;
    transition: 0.5s;
    filter: brightness(50%);
}

@keyframes oceanfront {
    0% {
        opacity: 5%;
    }
    25% {
        opacity: 6%;
    }
    50% {
        opacity: 50%;
    }
    75% {
        opacity: 30%;
    }
    100% {
        opacity: 0%;
    }
}

section .fishes {
    position: absolute;
    margin-top: 4170px;
    z-index: 2;
    transform: scale(1);
}

section #fish1 {
    position: absolute;
    top: 710px;
    z-index: 2;
    width: 400px;
    height: 283px;
    transform: scale(0.6);
    animation: fish1anim 35s ease-in forwards infinite;
    transition: 0.5s;
}

@keyframes fish1anim {
    0% {
        transform: translateX(300%) translateY(0%) scale(0.4);
    }
    100% {
        transform: translateX(-100%) translateY(-20%) scale(0.4);
    }
}

#fish1:hover {
    animation-play-state: paused;
}

section #fish1flip {
    position: absolute;
    top: 710px;
    z-index: 2;
    width: 400px;
    height: 283px;
    transform: scale(0.6);
    animation: fish1flipanim 35s ease-in forwards infinite;
    transition: 0.5s;
}

@keyframes fish1flipanim {
    0% {
        transform: translateX(-100%) translateY(-200%) scale(0.4);
    }
    100% {
        transform: translateX(300%) translateY(-200%) scale(0.4);
    }
}

section #fish2 {
    position: absolute;
    top: 490px;
    z-index: 2;
    width: 400px;
    height: 400px;
    transform: scale(0.7);
    animation: fish2anim 25s ease-in forwards infinite;
    transition: 0.5s;
}

@keyframes fish2anim {
    0% {
        transform: translateX(-100%) translateY(-140%) scale(0.3);
    }
    100% {
        transform: translateX(300%) translateY(-130%) scale(0.35);
    }
}


/* fish 3 */

section #fish3 {
    position: absolute;
    top: 140px;
    z-index: 3;
    width: 400px;
    height: 400px;
    transform: scale(0.5);
    animation: fish3anim 30s ease-in forwards infinite;
    transition: 0.5s;
}

@keyframes fish3anim {
    0% {
        transform: translateX(300%) translateY(-70%) scale(0.3);
    }
    100% {
        transform: translateX(-100%) translateY(-20%) scale(0.4);
    }
}

section #fish3flip {
    position: absolute;
    top: 140px;
    z-index: 3;
    width: 400px;
    height: 400px;
    transform: scale(0.5);
    animation: fish3animflip 35s ease-in forwards infinite;
    transition: 0.5s;
}

@keyframes fish3animflip {
    0% {
        transform: translateX(-100%) translateY(70%) scale(0.4);
    }
    100% {
        transform: translateX(400%) translateY(50%) scale(0.5);
    }
}

section #fish4 {
    position: absolute;
    top: 390px;
    z-index: 4;
    width: 400px;
    height: 271px;
    transform: scale(0.5);
    animation: fish4anim 25s ease-in forwards infinite;
    transition: 0.5s;
}

@keyframes fish4anim {
    0% {
        transform: translateX(400%) translateY(10%) scale(0.2);
    }
    100% {
        transform: translateX(-100%) translateY(0%) scale(0.2);
    }
}

section #fish4flip {
    position: absolute;
    top: 390px;
    z-index: 1;
    width: 400px;
    height: 271px;
    transform: scale(0.5);
    animation: fish4flipanim 35s ease-in forwards infinite;
    transition: 0.5s;
}

@keyframes fish4flipanim {
    0% {
        transform: translateX(-100%) translateY(-100%) scale(0.2);
    }
    100% {
        transform: translateX(300%) translateY(-50%) scale(0.15);
    }
}

section #fish41 {
    position: absolute;
    top: 390px;
    z-index: 4;
    width: 400px;
    height: 271px;
    transform: scale(0.5);
    animation: fish41anim 25s ease-in forwards infinite;
    transition: 0.5s;
}

@keyframes fish41anim {
    0% {
        transform: translateX(400%) translateY(-200%) scale(0.2);
    }
    100% {
        transform: translateX(-200%) translateY(-70%) scale(0.1);
    }
}

section #fish5 {
    position: absolute;
    top: -100px;
    z-index: 6;
    width: 400px;
    height: 250px;
    transform: scale(0.7);
    animation: fish5anim 35s ease-in forwards infinite;
    transition: 0.5s;
}

@keyframes fish5anim {
    0% {
        transform: translateX(-100%) translateY(40%) scale(0.6);
    }
    100% {
        transform: translateX(400%) translateY(30%) scale(0.4);
    }
}

section #turtle1 {
    position: absolute;
    margin-left: 800px;
    top: -150px;
    z-index: 1;
    width: 400px;
    height: 331px;
    transform: scale(0.8);
    animation: turtle1anim 20s ease-in forwards infinite;
    transition: 0.5s;
}

@keyframes turtle1anim {
    0% {
        transform: translateX(100%) translateY(80%) scale(0.6);
    }
    100% {
        transform: translateX(-300%) translateY(70%) scale(0.5);
    }
}

section #turtle2 {
    position: absolute;
    margin-left: 800px;
    top: 290px;
    z-index: 3;
    width: 400px;
    height: 214px;
    transform: scale(0.8);
    animation: turtle2anim 35s ease-in forwards infinite;
    transition: 0.5s;
}

@keyframes turtle2anim {
    0% {
        transform: translateX(-300%) translateY(100%) scale(0.7);
    }
    100% {
        transform: translateX(100%) translateY(120%) scale(0.8);
    }
}

section #turtle3 {
    position: absolute;
    margin-left: 800px;
    top: 490px;
    z-index: 4;
    width: 400px;
    height: 138px;
    transform: scale(0.8);
    animation: turtle3anim 25s ease-in forwards infinite;
    transition: 0.5s;
}

@keyframes turtle3anim {
    0% {
        transform: translateX(-300%) translateY(150%) scale(0.7);
    }
    100% {
        transform: translateX(100%) translateY(100%) scale(0.8);
    }
}

section #turtle4 {
    position: absolute;
    margin-left: 800px;
    top: 690px;
    z-index: -1;
    width: 400px;
    height: 251px;
    transform: scale(0.8);
    animation: turtle4anim 25s ease-in forwards infinite;
    transition: 0.5s;
    filter: brightness(40%);
}

@keyframes turtle4anim {
    0% {
        transform: translateX(100%) translateY(15%) scale(0.6);
    }
    100% {
        transform: translateX(-300%) translateY(30%) scale(0.5);
    }
}

#smallbubble {
    width: 613px;
    height: 543px;
    animation: bubbleanim 100s ease-in forwards infinite;
    transition: 0.5s;
    opacity: 30%;
}

@keyframes bubbleanim {
    0% {
        transform: translateX(-50%) translateY(100%) scale(0.1);
        opacity: 20%;
    }
    100% {
        transform: translateX(300%) translateY(20%) scale(3);
        opacity: 5%;
    }
}

section #whale1 {
    position: absolute;
    margin-left: 800px;
    top: 200px;
    z-index: 1;
    width: 600px;
    height: 533px;
    animation: whale1anim 50s ease-in forwards infinite;
    transition: 0.5s;
    filter: brightness(30%);
}

@keyframes whale1anim {
    0% {
        transform: translateX(50%) translateY(-35%) scale(0.2);
    }
    100% {
        transform: translateX(-400%) translateY(-15%) scale(0.7);
    }
}

section #whale2 {
    position: absolute;
    margin-left: 600px;
    top: 690px;
    z-index: 1;
    width: 600px;
    height: 345px;
    animation: whale2anim 35s ease-in forwards infinite;
    transition: 0.5s;
    filter: brightness(80%);
}

@keyframes whale2anim {
    0% {
        transform: translateX(-350%) translateY(-35%) scale(1);
    }
    100% {
        transform: translateX(100%) translateY(-15%) scale(1.1);
    }
}

section #whale3 {
    position: absolute;
    margin-left: 500px;
    top: 290px;
    z-index: 1;
    width: 600px;
    height: 600px;
    animation: whale3anim 65s ease-in forwards infinite;
    transition: 0.5s;
    filter: brightness(60%);
}

@keyframes whale3anim {
    0% {
        transform: translateX(50%) translateY(-115%) scale(1.2);
    }
    100% {
        transform: translateX(-400%) translateY(15%) scale(1.1);
    }
}

section #shark1 {
    position: absolute;
    margin-left: 300px;
    top: 290px;
    z-index: -3;
    width: 600px;
    height: 345px;
    animation: shark1anim 70s ease-in forwards infinite;
    transition: 0.5s;
    opacity: 50%;
}

@keyframes shark1anim {
    0% {
        transform: translateX(-40%) translateY(-125%) scale(0.01);
        filter: brightness(30%);
    }
    50% {
        transform: translateX(0%) translateY(-200%) scale(1.15);
        filter: brightness(7%);
    }
    100% {
        transform: translateX(-40%) translateY(-125%) scale(0.01);
        filter: brightness(30%);
    }
}


/* THis is where the media query for mobile starts
//
THis is where the media query for mobile starts
//
THis is where the media query for mobile starts
//
THis is where the media query for mobile starts
//
THis is where the media query for mobile starts
//
THis is where the media query for mobile starts
// */

@media only screen and (max-width: 640px) {
    html {
        scroll-behavior: smooth;
        transition: -45s ease-in;
    }
    * {
        position: relative;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        font-family: "Times New Roman", Times, serif;
        margin-left: auto;
        margin-right: auto;
    }
    body {
        min-height: 100vh;
        max-width: 100vw;
        background: #05021b;
        justify-content: center;
        overflow-x: hidden;
        margin-left: auto;
        margin-right: auto;
    }
    header ul li a {
        text-decoration: none;
        padding: 6px 4px;
        color: #fff;
        border-radius: 1px;
        margin-left: 5px;
        z-index: 1000;
        transition: 0.05s;
        background: #fff;
        color: #2b1055;
    }
    header ul {
        position: absolute;
        display: inline-flex;
        justify-content: center;
        align-items: center;
        list-style-type: none;
        font-weight: bold;
        z-index: 1000;
        margin-left: -60px;
        font-size: 13px;
        background-color: black;
    }
    header ul li a:hover,
    #active {
        background: rgb(77, 0, 0);
        color: #ffffff;
    }
    header .logo {
        position: absolute;
        width: 20px;
        transform: scale(0.11);
        border-radius: 50%;
        left: 0;
        z-index: 1000;
    }
    #cartoonanim {
        position: absolute;
        z-index: 1;
        transform: scale(0.6);
        margin-top: 877px;
    }
    #oceandive {
        position: absolute;
        margin-left: -79px;
        top: 20px;
        padding: 4px 6px;
        font-size: 20px;
    }
    #explore {
        position: absolute;
        top: 20px;
        margin-left: 70px;
        padding: 4px 6px;
        font-size: 20px;
    }
    .btn {
        text-decoration: none;
        display: inline-block;
        padding: 8px 30px;
        border-radius: 40px;
        background: rgba(200, 199, 213, 0.758);
        color: #2b1055;
        font-size: 1.5em;
        z-index: 200;
        margin-left: 470px;
        margin-top: 173px;
        cursor: pointer;
    }
    section img#sky {
        filter: brightness(20%);
        transition: ease-in;
        margin-left: 60px;
        transform: scale(1.2);
    }
    section img#stars {
        filter: brightness(70%);
        transition: ease-in;
        margin-bottom: 100px;
        height: 300px;
    }
    section img#moonland {
        position: absolute;
        margin-top: 128px;
        z-index: 10;
    }
    section img#spaceship1 {
        position: absolute;
        top: -40px;
        margin-left: 500px;
        transform: scale(0.6);
        transition: ease-in;
        filter: brightness(30%);
    }
    section img#spaceship2 {
        position: absolute;
        top: -40px;
        margin-left: -470px;
        transform: scale(0.6);
        transition: ease-in;
        filter: brightness(30%);
    }
    section img#tesla {
        position: absolute;
        height: 640px;
        width: 744px;
        transform: scale(0.6);
        margin-top: 72px;
        margin-left: -160px;
        transition: ease-in;
        filter: brightness(80%);
        z-index: 20;
    }
    #welcome {
        position: absolute;
        font-size: 7.5vw;
        white-space: nowrap;
        margin-top: 300px;
        margin-left: 127px;
        color: white;
        z-index: 15;
    }
    section img#clouds {
        position: absolute;
        margin-top: -98px;
        width: 1800px;
        height: 200px;
        margin-left: 300px;
        transition: ease-in;
        filter: brightness(30%);
        z-index: 20;
        opacity: 15%;
    }
    section img#city {
        position: absolute;
        margin-top: -80px;
        width: 1920px;
        height: 1080px;
        margin-left: -295px;
        transition: ease-in;
        filter: brightness(20%);
        z-index: 2;
    }
    /* info */
    #info h1 {
        font-size: 20px;
    }
    #info {
        position: relative;
        bottom: -541px;
        text-align: center;
        z-index: 1000;
        color: rgb(255, 255, 255);
        background: rgb(97, 91, 88);
        width: 400px;
        border-radius: 10px;
        align-items: center;
        justify-content: center;
        margin-left: -1100px;
    }
    #info p {
        margin-bottom: 2px;
        font-size: 20px;
    }
    #about {
        position: absolute;
        margin-top: 600px;
        text-align: center;
        z-index: 1000;
        color: rgb(255, 255, 255);
        background: rgb(97, 91, 88);
        width: 300px;
        border-radius: 10px;
        align-items: center;
        justify-content: center;
        padding: 10px;
        z-index: 200;
        font-size: 20px;
        margin-left: 1453px;
    }
    #aboutlink {
        position: absolute;
        bottom: 252px;
    }
    /* portfolio */
    #portfolio h1 {
        font-size: 20px;
        color: white;
        margin-left: -1273px;
        margin-bottom: 5px;
    }
    .row {
        position: absolute;
        top: 866px;
        z-index: 20;
    }
    #youtube {
        position: absolute;
        top: 1224px;
        margin-bottom: 20px;
        margin-left: 320px;
        right: 14px;
        align-items: center;
        justify-content: center;
        z-index: 5;
    }
    #youtube h1 {
        position: absolute;
        top: -56px;
        color: white;
        font-size: 20px;
        left: 52px;
    }
    #youtube h2 {
        position: absolute;
        top: -32px;
        color: white;
        font-size: 13px;
        text-align: center;
        left: 1px;
    }
    .video1 {
        width: 90vw;
        height: 100%;
    }
    /* contact */
    label {
        color: white;
    }
    .container {
        position: relative;
        top: 1370px;
        border-radius: 10px solid white;
        background-color: #0a1e4100;
        padding: 20px;
        z-index: 10;
    }
    #contactus {
        color: white;
        text-align: center;
        text-decoration: none;
    }
    #contactus a {
        text-decoration: none;
        color: white;
        font-size: large;
        transition: 0.5s ease-in;
    }
    #contactus a:hover {
        color: #755ba0;
    }
    #contact {
        position: absolute;
        background-color: rgba(5, 5, 131, 0.468);
        display: inline;
        padding-left: 6px;
        padding-right: 6px;
        border: solid 4px rgba(255, 255, 255, 0.587);
        border-radius: 12px;
        margin-left: -60px;
        font-size: 20px;
        top: 200px;
        margin-top: -156px;
    }
    #contact p {
        position: absolute;
        z-index: 4;
        padding: 8px;
        border: 8px;
        font-size: 10px;
    }
    #fishtank {
        position: absolute;
        top: -2000px;
    }
    .fishes {
        transform: scale(0.5);
    }
}