* {box-sizing: border-box}

:root {
  --nav-height: 62px;
}

body {
  /* background-color: #a4c0d1; */
  background-color: #efefef;
  min-height: 100vh;
  margin: 0;
  padding: 0;

  /* background-image:
    radial-gradient(1200px 600px at 10% 15%, rgba(78, 182, 217, 0.55), transparent 60%),
    radial-gradient(900px 500px at 85% 20%, rgba(245, 141, 176, 0.5), transparent 60%),
    radial-gradient(1000px 700px at 60% 85%, rgba(100, 240, 230, 0.55), transparent 65%),
    linear-gradient(140deg, #f7f9fc 0%, #f1f6fb 40%, #f7f4fb 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat; */
}

.cover {
  /* background-color: #a4c0d1; */
  background-color: #efefef;
  min-height: 100vh;
  width: 100%;

  /* background-image:
    radial-gradient(1200px 600px at 10% 15%, rgba(78, 182, 217, 0.55), transparent 60%),
    radial-gradient(900px 500px at 85% 20%, rgba(245, 141, 176, 0.5), transparent 60%),
    radial-gradient(1000px 700px at 60% 85%, rgba(200, 240, 230, 0.55), transparent 65%),
    linear-gradient(140deg, #f7f9fc 0%, #f1f6fb 40%, #f7f4fb 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat; */
}

.mySlides {
  display: none;
  position: relative;
  overflow: auto;}

img {
  vertical-align: middle;
}

.image img.wide-image {
  width:100%;
  height:auto;
  display: block;
  border: 2px solid lightgrey;
}

.image img.tall-image {
  /* Subtracting 62px to account for the navigation bar at the bottom, ensuring the image fits within the viewport without being obscured. */
  height: calc(100vh - var(--nav-height));
  width:auto;
  object-fit: contain;
  border: 2px solid lightgrey;
}

a {word-break: break-all;}

.slideshow-container {
  font-family: "Arial", Verdana, sans-serif;
  position: relative;
  margin: auto;
}

.image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-center {
  position: relative;
}

.prev, .next {
  cursor: pointer;
  position: fixed;
  width: auto;
  margin-top: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: #203034;
  user-select: none;
  right: 90px;
  bottom: 11px;
  z-index: 2;
}

.fullscreen-toggle {
  position: fixed;
  right: 150px;
  bottom: 19px;
  z-index: 2;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.fullscreen-toggle:focus-visible {
  outline: 2px solid #203034;
  outline-offset: 2px;
}

.hint-toggle {
  position: fixed;
  right: 210px;
  bottom: 18px;
  z-index: 2;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #203034;
}

.hint-toggle.has-error {
  color: #c0392b;
}

.hint-toggle.is-off {
  color: #9aa0a6;
}

.hint-toggle.is-off::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  top: 50%;
  height: 2px;
  background: #c0392b;
  transform: rotate(-40deg);
  pointer-events: none;
}

.hint-toggle:focus-visible {
  outline: 2px solid #203034;
  outline-offset: 2px;
}

.next {
  right: 30px;
}

.prev:hover, .next:hover {
  background-color: white;
}

.nav {
  flex: 1;
  height: 3px;
  margin-bottom: 0;
  background-color:blue;
  z-index: 2;
}

.nav:hover {
  background-color: white;
}

.text {
  color: #222223;
  font-size: 14px;
  padding-top: 15px;
  padding-left:  15px;
  padding-right: 15px;
  padding-bottom: 15px;
  bottom: 8px;
  width: 100%;
  background-color: #a4c0d1;
  max-width: 300px;
  border-radius : 15px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  filter: drop-shadow(0px 4px 8px darkgray);
  transition: transform 0.2s ease-out, filter 0.2s ease-out;
  /* cursor: pointer; */
  pointer-events: none;
  user-select: none;
}

.text:hover {
  /* transform: scale(1.05); */
  filter: drop-shadow(0px 8px 15px darkgray);
}

