body {
  text-align: center;
  background-color: #011F3F;
}

#level-title {
  font-family: 'Press Start 2P', cursive;
  font-size: 3rem;
  margin: 50px auto 0 auto !important;
  color: #FEF2BF;

}


.restart {
  position: absolute;
  top: 100px;
  transform: translateX(-50%);
  font-family: 'Press Start 2P', cursive;
  z-index: 3;
}

.container {
  display: block;
  width: 50%;
  height: 430px;
  margin: auto;
  border-radius: 10px;
  margin-top: 70px !important;

}



.btn {
  margin: 25px;
  display: inline-block;
  height: 150px;
  width: 150px;
  border: 10px solid black;
  border-radius: 20%;
}

.game-over {
  background-color: red;
  opacity: 0.8;
}


.red {
  background-color: red;
}

.green {
  background-color: green;
}

.blue {
  background-color: blue;
}

.yellow {
  background-color: yellow;
}

.pressed {
  box-shadow: 0 0 20px white;
  background-color: grey;
}




#openModalBtn {
  position: absolute;
  font-family: 'Press Start 2P', cursive;
  transform: translateX(-50%);
  bottom: 20px !important;
}

.modal {
  display: none;
  position: fixed;
  z-index: 10;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
  background-color: white;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}



@media (min-width:250px) and (max-width:320px) {
  .btn {
    width: 70px;
    height: 70px;
  }

  .restart {
    position: absolute;
    top: 70px;
    transform: translateX(-50%);

  }

  .container {
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 50%;
    height: 200px;
    margin-top: 20%;
    padding: 30px;

  }

  #openModalBtn {

    bottom: 30px;
  }

  #level-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 1rem;
    margin: 20px auto 0 auto;
    color: #FEF2BF;
    margin-top: 2px !important;
  }
}


@media (min-width:320.1px) and (max-width:599.9px) {
  .btn {
    /* margin:2px 0; */
    width: 70px;
    height: 70px;
  }

  .container {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 5px;
    position: relative;
    width: 80%;
    height: 200px;
    margin-top: 30% !important;
    padding: 10px;


  }

  .restart {
    position: absolute;
    top: 90px;
    transform: translateX(-50%);
    z-index: 3;
  }

  #openModalBtn {

    bottom: 60px;
  }

  #level-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 1rem;
    margin: 10px auto 0 auto;
    color: #FEF2BF;
    margin-top: 2px !important;
  }
}


@media (min-width:600px) and (max-width:999.9px) {
  .btn {
    /* margin:2px 0; */
    width: 100px;
    height: 100px;
  }

  .container {
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 60%;
    height: 300px;
    margin-top: 25%;
    padding: 10px;

  }

  #level-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.5rem;
    margin: 20px auto 0 auto;
    color: #FEF2BF;

  }

  #openModalBtn {

    bottom: 2px;
  }
}


@media (min-width:1000px) {
  .btn {
    /* margin:2px 0; */
    width: 130px;
    height: 130px;
  }

  .container {
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 60%;
    height: 300px;
    margin-top: 25%;
    padding: 10px;

  }

  #level-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.5rem;
    margin: 20px auto 0 auto;
    color: #FEF2BF;

  }

  #openModalBtn {

    bottom: 2px;
  }
}