.modal {
    display: none;
    position: fixed; 
    z-index: 1; 
    padding-top: 5%; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgb(0,0,0);
    background-color: rgba(0, 0, 0, 0.9); 
    -webkit-animation-name: fade;
    -webkit-animation-duration: 1.5s;
    animation-name: fade;
    animation-duration: 1.5s;
  }

.modal-content {
    background-color: rgb(254, 254, 254);
    margin: auto;
    padding: 20px;
    border: 1px solid rgb(136, 136, 136);
    width: 70%;
    height: 80%;
    padding-left: 5%;
    padding-right: 5%;
    overflow: scroll;
    display: flex;
    flex-direction: column;
    -webkit-animation-name: zoom;
    -webkit-animation-duration: 0.6s;
    animation-name: zoom;
    animation-duration: 0.6s;
  }
  .modal-content2 {
    background-color: rgb(254, 254, 254);
    margin: auto;
    padding: 20px;
    border: 1px solid rgb(136, 136, 136);
    width: 80%;
    height: 50%;
    overflow: scroll;
    text-align: center;
    display: flex;
    flex-direction: column;
    /* justify-content: center; */
    -webkit-animation-name: zoom;
    -webkit-animation-duration: 0.6s;
    animation-name: zoom;
    animation-duration: 0.6s;
  }

  .close {
    color: #aaaaaa;
    text-align: right;
    font-size: 28px;
    font-weight: bold;
  }
    
  .close:hover, .close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
  }

  .modal-content a{
    text-decoration: none;
  }

  .modal-content h2{
    color: black
  }

  @media screen and (min-width: 768px){
   
    .modal-content {
      width: 65%;
    }

    .modal-content2 {
      width: 60%;
    }
  }
  
  /*För större skärmar*/
  @media screen and (min-width: 1024px){
    .modal-content {
      width: 80%;
  }
  .modal-content2 {
    width: 40%;
}
  }