/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.modal-overlay.visible {
  display: flex;
  opacity: 1;
}

.modal {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  width: 50vw;
  position: relative;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  animation: fadeIn 0.3s ease-in-out;
  margin: 20px;
  justify-content: center;
  display: flex;
}

/* Modal Content */
.modal-image-content {
  background-color: white;
  justify-self: center;
  display: flex;
  width: 95%;
  max-height: 65vh; /* İçerik çok uzarsa kaydırma için maksimum yükseklik */
  overflow-y: auto; /* Yalnızca içerik dikey kaydırılabilir */
  align-items: center;
  flex-direction: column;
  text-align: center;
}

/* Ensure modal image wrapper and other elements respect the scroll behavior */
.modal-image-wrapper {
  width: 80%;
  margin-bottom: 20px;
  justify-self: center;
}
.modal-image-wrapper img{
  width:100%;
}

/* Close Button */
.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #ff6f61;
  color: white;
  border: none;
  padding: 5px 10px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 50%;
}

.close-btn:hover {
  background-color: #e55e54;
}

h1 {
  justify-self: center;
  padding: 20px 0;
  margin: 0;
}

/* Title */
h3 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
  text-align: center;
}

/* Modal Image Container */
.modal-image-container {
  justify-content: center;
  align-items: center;
  position: relative;
  color: white;
  height: 100%;
  background-color: black;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  width:100%;
}

.modal-close-btn {
  position: absolute;
  top: -20px;
  right: -15px;
  width: 40px;
  height: 40px;
  background-color: #ff0000;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1001;
}

.testttttt {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 90%;
}

.modal-image-content h1 {
  font-size: 28px;
  margin-bottom: 10px;
}

.modal-image-dates {
  background-color: black;
  color: white;
  padding: 10px 0;
  font-family: sans-serif;
}
.modal-center {
  padding: 0 15px;
}
/* Main Content */
.modal-center-main {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-center-main strong,
.modal-center-main p {
  color: black;
}

.modal-center p {
  font-size: 18px;
  margin: 15px 0;
}

.strong-div {
  font-weight: bold;
}

@media (max-width: 768px) {
  .modal {
    width: 80vw;
  }
}

.Vefatlarbottom {
  padding: 0 12vw;
  margin: auto;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.vefatlar-left-side-container {
  width: 130%; 
}
.Vefatlar-table-container {
  flex: 3;
  overflow-x: auto;
}
.Vefatlar-container {
  width: 100%;
}

.vefatlar-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", "Open Sans", Arial,
    sans-serif;
}

.vefatlar-table th,
.vefatlar-table td {
  padding: 12px 10px;
  border: 1px solid #ddd;
  text-align: left;
}

.vefatlar-table th {
  background-color: #f4f4f4;
  font-weight: bold;
}

.vefatlar-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.vefatlar-table tr:hover {
  background-color: #f1f1f1;
}


.Vefatlar-container-first-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 20px 0;
  height: fit-content;
  table-layout: fixed;
}
.searchbar-vefatlar {
  display: flex;
  align-items: center;
  justify-content: stretch;
  width: 95%;
  height: 5%;
  gap: 20px;
  margin: 20px auto;
}
.vefat-search-form {
    display: flex;
    align-items: center;
    gap: 10px;
}
.search-input {
  width: 40%;
  padding: 0.7rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
  outline: none;
}

.search-button {
  background-color: #d82126;
  color: white;
  border: none;
  padding: 0.7rem 16px;
  cursor: pointer;
  font-size: 16px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  width: 60px;
}
.searchbar-vefatlar-item-one {
  font: bold;
  font-weight: 600;
  font-size: 24px;
  line-height: 29.05px;
  letter-spacing: 0%;
}
.searchbar-vefatlar-item-two {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 10px;
  justify-content: right;
  width: auto;
}
@media (max-width: 768px) {
  .Vefatlarbottom {
    display: list-item;
    padding: 0 5vw;
    width: auto;
  }
  .searchbar-vefatlar {
    margin: 20px 0;
  }
  .vefatlar-left-side-container {
    justify-self: center;
  }
  .vefatlar-left-side-container {
    width: 100%;
  }
  .Vefatlar-sidebar .Sidevar {
    padding: 20px 0;
  }
}
@media (max-width: 500px) {
  .vefatlar-table td {
    font-size: 13px;
    padding: 10px 2px;
  }
  .vefatlar-table {
    table-layout: auto;
    font-family: Arial, sans-serif;
  }
}
@media (min-width: 768px) and (max-width: 1000px) {
  .vefatlar-table td {
    padding: 10px 5px;
  }
  .Vefatlar-sidebar .Sidevar {
    padding-right: 0 !important;
  }

  .Vefatlarbottom {
    padding: 0 5vw;
  }
  .addCategory {
    padding: 0 5vw !important;
  }
}

@media (max-width: 992px) {
  /* On tablets, stack the layout vertically */
  .Vefatlarbottom {
    flex-direction: column;
  }

  /* Make both columns full-width */
  .vefatlar-left-side-container,
  .Vefatlar-sidebar {
    width: 100%;
  }

  .Vefatlar-sidebar {
    margin-top: 30px;
  }
}

@media (max-width: 576px) {
  /* On mobile, stack the search bar items */
  .searchbar-vefatlar {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
}

button{
  align-items: center;
  background-color: #fff;
  border: 1px solid #ddd;
  justify-content: flex-start;
  padding: 10px;
  transition: all .3s ease;
  width: 100%;
}

button:hover {
  background: linear-gradient(to bottom right, red, darkred);
}
.Vefatlar-sidebar{
  max-width:25vw;
}