body {
    font-family: monospace;
    line-height: 1.5;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000;
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

a {
    text-decoration: none;
}

a:visited {
    color: #00f;
}

a:hover {
    color: #000;
    border-bottom: 1px dashed #00f;
}

#background {
    width: 100vw;
    height: 100vh;
    position: absolute;
    z-index: -1;
    background-image: url("images/entrance.png");
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    pointer-events: none;
}

#buttons {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

button {
    font-family: monospace;
    cursor: pointer;
    user-select: none;
}

button:hover {
    background-color: #ddd;
}

button:active {
    background-color: #ddd;
}

.large {
    font-family: sans-serif;
    font-size: 1.25em;
}

.click {
    border-width: 2px 2px 4px 2px;
    border-style: solid;
    border-color: #000;
    background-color: #fff;
    padding: 10px;
}

.click:hover {
    border-width: 2px;
    margin-top: 2px;
}

.label {
    border: 1px solid #000;
    background-color: #fff;
    padding: 10px;
}

.label:hover {
    cursor: zoom-in;
}

.abs {
    position: absolute;
}

#you {
    justify-content: center;
}

#thoughts {
    background-color: #fff;
    border: 3px solid #000;
    padding: 10px;
    margin-bottom: 15px;
    max-width: 555px;
}

#controls {
    position: absolute;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    top: 15px;
    left: 15px;
}

.tool {
    color: #fff;
    border: 1px solid #000;
    background-color: #000;
    margin-right: 10px;
    padding: 5px 7px;
    font-size: small;
    user-select: none;
}

.tool:hover {
    color: #000;
    border: 1px solid #000;
    background-color: #fff !important;
}

#info {
    cursor: help;
}

#about {
    position: relative;
    display: none;
    background-color: #fff;
    border: 3px solid #000;
    padding: 10px;
    max-width: 444px;
}

#about-x {
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 10px;
    width: 15px;
    height: 15px;
    background: linear-gradient(to bottom right, transparent calc(50% - 1px), #00f calc(50% - 1px), #00f calc(50% + 1px), transparent calc(50% + 1px)), linear-gradient(to top right, transparent calc(50% - 1px), #00f calc(50% - 1px), #00f calc(50% + 1px), transparent calc(50% + 1px));
    border: 1px solid #fff;
}

#about-x:hover {
    background: linear-gradient(to bottom right, transparent calc(50% - 1px), #000 calc(50% - 1px), #000 calc(50% + 1px), transparent calc(50% + 1px)), linear-gradient(to top right, transparent calc(50% - 1px), #000 calc(50% - 1px), #000 calc(50% + 1px), transparent calc(50% + 1px));
    border: 1px solid #000;
}

#sound {
    display: none;
    cursor: pointer;
    background-color: #000;
}

.x {
    background: linear-gradient(to bottom right, transparent calc(50% - 1px), #f00 calc(50% - 0.5px), #f00 calc(50% + 0.5px), transparent calc(50% + 0.5px)), linear-gradient(to top right, transparent calc(50% - 0.5px), #f00 calc(50% - 0.5px), #f00 calc(50% + 0.5px), transparent calc(50% + 0.5px));
}

#suggestions {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    top: 15px;
    right: 15px;
}

.suggestion {
    padding: 5px 7px;
    margin-bottom: 5px;
    color: #fff;
    border: 1px solid #000;
    background-color: #000;
    font-size: small;
    font-style: italic;
    max-width: 212px;
}

#resize, #wait {
    display: none;
}

#sighting {
    display: none;
    max-width: 300px;
    text-align: center;
}

#sighting:hover {
    cursor: zoom-out;
}

.flora {
    display: none;
}

.flora:hover {
    background-color: #e6ff8a;
}

.human:hover {
    background-color: #b2ebdb;
}

.fauna {
    position: absolute;
    opacity: 1;
    transition: opacity 2s;
    cursor: zoom-in;
}

.fauna:hover {
    background-color: #ebd5ae;
}

.pounce {
    padding: 20px 10px 10px 10px !important;
    max-width: 66%;
    object-fit: contain;
}

.sprite {
    padding: 20px 10px 10px 10px !important;
    transform: scale(2.25);
}

.chaser {
    transition: transform 0.1s ease-out;
}

.fade-out {
    opacity: 0;
}

.flitterX {
    animation: flitterX 0.75s infinite;
}

@keyframes flitterX {
    0% {transform: skewX(-15deg);}
    5% {transform: skewX(15deg);}
    10% {transform: skewX(-15deg);}
    15% {transform: skewX(15deg);}
    20% {transform: skewX(0deg);}
    100% {transform: skewX(0deg);}
}

.flitterY {
    animation: flitterY 0.75s infinite;
}

@keyframes flitterY {
    0% {transform: skewY(-5deg);}
    5% {transform: skewY(5deg);}
    10% {transform: skewY(-5deg);}
    15% {transform: skewY(5deg);}
    20% {transform: skewY(0deg);}
    100% {transform: skewY(0deg);}
}

.bounceY {
    animation: bounceY 0.75s infinite;
}

@keyframes bounceY {
    0% {transform: translateY(0);}
    20% {transform: translateY(10px);}
    50% {transform: translateY(0);}
    80% {transform: translateY(10px);}
    100% {transform: translateY(0);}
}

.circle {
    offset-path: ellipse(25vw 10vw at center top);
    offset-rotate: 0deg;
    animation: circle 8s linear infinite;
}

@keyframes circle {
    to {offset-distance: 100%;}
}

.jitter {
    animation: jitter 1.5s steps(1) infinite;
    display: inline-block;
}

@keyframes jitter {
    0%, 7%, 15%, 55%, 100% { transform: none; opacity: 1;}
    8% {transform: skewX(-14deg) translateX(-4px);}
    10% {transform: skewX(10deg) translateX(3px);}
    12% {transform: translateY(-3px); opacity: 0;}
    46% {transform: skewX(8deg);}
    48% {transform: skewX(-6deg) translateY(2px); opacity: .5;}
    50% {transform: translateX(2px);}
}

.blur {
    animation: blur 4s ease-in-out infinite;
}

@keyframes blur {
    0%, 100% {filter: blur(0); opacity: 1; transform: scale(1);}
    50% {filter: blur(3px); opacity: .72; transform: scale(1.1);}
}

#devices {
    display: none;
}

/* touch devices */
@media (pointer: coarse) or (hover: none) {
    #devices {
        display: block;
        margin: 10vw;
        padding: 5vw;
        font-size: 3em;
        background-color: #fff;
        border: 5px solid #000;
    }

    #you, #controls {
        display: none;
    }
}