/* :root {
    --bg-color:#0c2b40;
    --text-color:#e0e0e0;
    --primary-color:#90caf9;
    --secondary-color:#ff6666;
    --accent-color:#ff4081;
    --card-bg-color:#1e1e1e;
    --card-text-color:#e0e0e0;
    --card-hover-bg-color:#2a2a2a;
    --card-hover-text-color:#ffffff;
    --card-border-color:#333;
} */


#modal-image {
  max-width: 200px;
  max-height: 200px;
  height: auto;
  float: right;
  margin: 0 0 1rem 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  display: block;
}



#modal-image:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}
#modal-image:active {
  transform: scale(1);
  transition: transform 0.3s ease;
}
#modal-image:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.5);
}
#modal-image:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.5);
}
#modal-image:focus-within {
  outline: none;
  box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.5);
}



.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
  }
  
  .modal.visible {
    opacity: 1;
    pointer-events: auto;
  }
  
  .modal-content {
    background: var(--card-bg-color);
    color: var(--card-text-color);
    padding: 2rem;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    
    position: relative;
    transform-origin: center;
    transform: scale(0.8) translateY(30px);
    opacity: .5;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .modal.visible .modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
  }

  .modal-content.animate {
    opacity: 1;
    transform: scale(1) translateY(0);
  }

  .modal-content img {
    max-width: 25%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 6px;
    align-self: flex-start;
  }
  
  .modal-content {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    flex-wrap: wrap;
  }
  .modal-text {
    flex: 1;
    min-width: 200px;
  }

  .modal-content h3 {
    margin-top: 0;
  }
  
  .modal-content .close {
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    font-size: 24px;
    cursor: pointer;
    color: var(--accent-color); /* sau altă variabilă din root */
  }
  

  .modal-content .close:hover {
    color: var(--secondary-color); /* sau altă variabilă din root */
  }
  @keyframes modalEnter {
    from {
      transform: scale(0.8) translateY(30px);
      opacity: 0;
    }
    to {
      transform: scale(1) translateY(0);
      opacity: 1;
    }
  }
  
  @media (max-width: 768px) {
    .modal-content {
      /* display: block; */
      width: 80vw;
      max-height: 80vh;
      overflow-y: auto;
      padding: 1rem;
    }
   
    .modal-content img {
      display: block;
      max-width: 100%;
      height: auto;
      margin-bottom: 1rem;
    }
    
    #modal-image {
      max-width: fit-content;
      max-height: fit-content;
      width: 100%;
      height: 100%;
      margin: 0;
    }
    .modal-text {
      width: 100%;
      text-align: left;
    }
  
    .modal-text .close {
      position: absolute;
      top: 1rem;
      right: 1rem;
    }

    nav a {
      font-size: 16px;
      padding: 0.5rem;
    }
  
    .container {
      padding: 1rem;
    }
  }
  
  
  .card-image {
    width: 100px;
    height: auto;
    max-height: 180px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 1rem;
    display: block;
  }
  
  @media (max-width: 768px) {
    .card-image {
      max-height: 150px;
    }
  }
  