#gamebackground, #genlab, #ballab, #chemlab, #finlab {
  max-height: 100%;
  max-width: 100%;
  width: inherit;
  height: inherit; }

@media only screen and (max-width: 1441px) {
  .modal_lab_cs {
    left: 19%;
    top: 220px;
    width: 40%;
    /* Full width */ }

  .modal_res {
    right: 1%;
    top: 50px;
    width: 40%;
    /* Full width */ }

  /*technition in lab*/
  .modal_technition {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 1;
    /* Sit on top */
    padding-top: 20px;
    /* Location of the box */
    left: 20%;
    top: 15%;
    width: 80%;
    /* Full width */
    height: 100%;
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */ }

  /*Buttons on main screen*/
 /* .Ebtn_1 {
    position: absolute;
    bottom: 300px;
    left: 110px; }

  .Ebtn_2 {
    position: relative;
    bottom: 18rem;
    left: 11rem; }

  .Ebtn_3 {
    position: relative;
    bottom: 100px;
    left: 140px; }

  .Ebtn_4 {
    position: relative;
    bottom: 110px;
    left: 250px; }

  .Ebtn_5 {
    position: relative;
    bottom: 190px;
    left: 340px; }

  .ETech {
    position: absolute;
    bottom: 200px;
    left: 390px; } 
*/
}
@media only screen and (max-width: 1050px) {
  .modal {
    left: 40%;
    width: 70%;
    /* Full width */ }

  .modal_lab_cs {
    left: 6%;
    top: 160px;
    width: 60%;
    /* Full width */ }

  .modal_res {
    right: 1%;
    top: 1px;
    width: 50%;
    /* Full width */ }

  /*technition in lab*/
  .modal_technition {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 1;
    /* Sit on top */
    padding-top: 30px;
    /* Location of the box */
    left: 10%;
    top: 5%;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */ }

  /*Buttons on main screen*/
  /*.Ebtn_1 {
    position: absolute;
    bottom: 300px;
    left: 110px; }

  .Ebtn_2 {
    position: relative;
    bottom: 15rem;
    left: 9rem; }

  .Ebtn_3 {
    position: relative;
    bottom: 100px;
    left: 140px; }

  .Ebtn_4 {
    position: relative;
    bottom: 110px;
    left: 250px; }

  .Ebtn_5 {
    position: relative;
    bottom: 190px;
    left: 340px; }

  .ETech {
    position: absolute;
    bottom: 200px;
    left: 390px; }
*/}
@media only screen and (max-width: 800px) {
  .modal {
    left: 0;
    width: 100%;
    /* Full width */ }

  .modal_lab_cs {
    left: 1%;
    top: 150px;
    width: 70%;
    /* Full width */ }

  .modal_res {
    right: 1%;
    top: 1px;
    width: 75%;
    /* Full width */ }

  /*technition in lab*/
  .modal_technition {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 1;
    /* Sit on top */
    padding-top: 5px;
    /* Location of the box */
    left: 5%;
    top: 2%;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */ }

  /*animation popup in lab*/
  .modal_ani_popup {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 1;
    /* Sit on top */
    padding-top: 0px;
    /* Location of the box */
    left: 10%;
    top: 5%;
    width: 90%;
    /* Full width */
    height: 100%;
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */ }

  /*Buttons on main screen*/
  /*.Ebtn_1 {
    position: absolute;
    bottom: 17rem;
    left: 5rem; }

  .Ebtn_2 {
    position: relative;
    bottom: 15rem;
    left: 9rem; }

  .Ebtn_3 {
    position: relative;
    bottom: 5rem;
    left: 7rem; }

  .Ebtn_4 {
    position: relative;
    bottom: 5.5rem;
    left: 12.5rem; }

  .Ebtn_5 {
    position: relative;
    bottom: 11rem;
    left: 19rem; }

  .ETech {
    position: absolute;
    bottom: 10rem;
    left: 22rem; }
*/}
@media only screen and (max-width: 375px) {
    #gameplay{
    height: 40vh;
}
  #game .space_top img {
    height: 5rem; }

  .hover_img button {
    font-size: 0.6rem;
    padding: 0rem 0.2rem; }

  .modal_lab_cs {
    left: 0px;
    top: 70px;
    width: 100%;
    /* Full width */ }

  .modal_res {
    left: 1px;
    top: 1px;
    width: 100%;
    /* Full width */ }

  /*Buttons on main screen*/
   .Ebtn_1 {
        position: absolute;
        top: 3rem !important;
        left: 3rem !important;
    }

    .Ebtn_2 {
        top: 7.5rem !important;
        left: 7rem !important; }

    .Ebtn_3 {
        position: relative;
        top: 11rem !important;;
        left: 5rem !important; }

    .Ebtn_4 {
        position: relative;
        top: 10.5rem !important;
        left: 9.5rem !important; }

    .Ebtn_5 {
        position: relative;
        top: 7.5rem !important;
        left: 12.6rem !important; }

    .ETech {
        position: absolute;
        top: 3.5rem;
        left: 16rem;
        width: 13%; }
}
@media only screen and (max-width: 320px) {
    #gameplay{
    height: 40vh;
}
  #game .space_top img {
    height: 5rem; }

  .hover_img button {
    font-size: 0.6rem;
    padding: 0rem 0.2rem; }

  .modal_lab_cs {
    left: 0px;
    top: 70px;
    width: 100%;
    /* Full width */ }

  .modal_res {
    left: 1px;
    top: 1px;
    width: 100%;
    /* Full width */ }

  /*Buttons on main screen*/
 /* .Ebtn_1 {
    position: absolute;
    bottom: 8rem;
    left: 2rem; }

  .Ebtn_2 {
    bottom: 7.3rem !important;
    left: 4.5rem !important; }

  .Ebtn_3 {
    position: relative;
    bottom: 2.5rem;
    left: 3rem; }

  .Ebtn_4 {
    position: relative;
    bottom: 3rem;
    left: 5.5rem; }

  .Ebtn_5 {
    position: relative;
    bottom: 5.3rem;
    left: 8rem; }

  .ETech {
    position: absolute;
    bottom: 5rem;
    left: 13rem;
    width: 13%; } 
*/
}
@media only screen and (max-width: 500px) {
  #game .space_top img {
    height: 5rem; }

  .hover_img button {
    font-size: 0.6rem;
    padding: 0rem 0.2rem; }

  .modal_lab_cs {
    left: 0px;
    top: 70px;
    width: 100%;
    /* Full width */ }

  .modal_res {
    left: 1px;
    top: 1px;
    width: 100%;
    /* Full width */ }
  #gameplay{
    height: 40vh;
}

  /*Buttons on main screen*/
 /* .Ebtn_1 {
    position: absolute;
    bottom: 8rem;
    left: 2rem; }

  .Ebtn_2 {
    bottom: 7.3rem !important;
    left: 4.5rem !important; }

  .Ebtn_3 {
    position: relative;
    bottom: 2.5rem;
    left: 3rem; }

  .Ebtn_4 {
    position: relative;
    bottom: 3rem;
    left: 5.5rem; }

  .Ebtn_5 {
    position: relative;
    bottom: 5.3rem;
    left: 8rem; }

  .ETech {
    position: absolute;
    bottom: 5rem;
    left: 13rem;
    width: 13%; }
*/
}
