.tmodal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 4; /* Sit on top */
    padding-top: 2%; /* 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 */
  }
  
  .modal-header {
    background-color: #8ba1c1;
    border-bottom: 1px solid gray;
  }
  
  .headertext {
    font-size: 22px;
    font-weight: bold;
    text-align: center;
    margin-top: 4px;
    margin-bottom: 4px;
  }
  
  /* Modal Content */
  .modal-content {
    background-color: #f9f9f9;
    margin: auto;
    box-shadow: 1px 1px 4px 2px #5b5b5b;
    max-width: 875px;
    margin-bottom: 100px;
  }
  
  .bcontainer {
    border-top: 1px solid lightgray;
    text-align: center;
    padding: 5px;
  }
  
  .button {
    min-width: 75px;
  }
  
  
  /* The Close Button */
  .close {
    color: #595959;
    float: right;
    font-size: 24px;
    font-weight: bold;
    padding-right: 8px;
    padding-left: 8px;
    margin-right: 5px;
    margin-top: 5px;
    background-color: #d2d2d2;
    border-radius: 16px;
  }
  
  .close:hover,
  .close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
    background-color: gray;
  }
  
  @media screen and (max-width: 825px), screen and (max-height: 825px) {
    .tmodal {
      padding-top: 25px;
    }

    .close {
      transform: scale(1.15);
    }
  }