.shop-container {
    margin-top: 50px;
    padding-bottom: 50px;
    display: flex;
    flex-wrap: wrap; /* Allows the items to wrap around */
    gap: 20px; /* The space between items */
    justify-content:space-evenly;
    padding: 10px;
    padding-top: 50px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.square {
    position: relative;
    border-radius: 8px;
    background: #ffd1dc;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    box-shadow: none;
    transform: translateZ(0);
    backface-visibility: hidden;
    aspect-ratio: 1; /* Ensures the square stays square */
    width: 150px; /* Set the default size of the squares */
    height: 150px; /* Ensures the squares stay square */
}

.square.small {
    width: 150px; /* Small squares have a smaller fixed width */
    height: 150px; /* And the same height to stay square */
}

.square.large {
    width: 200px; /* Large squares are bigger */
    height: 200px;
}

.square.color-1 { 
    background: url('../img/blockyPaws.jpg');
    background-size: cover;
  }
.square.color-2 { background: #c1f0c1; }
.square.color-3 { background: #d1e0ff; }
.square.color-4 { background: #ffe1a8; }

/* Hover overlay */
.goal-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3em;
    color: white;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.square:hover .goal-hover { opacity: 1; }

/* Bottom overlay */
.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: #101217;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 5px;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 0 8px 8px;
    box-sizing: border-box;
    overflow: hidden;
}

.square:hover .overlay { transform: translateY(0); }

/* Heart icon using SVG as background */
.heart {
    content: '';
    display: flex;
    width: 30px; /* Increase the size */
    height: 30px; /* Increase the size */
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z" fill="white"/></svg>');
    background-size: 30px;
}

/* Progress bar */
.progress-container {
    width: 60%;
    height: 30px;
    background-color: none;
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: #56DE93;
    border-radius: inherit;
    width: 0; /* Default width 0, will be changed dynamically */
    transition: width 0.4s ease;
}

/* Custom CSS for progress based on data attributes */
.square[data-progress="50"] .progress-bar {
    width: 80%;
}

.square[data-progress="75"] .progress-bar {
    width: 75%;
}

.square[data-progress="30"] .progress-bar {
    width: 30%;
}

.square[data-progress="90"] .progress-bar {
    width: 90%;
}

.reset-time {
    font-size: 4rem;
}