/* Set colours and fonts etc in :root if style changes are needed! */

.offshore-block {
  --navy: #002a3a;
  --green: #64a70b;
  --font: "droid-sans", "Droid Sans", "Open Sans", Helvetica, Arial, sans-serif;
}
.offshore-block *,
.offshore-block *::before,
.offshore-block *::after {
  box-sizing: border-box;
}
.offshore-block html,
.offshore-block body.interactive-guide-map {
  height: 100%;
}
.offshore-block body.interactive-guide-map {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.7;
  color: #666;
  background: #5da4a0;
}

.offshore-block .seascape {
  position: fixed;
  inset: 0;
  background: url("img/sea-bg-waves-scaled.jpg") center / cover no-repeat;
}

/* Scenes */
.offshore-block .guide-section {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  transition:
    opacity 0.2s,
    visibility 0s;
}
.offshore-block .section-opacity {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition:
    opacity 0.2s,
    visibility 0s linear 0.2s;
}
.offshore-block #section-manufacturing {
  background-image: url("img/port-busy.png");
  background-size: 100% 100%;
  background-position: top right;
}
.offshore-block #section-installon {
  background-image: url("img/port-busy.png");
  background-size: 85% 85%;
  background-position: top right;
}
.offshore-block #section-omon {
  background-image: url("img/port-busy.png");
  background-size: 77% 77%;
  background-position: top right;
}

.offshore-block .guide-item {
  position: absolute;
  margin: 0;
  padding: 0;
  pointer-events: none;
}
.offshore-block .guide-img img {
  display: block;
  width: 100%;
  height: auto;
}

.offshore-block .guide-annotation {
  position: absolute;
  white-space: nowrap;
  pointer-events: all;
  padding: 10px 15px 2px;
  background: var(--navy);
  border-radius: 25px;
  color: #fff;
  transition: all 0.2s ease;
}
.offshore-block .guide-annotation:hover {
  background: var(--green);
  transform: scale(1.1);
}
.offshore-block .guide-annotation h3 {
  margin: 0;
  padding-bottom: 10px;
  font-size: 14px;
  font-weight: 700;
  line-height: 14px;
  color: #fff;
}
.offshore-block .guide-annotation a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}
.offshore-block .guide-annotation a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 25px;
} /* whole pill is the link */
.offshore-block .guide-annotation a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 6px;
}

/* item placement */
.offshore-block .port-small {
  width: 500px;
  bottom: 0;
  right: 0;
}

/* Development and project management */
.offshore-block .devprojman-manman {
  width: 60px;
  bottom: 100px;
  right: 100px;
}
.offshore-block .devprojman-manman .guide-annotation:nth-of-type(2) {
  right: 20px;
  top: -50px;
}
.offshore-block .devprojman-manman .guide-annotation:nth-of-type(3) {
  right: 50px;
  top: 0;
}
.offshore-block .devprojman-manman .guide-annotation:nth-of-type(4) {
  right: 80px;
  top: 50px;
}
.offshore-block .devprojman-buoy {
  width: 6%;
  bottom: 8%;
  left: 15%;
}
.offshore-block .devprojman-buoy .guide-annotation {
  left: 20px;
  top: -80px;
}
.offshore-block .devprojman-surveyvessel {
  width: 25%;
  top: 24%;
  left: 12.5%;
}
.offshore-block .devprojman-surveyvessel .guide-annotation {
  left: 20px;
  top: -60px;
}
.offshore-block .devprojman-surveyplane {
  width: 20%;
  top: 12.5%;
  right: 12.5%;
}
.offshore-block .devprojman-surveyplane .guide-annotation {
  right: 20px;
  bottom: -50px;
}

