.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 0 1rem;
  max-width: 80% !important;
}

#aproximation-alert, #notification-alert {
  width: 90%;
  margin: 0 auto;
  text-align: center;
  margin-top: 10px;
  margin-bottom: 10px;
}


.dashboard-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
  }
  
  .dashboard-box {
    width: 50%;
    height: 200px;
    background-color: #e6e6e6;
    border: 1px solid #ccc;
  }
  
  .dashboard-icons-container button img {
    max-width: 100%;
    height: auto;
  }
  
  .dashboard-box-upper-centered {
    width: 90%;
    height: 130px !important;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    font-size: 20px;
    position: relative;
    flex-direction: column;  
  }

  #top-bar-header {
    min-height: 40px;
    margin-bottom: 10px;
  }

  .table {
    width: 100%;
    table-layout: fixed;
  }

  #activity_table {
    overflow:hidden;
  }
  
  #activity_selection_table td {
    padding: 0px !important;
    text-align: center;
  }
  
  .activities-td:hover {
    background-color: lightgray;
  }

  #page-content-wrapper{
    padding:0px !important;
    align-content: center !important;
  }
  .cell-button {
    width: 100%;
    height: 90px;
    padding: 10px;
    border: none;
    background: none;
    cursor: pointer;
  }
  
  .cell-button:focus {
    outline: none;
  }

  .activity-icon {
    width: 100%;
    max-width:100px;
    height: auto;
  }

  #activity_selection_table {
    max-width: 90% !important;
    margin-left: auto;
    margin-right: auto; 
    height:300px;
  }

  #activity_selection_table tbody tr{
    background: white;
  }

  #activity_selection_table tbody tr:hover {
    background-color: initial;
  }
  
  #activity_selection_table td > button:hover {
    background-color: lightgray;
  }

  #activity_selection_table td > button[disabled] {
    opacity: 0.6;  /* Reduce the opacity to create a grayed-out effect */
    filter: grayscale(100%);  /* Apply grayscale filter to further gray out the button */
    pointer-events: none;  /* Disable pointer events to prevent interactions with the button */
  }
  
  .dashboard-box-big {
    width: 50%;
    height: 300px;
  }
  
  .icons-container {
    display: flex;
    justify-content: space-between;
  }
  
  .dashboard-box-last {
    width: 50%;
    height: 70px;
  }

  .dashboard-box-upper-centered .text {
    position: absolute;
    top: 5%;
    left: 8%;
    font-size: 16px;
    font-weight: bold;
    margin: 10px;
  }
  
  .dashboard-box-upper-centered .random-image.elapsed-time {
    margin-top: 10px;
    position: absolute;
    top: 48%;
    left: 8%;
  }
  
  .dashboard-box-upper-centered .random-image.elapsed-time img {
    width: 30px;
    height: 30px;
    margin-bottom: 8px ;
  } 
  
  .dashboard-box-upper-centered .random-image.elapsed-time .random-date {
    display: inline-block;
  }
  
  .dashboard-box-upper-centered .middle-image {
    display: flex;
    position: absolute;
    justify-content: center;
    align-items: center;
    height: 60%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }

  .middle-image {
    /* Other styles for the middle image container... */
    display: flex; /* Use flexbox for horizontal alignment */
    flex-direction: column; /* Stack the elements inside horizontally */
    align-items: center; /* Center the elements horizontally */
  }

