/* =============================
   BENDRI STILIAI
   ============================= */
body {
  margin: 0;
  padding: 0;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  line-height: 1.6;
  color: #111;
  background: #000;
}

/* Fullscreen video container */
.video-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: -2;
  background: #000;
}

/* 4:3 video scaling to screen size */
.video-bg video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  /* svarbiausia dalis */
  width: 100vw;
  height: 100vh;
  object-fit: cover;     /* video prisitaiko kaip fullscreen background */
  aspect-ratio: 4 / 3;

  /* iPhone / Safari taisymas */
  min-width: 100%;
  min-height: 100%;
}

/* Gradientas virš video */
.video-overlay-gradient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: radial-gradient(circle, rgba(0,0,0,0) 10%, rgba(0,0,0,0) 10%);
}

/* =============================
   OVERLAY BLOKAS
   ============================= */
.overlay {
  position: relative;
  width: 400px;           
  margin: 20px 0 20px 20px; 
  padding: 20px;
  background: rgba(255,255,255,0.1);
  border-radius: 14px;
  backdrop-filter: blur(0px);
  text-align: left;
}

.overlay h2 {
  margin-top: 0;
  font-size: 2rem;
  font-weight: bold;
}

.overlay p {
  margin-bottom: 1rem;
  font-size: 10px;   /* mažinamas */
}

.overlay a {
  color: #0056d6;
  font-weight: bold;
  text-decoration: none;
}

.overlay a:hover {
  text-decoration: underline;
}

/* =============================
   RESPONSIVE — TELEFONAMS
   ============================= */
@media (max-width: 400px) {
  .overlay {
    width: 90%;
    margin: 20px auto;
  }
}

@media (max-width: 400px) {
  .overlay {
    width: 95%;
    margin: 12px auto;
    padding: 16px;
  }
}

/* Language selector: unobtrusive, fixed in the top-right corner */
.language-switch {
  position: fixed;
  top: 18px;
  right: 22px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  background: rgba(255,255,255,.1);
  border-radius: 8px;
  font: 11px Verdana, Geneva, Tahoma, sans-serif;
  color: #111;
}
.language-switch button {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 3px 2px;
  opacity: .6;
}
.language-switch button.active { opacity: 1; font-weight: bold; text-decoration: underline; text-underline-offset: 3px; }
.language-switch button:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
[hidden] { display: none !important; }
@media (max-width: 480px) {
  .overlay { box-sizing: border-box; width: calc(100% - 24px); margin: 56px 12px 12px; padding: 16px; }
  .language-switch { top: 10px; right: 12px; }
}
