/* @2025 - Steffen Klausen - steffen@klausenguldbaek.dk*/
/* - * - * - * - * - * - * - * - * - * - * - * - * */
/* OVERLAY STYLING */

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
}

.overlay-content {
  position: relative;
  background-color: rgb(255, 252, 240);
  margin: 2rem auto;
  padding: 20px;
  width: 90vw;
  height: 85vh;
  max-width: 1200px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

.overlay-content-main {
  position: relative;
  width: 100%;
  height: 90%;
  overflow-y: scroll;
}

.overlay-content-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.overlay-close {
  position: absolute;
  right: 25px;
  top: 0;
  color: #333;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
}

.overlay-close:hover {
  color: #000;
}

.overlay-body {
  flex: 1;
  position: relative;
  padding: 20px;
  overflow: hidden;
}

/* Add this for smooth animation */
.overlay.show {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media screen and (max-width: 768px) {
  .overlay-content {
    margin: 15% auto;
    width: 95%;
    padding: 15px;
  }
}

@media (max-width: 1000px) {
  .overlay-content {
    height: 95%;
  }
}

.overlay-content-container {
  width: 100%;
  height: calc(100% - 90px); /* Adjust based on title height */
  overflow-y: auto;
  padding: 0 16px;
}

.overlay-content-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: start;
  color: #9cb697;
}