/* Manufacturing */
.offshore-block .man-cables {
  width: 23%;
  bottom: 14%;
  right: 31%;
}
.offshore-block .man-cables .guide-annotation:nth-of-type(2) {
  left: 0;
  top: -10px;
}
.offshore-block .man-cables .guide-annotation:nth-of-type(3) {
  left: 0;
  top: -50px;
}
.offshore-block .man-turbinebits {
  width: 18%;
  bottom: 15%;
  left: 15%;
}
.offshore-block .man-turbinebits .guide-annotation:nth-of-type(2) {
  left: -50px;
  top: -170px;
}
.offshore-block .man-turbinebits .guide-annotation:nth-of-type(3) {
  left: -50px;
  top: -130px;
}
.offshore-block .man-turbinebits .guide-annotation:nth-of-type(4) {
  left: -50px;
  top: -90px;
}
.offshore-block .man-turbinebits .guide-annotation:nth-of-type(5) {
  left: -50px;
  top: -50px;
}
.offshore-block .man-monopile {
  width: 4%;
  top: 10%;
  right: 5%;
}
.offshore-block .man-monopile .guide-annotation {
  right: 40px;
  top: 30px;
}
.offshore-block .man-mooring {
  width: 18%;
  bottom: 43%;
  left: 40%;
}
.offshore-block .man-mooring .guide-annotation {
  right: 20px;
  top: -50px;
}
.offshore-block .man-onshoresub {
  width: 19%;
  bottom: 16%;
  right: 7%;
}
.offshore-block .man-onshoresub .guide-annotation {
  right: 50px;
  top: -40px;
}
.offshore-block .man-semisub {
  width: 14%;
  top: 20%;
  left: 29%;
}
.offshore-block .man-semisub .guide-annotation {
  left: 0;
  top: -50px;
}
.offshore-block .man-substation {
  width: 14%;
  top: 30%;
  right: 23%;
}
.offshore-block .man-substation .guide-annotation {
  right: 20px;
  top: -50px;
}

/* Installation (offshore) */
.offshore-block .installoff-floating {
  width: 19%;
  bottom: 8%;
  left: 10%;
}
.offshore-block .installoff-floating .guide-annotation {
  left: -40px;
  top: -50px;
}
.offshore-block .installoff-mooring {
  width: 17%;
  bottom: 15%;
  left: 41.5%;
}
.offshore-block .installoff-mooring .guide-annotation {
  right: 20px;
  top: -50px;
}
.offshore-block .installoff-fixed {
  width: 30%;
  top: 23%;
  left: 5%;
}
.offshore-block .installoff-fixed .guide-annotation {
  left: 20px;
  top: -50px;
}
.offshore-block .installoff-offshoresub {
  width: 26%;
  top: 22%;
  right: 7%;
}
.offshore-block .installoff-offshoresub .guide-annotation {
  right: 20px;
  top: -50px;
}
.offshore-block .installoff-cables {
  width: 23%;
  bottom: 13%;
  right: 12%;
}
.offshore-block .installoff-cables .guide-annotation:nth-of-type(2) {
  left: 0;
  top: -20px;
}
.offshore-block .installoff-cables .guide-annotation:nth-of-type(3) {
  left: 0;
  top: -60px;
}

/* Installation (onshore) */
.offshore-block .installon-substation {
  width: 30%;
  top: 30%;
  right: 30%;
}
.offshore-block .installon-substation .guide-annotation:nth-of-type(2) {
  right: -100px;
  top: -40px;
}
.offshore-block .installon-substation .guide-annotation:nth-of-type(3) {
  right: -100px;
  top: -80px;
}
.offshore-block .installon-bigcrane {
  width: 17%;
  bottom: 25%;
  left: 15%;
}
.offshore-block .installon-bigcrane .guide-annotation {
  left: 100px;
  top: 100px;
}
.offshore-block .installon-conportfixed {
  width: 24%;
  bottom: 30%;
  right: 5%;
}
.offshore-block .installon-conportfixed .guide-annotation {
  left: 20px;
  top: -30px;
}
.offshore-block .installon-floater {
  width: 20%;
  bottom: 10%;
  left: 0;
}
.offshore-block .installon-floater .guide-annotation {
  left: 100px;
  top: -10px;
}

