* {
    color: white;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    overflow-x: hidden;
}

nav {
    background-color: #000000ab;
    background-blend-mode: darken;
    position: absolute;
    animation: bounce 6s ease-in-out infinite;
    min-width: 250px;
    max-width: 250px;
    min-height: 350px;
    max-height: 350px;
    overflow: auto;
    padding: 10px;
    text-align: center;
    background-image: url('/assets/bg_water.gif');
}

nav:hover {
    animation-play-state: paused;
}

nav * {
    text-shadow: 2px 2px 4px black;
    display: block;
    padding-bottom: 5px;
}

.center {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.blacktext {
    background-color: black;
    color: lime;
    width: fit-content;
    font-size: 22px;
}

.imgbox {
    position: absolute;
}

main:hover {
    position: relative;
    z-index: 10000;
}

:not(main) .hoverbig, nav {
    z-index: 10001;
}

.hoverbig:hover {
    scale: 1.2;
    cursor: pointer;
}

@keyframes bounce {
    0% {
        left: 0;
        top: 0;
    }
    25% {
        left: calc(100% - 250px);
        top: 0;
    }
    50% {
        left: calc(100% - 250px);
        top: calc(100% - 350px);
    }
    75% {
        left: 0;
        top: calc(100% - 350px);
    }
    100% {
        left: 0;
        top: 0;
        transform: scale(1);
    }
}

h2 {
    font-size: 32px;
}

@keyframes animate1 {
    0%   { transform: translateX(0); }
    25%  { transform: translateX(-15px); }
    50%  { transform: translateX(15px); }
    100% { transform: translateX(0); }
}

.shake {
    animation: animate1 2s infinite linear;
}