@font-face {
    font-family: poetsenone;
    src: url(../font/poetsenone-regular-webfont.woff2) format("woff2"), url(../font/poetsenone-regular-webfont.woff) format("woff");
    font-weight: 400;
    font-style: normal
}

html {
    overflow: hidden;
    font-family: poetsenone, sans-serif;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none
}

#nameEntry .animalName,
button {
    font-family: inherit;
    outline: 0
}

strong {
    font-face: bold
}

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

h1 {
    font-weight: 400
}

input {
    -moz-user-select: text;
    -webkit-user-select: text;
    -ms-user-select: text
}

::-webkit-input-placeholder {
    color: #ccc
}

:-moz-placeholder {
    color: #ccc
}

::-moz-placeholder {
    color: #ccc
}

:-ms-input-placeholder {
    color: #ccc
}

body {
    height: 100vh;
    background: url(../img/background_01.png)
}

body.resizeHack {
    width: calc(100vw - 1px);
    height: calc(100vh - 1px)
}

body.ios {
    height: calc(100vh - 80px)
}

body.ios.resizeHack {
    height: calc(100vh - 81px)
}

img {
    pointer-events: none
}

canvas {
    width: 100%;
    height: 100%;
    touch-action: none
}

button {
    background: 0 0;
    border: none;
    color: #fff;
    font-size: 32px;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden
}

.lightBg {
    background: rgba(236, 68, 153, .7);
    border-radius: 15px
}

#game .ui .bars .bar:after,
#game .ui .bottomBar .progress:before {
    content: '';
    background-size: contain
}

.clear:after {
    content: '';
    display: block;
    clear: both
}

#mute {
    position: absolute;
    pointer-events: initial;
    right: 10px;
    top: 10px;
    padding: 15px;
    width: 70px;
    height: 70px
}

#mute img.mute,
#mute.mute img {
    display: none
}

#mute.mute img.mute {
    display: inherit
}

.screen {
    height: 100vh;
    display: none;
    color: #fff
}

.screen h1 {
    text-align: center;
    font-size: 36px;
    margin-top: 18px
}

.screen.show {
    display: block
}

.fit {
    position: relative;
    width: 640px;
    height: 960px
}

#game .ui {
    position: absolute;
    pointer-events: none
}

#game .ui .bars {
    position: absolute;
    left: 10px;
    top: 10px
}

#game .ui .bars .bar {
    position: relative
}

#game .ui .bars .bar:after {
    width: 25px;
    height: 26px;
    display: block;
    position: absolute;
    right: -34px;
    top: -2px
}

#game .ui .bars .bar.critical:after {
    background-image: url(../img/icon_critical.png)
}

#game .ui .bars .bar.inc:after {
    background-image: url(../img/icon_inc.png)
}

#game .ui .bars .bar.dec:after {
    background-image: url(../img/icon_dec.png)
}

#game .ui .bar {
    border: 5px solid #fff;
    width: 215px;
    border-radius: 15px;
    padding-left: 10px;
    margin-bottom: 5px
}

#game .ui .bottomBar {
    position: absolute;
    top: 820px;
    left: 50px
}

#game .ui .bottomBar .name {
    text-align: right;
    font-size: 48px;
    padding-right: 10px
}

#game .ui .bottomBar .timer {
    text-align: center;
    font-size: 32px;
    position: absolute;
    top: -40px;
    left: 0;
    width: 100%
}

#game .ui .bottomBar .progress {
    width: 560px;
    position: relative;
    padding: 3px 10px
}

#game .ui .bottomBar .progress:before {
    background-image: url(../img/icon_heart.png);
    width: 41px;
    height: 41px;
    display: block;
    position: absolute;
    left: -34px;
    top: -7px
}

#game .ui .bottomBar .adopt {
    display: none
}

#game .ui .bottomBar.win .progress {
    visibility: hidden
}

#game .ui .bottomBar.win .adopt {
    display: block;
    margin: 0 auto;
    pointer-events: all
}

#game .back,
#game .ui .radial .round {
    pointer-events: initial;
    position: absolute
}

#game .ui .radial {
    position: absolute;
    background-image: url(../img/ring.png);
    background-size: cover;
    display: none;
    width: 430px;
    height: 431px;
    left: 105px;
    top: 265px
}

#game .ui .radial.show {
    display: block
}

#game .ui .radial .round {
    display: block;
    line-height: 1
}

#game .ui .radial .round.eat img,
#game .ui .radial.needsSleep .round.eat,
#game .ui .radial.needsSleep .round.play {
    display: none
}

#game .ui .radial .round.play {
    left: 320px;
    top: 260px
}

#game .ui .radial .round.eat {
    left: -10px;
    top: 260px
}

#game .ui .radial .round.sleep {
    left: 150px;
    top: 360px
}

#game.bunny .ui .round img.bunny,
#game.kitty .ui .round img.kitty,
#game.puppy .ui .round img.puppy {
    display: inline
}

#game .back {
    right: 90px;
    top: 10px;
    padding: 15px;
    width: 70px;
    height: 70px;
    font-size: 46px;
    line-height: 0
}

