body {
    display: block;
    text-align: center;
    align-content: center;
    background-color: #000;
}

h1 {
    color: #fff;
    text-align: center;
    font-family: 'Monoton', cursive;
    font-size: 80px;
    animation: glow 1s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px #0073e6, 0 0 20px #0073e6, 0 0 25px #0073e6, 0 0 30px #0073e6, 0 0 35px #0073e6;
    }
    to {
        text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #0073e6, 0 0 40px #0073e6, 0 0 50px #0073e6, 0 0 60px #0073e6, 0 0 70px #0073e6;
    }
}

#score {
    font-size: 50px;
}

h2 {
    font-size: 30px;
    color: white;
    font-family: 'Raleway', sans-serif;
}

.modal-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90%;
    display: flex;
    background-color: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s opacity 0.5s;
    text-align: left;
}

.bg-active {
    visibility: visible;
    opacity: 1;
}

.modal {
    position: relative;
    background-color: white;
    width: 40%;
    height: 30%;
    display: flex;
    /*justify-content: center; */
    align-items: center;
    flex-direction: column;
    padding: 10px;
    font-size: 20px;
    font-family: 'Raleway', sans-serif;
}

.titleInstructions {
    font-size: 30px;
    border-bottom: 2px solid black;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-weight: bold;
    font-size: 24px;
    cursor: pointer;
    text-align: left;
}

.modal-close:hover {
    font-style: italic;
    font-size: 30px;
}

button:hover {
    opacity: 0.5;
    cursor: pointer;
    font-size: 30px;
    width: auto;
}
  
  @keyframes infinite-shift-left {
    0% {
      background-position: 100000px;
    }
    100% {
      background-position: 0;
    }
  }

#canvas {
    border: 5px solid white;
    margin: 0 auto;
    background-image: url("https://cdn.gamedevmarket.net/wp-content/uploads/20191203165405/b4869abd6b3fb22cba3635dab74b6c87.png");
    animation: infinite-shift-left 400s linear;
    background-size: contain;
    display: block;
}

button {
    width: 150px;
    height: 50px;
    font-size: 26px;
    font-family:'Bangers', cursive;
    background-color: white;
    border: 5px solid white;
    margin: 10px;
}

@media only screen and (min-width : 185px) and (max-width : 1000px) {
    body {
        width: 100%;
        float: none;
        text-align: center;
    }

    h1 {
        font-size: 45px;
    }

    #score {
        font-size: 20px;
        padding: 0;
    }

    #canvas {
        width: 60%;
    }

    button {
        width: 20%;
        height: 20%;
    }

    .modal {
        position: relative;
        background-color: white;
        width: 100%;
        height: 100%;
        font-size: 15px;
    }
}


