/* The Modal (background) */
.modal, .modal_eng {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  padding: 100px 0 100px 0; /* Location of the box */
  left: 0;
  top: 0;
  z-index: 99999; /* Sit on top */
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}
.modal_eng{
    display: block;
 }
.text_eng{
    width: 380px;
    height: 500px;
    background-color: #fefefe;
    margin: auto;
    border: 1px solid #888;
    border-radius: 15px;
}

/* Modal Content */
.modal-contents {
  background-color: #fefefe;
  margin: auto;
  /*padding: 20px;*/
  border: 1px solid #888;
  width: max-content;
  border-radius: 15px;
}

.stat-block{
    width: 50%;
    padding-left: 3rem;
}

/* The Close Button */
.close-modal {
  transform: translate(-10px, 0px);
  color: #1F87CF;
  float: right;
  font-size: 3rem;
  font-weight: lighter;
}

.close-modal:hover,
.close-modal:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}
.modal-result{
	padding: 2rem;
}
.text-result{
    text-align: center;
    color: dimgrey;
}
#table-result{
    border: 1px solid grey;
    margin-top: 2rem;
    border-radius: 15px;
    width: 356px;
}
.mobile-block{
    text-align: center;
    font-weight: lighter;
    color: dimgrey;
}
.modal-result a {
    text-align: center;
    display: block;
    text-decoration: underline;
}
.modal-result img{
    width: 356px;
    margin-top: 1rem;
    margin-bottom: 1rem;
}
@media only screen and (max-width: 400px){
    .modal{
        padding: 10px 0 100px 0;
    }
    .modal-contents {
        background-color: #fefefe;
        margin: auto;
        border: 1px solid #888;
        width: 90%;
    }
    #table-result{
        width: auto;
    }
    .modal-result img{
        width: 100%;
    }

}