/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 999; /* Sit on top */
    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 */
    -webkit-animation-name: fadeIn; /* Fade in the background */
    -webkit-animation-duration: 0.4s;
    animation-name: fadeIn;
    animation-duration: 0.4s
  }
  
  /* Modal Content */
  .modal-content {
    position: relative;
    margin-left: auto;
    margin-right: auto;
    bottom: 0;
    background-color: #fefefe;
    border: 2px solid #73bc77;
    width: 100%;
    -webkit-animation-name: slideIn;
    -webkit-animation-duration: 0.4s;
    animation-name: slideIn;
    animation-duration: 0.4s;
    top: 50%;
    transform: translateY(-50%);
    -webkit-transform: translateY(-50%); /* WebKit */
    -moz-transform: translateY(-50%); /* Mozilla */
    -o-transform: translateY(-50%); /* Opera */
    -ms-transform: translateY(-50%); /* Internet Explorer */
  }
  #chart-content{
    display: flex;
  }
  #myChart {
    max-height: 450px;
    max-width: 550px;
    margin-right: 10px;
  }
  .entry-header #myBtn {
    max-height: 40px;
  }
  .entry-header #ai_metrics .fa-question-circle {
    cursor: pointer;
  }
  #myBtn img{
    width: 80px;
    height: auto;
  }
  /* The Close Button */
  .close {
    color: white;
    float: right;
    font-size: 28px;
    font-weight: bold;
  }
  
  .close:hover,
  .close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
  }
  
  .modal-header {
    padding: 2px 16px;
    text-align: center;
    color: #73bc77;
  }
  .close {
    color: #73bc77;
  }
  .modal-body {padding: 16px 16px;}
  .modal-header h2 {
    padding-top: 10px;
  }
  
  /* Add Animation */
  @-webkit-keyframes slideIn {
    from {bottom: -300px; opacity: 0} 
    to {bottom: 0; opacity: 1}
  }
  
  @keyframes slideIn {
    from {bottom: -300px; opacity: 0}
    to {bottom: 0; opacity: 1}
  }
  
  @-webkit-keyframes fadeIn {
    from {opacity: 0} 
    to {opacity: 1}
  }
  
  @keyframes fadeIn {
    from {opacity: 0} 
    to {opacity: 1}
  }

  @media (max-width: 1024px) {
    #myChart {
      max-height: 350px;
      max-width: 450px;
      margin-right: 8px;
    }
    #chart-text {
      margin-bottom: 10px;
    }
  }

  @media (max-width: 840px) {
    #myChart {
      max-height: 300px;
      max-width: 400px;
      margin-right: 8px;
    }
    #chart-text {
      margin-bottom: 10px;
    }
  }

  @media (max-width: 767px) {
    #chart-content{
      display: block;
    }
    .modal-header h2 {
      margin-bottom: 0;
    }
    .modal-body {
      padding: 5px 10px;
    }
    #myChart {
      height: 300px;
      width: 400px;
      margin-bottom: 15px;
    }
    .close {
      position: absolute;
      right: 4px;
      top: -5px;
    }
  }

  @media (max-width: 668px) {
    #chart-text {
      margin-bottom: 50px;
    }
  }