/* Operation and maintenance (offshore) */
.offshore-block .om-majrepair {
  width: 45%;
  bottom: 2%;
  left: 2%;
}
.offshore-block .om-majrepair .guide-annotation {
  left: 70%;
  bottom: 55%;
}
.offshore-block .om-majrepair .guide-annotation:nth-of-type(2) {
  left: 45%;
  bottom: 35%;
}
.offshore-block .om-maintenance {
  width: 15%;
  top: 25%;
  right: 18%;
}
.offshore-block .om-vessels {
  width: 22%;
  bottom: 5%;
  right: 10%;
}
.offshore-block .om-vessels .guide-annotation {
  right: 20%;
  top: -40%;
}

/* Operation and maintenance (onshore) */
.offshore-block .om-bigcrane {
  width: 17%;
  bottom: 32%;
  left: 22%;
}
.offshore-block .om-bigcrane .guide-annotation {
  left: 80%;
  top: 20%;
}
.offshore-block .om-conportfixed {
  width: 23%;
  top: 30%;
  right: 10%;
}
.offshore-block .om-conportfixed .guide-annotation {
  left: 10%;
  top: -30%;
}
.offshore-block .om-floating {
  width: 24%;
  bottom: 6%;
  left: 17%;
}
.offshore-block .om-floating .guide-annotation {
  left: -40px;
  top: -50px;
}
.offshore-block .om-turbinebits {
  width: 15%;
  bottom: 31%;
  right: 45%;
}
.offshore-block .om-turbinebits .guide-annotation {
  left: -120px;
  top: -180px;
}
.offshore-block .om-vesselson {
  width: 17%;
  bottom: 35%;
  left: 1%;
}
.offshore-block .om-vesselson .guide-annotation {
  left: 100px;
  top: -10px;
}

/* Decommissioning */
.offshore-block .decom-turbines {
  width: 40%;
  bottom: 12%;
  left: 10%;
}
.offshore-block .decom-turbines .guide-annotation {
  right: 10%;
  bottom: 50%;
}
.offshore-block .decom-substation {
  width: 18%;
  bottom: 30%;
  right: 20%;
}
.offshore-block .decom-substation .guide-annotation {
  left: 100px;
  top: -10px;
}

/* Scene navigation */
.offshore-block .seascape-nav {
  position: relative;
  width: 80%;
  max-width: 1080px;
  min-height: 125px;
  margin: 0 auto;
  padding: 21px 0;
  text-align: center;
  font-size: 18px;
  line-height: 1.8;
  font-weight: 500;
}
.offshore-block .seascape-nav-previous a,
.offshore-block .seascape-nav-next a {
  display: inline-block;
  overflow: hidden;
  padding: 2px 10px;
  border: 2px solid var(--navy);
  border-radius: 25px;
  background: var(--navy);
  color: var(--green);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transform: scale(1);
  transition: all 0.4s ease;
}
.offshore-block .seascape-nav-previous a:hover,
.offshore-block .seascape-nav-next a:hover,
.offshore-block .seascape-nav-previous a:focus-visible,
.offshore-block .seascape-nav-next a:focus-visible {
  border-color: var(--green);
  background: #fff;
  color: var(--green);
  transform: scale(1.2);
}
.offshore-block .nav-label {
  display: none;
}
.offshore-block h2.seascape-nav-title {
  display: inline-block;
  position: relative;
  top: -9px;
  margin: 0 10px;
  padding: 6px 15px;
  background: var(--navy);
  border-radius: 25px;
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  line-height: 1em;
}
.offshore-block h2.seascape-nav-title a {
  color: inherit;
  text-decoration: none;
}
.offshore-block i.title-hotspots {
  display: inline-block;
  font-size: 70%;
  transform: translateY(-3px);
  color: var(--green);
  transition: 0.5s;
}
.offshore-block a:hover > i.title-hotspots,
.offshore-block a:focus-visible > i.title-hotspots {
  color: #fff;
}

