/* Base styling */
@font-face {
  font-family: 'BubbleBoy';
  src: url('fonts/BubbleBoy.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

body {
  font-family: 'BubbleBoy', sans-serif;
  letter-spacing: 2px;
  font-weight: normal;
  background: linear-gradient(to top, #d7c9a2, #c68b57);
  color: #ffffff;
  margin: 0;
  padding: 24px 12px;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

p {
  margin-top: 0;
  margin-bottom: 1em; /* or any value you prefer */
  font-size: 1rem;    /* adjust as needed */
  line-height: 1.5;   /* adjust as needed */
  color: #222;        /* adjust as needed */
}

/* Headings */
h1, h2, h3 {
  text-align: center;
  margin-bottom: 8px;
  font-weight: normal;
  letter-spacing: 3px;
  line-height: 1.2;
}

h1 {
  font-size: 26px;
}

h2 {
  font-size: 16px;
}

h3 {
  letter-spacing: 2px;
  font-size: 16px;
  text-align: left;
  margin-top: 0;
  margin-bottom: 8px;
}

/* Logo Row */
.logo-row {
  width: 80vw;
  max-width: 100vw;
  box-sizing: border-box;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 12px 0;
  margin-top: 24px;
}

.logo-row img {
  width: 28vw;         /* 3 logos × 28vw + 2 × 24px gap ≈ 80vw */
  max-width: 180px;    /* Prevents logos from getting too large on big screens */
  min-width: 0;
  height: auto;
  display: block;
  object-fit: contain;
  flex-shrink: 1;
}

/* Progress Bar */
.progress-container {
  width: 100%;
  height: 12px;
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
}

#progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #CD435C, #FCEF59);
  border-right: 2px solid rgba(0, 0, 0, 0.2);
  transition: width 0.4s ease;
}

#progress-text {
  font-size: 14px;
  text-align: center;
  margin-bottom: 20px;
}

/* Item Cards */
.item.completed {
  background: linear-gradient(135deg, #CD435C, #FCEF59);
}

.glow-border {
  position: relative;
  z-index: 1;
  border-radius: 16px;
  padding: 12px;
  margin: 16px 0;
  background: linear-gradient(135deg, #cd435cad, #fcee598e);
  box-shadow: 5px 5px 10px rgba(106, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.item-header {
  display: flex;
  align-items: center;
  letter-spacing: 3px;
  padding: 12px;
  cursor: pointer;
  position: relative;
}

.item-header img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 6px;
  margin-right: 12px;
}

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

.image-wrapper img {
  display: block;
  max-width: 100%;
  height: auto;
}

.image-wrapper .tick {
  position: absolute;
  top: 50%;
  left: 45%;
  width: 60px;
  height: 60px;
  background: #ffffff7a url('assets/tick.svg') no-repeat center center;
  background-size: 100%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  display: none;
}

.item.completed .image-wrapper .tick {
  display: block;
}

.item-title {
  flex-grow: 1;
  letter-spacing: 3px;
  font-weight: normal;
}

.arrow {
  font-size: 30px;
  font-weight: normal;
  transform: rotate(0deg);
  transition: transform 0.3s ease;
}

.item.active .arrow {
  transform: rotate(180deg);
}

.stop-title {
  letter-spacing: 3px;
  font-weight: normal;
  margin-bottom: 8px;
  font-size: 30px;
}

.stop-desc {
  letter-spacing: 2px;
  font-weight: normal;
  font-size: 16px;
}

/* Dropdown Section */
.dropdown {
  max-height: 0;
  overflow: hidden;
  padding: 0 16px;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.item.active .dropdown {
  padding: 16px;
}

.dropdown p {
  font-size: 14px;
  margin-top: 12px;
  line-height: 1.7;
}

/* Buttons */
button {
  padding: 10px 20px;
  border-radius: 10px;
  border: solid 2px #00000000;
  background-color: #E3F4FA;
  font-family: 'BubbleBoy', sans-serif;
  font-size: 16px;
  cursor: pointer;
  margin-bottom: 16px;
}

#completion-message {
  margin: 24px 0;
  padding: 16px;
  background-color: #bbf7d0;
  color: #065f46;
  border-radius: 10px;
  font-weight: 600;
  text-align: center;
}

.hidden {
  display: none;
}

#help-modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

#help-modal.active {
  display: flex;
}

.help-modal-content {
  position: fixed;
  top: 12px;
  left: 12px;
  right: 12px;
  background: #fff;
  color: #111;
  padding: 12px;
  border-radius: 16px;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  max-height: calc(100vh - 48px);
}
