#maske1 {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 9000;
  background-color: rgba(0,0,0,0.5);
  display: none;
  cursor: default !important; /* Normal ok işareti */
  pointer-events: none !important; /* Tıklamaları tamamen engeller */
}

#bg {
  height: 320px;
  border-radius: 10px;
  text-align: left;
  top: 30px;
  position: relative;
}

#loading-overlay { 
  position: absolute; 
  top: 0; 
  left: 0; 
  right: 0; 
  bottom: 0; 
  background-color: #000; 
  opacity: 0.7; 
}

#popup1 .window1 {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: none;
  z-index: 9999;
  padding: 0px;
  border-radius: 15px;
  text-align: center;
  background-color: #000;
  color: orange;
  font-weight: bold;
  background-image: url('bg.jpg');
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  width: 800px;
  max-width: 90vw;
  max-height: 90vh;
  pointer-events: auto !important;
}

#popup1 #dialog1 {
  height: auto;
  padding: 0px;
  background-color: rgba(0,0,0,0.3);
  font-family: 'Segoe UI Light', sans-serif;
  font-size: 15pt;
  border: 1px solid black;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
}

/* Header tablosu için düzenleme */
#popup1 #dialog1 table {
  width: 100%;
  background: rgba(0,0,0,0.5);
  border-collapse: collapse;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}

#popup1 #dialog1 table tr td {
  padding: 15px 20px;
  vertical-align: middle;
}

#popup1 #dialog1 table tr td:last-child {
  color: orange;
  font-size: 18pt;
  text-align: left;
  width: 100%;
}

#popup_icerik1 {
  font-family: "Segoe UI", sans-serif;
  font-size: 12pt;
  text-align: left;
  flex: 1;
  display: flex;
  min-height: 450px;
}

#popupfoot1 {
  font-family: "Segoe UI", sans-serif;
  font-size: 12pt;
  padding: 15px 20px;
  text-align: right;
  background: rgba(0,0,0,0.3);
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
  pointer-events: auto !important;
}

#popupfoot1 a {
  text-decoration: none;
  padding: 8px 15px;
}

.agree1 {
  transition: all 0.3s ease;
  color: orange !important;
  background-color: #333 !important;
  border-radius: 5px !important;
  font-weight: bold !important;
  cursor: pointer !important;
}

.agree1:hover {
  color: #FFF !important;
  background-color: #555 !important;
  transform: translateY(-2px) !important;
}

.link1 {
  color: darkred;
  font-size: 16pt;
  font-weight: bold;
}

.link1 a {
  text-decoration: none;
  color: #FFF;
  font-size: 16pt;
  padding: 5px 10px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.link1 a:hover {
  background-color: #333;
  color: orange;
  font-size: 16pt;
}

.popupoption1:hover {
  background-color: #000;
  color: #FFF;
  padding: 5px;
}

.popupoption2:hover {
  color: black;
}

.iframe {
  border: 1px solid #777;
  border-radius: 10px;
  background: rgba(255,255,255,0.5);
  margin: 10px;
  width: calc(100% - 90px);
  height: 400px;
  flex: 1;
}

/* Mobil responsive düzenlemeler */
@media (max-width: 768px) {
  #popup1 .window1 {
    width: 95vw;
    max-height: 85vh;
  }
  
  #popup1 #dialog1 table tr td {
    padding: 10px 15px;
  }
  
  #popup1 #dialog1 table tr td:last-child {
    font-size: 16pt;
    text-align: center;
  }
  
  #popup_icerik1 {
    min-height: 250px;
    font-size: 11pt;
  }
  
  #popupfoot1 {
    padding: 12px 15px;
    font-size: 14pt;
    text-align: center;
  }
  
  .link1 {
    font-size: 14pt;
  }
  
  .link1 a {
    font-size: 14pt;
    display: block;
    margin-top: 5px;
  }
}

@media (max-width: 480px) {
  #popup1 .window1 {
    width: 100vw;
    max-height: 100vh;
    border-radius: 0;
  }
  
  #popup1 #dialog1 {
    border-radius: 0;
  }
  
  #popup1 #dialog1 table {
    border-radius: 0;
  }
  
  #popup1 #dialog1 table tr {
    display: flex;
    flex-direction: column;
    text-align: center;
  }
  
  #popup1 #dialog1 table tr td:last-child {
    font-size: 14pt;
    margin-top: 5px;
  }
  
  #popup_icerik1 {
    min-height: 200px;
    font-size: 10pt;
  }
  
  #popupfoot1 {
    border-radius: 0;
    padding: 10px 15px;
    font-size: 12pt;
  }
  
  #popupfoot1 a {
    padding: 6px 12px;
    display: inline-block;
    width: 100%;
    max-width: 200px;
  }
  
  .iframe {
    margin: 5px;
    width: calc(100% - 10px);
    height: calc(100% - 10px);
  }
}