@font-face {
  font-family: "ITP";
  src: url("font/ITPBold.TTF") format("truetype");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "ITP";
  src: url("font/ITPBoldItalic.TTF") format("truetype");
  font-weight: 700;
  font-style: italic;
}

@font-face {
  font-family: "ITP";
  src: url("font/ITPMedium.TTF") format("truetype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "ITP";
  src: url("font/ITPMediumItalic.TTF") format("truetype");
  font-weight: 500;
  font-style: italic;
}

@font-face {
  font-family: "ITP";
  src: url("font/ITPRegular.TTF") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "ITP";
  src: url("font/ITPRegularItalic.TTF") format("truetype");
  font-weight: 400;
  font-style: italic;
}

@font-face {
  font-family: "ITP";
  src: url("font/ITPLight.TTF") format("truetype");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "ITP";
  src: url("font/ITPLightItalic.TTF") format("truetype");
  font-weight: 300;
  font-style: italic;
}

body {
  padding: 5px;
  font-family: "ITP", sans-serif;
  text-align: center;
}
p,
h1,
h2,
button {
  font-family: "ITP", sans-serif;
}

.glow {
  filter: drop-shadow(0 0 10px #8ace00) drop-shadow(0 0 20px #00ffc3);
}

/*SPINNER ANIMATION*/
@keyframes musSpin {
  0% {
    transform: rotate(0deg);
  }
  10% {
    transform: rotate(-15deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.spin-once {
  animation: musSpin 1s ease-out forwards;
}

/*PULSE ANIMATION*/
@keyframes nudge {
  0% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-5deg);
  }
  50% {
    transform: rotate(5deg);
  }
  75% {
    transform: rotate(-3deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

.attention {
  animation: nudge 0.6s ease-in-out;
}

/*SVØMME IND ANIMATION*/
@keyframes swim-in {
  0% {
    transform: translateX(-100%);
    opacity: 0.5;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.animate-swim-in {
  animation: swim-in 3s ease-out forwards;
}

/*RYSTE ANIMATION*/
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  50% {
    transform: translateX(5px);
  }
  75% {
    transform: translateX(-5px);
  }
}

.hover-shake:hover {
  animation: shake 0.3s ease-in-out;
}

/*HOPPE ANIMATION*/
@keyframes bounce-custom {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.hover-bounce:hover {
  animation: bounce-custom 0.4s ease;
}

/*KNAPPER STYLES*/
button.knap {
  width: 250px;
  height: 60px;
  padding: 10px 20px;
  font-size: 16px;
  font-family: "ITP", sans-serif;
  font-weight: 300;
  color: #293c1f;
  border: 1px solid #293c1f;
  border-radius: 0;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.luk-knap {
  padding: 7px 26px;
  font-size: 16px;
  font-family: "ITP", sans-serif;
  font-weight: 300;
  color: #293c1f;
  border: 1px solid #293c1f;
  text-transform: uppercase;
  border-radius: 0;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.luk-knap:hover {
  font-weight: 700;
  background-color: #f0f4f0;
}

button.knap:hover {
  background-color: #f0f4f0;
}

/*FLIP CARD FISKERI*/
.flip-card {
  width: 350px;
  height: 420px;
  perspective: 1000px;
  cursor: pointer;
}

.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.flip-card.flipped .flip-inner {
  transform: rotateY(180deg);
}

.flip-front,
.flip-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.flip-back {
  background-color: #f0f4f0;
}

.flip-front {
  z-index: 2;
}

.flip-back {
  transform: rotateY(180deg);
}

/*BOX DESIGN*/
.info-box,
.quiz-box {
  padding: 0px 20px 40px 20px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.info-box h2,
.quiz-box h2,
.do-box h2 {
  color: #004d40;
}
.quiz-btn {
  cursor: pointer;
  font-weight: 300;
  font-size: 14px;
  padding: 5px 16px;
  margin-right: 10px;
  margin-bottom: 10px;
  border: none;
  background-color: white;
  border: 1px solid #004d40;
  color: #004d40;
  transition: background-color 0.3s ease;
}

.quiz-btn:hover:not(:disabled) {
  background-color: #004d40;
  color: white;
}

.quiz-btn-rigtigt {
  background-color: #2e7d32 !important;
  color: white;
  cursor: default;
}

.quiz-btn-forkert {
  background-color: #c62828 !important;
  color: white;
  cursor: default;
}

.quiz-btn:disabled {
  opacity: 0.7;
  cursor: default;
}

#elements {
  background-color: #f0f4f0;
}

.draggable {
  cursor: grab;
  background-color: white;
  color: black;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100px;
  width: 80px;
  gap: 8px;
}

.draggable img {
  max-width: 60px;
  max-height: 60px;
  pointer-events: none;
}

.draggable p {
  margin: 0;
  font-weight: 300;
  font-size: 14px;
  text-align: center;
}
.dropzone {
  color: white;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
  padding: 8px;
  min-height: 160px;
  background-color: #d5f0d5;
}
