@import url('https://fonts.googleapis.com/css2?family=Rubik+Moonrocks&display=swap');
         
html {
    background-size: cover;
}

body {
    animation: fadeInAnimation ease 3s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background-color: #522953;
  
}

@keyframes fadeInAnimation {
            0% {
                opacity: 0;
            }
            100% {
                opacity: 1;
            }
        }

p {
    position: absolute;
    top: 0;
    margin: 0;
}

input {
    align-self: flex-start;
}

.fade-out {
    opacity: 0;
}

.fade-in {
    opacity: 1;
}

#blackout {
    background-color: black;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    z-index: 2;
}

#start {
    width: 300px;
    height: 90px;
    border-radius: 10px;
    font-size: 36px;
    background-color: #eb3b5a;
    color: #F8EFBA;
    border: 1px solid #F8EFBA;
    cursor: pointer;
    outline: none;
    margin: 0 auto;
    transition: 0.2s all ease;
}

#start:hover {
    border-radius: 12px;
    border: 3px solid #F8EFBA;
    font-size: 32px;
}

#start[disabled] {
    background-color: grey;
    color: black;
    cursor: wait;
}

#error {
    color:white;
    background-color: #ec4031;
    font-family: 'Roboto Mono', monospace;
    font-size:25px;
    border-radius: 10px;
    word-wrap: break-word;
    margin: 0px;
    z-index: 2;
    white-space: pre-wrap;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

button {
    z-index: 1;
}

p {
    position: absolute;
    font-family: 'Skranji', cursive;
}

img {
  position: absolute;
}

#canvas {
  position: relative;
  width: 1280px;
  height: 600px;
  margin: auto;
  overflow: hidden;
  z-index: 1;
  background-image: url("images/bg.png");
  background-size: cover;
  background-position: bottom;
}

h1 {
    font-family: 'Mouse Memoirs', sans-serif;
    text-align: center;
    color: #fedfc4;
    font-weight: normal;
    font-size: 48px;
}

.clown {
  height: 400px;
  right: 10px;
  bottom: 40px;
}
