body {
  color: rgba(36,47,96,1);
}

#panel{
   max-width:350px;
}

#deck{
    background-color: #949ee9;
    max-width: 780px;
    margin:auto;
    padding:50px 20px;
    min-height: 700px;
    box-shadow: 12px 15px 10px 0 rgb(46 61 73 / 50%);

    
}

.card{
    width: 22.5%;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #62699a;
        font-size: 0;
    cursor: pointer;
    border-radius: 10px;
    box-shadow: 5px 5px 10px 0 rgb(46 61 73 / 50%);
}

.open{
    background-color:rgba(36,47,96,1);
    cursor: default;
    font-size: 5rem;
    color:white;

}

.match{
    cursor: default;
    background-color:  #44aa29;
    font-size: 5rem;
}


  .box {
    display: block; /* Hidden by default */
    position: fixed; /* Stay in place */
    padding-top: 250px; /* Location of the box */
    left: 0;
    top: 0;
    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 */
  }

  .box-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 30%;
    height: auto;
    border: 5px solid #62699a;
    border-radius: 5%;
    
  }

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

  .close:hover,
  .close:focus {
    color: #62699a;
    text-decoration: none;
    cursor: pointer;
  }
  .btn {
   background-color: #62699a;
   color:#fefefe;
   
  }

@media(max-width:780px){
    .card{
        width:20.5%;
        height: 125px;
    }
}

@media(max-width:340px){
    #deck{
        padding:10px;
        
    }
    .card{
        width: 18%;
    }
}

@media(max-width:600px){
  .box-content{
    width: 70%;
  }
}