* {
    margin: 0;
    padding: 0;
    border: 0;
    box-sizing: border-box;
}

body {
    background-image: linear-gradient(to bottom, #0047e0, hsl(222, 100%, 8%));
    background-repeat: no-repeat;
    font-family: verdana;
}

.container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

@keyframes bg {
    0% {
        background-color: #0047e0
    }

    25% {
        background-color: #006EFB
    }

    50% {
        background-color: #009ADD
    }

    75% {
        background-color: #00A8B2
    }

    100% {
        background-color: #00B482
    }
}

@keyframes ocean {
    0% {
        background: rgb(255, 204, 83);
        background: linear-gradient(360deg, rgba(255, 204, 83, 1) 0%, rgba(255, 170, 79, 1) 18%, rgba(255, 255, 255, 1) 29%, rgba(9, 102, 121, 1) 37%, rgba(9, 102, 121, 1) 44%, rgba(28, 189, 222, 1) 45%, rgba(28, 189, 222, 1) 66%, rgba(0, 212, 255, 1) 100%);
        
    }

    25% {
        background: rgb(255, 204, 83);
        background: linear-gradient(360deg, rgba(255, 204, 83, 1) 0%, rgba(255, 170, 79, 1) 18%, rgba(255, 255, 255, 1) 25%, rgba(255, 255, 255, 1) 29%, rgba(9, 102, 121, 1) 35%, rgba(9, 102, 121, 1) 44%, rgba(28, 189, 222, 1) 45%, rgba(28, 189, 222, 1) 66%, rgba(0, 212, 255, 1) 100%);
    }

    50% {
        background: rgb(255, 204, 83);
        background: linear-gradient(360deg, rgba(255, 204, 83, 1) 0%, rgba(255, 170, 79, 1) 18%, rgba(255, 255, 255, 1) 24%, rgba(255, 255, 255, 1) 26%, rgba(9, 102, 121, 1) 33%, rgba(9, 102, 121, 1) 44%, rgba(28, 189, 222, 1) 45%, rgba(28, 189, 222, 1) 66%, rgba(0, 212, 255, 1) 100%);
    }

    75% {
        background: rgb(255, 204, 83);
        background: linear-gradient(360deg, rgba(255, 204, 83, 1) 0%, rgba(255, 170, 79, 1) 18%, rgba(255, 255, 255, 1) 19%, rgba(255, 255, 255, 1) 25%, rgba(9, 102, 121, 1) 33%, rgba(9, 102, 121, 1) 44%, rgba(28, 189, 222, 1) 45%, rgba(28, 189, 222, 1) 66%, rgba(0, 212, 255, 1) 100%);
    }

    100% {
        background: rgb(255, 204, 83);
        background: linear-gradient(360deg, rgba(255, 204, 83, 1) 0%, rgba(255, 170, 79, 1) 18%, rgba(255, 255, 255, 1) 19%, rgba(255, 255, 255, 1) 23%, rgba(9, 102, 121, 1) 35%, rgba(9, 102, 121, 1) 44%, rgba(28, 189, 222, 1) 45%, rgba(28, 189, 222, 1) 66%, rgba(0, 212, 255, 1) 100%);
    }
}

@keyframes image-wobble {
    0% {
        transform: perspective(500rem) rotateX(-5deg) translateY(-5px);
    }

    25% {
        transform: perspective(50rem) rotateY(-5deg) translateX(5px);
    }

    50% {
        transform: perspective(50rem) rotateX(5deg) translateY(5px);
    }

    75% {
        transform: perspective(50rem) rotateY(5deg) translateX(-5px);
    }

    100% {
        transform: perspective(50rem) rotateX(-5deg) translateY(-5px);
    }
}

.gallery {
    margin: auto auto 40px;
    width: 80%;
    /* background-color: #FFF; */
    animation: ocean 2s ease alternate infinite;
    border-radius: 30px;
    /* background-image: linear-gradient(to top, rgba(0, 107, 179, 0.7), rgb(82, 206, 255)); */
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    border: 6px solid rgb(0, 153, 255);
    padding: 40px;
    justify-content: center;
    gap: 20px;
    
}

.image-wrap {
    display: flex;
    flex-direction: column;
}

.image-wrap span {
    padding-left: 20px;
    color: black;
}

.gallery-image {
    height: 300px;
    margin: auto;
    transition-duration: 0.3s;
    border: 4px solid transparent;
    aspect-ratio: 1/1;
    box-shadow: 6px 6px 12px rgba(0, 0, 0, 0.623);

}

.gallery-image:hover {
    /* transform: perspective(30rem) rotateX(-10deg) translateY(-20px); */
    border: 4px solid rgb(0, 174, 255);
    animation: image-wobble 1s linear infinite;

}

.head {
    padding-top: 40px;
    text-align: center;
    color: #FFF;
}

.head h1 {
    padding: 20px;
    font-size: 4em;
}

.description {
    width: 800px;
    margin: 20px auto;
    padding: 40px;
    background-color: rgb(0, 122, 204);
    animation: bg 10s ease alternate infinite;
    border: 4px solid rgb(0, 153, 255);
    border-radius: 30px;
}

@media (max-width:800px) {
    .description {
        width: 95%;
    }
}

.description p {
    text-align: center;
    color: #FFF;
    font-size: 1.5em;

}

nav {
    top: 0;
    min-height: 50px;
    background-color: white;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
}

nav a {
    line-height: 30px;
    text-decoration: none;
    padding: 10px;
    color: rgb(0, 41, 117);
    font-weight: bold;

    transition-duration: 0.3s;
}

nav a:hover {
    background-image: linear-gradient(to bottom, white 50%, rgba(255, 68, 0, 0.644), rgba(255, 238, 0, 0.637));
}

footer {
    color: #FFF;
    text-align: center;
    padding-bottom: 20px;
}