html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.memory-grid {
    display: grid;
    grid-template-columns: repeat(5, 80px);
    gap: 15px;
    justify-content: center;
}

.memory-card {
    width: 80px;
    /* Remove fixed height */
    background: #2c3242;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column; /* Stack image and label vertically */
    align-items: center;
    justify-content: flex-start; /* Start from the top */
    padding: 0;
}

.memory-card img {
    width: 100%;
    height: 80px; /* Keep image height fixed */
    object-fit: cover;
    display: block;
}

.card-label {
    display: block;
    text-align: center;
    color: #fff;
    font-size: 0.95em;
    margin-top: 6px;
    letter-spacing: 0.5px;
    padding-bottom: 4px;
    width: 100%;
    background: transparent;
}