/* Tooltip under the title */
.offshore-block .guide-tooltip {
  position: relative;
  z-index: 5;
  width: 50%;
  max-width: 540px;
  margin: 0 auto;
  padding: 20px;
  background: var(--navy);
  border-radius: 25px;
  color: #fff;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.8;
  pointer-events: all;
  transform: translateY(-50px);
  transition:
    opacity 0.5s,
    transform 0.5s,
    visibility 0s;
}
.offshore-block .guide-tooltip p {
  margin: 0;
  color: #fff;
}
.offshore-block .guide-tooltip a {
  color: var(--green);
  font-weight: 700;
  text-decoration: none;
}
.offshore-block .guide-tooltip a:hover {
  text-decoration: underline;
}
.offshore-block .guide-tooltip.section-opacity {
  transform: translateY(-80px);
  pointer-events: none;
  transition:
    opacity 0.5s,
    transform 0.5s,
    visibility 0s linear 0.5s;
}

/* Mobile n tablet */
.offshore-block .mobguide-section,
.offshore-block .mobguide-navigation {
  display: none;
}

@media (max-width: 980px) {
  .offshore-block .guide-section {
    display: none;
  }
  .offshore-block .mobguide-section {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    margin: 0;
    padding: 20px 0 100px;
    text-align: center;
    overflow-y: auto;
    height: 100%;
    transition: opacity 0.2s;
  }
  .offshore-block .mobguide-section.section-opacity {
    display: none;
  }
  .offshore-block h2.seascape-nav-title-mobile {
    display: inline-block;
    position: relative;
    top: 0;
    max-width: calc(90% - 20px);
    margin: 0 10px 10px;
    padding: 6px 15px;
    background: var(--navy);
    border-radius: 25px;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    line-height: 1em;
    text-transform: uppercase;
  }
  .offshore-block .mob-img {
    width: 90%;
    margin: 10px auto 20px;
  }
  .offshore-block .mob-img img {
    display: inline-block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 40vh;
  }
  .offshore-block a.guide-annotation-mobile {
    display: block;
    width: 90%;
    margin: 0 auto 23px;
    padding: 10px 15px 2px;
    background: var(--navy);
    border-radius: 25px;
    color: #fff;
    text-decoration: none;
    transition: 0.2s;
  }
  .offshore-block a.guide-annotation-mobile:hover,
  .offshore-block a.guide-annotation-mobile:focus-visible {
    background: var(--green);
    transform: scale(1.1);
  }
  .offshore-block .guide-annotation-mobile h3 {
    margin: 0;
    padding-bottom: 10px;
    font-size: 14px;
    font-weight: 700;
    line-height: 14px;
    color: #fff;
  }

  .offshore-block .mobguide-navigation {
    display: flex;
    justify-content: center;
    gap: 5px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 5px;
    z-index: 10;
  }
  .offshore-block .mobguide-navigation a {
    display: inline-block;
    min-width: 42px;
    padding: 2px 10px;
    border: 2px solid var(--navy);
    border-radius: 25px;
    background: var(--navy);
    color: var(--green);
    font-size: 18px;
    font-weight: 700;
    line-height: 32.4px;
    text-align: center;
    text-decoration: none;
    transition: all 0.4s ease;
  }
  .offshore-block .mobguide-navigation a:hover,
  .offshore-block .mobguide-navigation a:focus-visible {
    background: #fff;
    border-color: var(--green);
    transform: scale(1.2);
  }
}

@media (prefers-reduced-motion: reduce) {
  .offshore-block .guide-section,
  .offshore-block .section-opacity,
  .offshore-block .guide-tooltip,
  .offshore-block .guide-annotation,
  .offshore-block .seascape-nav a {
    transition: none !important;
  }
}

.offshore-block footer {
  display: none;
}
