/* Dykk i Norskehavet – egen stil
   Lastes etter fellesfilen, og mørkner etter hvert som du synker. */

body { background: #7ed6f6; }

.toppbar {
  background: rgba(8, 25, 48, .35);
  border-bottom-color: rgba(255, 255, 255, .3);
  backdrop-filter: blur(6px);
}
.topptittel { color: #fff; }

/* ---------- Overflaten ---------- */

.overflate {
  text-align: center;
  padding: 5rem 1rem 3rem;
  color: #07354f;
}
.overflate h1 {
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 900;
  margin: 0;
}
.overflate .ingress {
  max-width: 36rem;
  margin: 1rem auto 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #0a4a73;
}
.dukkole { font-weight: 900; font-size: 1.1rem; animation: dukk 1.6s ease-in-out infinite; }
@keyframes dukk {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(12px); }
}

/* ---------- Dybdetelleren ---------- */

.dypteller {
  position: fixed;
  top: 4.4rem;
  right: 1rem;
  z-index: 25;
  min-width: 7rem;
  background: rgba(8, 20, 40, .55);
  border: 2px solid rgba(255, 255, 255, .35);
  border-radius: .9rem;
  padding: .5rem .9rem;
  color: #fff;
  text-align: right;
  backdrop-filter: blur(4px);
}
.dyptall {
  font-size: 1.3rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  margin: 0;
  line-height: 1.2;
}
.dyppress { font-size: .75rem; font-weight: 700; opacity: .8; margin: 0; }
.dypframdrift {
  height: .35rem;
  background: rgba(255, 255, 255, .25);
  border-radius: 999px;
  margin-top: .4rem;
  overflow: hidden;
}
.dypframdrift-fyll {
  height: 100%;
  width: 0;
  background: #7dd3fc;
  border-radius: 999px;
}

/* ---------- Selve havet ---------- */

.hav { position: relative; }

.dypposter {
  position: absolute;
  left: 1rem;
  right: 1rem;
  z-index: 1;
  border-top: 2px dashed rgba(255, 255, 255, .35);
}
.dypposter .merke {
  text-align: center;
  color: rgba(255, 255, 255, .75);
  font-weight: 900;
  font-size: .85rem;
  letter-spacing: .12em;
  margin: .4rem 0 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .4);
}

.dykkort {
  position: absolute;
  max-width: 24rem;
  width: calc(100% - 2rem);
  background: rgba(6, 16, 34, .78);
  border: 2px solid rgba(255, 255, 255, .3);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  color: #fff;
  z-index: 3;
  backdrop-filter: blur(4px);
}
.dykkort.venstre { left: 1rem; }
.dykkort.hoyre { right: 1rem; }
.dykkort .dypmerke {
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #bae6fd;
  margin: 0 0 .25rem;
}
.dykkort .moji { font-size: 1.8rem; display: block; margin-bottom: .35rem; }
.dykkort h2 { font-size: 1.1rem; margin: 0 0 .4rem; }
.dykkort p { font-size: .9rem; font-weight: 500; line-height: 1.5; margin: 0; }

.dyr {
  position: absolute;
  z-index: 2;
  font-size: 2.2rem;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .35));
  animation: svai 5s ease-in-out infinite;
}
@keyframes svai {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-12px) rotate(3deg); }
}

/* ---------- Bunnen ---------- */

.bunn {
  position: absolute;
  left: 1rem;
  right: 1rem;
  z-index: 3;
  text-align: center;
  color: #fff;
  padding-bottom: 6rem;
}
.bunn h2 { font-size: 1.8rem; margin: .5rem 0 1rem; }
.bunn p {
  max-width: 32rem;
  margin: 0 auto 1.5rem;
  font-weight: 500;
  opacity: .9;
  line-height: 1.6;
}

/* ---------- Mindre skjermer ---------- */

@media (max-width: 34rem) {
  .dykkort { padding: .85rem 1rem; }
  .dykkort .moji { font-size: 1.5rem; margin-bottom: .25rem; }
  .dykkort h2 { font-size: 1.05rem; }
  .dykkort p { font-size: .85rem; }
  .dypteller {
    top: 4rem;
    right: .5rem;
    min-width: 6rem;
    padding: .4rem .7rem;
  }
  .dyptall { font-size: 1.1rem; }
  .toppbar { flex-wrap: wrap; row-gap: .35rem; }
  .tilbake { font-size: .75rem; padding: .25rem .7rem; }
  .topptittel { font-size: .7rem; }
  .bunn h2 { font-size: 1.4rem; }
  .dyr { font-size: 1.8rem; }
}