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;
}


.card-hover {
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}

    

    .card-hover:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 18px rgba(0,0,0,0.15);
        transition: all .2s ease-in-out;
    }



.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.gallery .img-container {
    width: clamp(130px, 40vw, 250px);
    height: clamp(100px, 30vw, 200px);
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    overflow: hidden;
}

.gallery .img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* ok con canvas server-side */
    cursor: pointer;
    transition: transform 0.2s ease;
}

.gallery .img-container img:hover {
    transform: scale(1.05);
}

.race-description {
    white-space: pre-line;
}

/* ---------- Styles per pagine Identity ---------- */

/* ==============================
   Identity pages
   ============================== */

/* Layout Identity */
.identity-page {
    margin: 3rem auto;
    padding: 0 1rem;
}

/* Card Login / Register */
.identity-card {
    max-width: 480px;
    margin: 0 auto;
    padding: 2rem;
    background: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

    /* Fix Bootstrap grid per Login / Register Identity */
    .identity-card .row {
        justify-content: center;
    }

    .identity-card .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }


