/**
 * Child Application Styles - Playful & Child-Friendly
 * Target audience: Ages 5-10
 * Design principles: Large touch targets, bright colors, rounded corners, fun fonts
 * Branding: Westwood/PlayTimeRX colors
 */

:root {
  --child-primary: #F47920;      /* Logo orange */
  --child-secondary: #2490cc;    /* Logo blue (dark) */
  --child-success: #4CAF50;      /* Bright green for completion */
  --child-accent: #3AADE8;       /* Logo blue (light) */
  --child-warning: #FFD700;      /* Gold */
  --child-bg: #FFFFFF;           /* White background */
  --child-text: #2490cc;         /* Logo blue for text */
  --child-white: #FFFFFF;
  --child-aged-brass: #D7D2C4;   /* Neutral brass */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  width: 100%;
  font-family: 'Baloo 2', 'Comic Sans MS', cursive, sans-serif;
  background: var(--child-bg);
  color: var(--child-text);
  font-size: 18px;
  overflow-y: auto;
  overflow-x: hidden;
  /* Mobile optimizations */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  touch-action: manipulation;
}

/* Headings use playful font */
h1, h2, h3, h4, h5, h6,
.activity-equipment-name,
.activity-title,
.section-title,
.free-play-title,
.category-name,
.brand-child {
  font-family: 'Fredoka One', 'Baloo 2', cursive, sans-serif;
}

/* Progress Header (Sticky) */
.progress-header {
  background: #ffffff;
  padding: 15px 20px;
  color: #2490cc;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.brand-child {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 2px;
  text-align: center;
  margin-bottom: 8px;
  opacity: 0.98;
  text-transform: uppercase;
}

.progress-bar-container {
  width: 100%;
  height: 30px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #4CAF50 0%, #8BC34A 100%);
  transition: width 0.5s ease;
  border-radius: 15px;
  width: 0%;
}

.progress-text {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  font-weight: 600;
}

.progress-emoji {
  font-size: 24px;
}

/* Map View */
.child-map {
  width: calc(100% - 30px);
  height: 400px;
  border: 4px solid var(--child-primary);
  border-radius: 12px;
  margin: 15px auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Current Activity Card */
.current-activity-card {
  background: var(--child-white);
  border-radius: 16px;
  padding: 20px;
  margin: 15px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border: 3px solid var(--child-primary);
}

.activity-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 15px;
  color: var(--child-primary);
}

