html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    background-color: #331E1A;
    overflow: hidden;
    font-family: 'Fredoka', sans-serif;
    font-size: 16px;
    touch-action: none;
}

#game-container {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

canvas {
    display: block;
}

.fredoka-bold {
    font-family: "Fredoka", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    font-variation-settings: "wdth" 100;
}

h1,
h3 {
    font-family: 'Fredoka', sans-serif;
    text-transform: uppercase;
    font-size: 5rem;
    color: #FFF4C6;
    /* Fill color */
    text-shadow:
        -3px -3px 0 #4B352E,
        3px -3px 0 #4B352E,
        -3px 3px 0 #4B352E,
        3px 3px 0 #4B352E;
}

h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-shadow:
        -1px -2px 0 #4B352E,
        2px -2px 0 #4B352E,
        -2px 2px 0 #4B352E,
        2px 2px 0 #4B352E
}

p {
    margin-top: 0;
}

canvas {
    background: #fff;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    cursor: pointer;
}

.button {
    text-decoration: none;
    display: none;
    border: 5px solid #451622;
    padding: 1rem 3rem;
    background-color: #E68F42;
    color: #FFF2C4;
    font-size: 1.5rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1.2rem;
}

#cropButton {
    position: absolute;
    border-color: #fff;
    z-index: 2;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    transition: transform 150ms ease-in-out;
}

#cropButton:hover {
    transform: translateX(-50%) scale(1.3);
}

#upload {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 999;
    /* make sure it's above the canvas */
    cursor: pointer;
}

.upload-label {
    display: inline-block;
    cursor: pointer;
}

.upload-label img {
    width: 150px;
    /* or whatever you like */
    height: auto;
    transition: transform 0.2s ease;
}

.upload-label:hover img {
    transform: scale(1.05);
}

#upload:hover {
    background-color: pink;
    color: white;
}

#upload::-webkit-file-upload-button {
    visibility: hidden;
}

#input-wrapper {
    text-align: center;
    font-family: 'Fredoka', sans-serif;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    z-index: 10;
    display: none;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    font-size: 18px;
    background: rgba(82, 178, 206, 0.8);
}

#input-wrapper * {
    display: block;
}


#player-name {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.2rem;
    border: 5px solid #451622;
    border-radius: 35px;
    background: #E68F42;
    color: #FFF2C4;
    font-weight: 500;
    padding: 1rem;
    margin-bottom: 1rem;
    text-align: center;
}

input:focus {
    border-color: #451622;
    outline: none;
}

#player-name::before {
    content: 'Upload a pic of your pup';
    display: inline-block;
    text-align: center;
    background: transparent;
    color: inherit;
    font-weight: 500;
}

#player-name::-webkit-input-placeholder {
    color: white;
}

#player-name::-moz-placeholder {
    color: white;
    opacity: 1;
}

#player-name:-ms-input-placeholder {
    color: white;
}

#player-name::placeholder {
    color: white;
    opacity: 1;
}

#player-name.error {
    border-color: red;
    animation: wobble 0.3s ease;
}

#version a {
    font-family: 'Fredoka', sans-serif;
    font-size: 1rem;
    color: #fff;
    position: absolute;
    bottom: .5rem;
    width: 100%;
    text-align: center;
}

@keyframes wobble {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    50% {
        transform: translateX(5px);
    }

    75% {
        transform: translateX(-5px);
    }

    100% {
        transform: translateX(0);
    }
}