@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@900&display=swap");

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    --bkg: #5eb3fd;
    --white: #e7e6e6;
    background-color: var(--white);
    background-image: url("assets/background.png");
}

.container {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.title h1 {
    font-size: 25vmin;
    font-weight: 900;
    font-family: "Montserrat", sans-serif;
    color: black;
}

.ghost {
    width: 8vmin;
    height: 12vmin;
    background-color: var(--white);
    background-image: url("assets/background.png");
    background-image: radial-gradient(ellipse at 35% 40%, #000000 8%, transparent 0%),
        radial-gradient(ellipse at 65% 40%, #000000 8%, transparent 0%),
        radial-gradient(ellipse at 50% 60%, #000000 8%, transparent 0%);
    border-radius: 100% / 70% 70% 0% 0%;
    transform: translateX(100em) rotateZ(-90deg);
    position: relative;
    opacity: 0.9;
    mix-blend-mode: exclusion;
    animation: ghostMove 4s ease-out infinite;
}

@keyframes ghostMove {
    0% {
        transform: translateX(30em) rotateZ(-90deg);
    }

    100% {
        transform: translateX(-35em) rotateZ(-90deg);
    }
}

.ghost div {
    position: absolute;
    width: 20%;
    background-color: var(--white);
    background-image: url("assets/background.png");
}

.ghost div:nth-of-type(1) {
    height: 7vmin;
    left: 0;
    bottom: -6vmin;
    border-radius: 100% / 0% 0% 50% 50%;
}

.ghost div:nth-of-type(2),
.ghost div:nth-of-type(4) {
    height: 4vmin;
    left: 20%;
    bottom: -3vmin;
    border-radius: 100% / 50% 50% 0% 0%;
    background-color: transparent;
}

.ghost div:nth-of-type(3) {
    height: 4vmin;
    left: 40%;
    bottom: -3.95vmin;
    border-radius: 100% / 0% 0% 60% 60%;
    background-color: var(--white);
}

.ghost div:nth-of-type(4) {
    left: 60%;
}

.ghost div:nth-of-type(5) {
    height: 3vmin;
    left: 80%;
    bottom: -2.9vmin;
    border-radius: 100% / 0% 0% 70% 70%;
    background-color: var(--white);
}