﻿:root {
    --white: #ededed;
    --gray: #bfc0c0;
    --dark: #585959;
}

.color-auxiliar {
    background-color: #f7f7ff;
}

.contenedor-ghost {
    margin: 0 auto;
    position: relative;
    width: 250px;
    height: 250px;
    margin-top: -20px;
}

.ghost {
    width: 50%;
    height: 53%;
    left: 25%;
    top: 10%;
    position: absolute;
    border-radius: 50% 50% 0 0;
    background: var(--white);
    border: 1px solid var(--gray);
    border-bottom: none;
    animation: float 2s ease-out infinite;
}

.ghost-copy {
    width: 50%;
    height: 53%;
    left: 25%;
    top: 10%;
    position: absolute;
    border-radius: 50% 50% 0 0;
    background: var(--white);
    border: 1px solid var(--gray);
    border-bottom: none;
    animation: float 2s ease-out infinite;
    z-index: 0;
}

.face {
    position: absolute;
    width: 100%;
    height: 60%;
    top: 20%;
}

.eye,
.eye-right {
    position: absolute;
    background: var(--dark);
    width: 13px;
    height: 13px;
    border-radius: 50%;
    top: 40%;
}

.eye {
    left: 25%;
}

.eye-right {
    right: 25%;
}

.mouth {
    position: absolute;
    top: 50%;
    left: 45%;
    width: 10px;
    height: 10px;
    border: 3px solid;
    border-radius: 50%;
    border-color: transparent var(--dark) var(--dark) transparent;
    transform: rotate(45deg);
}

.mouth-sad {
    position: absolute;
    top: 50%;
    left: 45%;
    width: 10px;
    height: 10px;
    border: 3px solid;
    border-radius: 50%;
    border-color: transparent var(--dark) var(--dark) transparent;
    transform: rotate(225deg);
}

.one, .two, .three, .four {
    position: absolute;
    background: var(--white);
    top: 85%;
    width: 25%;
    height: 23%;
    border: 1px solid var(--gray);
    z-index: 0;
}

.one {
    border-radius: 0 0 100% 30%;
    left: -1px;
}

.two {
    left: 23%;
    border-radius: 0 0 50% 50%;
}

.three {
    left: 50%;
    border-radius: 0 0 50% 50%;
}

.four {
    left: 75.8%;
    border-radius: 0 0 30% 100%;
}

.shadow {
    position: absolute;
    width: 30%;
    height: 7%;
    background: var(--gray);
    left: 35%;
    top: 80%;
    border-radius: 50%;
    animation: scale 2s infinite;
}

@keyframes scale {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes float {
    50% {
        transform: translateY(15px);
    }
}

h1 {
    color: var(--white);
    text-align: center;
    font-size: 9em;
    margin: 0;
    text-shadow: -1px 0 var(--gray), 0 1px var(--gray), 1px 0 var(--gray), 0 -1px var(--gray);
}

h3 {
    font-size: 2em;
    text-transform: uppercase;
    text-align: center;
    color: var(--gray);
    margin-top: -20px;
    font-weight: 900;
}

@media screen and (max-width:360px) {
    h1{
        font-size: 6em;
    }

    h3 {
        font-size: 1.4em;
    }
}