body {
    font-family: 'Times New Roman', serif;
    padding: none;
    margin: none;
    color: black;
}

img {
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

a {
    color: white;
}

img {
    padding: none;
    margin: none;
}

footer {
    font-size: 10px;
}

table {
    font-size: 13px;
}

table,
th,
td {
    border: 1px dashed grey;
}

#pet-type-picker {
    display: inline;
}

#overlay,
#underlay {
    float: left;
    position: relative;
    top: 0px;
    left: 0px;
    width: 200px;
    height: 200px;
    text-align: center;
    background-size: 100%;
    color: white;
}

#overlay-pet-interact {
    position: fixed;
    width: 80px;
    height: 80px;
    top: 50px;
    left: 50px;
}

#map {
    float: left;
    position: absolute;
    width: 200px;
    height: 200px;
    background-size: 100%;
}

.pet {
    position: relative;
    width: 80px;
    height: 100px;
    top: 60px;
    left: 50px;
    text-align: center;
}

.pet .petdisplay {
    position: relative;
    width: 100%;
    height: 100%;
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: bottom;
}

.pet .petdisplay.flip {
    transform: scaleX(-1);
}

#heavy-weapon {
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center bottom;
    transform: scaleX(-1);
}

.rainbow {
    animation: rainbow 3s infinite;
}

.party {
    animation: rainbow 3s infinite, jump 0.5s infinite;
}

#petName-tag {
    float: left;
    top: -210px;
    position: relative;
    width: 100%;
    color: white;
}

#petHat {
    float: left;
    top: -210px;
    left: 30px;
    position: relative;
    width: 40px;
}

#talk {
    width: calc(100% - 4px);
    padding: 2px;
    height: 28px;
    resize: none;
    color: black;
    background-color: white;
    opacity: 1;
    font-size: 12px;
    border: 0;
}

.hide {
    display: none
}

.uiicon {
    width: 10px;
}

.shopitem {
    width: 20px;
}

.controls {
    vertical-align: text-top;
}

.controls b {
    display: block;
}

.controls input, .controls button {
    display: block;
    width: 82px;
    font-family: serif;
    padding: 0;
}

.controls .control-set { display: none }
.controls .control-set.active { display: block }

#wash-display {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

#wash-display-brush {
    height: 120px;
    animation: scrub 0.1s infinite;
}

#wash-display-pet {
    flex-grow: 1;
    background-repeat: no-repeat;
    background-size: fill;
    background-position: center 50px;
}

#wash-display-water {
    flex-grow: 0;
    flex-shrink: 0;
    height: 50px;
    width: 100%;
    animation: water-move-x 3s infinite, water-move-y 0.5s infinite;
}

.slot {
    display: inline;
    font-size: 50px;
    padding: 0px 10px 0px 10px;
}

.slot img {
    width: 30px;
}

#slots {
    margin-top: 30px;
}

#slot-text {
    padding-top: 9px;
    color: #fff;
    width: 150px;
    margin-left: auto;
    margin-right: auto;
}

#slot-counters {
    padding-top: 5px;
    padding-bottom: 5px;
    display: block;
}

/* +++ Annimations +++ */

@keyframes wiggle {
    0% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(5deg);
    }

    50% {
        transform: rotate(0deg);
    }

    75% {
        transform: rotate(-5deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

@keyframes pett {

    from,
    11.1%,
    to {
        transform: none;
    }

    22.2% {
        transform: skewX(-12.5deg) skewY(-12.5deg);
        background-size: 100% 100%;
    }

    33.3% {
        transform: skewX(6.25deg) skewY(6.25deg);
        background-size: 100% 95%;
    }

    44.4% {
        transform: skewX(-3.125deg) skewY(-3.125deg);
        background-size: 100% 90%;
    }

    55.5% {
        transform: skewX(1.5625deg) skewY(1.5625deg);
        background-size: 100% 85%;
    }

    66.6% {
        transform: skewX(-0.78125deg) skewY(-0.78125deg);
        background-size: 100% 80%;
    }

    77.7% {
        transform: skewX(0.390625deg) skewY(0.390625deg);
        background-size: 100% 85%;
    }

    88.8% {
        transform: skewX(-0.1953125deg) skewY(-0.1953125deg);
        background-size: 100% 90%;
    }
}

.pett {
    animation: pett 0.6s infinite;
}

@keyframes jump {

    from,
    20%,
    53%,
    80%,
    to {
        animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
        transform: translate3d(0, 0, 0);
    }

    40%,
    43% {
        animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
        transform: translate3d(0, -30px, 0);
    }

    70% {
        animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
        transform: translate3d(0, -15px, 0);
    }

    90% {
        transform: translate3d(0, -4px, 0);
    }
}

@keyframes rainbow {
    0% {
        filter: hue-rotate(0deg);
    }

    50% {
        filter: hue-rotate(180deg);
    }

    100% {
        filter: hue-rotate(360deg);
    }
}

.jump {
    animation: jump 1s infinite;
    transform-origin: center bottom;
}

@keyframes decay {
    0% {
        opacity: 0;
        top: 65px;
    }

    25%,
    50%,
    75% {
        opacity: 100;
        top: 55px;
    }

    100% {
        opacity: 0;
        top: 45px;
    }
}

@keyframes water-move-x {
    0% {
        background-position-x: 0px;
        animation-timing-function: ease-in-out;
    }

    50% {
        background-position-x: 32px;
    }

    100% {
        background-position-x: 0px;
    }
}

@keyframes water-move-y {
    0% {
        background-position-y: 0px;
        animation-timing-function: ease-in-out;
    }

    50% {
        background-position-y: 5px;
    }

    100% {
        background-position-y: 0px;
    }
}

@keyframes scrub {
    0% {
        margin-left: 20px;
        animation-timing-function: ease-in-out;
    }

    50% {
        margin-left: 60px;
    }

    100% {
        margin-left: 20px;
    }
}

.decay-message {
    position: absolute;
    top: 55px;
    left: 15px;
    display: none;
    animation: decay 8s 1;
    opacity: 0;
}

.decay-message.display {
    display: block;
}

.decay-arrow {
    width: 0px;
    height: 0px;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 10px solid rgba(0, 0, 0, 0.8);
    margin-left: 10px;
}

.decay-text {
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 3px;
    padding: 1px 3px;
}

.full-center, b.full-center {
    display: flex;
    align-items: center;
}