.vehicle-info {
  position: absolute;
  top: 5px;
  left: auto;
  left: 15px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 10px;
  background: none;
  border: none;
  line-height: 10px;
}
  
  .vehicle-info .info-title {
    font-size: 21px;
    font-weight: bold;
    margin-bottom: 5px;
  }
  
  .dashboard-box-upper-centered .vehicle-info .info-content {
    font-size: 14px; 
    line-height: 2.2; 
  }

  .wrapper-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  .activity-container {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 10px;
    text-align: center;
  }

  .activity-container-pause {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 10px;
  }

  .activity-container-pause .activity-info {
    margin:0px 20px 0px 30px;
    color: white;
    font-weight: bold;
    flex: 1;
    text-align: center;
  }
  
  .activity-container.green-bg {
    margin-bottom: 40px;
  }

  #start-activity-button {
    width: 90%;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .start-container {
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: bold;
    border-radius: 10px;
    }
  
  .activity-container-pause.red-bg {
    background-color: #dc3545;
    width: 90%;
    margin:10px auto 10px auto;
    border-color: #dc3545
  }

  .activity-container-pause.red-bg:hover {
    background-color: #c82333;
    border-color: #bd2130;
  }
  
  .activity-container-pause .activity-image {
    flex: 1;
    text-align: right;  }

  .pause-container {
    flex: 1;
    text-align: left;
  }
  
  .activity-container-pause .activity-image img {
    margin-left: 20px;
  }

  .visually-disabled {
    background-color: -internal-light-dark(rgba(239, 239, 239, 0.3), rgba(59, 59, 59, 0.3));
    color: -internal-light-dark(rgb(84, 84, 84), rgb(170, 170, 170));
    border-color: rgba(118, 118, 118, 0.3);
    color: -internal-light-dark(graytext, rgb(170, 170, 170));
    opacity: 0.7;
    border-color: rgba(118, 118, 118, 0.3);
    cursor: not-allowed;
    pointer-events: none;
  }

  .container-margin40 {
    display: flex;
    align-items: center;
    font-size: 14px;
    margin-right: 20px !important;
  }
  
  .activity-details {
    /* Define your styles for the right div */
    margin-left: 10px; /* Add some space between the icon and details */
    text-align: center; /* Center the text inside this div */
    margin-top:5px;
  }
  
  /* .activity-time {
    padding-left: 10px;
  } */

  .new-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px; /* Add some space between each row */
    line-height: 15px;
  }

  .new-row .date,
  .new-row .journey-time,
  .new-row .vehicle,
  .new-row .mileage {
    margin-right: 10px;
    font-size: 14px; /* Adjust the spacing between the spans */
    line-height: 40px;
  }

  .new-row .mileage{
    margin-right: 1px;
  }

  .activity-time {
    display: flex;
    align-items: center;
    margin-right: 10px; /* Adjust the spacing between the icon and the text */
  }
  
  .activity-name{
    font-size: 18px;
  }

  #start-activity-button {
    margin-top: 10px;
    margin-bottom: 10px;
  }

  @media (max-width: 1000px) {
    .dashboard-box-upper-centered .middle-image {
      position: absolute;
      top: 50%;
      left: 100px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      padding: 10px;
      background: none;
      border: none;
    }
    .vehicle-info{
      display:none;
    }
  }

  @media (max-width: 660px) {

    .vehicle-info {
      display: none;
    
    }

    #activity_selection_table td {
      padding: 0px !important;
      text-align: center;
      border:double 4px darkgray;
    }

    .dashboard-box-upper-centered .text {
      position: absolute;
      top: 30%;
      left: 80%;
      transform: translate(-50%, -50%);
      font-size: 16px;
      align-self: center;
      font-weight: bold;
      margin: 10px;
    }
    
    .dashboard-box-upper-centered .random-image.elapsed-time {
      position: absolute;
      top: 55%;
      left: 50%;
      transform: translate(-50%, -50%);
      margin-top: 10px;
    }
    
    .dashboard-box-upper-centered .random-image.elapsed-time img {
      width: 25px;
      height: 25px;
      margin-bottom: 8px;
    }
  }

  @media (max-width: 590px) {
    .activity-container-pause .activity-image  {
      display: none;
    }
    .activity-container-pause .activity-info {
      margin:0px;
      color: white;
      font-weight: bold;
      flex: 1;
      text-align: center;
    }

    .dashboard-box-upper-centered .text {
      left: 45%;
      font-size: 14px;
    }
  }

  @media (max-width: 620px) {
    .pause-container {
      display: none;
    }

    .dashboard-box-upper-centered .random-image.elapsed-time img {
      display: none;
    } 

    .random-date {
      font-size: 18px;
    }

    .dashboard-box-upper-centered .text {
      left: 45%; /* Remove left offset for smaller screens */
    }
  }

  @media (max-width: 500px) {
      
    #current-details {
      margin-left: 40%;
    }

    .new-row .date,
    .new-row .journey-time,
    .new-row .vehicle,
    .new-row .mileage {
      margin-right: 10px;
      font-size: 11px; /* Adjust the spacing between the spans */
      line-height: 5px;
    }
    
    .new-row .mileage{
      margin-right: 1px;
    }

    .activity-name{
      font-size: 14px;
    }

    .dashboard-box-upper-centered .middle-image {
      left:70px;
    }

  }
  
  @media (max-width: 500px) {
    .container-margin40 {
      display: block !important;
      margin-left: 40% !important;
      margin-right: 10px !important;
    }

    .new-row {
      display: flex;
      flex-direction: column; /* Stack the elements inside vertically */
      align-items: flex-start; /* Align items to the start (left) of the container */
      margin-bottom: 5px; /* Add some space between each row */
      line-height: 15px;
    }

    .new-row .date,
    .new-row .journey-time,
    .new-row .vehicle,
    .new-row .mileage {
      display: flex;
      align-items: flex-start; /* Align items to the start (left) of the container */
      margin-bottom: 5px; /* Add some space between each row */
      line-height: 15px;
    }
  
    #current-details {
      right: 10px;
    }
    @media (max-width:400px){
      #current-details {
        margin-left: 25%;
      }
    }
  }

  @media (max-width:580px){
    .translation,
    .table-activity-name{
      display: none;
    }
    .activity-icon {
      margin-top:10px
    }
    .activity-icon {
      max-width: 70px;
      height: auto;
    }
  }


.modal {
  display: none;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7);
  z-index: 10000 !important;
}

.modal-content {
  bottom: 15%;
  margin: 15% auto;
  padding: 20px;
  width: 23rem !important;
  left: 5%
}

#kms-modal {
  margin: 15% auto;
  padding: 30px;
  width: 24rem !important;
  left: 2.3%
}

.modal-input-field {
  padding-bottom: 20px; 
}

#modal-start-mileage-input {
  width: 100%;
  padding: 5px;
}


#confirmButton{
  margin-bottom: 2%;
}

@media (max-width: 500px) {
  .modal-content {
    overflow-y: auto; /* Set overflow-y to auto */
    max-height: 80vh; 
    width: 14rem !important;
    top: 0;
    left: 2%
  }

  #kms-modal {
    margin: 8%;
    padding: 28px;
    width: 80% !important;
    left: -0.5%
  }
}

@media (max-width: 260px) {
  .modal-content {
    overflow-y: auto; /* Set overflow-y to auto */
    max-height: 80vh; 
    width: 11rem !important;
    top: 0;
    left: 2%
  }
}