.activity-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Current Activity Photo */
.current-activity-photo {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.activity-equipment-name {
  font-size: 32px;
  font-weight: 800;
  color: var(--child-text);
  margin-bottom: 10px;
}

.activity-description {
  font-size: 20px;
  line-height: 1.6;
  color: var(--child-text);
  margin-bottom: 15px;
}

.activity-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn-big {
  padding: 20px 40px;
  font-size: 24px;
  font-weight: 700;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #F47920 0%, #2490cc 100%);
  color: var(--child-white);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(244, 121, 32, 0.4);
  transition: all 0.2s ease;
  font-family: 'Baloo 2', cursive, sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-big:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(244, 121, 32, 0.5);
  background: linear-gradient(135deg, #2490cc 0%, #F47920 100%);
}

.btn-big:active {
  transform: translateY(0);
}

.btn-success {
  background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.btn-success:hover {
  box-shadow: 0 6px 16px rgba(76, 175, 80, 0.5);
}

.btn-next {
  width: 100%;
  background: linear-gradient(135deg, #2490cc 0%, #3AADE8 100%);
  box-shadow: 0 4px 12px rgba(36, 144, 204, 0.4);
  margin-top: 10px;
}

.btn-next:hover {
  box-shadow: 0 6px 16px rgba(36, 144, 204, 0.5);
}

.btn-icon {
  font-size: 28px;
}

/* Activities List */
.activities-list {
  padding: 20px 15px;
}

.section-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 15px;
  color: var(--child-text);
}

.activities-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.activity-item {
  background: var(--child-white);
  border-radius: 12px;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.activity-item.completed {
  opacity: 0.7;
  background: #E8F5E9;
}

.activity-item.current {
  border: 3px solid var(--child-primary);
  box-shadow: 0 4px 12px rgba(244, 121, 32, 0.3);
}

/* Activity Thumbnail */
.activity-thumbnail {
  width: 80px;
  height: 80px;
  min-width: 80px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Activity Checkbox */
.activity-checkbox {
  width: 60px;
  height: 60px;
  min-width: 60px;
  border: 4px solid var(--child-primary);
  border-radius: 50%;
  background: var(--child-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  transition: all 0.3s ease;
  user-select: none;
  color: var(--child-aged-brass); /* Grey checkmark by default */
}

.activity-checkbox:hover {
  transform: scale(1.05);
  border-color: var(--child-secondary);
}

.activity-checkbox.completed {
  background: var(--child-success);
  border-color: var(--child-success);
  transform: scale(1.1);
  color: var(--child-white); /* White checkmark when completed */
}

.activity-info {
  flex: 1;
}

.activity-name {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}

.activity-status {
  font-size: 16px;
  font-weight: 600;
  opacity: 0.8;
}

.activity-item.completed .activity-name {
  text-decoration: line-through;
  opacity: 0.7;
}

/* Audio Controls */
.audio-controls {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  gap: 10px;
  z-index: 999;
}

.audio-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid var(--child-primary);
  background: var(--child-white);
  box-shadow: 0 4px 12px rgba(244, 121, 32, 0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  transition: all 0.2s ease;
}

.audio-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(244, 121, 32, 0.4);
  background: var(--child-primary);
}

.audio-btn:active {
  transform: scale(0.95);
}

.audio-btn.active {
  background: var(--child-success);
  border-color: var(--child-success);
}

.audio-btn.muted {
  background: var(--child-aged-brass);
  border-color: var(--child-aged-brass);
  opacity: 0.6;
}

/* Celebration Overlay */
.celebration-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.3s ease;
}

.celebration-overlay.hidden {
  display: none;
}

.celebration-content {
  text-align: center;
  color: var(--child-white);
  padding: 40px;
}

.celebration-emoji {
  font-size: 120px;
  animation: pulse 1s ease infinite;
}

.celebration-title {
  font-size: 64px;
  font-weight: 800;
  margin: 20px 0;
  animation: shake 0.5s ease;
}

.celebration-message {
  font-size: 28px;
  font-weight: 600;
}

/* Error Message */
.error-message {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--child-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.error-message.hidden {
  display: none;
}

.error-content {
  text-align: center;
  max-width: 500px;
}

.error-icon {
  font-size: 100px;
  margin-bottom: 20px;
}

.error-title {
  font-size: 48px;
  font-weight: 800;
  color: var(--child-primary);
  margin-bottom: 15px;
}

.error-text {
  font-size: 24px;
  line-height: 1.5;
  color: var(--child-text);
}

/* Loading State */
.loading-text,
.empty-state {
  font-size: 20px;
  text-align: center;
  padding: 40px 20px;
  color: var(--child-text);
  opacity: 0.7;
}

/* Responsive Design - Mobile First */
@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  .child-map {
    height: 320px;
    margin: 10px auto;
    width: calc(100% - 20px);
  }

  .progress-header {
    padding: 12px 15px;
  }

  .progress-bar-container {
    height: 25px;
  }

  .progress-text {
    font-size: 16px;
  }

  .activity-title {
    font-size: 24px;
  }

  .activity-equipment-name {
    font-size: 26px;
  }

  .activity-description {
    font-size: 18px;
  }

  .btn-big {
    padding: 18px 30px;
    font-size: 20px;
    min-height: 60px;
  }

  .current-activity-photo {
    height: 180px;
  }

  .activity-thumbnail {
    width: 70px;
    height: 70px;
    min-width: 70px;
  }

  .activity-name {
    font-size: 20px;
  }

  .activity-checkbox {
    width: 55px;
    height: 55px;
    min-width: 55px;
    font-size: 32px;
  }

  .activity-item {
    padding: 12px;
  }

  .current-activity-card {
    margin: 10px;
    padding: 15px;
  }

  .activities-list {
    padding: 15px 10px;
  }

  .section-title {
    font-size: 24px;
  }

  .celebration-title {
    font-size: 48px;
  }

  .celebration-emoji {
    font-size: 100px;
  }

  .audio-controls {
    bottom: 15px;
    right: 15px;
  }

  .audio-btn {
    width: 55px;
    height: 55px;
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 15px;
  }

  .child-map {
    height: 260px;
  }

  .progress-header {
    padding: 10px 12px;
  }

  .progress-text {
    font-size: 14px;
  }

  .brand-child {
    font-size: 14px;
    margin-bottom: 6px;
  }

  .activity-title {
    font-size: 20px;
  }

  .activity-equipment-name {
    font-size: 22px;
  }

  .activity-description {
    font-size: 16px;
    line-height: 1.5;
  }

  .activity-actions {
    flex-direction: column;
  }

  .btn-big {
    width: 100%;
    justify-content: center;
    padding: 16px 24px;
    font-size: 18px;
    min-height: 56px;
  }

  .current-activity-photo {
    height: 150px;
  }

  .activity-thumbnail {
    width: 60px;
    height: 60px;
    min-width: 60px;
  }

  .activity-name {
    font-size: 18px;
  }

  .activity-status {
    font-size: 14px;
  }

  .activity-checkbox {
    width: 50px;
    height: 50px;
    min-width: 50px;
    font-size: 28px;
  }

  .activity-item {
    padding: 10px;
  }

  .current-activity-card {
    margin: 8px;
    padding: 12px;
  }

  .activities-list {
    padding: 12px 8px;
  }

  .section-title {
    font-size: 22px;
  }

  .celebration-title {
    font-size: 36px;
  }

  .celebration-message {
    font-size: 20px;
  }

  .celebration-emoji {
    font-size: 80px;
  }

  .audio-controls {
    bottom: 10px;
    right: 10px;
  }

  .audio-btn {
    width: 50px;
    height: 50px;
    font-size: 22px;
  }

  .error-icon {
    font-size: 80px;
  }

  .error-title {
    font-size: 36px;
  }

  .error-text {
    font-size: 18px;
  }
}

/* Landscape mode on mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .child-map {
    height: 220px;
  }

  .progress-header {
    padding: 8px 12px;
  }

  .current-activity-card {
    margin: 8px;
    padding: 12px;
  }
}

/* Touch device improvements */
@media (hover: none) and (pointer: coarse) {
  /* Larger touch targets for touch devices */
  .activity-checkbox {
    min-width: 60px;
    min-height: 60px;
  }

  .btn-big {
    min-height: 60px;
  }

  .audio-btn {
    min-width: 55px;
    min-height: 55px;
  }

  /* Prevent text selection on touch */
  .activity-checkbox,
  .btn-big,
  .audio-btn {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    user-select: none;
    -webkit-user-select: none;
  }
}

/* Safe area padding for notched devices (iPhone X, etc.) */
@supports (padding: env(safe-area-inset-bottom)) {
  body {
    padding-bottom: env(safe-area-inset-bottom);
  }

  .audio-controls {
    bottom: calc(10px + env(safe-area-inset-bottom));
    right: calc(10px + env(safe-area-inset-right));
  }
}

/* iOS specific optimizations */
@supports (-webkit-touch-callout: none) {
  body {
    /* Prevent iOS rubber band scrolling */
    position: fixed;
    width: 100%;
    height: 100%;
    overflow: hidden;
  }

  html {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Enable momentum scrolling for containers */
  .activities-list,
  .activity-content {
    -webkit-overflow-scrolling: touch;
  }
}

/* Prevent zoom on input focus (iOS) */
@media (max-width: 768px) {
  input,
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* Disable pull-to-refresh on Chrome mobile */
body {
  overscroll-behavior-y: contain;
}

/* ============================================
   Character Images & Mascots
   ============================================ */

/* Brand logo in child header */
.brand-child {
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-child .brand-logo-wrap {
  background: white;
  padding: 8px 12px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-child .brand-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Cheerleader row between map and activity card */
.character-row {
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  padding: 0 30px;
  margin: -8px 0 -8px;
}

.character-row-img {
  width: 95px;
  height: 95px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.12));
}

/* Inline character in card/section titles */
.title-character,
.section-character {
  width: 50px;
  height: 50px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 6px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.15));
}

/* Celebration overlay character (replaces 🎉 emoji) */
.celebration-character {
  width: 200px;
  height: 200px;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.3));
}

/* Error state character (replaces 😕 emoji) */
.error-character {
  width: 160px;
  height: 160px;
  object-fit: contain;
}

/* Celebration overlay video */
.celebration-video {
  width: 100%;
  max-width: 380px;
  border-radius: 16px;
  margin-bottom: 15px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}

/* Welcome video modal */
.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20000;
  animation: fadeIn 0.3s ease;
  cursor: pointer;
}

.video-modal.hidden {
  display: none;
}

.video-modal-content {
  width: 100%;
  max-width: 640px;
  padding: 0 20px;
  text-align: center;
}

.modal-video {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  display: block;
}

.video-tap-hint {
  color: rgba(255, 255, 255, 0.6);
  font-size: 16px;
  margin-top: 12px;
  font-family: 'Baloo 2', cursive, sans-serif;
}

/* Image Lightbox - mobile optimised */
.child-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 25000;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Safe areas for notched phones */
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

.child-lightbox.hidden {
  display: none;
}

.child-lightbox-img-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 70px 16px 24px;
}

