@font-face {
  font-family: 'Blair';
  src: url('BlairMdITC TT Medium.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Aquitecta';
  src: url('Aquitecta.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Aquitecta';
  src: url('Aquitecta-Italic.otf') format('opentype');
  font-weight: normal;
  font-style: italic;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow: hidden;
  background: #000;
}

.split-screen {
  position: fixed;
  inset: 0;
  display: flex;
}

.panel {
  flex: 1;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  color: #fff;
}

.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 2;
  pointer-events: none;
}

.panel h1 {
  position: absolute;
  top: 47%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  letter-spacing: 0.15em;
  font-size: clamp(32px, 4vw, 58px);
  text-transform: uppercase;
  pointer-events: none;
  font-family: 'Blair', sans-serif;
  transition: top 0.35s ease, transform 0.35s ease;
}

.panel-text {
  position: absolute;
  top: 63%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 4;
  opacity: 0;
  transition: opacity 0.35s ease;
  color: #fff;
  font-family: 'Aquitecta', sans-serif;
}

.panel-text h2 {
  font-size: 24px;
  margin-bottom: 8px;
}

.panel-text p {
  font-size: 18px;
  line-height: 1.5;
  font-style: italic;
}

.panel:hover .panel-text {
  opacity: 1;
}

.panel:hover h1 {
  top: 42%;
}

.image-wrapper {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.center-toggle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  width: 50px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  padding: 3px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

.center-toggle-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
}

.center-toggle-knob {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #000;
  transition: left 0.25s ease;
}

.center-toggle.left-active .center-toggle-knob {
  left: 3px;
}

.center-toggle.right-active .center-toggle-knob {
  left: calc(100% - 3px - 14px);
}

.logo-bar {
  position: absolute;
  bottom: 0;
  left: 48%;
  transform: translateX(-50%) translateY(50px);
  z-index: 4;
  text-align: center;
  pointer-events: none;
}

.logo-bar img {
  max-width: 350px;
  width: 48vw;
  height: auto;
}

@media screen and (max-width: 768px) {

  /* BUILD / BOOK vecji */
  .panel h1 {
    font-size: 30px !important;
    letter-spacing: 0.2em !important;
  }

  /* tekst spodaj vedno viden */
  .panel-text {
    opacity: 1 !important;
    display: block !important;
    top: 65% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 85% !important;
    z-index: 999 !important;
  }

  .panel-text h2 {
    font-size: 22px !important;
  }

  .panel-text p {
    font-size: 16px !important;
  }

}

/*toggle gumbek*/

@media screen and (max-width: 768px) {

  .center-toggle {
    width: 28px !important;
    height: 16px !important;
    padding: 2px !important;
  }

  .center-toggle-knob {
    width: 8px !important;
    height: 8px !important;
  }

}
