/* 
   1) Full-screen black overlay behind the modal 
*/
.modal {
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}

/*
   2) The white modal box
*/
.modal-content {
  background: #fff;
  border-radius: 20px;
  padding: 0;
  max-width: 340px;
  width: 90%;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  font-family: 'Arial', sans-serif;
  position: relative; /* <<== Bu satır kapama butonunun içeride hizalanmasını sağlar */
}

/*
   3) Force all text to black
*/
.modal-content * {
  color: #000 !important;
}

/*
   4) Close button styling
*/
.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 1001;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.modal-close svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

/*
   5) Icon styling
*/
.modal-icon img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
  border-radius: 0;
}

/*
   6) Text area
*/
.modal-text {
  padding: 15px 20px;
}
.modal-text h3 {
  font-size: 16px;
  margin-bottom: 8px;
  color: #222;
  text-shadow: 0 1px 1px rgba(0,0,0,0.1);
}
.modal-text p {
  font-size: 14px;
  color: #666;
  margin: 0;
}

/*
   7) Button
*/
.custom-btn {
  padding: 12px 20px;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  margin: 20px auto;
  display: block;
  width: 80%;
  background: linear-gradient(135deg, #ff2cc3, #7c5fff);
  color: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  transition: all 0.2s ease-in-out;
}
.custom-btn:hover {
  transform: scale(1.03);
}

/*
   8) Responsive
*/
@media (max-width: 600px) {
  .modal-content {
    max-width: 90%;
  }

  .modal-text {
    padding: 10px 15px;
  }

  .custom-btn {
    width: 90%;
    padding: 14px;
  }
}