html, body {
  margin: 0;
  padding: 0;
  height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  font-family: Arial, sans-serif;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Açılış ekranı */
.welcome-screen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7); /* Yarı şeffaf bir arka plan */
  color: white;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 1; /* Başlangıçta görünür */
  transition: opacity 1s ease-in-out; /* Opaklık geçişi ekleniyor */
  z-index: 2000;
}

.welcome-img {
  max-width: 100%;
  max-height: 60%;
  margin-bottom: 20px;
}

h1 {
  font-size: 3em;
  margin: 10px 0;
}

p {
  font-size: 1.2em;
  margin-bottom: 20px;
}

#start-button {
  padding: 15px 30px;
  font-size: 1.5em;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#start-button:hover {
  background-color: #45a049;
}

/* Ana sayfa içeriği */
#main-content {
  text-align: center;
  padding: 20px;
  display: none; /* Başlangıçta görünmüyor */
  opacity: 0; /* Başlangıçta opaklık 0 */
  transition: opacity 1s ease-in-out; /* Ana sayfa içerigi için geçiş */
}

/* Ana içerik görünür olduğunda opaklık artacak */
#main-content.show {
  opacity: 1;
  display: block;
}

/* Navbar Konteyneri */
.navbar-container {
  position: relative;
  width: 100%;
}

/* Hamburger Menü */
.hamburger-menu {
  position: fixed;
  top: 15px;
  left: 15px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2000;
  padding: 10px;
}

.hamburger-menu span {
  display: block;
  width: 30px;
  height: 5px;
  background-color: #1a1a2e;
  margin: 5px 0;
  transition: all 0.6s ease;
  border-radius: 5px;
}

/* Hamburger Menü Açıkken Çarpı Şekline Dönüşmesi ve Beyaz Renk */
.hamburger-menu.active span {
  background-color: #ffffff;
}

.hamburger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: -200px;
  width: 200px;
  height: 100%;
  background-color: #2c3e50;
  display: flex;
  flex-direction: column;
  padding-top: 80px;
  transition: left 0.6s ease;
  z-index: 1500;
  border-top-right-radius: 15px;
  border-bottom-right-radius: 15px;
}

.navbar.active {
  left: 0;
}

.navbar a {
  color: white;
  padding: 20px 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  display: block;
}

.navbar a:hover {
  background-color: #f1c40f;
  color: #1a1a2e;
}

/* Harita Konteyneri */
.map-container {
  width: 100%;
  min-height: 100vh;
  padding: 0;
  text-align: center;
  max-width: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  position: relative;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

/* Modal (Pop-up) */
.region-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.region-modal.show {
  display: flex !important;
}

.modal-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  max-width: 600px;
  width: 90%;
  max-height: 70vh;
  overflow-y: auto;
  position: relative;
  text-align: center;
  backdrop-filter: blur(5px);
  border: 2px solid #e0e0e0;
  -webkit-overflow-scrolling: touch;
}

/* WebKit tarayıcılar için kaydırma çubuğu özelleştirme (Chrome, Safari, Edge) */
.modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 15px;
  margin: 15px 0;
}

.modal-content::-webkit-scrollbar-thumb {
  background: #2c3e50;
  border-radius: 15px;
  box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.2);
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: #34495e;
}

/* Firefox için kaydırma çubuğu özelleştirme */
.modal-content {
  scrollbar-width: thin;
  scrollbar-color: #2c3e50 transparent;
}

.close-modal {
  position: sticky;
  top: 10px;
  right: 10px;
  float: right;
  font-size: 30px;
  cursor: pointer;
  color: #333;
  z-index: 1002;
  background-color: #fff;  
  padding: 5px 10px;
  border-radius: 50%;
  line-height: 1;
  display: block !important;
  visibility: visible;
}

.close-modal:hover {
  color: #ff0000;
}

#modal-title {
  font-size: 24px;
  margin-bottom: 10px;
  color: #2c3e50;
}

#modal-description {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
  text-align: left;
  margin-top: 10px;
  padding: 0 10px;
}

/* SVG Haritası */
.turkiye-harita {
  width: 100%;
  max-width: 1350px;
  height: auto;
  display: block;
  margin: 0 auto;
  min-width: 0;
  transform: none;
  margin-bottom: 0;
}

svg {
  width: 100%;
  height: auto;
}

/* Diğer Stiller */
.region {
  cursor: pointer;
  transition: fill 0.3s;
}

.region:hover {
  fill: rgb(125, 181, 231);
}

.region path {
  stroke: #666;
  stroke-width: 0.5;
  transition: fill 0.3s;
}

.tooltip {
  position: absolute;
  background-color: #2c3e50;
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 999;
  display: none;
}

.tooltip.show {
  display: block;
  opacity: 1;
}

/* Responsive Ayarlar */
@media (min-width: 1600px) {
  .turkiye-harita {
    max-width: 2600px;
  }
}

@media (min-width: 1200px) {
  .turkiye-harita {
    transform: translateX(50px);
  }
}

@media (max-width: 1200px) {
  .turkiye-harita {
    max-width: 100%;
  }

  .navbar {
    width: 300px;
    left: -300px;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
  }

  .navbar.active {
    left: 0;
  }

  .navbar a {
    font-size: 20px;
    padding: 15px 25px;
  }
}

@media (max-width: 768px) {
  .map-container {
    width: 100vw;
    min-height: 100vh;
    overflow-x: auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    box-sizing: border-box;
  }

  .map-container::-webkit-scrollbar {
    height: 8px;
  }

  .map-container::-webkit-scrollbar-track {
    background: transparent;
  }

  .map-container::-webkit-scrollbar-thumb {
    background: #2c3e50;
    border-radius: 4px;
  }

  .map-container::-webkit-scrollbar-thumb:hover {
    background: #34495e;
  }

  .turkiye-harita {
    width: 100%;
    max-width: none;
    height: auto;
    transform: scale(1);
    transform-origin: center;
    margin: 0 auto;
  }

  .navbar {
    width: 250px;
    left: -250px;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
  }

  .navbar.active {
    left: 0;
  }

  .navbar a {
    font-size: 18px;
    padding: 12px 20px;
  }

  .hamburger-menu span {
    width: 30px;
    height: 4px;
    margin: 5px 0;
  }

  .modal-content {
    max-width: 90%;
    max-height: 60vh;
  }
}

/* iOS cihazlar için özel ayar (iPhone’lar genellikle 375px-430px genişlikte) */
@media only screen and (max-width: 430px) {
  .map-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .turkiye-harita {
    transform: scale(1.2);
    transform-origin: center;
    margin: 0 auto;
  }

  .modal-content {
    max-height: 60vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .close-modal {
    top: 50px;
    right: 50x;
    font-size: 24px;
    padding: 3px 8px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: block !important;
    visibility: visible;
  }
}