/* -------------------------------------------------------
   GLOBAL LAYOUT
-------------------------------------------------------- */

html, body {
  height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  font-family: Ubuntu, "times new roman", times, roman, serif;

  display: flex;
  flex-direction: column;
}

/* -------------------------------------------------------
   HEADER / FOOTER
-------------------------------------------------------- */

header,
footer {
  background-color: #1A1C24;
  color: #FFF;
  text-align: center;
  padding: 1em;
  flex: 0 0 auto;
  z-index: 50; /* always above main */
  cursor: pointer;
}

/* kill old absolute positioning */
#ExperienceOboo {
  position: static !important;
}

/* -------------------------------------------------------
   MAIN AREA
-------------------------------------------------------- */

main.odoo {
  flex: 1 1 auto;     /* take remaining height */
  min-height: 0;     /* critical for iframe */
  position: relative;
  overflow: hidden;
}

/* -------------------------------------------------------
   LAYER 1 — IFRAME (BOTTOM)
-------------------------------------------------------- */

.Zodiak {
  position: absolute;
  inset: 0;
  z-index: 10;
}

#FreeJUDEA {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* -------------------------------------------------------
   LAYER 2 — lAVA (MIDDLE OVERLAY)
-------------------------------------------------------- */

#lAVA,
.lAVA {
  position: absolute;
  inset: 0;
  z-index: 20;

  cursor: none;
  pointer-events: auto; /* blocks iframe while present */
}

/* optional visual placeholder */
#lAVA {
  background: rgba(0, 0, 0, 0);
}

/* -------------------------------------------------------
   LAYER 3 — SKY (TOP TEXT)
-------------------------------------------------------- */

#sky {
  position: absolute;
  inset: 0;
  padding: 69px 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  text-align: center;
  font-size: 42px;

  z-index: 30;
  pointer-events: none; /* clicks pass through */
}

/* -------------------------------------------------------
   LINKS & MAGIC
-------------------------------------------------------- */

a.magic,
a.supermagic {
  text-decoration: none;
}

.magic {
  font-weight: bold;
  background: -webkit-linear-gradient(45deg, #9e26dd, #fe6c03);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.supermagic {
  font-weight: bold;
  background: -webkit-linear-gradient(45deg, #fe6c03, #9e26dd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

a.nomagic {
  text-decoration: none;
}

a.nomagic:hover {
  cursor: none;
}

#supermagic,
#SuperMAGICSuper {
  cursor: pointer;
}

/* -------------------------------------------------------
   CANVAS / MEDIA
-------------------------------------------------------- */

canvas {
  display: block;
}

.bible {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.bible > video {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

/* -------------------------------------------------------
   IMAGE EFFECTS
-------------------------------------------------------- */

img {
  box-shadow: 5px 5px 10px #333;
  transition-duration: 1000ms;
}

img:hover,
img:active,
img.nomagic {
  box-shadow: 0 0 0 white;
}

/* -------------------------------------------------------
   ANIMATIONS / DECOR
-------------------------------------------------------- */

@keyframes moveUpDown {
  0%   { transform: rotate(180deg) translateY(-3px); }
  50%  { transform: rotate(180deg) translateY(10px); }
  100% { transform: rotate(180deg) translateY(0); }
}

.ThePirateCIRCUS {
  display: inline-block;
  animation: moveUpDown 2s infinite;
}

@keyframes TheOCEAN {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.ThePIRATES,
.PiratesTHE {
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 500% 500%;
  animation: TheOCEAN 10s ease infinite;
}

/* -------------------------------------------------------
   MIRRORS
-------------------------------------------------------- */

.MagicMIRROR-X  { transform: scaleX(-1); }
.MagicMIRROR-Y  { transform: scaleY(-1); }
.MagicMIRROR-XY { transform: scaleX(-1) scaleY(-1); }
.MagicMIRROR-Z  { transform: scaleZ(-1); }
