* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
}

body {
  overflow-x: hidden;
}

#uygulama {
  position: relative;
  width: 100%;
  min-height: 100vh;
}

#sahne {
  position: relative;
  width: 100%;
  min-height: 100vh;
  height: auto;
  overflow: visible;
  background-image: url("images/zemin.png");
background-size: 100% auto;
background-repeat: repeat-y;
background-position: top center;
}
#panelIcerigi {
  display: none;
}

#panelIcerigi.acik {
  display: block;
}
#duzenlemePaneli {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  z-index: 1000;
}

#panelButonu {
  width: 28px;
  height: 22px;
  padding: 0;

  border: none;
  background: transparent;
  box-shadow: none;

  font-size: 16px;
  line-height: 22px;
  text-align: center;

  cursor: pointer;
  opacity: 0.35;

  display: block;
  margin: 0 auto;
}
#butonTasimaCubugu {
  font-size: 11px;
  opacity: 0.55;
  cursor: move;
  text-align: center;
  margin-bottom: 4px;
  user-select: none;
}
#butonGrubu {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  
}

#butonGrubu button {
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 15px;
  cursor: pointer;
  transition: 0.25s ease;
  background: rgba(255, 255, 255, 0.16);
  color: #222;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  height: 44px;
min-width: 120px;
display: inline-flex;
align-items: center;
justify-content: center;
}

#butonGrubu button:hover {
  transform: translateY(-2px) scale(1.03);
}

#butonTasimaCubugu {
  font-size: 11px;
  opacity: 0.45;
  cursor: move;
  user-select: none;
  text-align: center;
}
#aniYukleGrubu {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#aniTasimaCubugu {
  font-size: 11px;
  opacity: 0.55;
  cursor: move;
  margin-bottom: 4px;
  user-select: none;
}

#aniYukleButonu {
  min-width: 180px;
  height: 42px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.16);
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  font-size: 15px;
  cursor: pointer;
}
#geriSayimGrubu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

#geriSayimTasimaCubugu {
  font-size: 11px;
  opacity: 0.5;
  cursor: move;
  user-select: none;
}

#geriSayim {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.8px;
  background: rgba(0, 0, 0, 0.08);
  border: none;
  box-shadow: none;
  padding: 6px 10px;
  white-space: nowrap;
  word-spacing: 6px;
  border-radius: 14px;
border: 1px solid rgba(0, 0, 0, 0.10);
}
#galeriAlani {
  position: relative;
  width: 100%;
  min-height: 300px;
  pointer-events: none;
}

#galeriAlani img {
  width: 250px;
  height: auto;
  pointer-events: auto;
}
#zarfAlani,
#kartAlani {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  background: #f7f4ef;
  overflow: hidden;
}

#zarfAlani {
  z-index: 5000;
}

#kartAlani {
  z-index: 4900;
  display: none;
}
#zarfGorseli,
#kartGorseli {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

#zarfiAcButonu {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 170px;
  height: 170px;
  transform: translate(-50%, -50%);
  border: 0;
  background: transparent;
  cursor: pointer;
}

#anaZeminGorseli {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  z-index: 0;
}

#sahne > *:not(#anaZeminGorseli) {
  z-index: 1;
}
#zarfAlani {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

#zarfAlani.kapaniyor {
  opacity: 0;
  visibility: hidden;
}

#kartAlani {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(0.985);
  transition: opacity 0.65s ease, transform 0.65s ease, visibility 0.65s ease;
}

#kartAlani.acik {
  display: block;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1);
}

#kartAlani.kapaniyor {
  opacity: 0;
  transform: scale(1.015);
  pointer-events: none;
}

#sahne {
  display: none;
}

#sahne.acik {
  display: block;
}
#studioSeozBitis {
  position: absolute;
  left: 50%;
  top: 90vh;
  transform: translateX(-50%);

  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 1px;

  color: rgba(0, 0, 0, 0.28);

  white-space: nowrap;
  cursor: move;
  user-select: none;
  touch-action: none;

  padding: 3px 20px;
  z-index: 20;
}
/* ==================================================
   STUDIO SEOZ - TEK MOBİL SİSTEM
   ================================================== */

#sahneOlcekleyici {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* ZARF */
#zarfAlani {
  width: 100vw;
  height: 100dvh;
}

#zarfGorseli {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: none;
  opacity: 1;
}

/* KART */
#kartAlani {
  width: 100vw;
  height: 100dvh;
  padding: 10px;
}

#kartGorseli {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: none;
  opacity: 1;
}


/* TELEFON */
@media (max-width: 768px) {

  html,
  body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
  }

  #uygulama {
    width: 100%;
    overflow-x: hidden;
  }

  /*
    Ana davetiye yeniden dizilmeyecek.
    Masaüstü düzeninin tamamı tek parça
    halinde küçültülecek.
  */
  #sahne {
    transform-origin: top left;
  }

  /*
    Düzenleme paneli ölçekleme sisteminin
    dışında kalır.
  */
  #duzenlemePaneli {
    width: 100%;
  }

  .serbestMetin,
  #geriSayim,
  #studioSeozBitis {
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
  }
}
/* ==================================================
   STUDIO SEOZ - TASARIM GEOMETRISINI KORU
   ================================================== */

/*
  Serbest metinlerin masaüstündeki biçimi,
  telefon genişliğine geçildiğinde yeniden
  satırlanmasın.

  Enter ile verdiğin satır sonları korunur.
*/
.serbestMetin {
  width: max-content;
  max-width: none;
  white-space: pre;
  transform-origin: top left;
}


/*
  Taşınabilir ana öğelerin kendi ölçülerini
  tarayıcı mobilde yeniden hesaplamasın.
*/
#butonGrubu,
#aniYukleGrubu,
#geriSayimGrubu,
#studioSeozBitis {
  flex-shrink: 0;
}


/*
  Galeri alanındaki fotoğrafların masaüstünde
  verdiğin piksel ölçüleri mobilde korunur.
  Küçültme işini yalnızca #sahne transformu yapar.
*/
#galeriAlani img {
  max-width: none;
}


/*
  Mobilde çocuk öğeleri ayrıca responsive
  hale getirmiyoruz.
  Bütün küçültmeyi yalnızca ana sahne yapacak.
*/
@media (max-width: 768px) {

  .serbestMetin {
    width: max-content;
    max-width: none;
    white-space: pre;
  }

  #butonGrubu,
  #aniYukleGrubu,
  #geriSayimGrubu,
  #galeriAlani,
  #studioSeozBitis {
    max-width: none;
  }
}