.textonly {
  color: #222223;
  font-size: 12px;
  padding: 8px 17px;
  bottom: 8px;
  width: auto;
  background-color: transparent;
  max-width: 300px;
  border-radius : 15px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.step-number {
  text-align: left;
}

.step-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.step-nav-row .nav-buttons {
  justify-content: flex-end;
  width: auto;
}

.text-only .step-number {
  display: none;
}

.title {
  color: #222223;
  font-family: "Arial", Verdana, sans-serif;
  font-size: 48px;
  text-align: center;
  padding-top: 15vh;
  padding-bottom: 20px;
  max-width: 1100px;
  font-weight: bold;
  margin: auto;
}

.subtitle {
  color: #222223;
  font-size: 28px;
  text-align: center;
  padding: 0px 0px 5px 0px;
  max-width: 500px;
  margin: auto;
}

h2 {
  padding: 0px;
  margin: 0px;
}

.headline {
  color: #222223;
  font-weight: bold;
  padding: 0px 0px 5px 0px;
}

.text-only .headline {
  font-size: 42px;
  text-align: center;
  margin: auto;
  max-width: 100%;
}

.image .headline {
  font-size: 28px;
  text-align: left;
  max-width: 500px;
}

.description {
  padding-bottom: 10px;
}

.text.arrow-right:after {
  content: " ";
  position: absolute;
  right: -14px;
  top: 16px;
  border-top: 10px solid transparent;
  border-right: none;
  border-left: 15px solid #a4c0d1;
  border-bottom: 10px solid transparent;
}

.text.arrow-left:after {
  content: " ";
  position: absolute;
  left: -14px;
  top: 16px;
  border-top: 10px solid transparent;
  border-right: 15px solid #a4c0d1;
  border-left: none;
  border-bottom: 10px solid transparent;
}

.text.arrow-top-left:after {
  content: " ";
  position: absolute;
  left: 16px;
  top: -14px;
  border-top: none;
  border-right: 10px solid transparent;
  border-left: 10px solid transparent;
  border-bottom: 15px solid  #a4c0d1;
}

.text.arrow-top-right:after {
  content: " ";
  position: absolute;
  right: 16px;
  top: -14px;
  border-top: none;
  border-right: 10px solid transparent;
  border-left: 10px solid transparent;
  border-bottom: 15px solid  #a4c0d1;
}

.text.arrow-bottom-left:after {
  content: " ";
  position: absolute;
  left: 20px;
  bottom: -14px;
  border-top: 15px solid #a4c0d1;
  border-right: 10px solid transparent;
  border-left: 10px solid transparent;
  border-bottom: none;
}

.text.arrow-bottom-right:after {
  content: " ";
  position: absolute;
  right: 20px;
  bottom: -14px;
  border-top: 15px solid #a4c0d1;
  border-right: 10px solid transparent;
  border-left: 10px solid transparent;
  border-bottom: none;
}

.button {
	cursor: pointer;
	background-color: #004289;
  border: none;
	border-radius: 20px;
  padding: 3px 20px;
	text-align: center;
	align-self: end;
	color: white;
	line-height: 30px;
  font-family: "Arial", Verdana, sans-serif;
  font-size: 14px;
}

.button.start, .button.restart {
  display: block;
	margin: 50px auto;
	width: 200px;
  padding: 3px 20px;
	line-height:40px;
  animation: simple-pulse 2s infinite ease-in-out;
}

@keyframes simple-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.25); }
}

.nav-background {
  /* height of the navigation bar, ensuring it covers the area behind the nav buttons */
  height: var(--nav-height);
  background-color: white;
  position: fixed;
  bottom:0;
  left:0;
  right:0;
  z-index: 1;

  display: block;
  margin: 0px;
  padding: 0px;
  border-top: 2px solid lightgrey;
}

.nav-bar {
  background-color: white;
  position: fixed;
  bottom:0;
  left:0;
  right:0;
  z-index: 1;
  height: 2px;

  display: flex;
  align-items: flex-end;
}

.box {
  position: absolute;
  cursor: pointer;
  border: 3px solid #004289;
	border-radius : 10px;
  /* animation: pulse-outer 2s infinite; */
}

.box:hover {
  background-color: rgba(255,255,255,0.6);
  animation-play-state: paused;
}

.nav-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 40px;
}

.image .nav-buttons {
  justify-content: right;
}

.text-only .nav-buttons {
  margin-top: 20px;
  justify-content: center;
}
.text-only .nav-buttons .prevbutton {
  display: none;
}

.text-only .step-nav-row {
  position: relative;
  justify-content: center;
}

.text-only .step-nav-row .step-number {
  position: absolute;
  left: 0;
}

.text-only .step-nav-row .nav-buttons {
  margin-top: 0;
  justify-content: center;
}