#game .notification {
    z-index: 10;
    position: absolute;
    font-size: 25px;
    top: 130px;
    width: 80%;
    left: 10%;
    text-align: center;
    transform: translateY(-200px);
    opacity: 0;
    transition: transform .5s ease-in, opacity .5s ease-in
}

#game .notification:before {
    content: 'X';
    display: block;
    position: absolute;
    top: -20px;
    right: -20px;
    background: #ef60a9;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    line-height: 30px;
    font-size: 26px;
    border: 5px solid #fff
}

#game .notification.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all
}

#loading {
    background: url(../img/background_01.png);
    align-items: center;
    justify-content: center
}

#loading.show {
    display: flex
}

#menu .logo {
    position: absolute;
    left: 40px;
    top: 60px
}

#menu .animals {
    position: absolute;
    left: 0;
    top: 460px
}

#menu .play {
    position: absolute;
    left: 200px;
    top: 780px
}

#menu .restart {
    display: none
}

#menu.restart .restart {
    display: block
}

#menu.restart .start {
    display: none
}

#menu.restart h1 {
    font-size: 64px;
    padding-top: 180px
}

#menu.restart h2 {
    font-size: 48px;
    text-align: center
}

#select .puppy {
    position: absolute;
    left: 50px;
    top: 100px
}

#select .kitty {
    position: absolute;
    right: 50px;
    top: 300px
}

#select .bunny {
    position: absolute;
    left: 50px;
    top: 500px
}

#instructions .slider img {
    display: block;
    margin: 0 auto
}

#instructions .slider .slide {
    display: none
}

#instructions .slider .slide.show {
    display: block
}

#instructions .text {
    margin: 0 auto;
    width: 428px;
    font-size: 28px;
    padding: 20px;
    text-align: center
}

#instructions .buttons {
    text-align: center;
    position: absolute;
    top: 800px;
    left: 150px
}

#instructions .buttons img {
    vertical-align: sub
}

#instructions .buttons .next,
#instructions .buttons .prev {
    padding: 25px 10px
}

#instructions .buttons .play {
    padding: 25px;
    margin: 0 25px
}

#nameEntry .preview {
    display: none;
    left: 180px;
    top: 150px;
    position: absolute
}

#nameEntry .preview.show {
    display: block
}

#nameEntry h1 {
    transition: color .3s ease-in
}

#nameEntry h1.highlight {
    color: red
}

#nameEntry .animalName {
    background: 0 0;
    color: #fff;
    font-size: 32px;
    position: absolute;
    top: 550px;
    width: 400px;
    padding: 25px;
    left: 130px;
    text-align: center
}

#nameEntry .play {
    top: 700px;
    position: absolute;
    left: 185px
}

#adopt .head {
    display: none
}

#adopt .head .text,
#adopt .head.show {
    position: absolute;
    display: block
}

#adopt .head.head_01 {
    top: 240px
}

#adopt .head.head_02 {
    top: 440px
}

#adopt .head.head_03 {
    top: 640px
}

#adopt .head .name {
    position: absolute;
    top: 20px;
    left: 220px;
    font-size: 48px;
    white-space: nowrap
}

#adopt .head .text {
    top: 75px;
    left: 220px;
    font-size: 30px;
    line-height: 1;
    width: 410px
}

#confirm .animalName,
#confirm .warning {
    position: absolute;
    width: 100%;
    text-align: center
}

#adopt .play {
    top: 800px;
    position: absolute;
    left: 135px
}

#confirm .preview {
    display: none;
    left: 180px;
    top: 100px;
    position: absolute
}

#confirm .preview.show {
    display: block
}

#confirm .animalName {
    font-size: 48px;
    top: 460px
}

#confirm .play {
    top: 550px;
    position: absolute;
    left: 190px
}

#confirm .reset {
    top: 720px;
    position: absolute;
    left: 175px
}

#confirm .warning {
    font-size: 30px;
    top: 810px
}

#progress_bar {
    padding: 3px;
    border: 1px solid #000;
    background: #fff;
    width: 80vw
}

#progress_bar .percent {
    height: 15px;
    width: 0;
    background: green
}

#turndevice,
#turndevice .img,
#turndevice h1 {
    position: absolute;
    left: 0;
    width: 100vw
}

.frame {
    border-image-slice: 18 18 18 18 fill;
    border-image-width: 20px 20px 20px 20px;
    padding: 10px
}

.frame.color01 {
    border-image-source: url(../img/button/01.png)
}

.frame.color02 {
    border-image-source: url(../img/button/02.png)
}

.frame.color03 {
    border-image-source: url(../img/button/03.png)
}

.frame.color04 {
    border-image-source: url(../img/button/04.png)
}

.frame.color05 {
    border-image-source: url(../img/button/05.png)
}

.frame.large {
    padding: 25px 75px;
    line-height: 50px
}

#turndevice {
    background: url(../img/background_01.png);
    z-index: 100;
    top: 0;
    height: 100vh;
    display: none
}

#turndevice .img {
    background: url(../img/turn_device.png) center center no-repeat;
    background-size: contain;
    top: 10vh;
    height: 60vh
}

#turndevice h1 {
    top: 70vh;
    color: #fff;
    font-size: 56px;
    text-align: center
}

@keyframes animatedBackground {
    from {
        background-position: 0 0
    }
    to {
        background-position: -100% 100%
    }
}