.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px;
  max-width: 100%;
  box-sizing: border-box;
  margin-top: 5px;
}

.pills span {
    background: linear-gradient(
        to right,
        #4caf50 var(--progress, 0%),
        #e0e0e0 var(--progress, 0%)
      );
  border-radius: 20px;
  padding: 8px 16px;
  font-family: Arial, sans-serif;
  font-size: 14px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
  font-weight: bold;
  color: #333;
  display: inline-flex;
  height: 32px;
  align-items: center;
  justify-content: center;
  line-height: 1;
  margin-top: 0px !important;
}

.pills span.category {
    background: #000;
    color: #fff;
}


img.hero {
    max-height: none;
    width: 100%;
}

/* Badge styling */
.girl-scout-badge {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #030303;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3),
                inset 0 2px 4px rgba(255, 255, 255, 0.2);
    background-color: #f5f5f5;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative; /* For positioning the ribbon */
    margin-left: 10px;
    margin-right: 10px;
}

/* Hover effect for badge */
.girl-scout-badge:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
    cursor: pointer;
}

/* Ribbon effect */
.girl-scout-badge::after {
    content: 'Scout';
    position: absolute;
    bottom: -15px; /* Adjusted for better visibility */
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 20px;
    background-color: #000;
    padding: 5px;
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    color: white;
    font-size: 12px;
    line-height: 20px;
    text-align: center;
    font-family: Arial, sans-serif;
    z-index: 1; /* Ensure ribbon is above badge */
    transition: background-color 0.3s ease, transform 0.3s ease; /* Added transition for hover */
}

/* Hover effect for ribbon text */
.girl-scout-badge:hover::after {
    background-color: #000; /* Darker green on hover */
    transform: translateX(-50%) scale(1.05); /* Slight scale for ribbon */
}

/* Optional: Tooltip for hover text */
.girl-scout-badge[title]:hover::before {
    content: attr(title);
    position: absolute;
    top: -30px; /* Above the badge */
    left: 50%;
    transform: translateX(-50%);
    background-color: #000;
    color: white;
    padding: 10px 10px;
    border-radius: 3px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 2;
}

.book-list {
    display: flex; /* Horizontal layout for books */
    gap: 20px; /* Space between book covers */
    list-style: none; /* Remove default list styles */
    padding: 0;
    margin: 20px;
}


.book-container {
    width: 100px; /* Thumbnail size */
    height: 145px; /* Standard book aspect ratio ~1.45 */
    margin: 20px;
    perspective: 1000px; /* For 3D effect */
    float: left;
}

.book {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.3s;
}

.book:hover {
    transform: rotateY(-5deg) rotateX(5deg); /* Slight tilt on hover */
}

.book-cover {
    width: 100%;
    height: 100%;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3), /* Shadow for depth */
               -2px -2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    border: 1px solid #ddd;
    margin-top: 5px;
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image fills without distortion */
    display: block;
}

.book-spine {
    position: absolute;
    top: 0;
    left: -10px; /* Slight spine width */
    width: 10px;
    height: 100%;
    background: linear-gradient(to right, #333, #555); /* Spine gradient */
    transform: rotateY(-90deg);
    transform-origin: right;
    z-index: 1;
}

.book-title {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 12px;
    color: #fff;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent title background */
    padding: 5px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}


.art-gallery {
    display: flex; /* Horizontal layout for books */
    gap: 20px; /* Space between book covers */
    list-style: none; /* Remove default list styles */
    padding: 0;
    margin: 20px;
}

.art {
    width: 100px; /* Thumbnail size */
    height: 145px; /* Standard book aspect ratio ~1.45 */
    margin: 20px 20px 20px 0px;
    perspective: 1000px; /* For 3D effect */
    float: left;
    border: 2px solid #030303;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3),
                inset 0 2px 4px rgba(255, 255, 255, 0.2);
    background-color: #f5f5f5;
}

.art img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image fills without distortion */
    display: block;
}
