* {
    box-sizing: border-box;
}

.draw {
    /*margin:50px;*/
    position:relative;
    margin:25px;
    padding:10px;
    font-family: Gloria Hallelujah;
    font-size: 55px;
}

.button-play {
    margin-left: 10px;
    font-size: 15px;
    padding:10px 25px; 
    background: olive; 
    border: none;
    font-weight:bold;
    color:#fff;
  /*  border-radius: 7px; */
}

.button-submit {
    background-color: gray;
    color: #fff;
    font-size: 20px;
    text-decoration: none;
    cursor: pointer;
    border: none;
}
.result {
    width: 250px;
    margin: 2px;
    padding: 10px;
    border: 2px solid; 
    border-radius: 5px;
    display: none;
}
/*
.result .fail {
    color: red;
}

.result .success {
    color: green;
}
*/

.all {
    
    margin-left: 0 auto;
    display: flex;
}

.all .time {
    color:black;
    font-size: 45px;
    margin:100px;
}

.all .photo {
    width: 500px;
    height: 320px;
}

/*
.photo::after {
    content:'';
    display:block;
    clear:both;
  }
*/

.photo:hover {
    overflow: hidden;
}

.game {
    /*margin: 50px auto;*/
    width: 11.7rem;
    /*display: block;*/
    border: 2px solid #2e3c4d;
   /* box-shadow:0 0 15px 4px rgba(0,0,0,0.06);*/
   
}
/*
form {
    color:pink;
}
*/

.error {
    color:red;
}

/*******/


.all .photo .menu_img {
  position:absolute; 
  z-index: -1;
  top:130px; 
}

.alert-success {
    color:red;
    font-weight: bold;
}

.alert-success:focus {
    /* other rules */
    color: transparent;
  }
 
  input[type="file"] {
    display: none;
  }

  .custom-file-upload {
    border: 1px solid #ccc;
    display: inline-block;
    padding: 6px 12px;
    cursor: pointer;
  }

.input-style input{
    border: none;
    outline: none;
    border-radius: 15px;
    padding: 1em;
    background-color: #ccc;
    box-shadow: inset 2px 5px 10px rgba(0,0,0,0.3);
    transition: 300ms ease-in-out;
  }
  
  .input-style input:focus {
    background-color: white;
    transform: scale(1.05);
    box-shadow: 13px 13px 100px #969696,
               -13px -13px 100px #ffffff;
  }

  .button-upload {
    padding: 15px 25px;
    border: unset;
    border-radius: 15px;
    color: #212121;
    z-index: 1;
    background: #e8e8e8;
    position: relative;
    font-weight: 1000;
    font-size: 17px;
    box-shadow: 4px 8px 19px -3px rgba(0,0,0,0.27);
    transition: ease-in 250ms;
    overflow: hidden;
   }
   
   .button-upload::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    border-radius: 15px;
    background-color: #212121;
    z-index: -1;
    box-shadow: 4px 8px 19px -3px rgba(0,0,0,0.27);
    transition: step-end 250ms
   }
   
   .button-upload:hover {
    color: #e8e8e8;
   }
   
   .button-upload:hover:hover::before {
    width: 100%;
   }

 .input-word {
    padding: 10px;
    border: 2px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    color: #555;
    outline: none;
    max-width: 100%;
  }
  
 .input-word:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
  }
 
  .modal form {
    width: 70%;
    text-align: right;
}

 .modal label {
    text-align: right;
    margin-right: 30px;
}

  .popup {
    margin: 70px auto;
    padding: 20px;
    background: #fff;
    border-radius: 5px;
    width: 30%;
    position: relative;
    transition: all 5s ease-in-out;
  }
  
  .popup .close {
    position: absolute;
    top: 20px;
    right: 30px;
    transition: all 200ms;
    font-size: 30px;
    font-weight: bold;
    text-decoration: none;
    color: #333;
  }

  .button-link {
    text-decoration: none;
    color:white;
    font-size: 15px;
    padding:10px 25px; 
    background: olive; 
    border: none;
    font-weight:bold;
    margin-top: 10px;
  }

  .button-link a {
    text-decoration: none;
    width: 100%;
  }

/******/


@media (max-width: 600px) {
h1, .button-play {
        margin:0;
    }

.draw {
    margin: 0 auto;
}

.all {
    display: block;
}

.photo {
    max-width:100%;
    height:auto;
}

.all .photo .menu_img {
  max-height: 30%;
}

.all .time {
    margin: 0 auto;
    width: 100%;
}

}

@media (max-height: 600px) {   
h1 {
    margin:0;
   /* display: none; */
}

.draw, .all .time {
    margin:0;
    display:inline-flex;
    flex-direction:column;
    font-size: 40px;
    max-height: 200px;
    align-self: center;
}

.all .photo .menu_img {
  max-height: 30%;
  max-width: 25%;
}

.photo {
    margin-right: 25px;
    max-height: 155px;
    max-width: 275px;
}

}
