@font-face {
  font-family: 'LeBeauneNew';
  src: url("https://db.onlinewebfonts.com/t/9f4965a37ac189de7844a4c13c7108f5.woff2") format("woff2"),
       url("https://db.onlinewebfonts.com/t/9f4965a37ac189de7844a4c13c7108f5.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #162237;
  font-family: 'LeBeauneNew', sans-serif;
  color: white;
  text-align: center;
  padding: 2rem;
}

.container {
  max-width: 1000px;
  margin: auto;
}

/* HEADER */
h1 {
  color: #f15f24;
  font-size: 2rem;
  margin-bottom: 1rem;
}

p {
  font-family: 'Times New Roman', Times, serif;
  color: #86dabd;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* GENERAL DRAGGABLE STYLING */
.draggable {
  width: 60px;
  height: 60px;
  object-fit: contain;
  cursor: grab;
  z-index: 20;
  touch-action: none;
}

.draggable.dragging {
  opacity: 0.5;
}

/* BACKGROUND CONTAINERS */
.background {
  position: relative;
  display: block;
  margin: 0 auto;
  width: 100%;
  max-width: 800px;
  aspect-ratio: 1 / 1;
  z-index: 1;
  border: 2px solid #86dabd;
  border-radius: 10px;
  margin-bottom: 2rem;
  overflow: hidden;
}

.background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}

/* DROP ZONES */
.drop-zone {
  position: absolute;
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  pointer-events: all;
}

.drop-zone img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: auto;
}

/* PART 1 DROP ZONE POSITIONS */
#part1 .drop-zone[data-position="0"] { top: 12.8%; left: 49.7%; }
#part1 .drop-zone[data-position="1"] { top: 21.5%; left: 49.7%; }
#part1 .drop-zone[data-position="2"] { top: 30.85%; left: 49.7%; }
#part1 .drop-zone[data-position="3"] { top: 41.59%; left: 49.7%; }
#part1 .drop-zone[data-position="4"] { top: 52.8%; left: 49.7%; }

/* PART 2 DROP ZONE POSITIONS */
#part2 .drop-zone[data-position="0"] { top: 21%; left: 49.9%; }
#part2 .drop-zone[data-position="1"] { top: 52.7%; left: 81.5%; }
#part2 .drop-zone[data-position="2"] { top: 52.8%; left: 18.3%; }
#part2 .drop-zone[data-position="3"] { top: 84.5%; left: 49.9%; }

/* CHECK BUTTON */
.check-button {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.5rem 1rem;
  font-size: 1rem;
  background-color: #f15f24;
  border: none;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  z-index: 10;
}

/* NAVIGATION BUTTONS */
.nav-button {
  position: absolute;
  top: 10px;
  font-size: 1rem;
  background-color: transparent;
  color: #000000;
  border: none;
  cursor: pointer;
  z-index: 10;
  padding: 0.5rem 1rem;
}

#toPart2 {
  right: 10px;
}

#toPart1 {
  left: 10px;
}

/* SPLASH SCREEN */
#splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(22, 34, 55, 0.95);
  color: white;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.splash-content {
  text-align: center;
  font-size: 1.5rem;
  padding: 2rem;
  background-color: #1e2c44;
  border: 2px solid #86dabd;
  border-radius: 10px;
}

/* ───────── PART 1: DRAG OVERLAY (LEFT) ───────── */
.drag-overlay {
  position: absolute;
  top: 8%;
  left: 5%;
  padding-top: 1rem;
  background-color: rgba(22, 34, 55, 0.8);
  border: 2px dashed #f15f24;
  border-radius: 10px;
  z-index: 10;
  width: 80px;
  min-height: 350px;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.drag-overlay .draggable {
  width: 50px;
  height: 50px;
  object-fit: contain;
  cursor: grab;
  z-index: 20;
  margin-bottom: 1rem;
}

.drag-overlay .drag-bank {
  min-height: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
  background-color: rgba(22, 34, 55, 0.3);
  pointer-events: all;
}

/* ───────── PART 2: FOUR INDIVIDUAL DRAG BANKS ───────── */
#part2 .drag-bank {
  position: absolute;
  width: 70px;
  height: 70px;
  background-color: rgba(22, 34, 55, 0.85);
  border: 2px dashed #f15f24;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  box-sizing: border-box;
  z-index: 10;
}

#part2 .drag-bank img {
  width: 80%;
  height: 80%;
  object-fit: contain;
  cursor: grab;
}

/* Positioning each square */
.bank-top {
  top: 37%;
  left: 50%;
  transform: translateX(-50%);
}

.bank-left {
  top: 53%;
  left: 35%;
  transform: translateY(-50%);
}

.bank-right {
  top: 53%;
  right: 35%;
  transform: translateY(-50%);
}

.bank-bottom {
  bottom: 32%;
  left: 50%;
  transform: translateX(-50%);
}