.child-lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
  display: block;
}

/* Large tap target for close — min 48×48 per mobile guidelines */
.child-lightbox-close {
  position: absolute;
  top: max(16px, env(safe-area-inset-top));
  right: 16px;
  min-width: 56px;
  min-height: 56px;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-radius: 50%;
  font-size: 26px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  /* Prevent accidental zoom on double-tap */
  touch-action: manipulation;
}

.child-lightbox-close:active {
  background: rgba(255, 255, 255, 0.4);
}

/* Tap-to-expand hint on the activity photo */
.current-activity-photo-wrap {
  position: relative;
  display: inline-block;
  width: 100%;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.current-activity-photo-wrap .tap-hint {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 22px;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* Scale down characters on tablet */
@media (max-width: 768px) {
  .brand-mascot {
    width: 30px;
    height: 30px;
  }

  .character-row-img {
    width: 75px;
    height: 75px;
  }

  .title-character,
  .section-character {
    width: 40px;
    height: 40px;
  }

  .celebration-character {
    width: 160px;
    height: 160px;
  }

  .error-character {
    width: 130px;
    height: 130px;
  }
}

/* Scale down characters on phone */
@media (max-width: 480px) {
  .brand-mascot {
    width: 24px;
    height: 24px;
  }

  .character-row-img {
    width: 60px;
    height: 60px;
  }

  .title-character,
  .section-character {
    width: 32px;
    height: 32px;
  }

  .celebration-character {
    width: 130px;
    height: 130px;
  }

  .error-character {
    width: 110px;
    height: 110px;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Free Play Mode */
.free-play-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--child-bg);
  overflow-y: auto;
  z-index: 2000;
  padding: 20px;
}

.free-play-header {
  text-align: center;
  padding: 20px 20px 30px;
  background: linear-gradient(135deg, #F47920 0%, #2490cc 100%);
  border-radius: 16px;
  margin-bottom: 30px;
  color: var(--child-white);
}

.free-play-header .brand-child {
  color: var(--child-white);
  margin-bottom: 10px;
  opacity: 1;
}

.free-play-title {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--child-white);
}

.free-play-subtitle {
  font-size: 20px;
  font-weight: 600;
  opacity: 0.95;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 40px;
}

.category-card {
  background: var(--child-white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.category-photo {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.category-info {
  padding: 20px;
  flex: 1;
}

.category-name {
  font-size: 24px;
  font-weight: 800;
  color: var(--child-text);
  margin-bottom: 8px;
}

.category-count {
  font-size: 16px;
  color: var(--child-text);
  opacity: 0.7;
  font-weight: 600;
}

.btn-category {
  width: 100%;
  padding: 18px;
  border: none;
  background: linear-gradient(135deg, #F47920 0%, #2490cc 100%);
  color: var(--child-white);
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Baloo 2', cursive, sans-serif;
}

.btn-category:hover {
  background: linear-gradient(135deg, #2490cc 0%, #F47920 100%);
  transform: translateY(-2px);
}

.btn-category:active {
  transform: scale(0.98);
}

/* Free Play Responsive */
@media (max-width: 768px) {
  .free-play-container {
    padding: 15px;
  }

  .free-play-title {
    font-size: 28px;
  }

  .free-play-subtitle {
    font-size: 18px;
  }

  .category-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .category-photo {
    height: 180px;
  }

  .category-name {
    font-size: 22px;
  }

  .btn-category {
    padding: 16px;
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .free-play-header {
    padding: 15px 15px 25px;
    margin-bottom: 20px;
  }

  .free-play-title {
    font-size: 24px;
  }

  .free-play-subtitle {
    font-size: 16px;
  }

  .category-photo {
    height: 150px;
  }

  .category-info {
    padding: 15px;
  }

  .category-name {
    font-size: 20px;
  }

  .category-count {
    font-size: 14px;
  }
}

/* Basemap Switcher Styling for Child App */
.esri-expand {
  background-color: var(--child-white);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  border: 2px solid var(--child-primary);
}

.esri-expand__icon {
  color: var(--child-primary);
  font-size: 22px;
}

.esri-basemap-gallery {
  border-radius: 8px;
}

.esri-basemap-gallery__item {
  border-radius: 8px;
  overflow: hidden;
  border-width: 3px;
}

.esri-basemap-gallery__item-title {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 14px;
}

.esri-basemap-gallery__item--selected {
  border-color: var(--child-primary);
  box-shadow: 0 0 0 3px var(--child-primary);
}

/* Responsive basemap gallery for child app */
@media (max-width: 768px) {
  .esri-expand {
    width: auto;
  }

  .esri-basemap-gallery {
    max-width: 85vw;
  }

  .esri-basemap-gallery__item {
    min-width: 100px;
  }
}

@media (max-width: 480px) {
  .esri-expand__icon {
    font-size: 18px;
  }

  .esri-basemap-gallery {
    max-width: 90vw;
  }

  .esri-basemap-gallery__item {
    min-width: 90px;
  }

  .esri-basemap-gallery__item-title {
    font-size: 12px;
  }
}