@keyframes pulse-outer {
  0% {
    box-shadow: 0 0 0 0px #004289;
  }
  70% {
    /* This creates the expanding ring effect */
    box-shadow: 0 0 0 15px rgba(0, 255, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0px rgba(0, 255, 0, 0);
  }
}


@media only screen and (max-width: 300px) {
  .prev, .next,.text {font-size: 11px}
}

br {
    display: block;
    content: "";
    margin-top: 10px;
}

.logo {
  height: 46px;
  width: auto; /* Maintains aspect ratio automatically */
  object-fit: contain;
  padding: 0px 40px;
}


.logo-fixed {
  position: fixed;
  z-index: 3;
  padding: 0px 40px;
  bottom: 8px; /* Equivalent to calc(100% - 54px) but cleaner */
  height: 46px;
  width: auto; /* Maintains aspect ratio automatically */
  object-fit: contain;
}

.logo-cover {
  display: flex;
  justify-content: center;
  margin: 0 auto 50px;
  padding: 50px 0px 0px 0px;
  text-align: center;
}

.logo-cover img {
  max-height: 120px;
  max-width: 400px;
  height: auto;
  width: auto;
}

.title-fixed, #last-section-headline {
  position: fixed;
  z-index: 3;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  color: #203034;
  font-size: 20px;
  text-align: center;	
  width:70%;
}

/* Hide bubbles and boxes by default */
.image .hintable.box {
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: auto;
  cursor: default;
}

/* Hide bubbles and boxes by default */
.image .hintable.text {
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

/* Class to reveal them */
.image .hintable.show-hint {
  opacity: 1;
  pointer-events: auto;
  /* cursor: pointer; */
}

.image .hintable.text-only {
  opacity: 1;
  pointer-events: auto;
  cursor: pointer;
}

.hintable.text-only {
    display: flex;
    flex-direction: column; /* Stacks elements vertically */
    align-items: center;    /* Centers everything horizontally */
    text-align: center;     /* Ensures text itself is centered */
    justify-content: center;
}


/* The floating button */
.menu-toggle {
  position: fixed;
  bottom: 15px; /* insert top: or bottom: to position */
  left: 10px;
  z-index: 1001;
  padding: 5px 10px;
  font-size: 24px;
  background: #333;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  opacity: 0.8;
}

/* The Menu Container */
#floating-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 400px;
  height: 100%;
  background: white;
  box-shadow: -2px 0 10px rgba(0,0,0,0.1);
  z-index: 1000;
  overflow-y: auto;
  box-sizing: border-box;
  max-height: 100vh;
  transition: transform 0.3s ease-in-out;
  padding: 80px 20px 20px; /* Space for the button */
  font-family: "Arial", Verdana, sans-serif;
  font-size: 14px;
}

/* Hide/Show Logic */
.menu-hidden {
  transform: translateX(-100%); /* Slides it off-screen to the right */
}

.menu-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 30px;
  padding-bottom: 20px;
  color: #222223;
  border-bottom: 2px solid #004289;
}

.menu-header {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #222223;
}

/* Internal Links */
#floating-menu ul { list-style: none; padding: 0; }
#floating-menu li { margin: 15px 0; border-bottom: 1px solid #eee; }
#floating-menu a { text-decoration: none; color: #333; display: block; }
#floating-menu a:hover { color: #004289; }

/* Blinking and moving dot */
#global-blink-dot {
  transition: top 0.55s cubic-bezier(0.4, 0, 0.2, 1), left 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.blink-dot {
  display: none;
  position: absolute;
  width: 16px;
  height: 16px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 10;
}
.blink-dot::before,
.blink-dot::after {
  display: none;
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--dot-color, #004289);
}
.blink-dot::after {
  animation: blink-pulse 1.4s ease-out infinite;
  opacity: 0;
}
@keyframes blink-pulse {
  0%   { transform: scale(1);   opacity: 0.8; }
  100% { transform: scale(3);   opacity: 0; }
}
.blink-dot-source {
  display: none;
}

#result {
  display: none;
  position: relative;
  text-align: center;
  margin: 0;
}

#correct-checkmark {
  position: fixed;
  right: 265px;
  bottom: 14px;
  z-index: 2;
  display: none;
  pointer-events: none;
}

#correct-checkmark.visible {
  display: block;
  animation: checkmark-pop 2s ease-in-out forwards;
}

@keyframes checkmark-pop {
  0%   { opacity: 0; transform: scale(0.3); }
  15%  { opacity: 1; transform: scale(1.3); }
  30%  { opacity: 1; transform: scale(1); }
  65%  { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.8); }
}