html {
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    font-family: Inter, Nunito, sans-serif;
    flex-direction: column;
    min-height: 100vh;
}

    body.bg-admin {
        background-color: #efefef;
    }

main {
    flex: 1 0 auto;
    min-height: 0;
}

.footer {
    flex-shrink: 0;
    position: initial !important;
}

.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;
}


.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.img-gym1 {
    background-image: url('/images/gym/g1.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position-x: 50%;
    background-position-y: 50%;
    opacity: 0.7;
}

.custom-accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1); /* jasna strzałka */
}

.custom-accordion-button:focus {
    box-shadow: none;
    outline: none;
}

.video-container {
    position: relative;
    width: 100%;
    padding-top: 42.12%; /* 16:9 = 9/16 = 0.5625 */
    overflow: hidden;
}

    .video-container video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

.video-fullscreen {
    width: 100%;
    height: 100vh;
    object-fit: fill; /* wypełnij, przytnij nadmiar */
}

.card-grey {
    background-repeat: no-repeat;
    background-size: 100% 1000%;
    background-image: url('../images/bg-card-grey.jpg');
}

.card-green {
    background-repeat: no-repeat;
    background-size: 100% 1000%;
    background-image: url('../images/bg-card-green.jpg');
}

.card-yellow {
    background-repeat: no-repeat;
    background-size: 100% 1000%;
    background-image: url('../images/bg-card-yellow.jpg');
}

/* Klasy dla różnych wycinków (dodaj jedną z nich do każdej karty) */
.bg-crop-0 {
    background-position: 50% 0%;
}

.bg-crop-1 {
    background-position: 50% calc(100% / 9 * 1);
}

.bg-crop-2 {
    background-position: 50% calc(100% / 9 * 2);
}

.bg-crop-3 {
    background-position: 50% calc(100% / 9 * 3);
}

.bg-crop-4 {
    background-position: 50% calc(100% / 9 * 4);
}

.bg-crop-5 {
    background-position: 50% calc(100% / 9 * 5);
}

.bg-crop-6 {
    background-position: 50% calc(100% / 9 * 6);
}

.bg-crop-7 {
    background-position: 50% calc(100% / 9 * 7);
}

.bg-crop-8 {
    background-position: 50% calc(100% / 9 * 8);
}

.bg-crop-9 {
    background-position: 50% calc(100% / 9 * 9);
}

.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.text-pre-line {
    white-space: pre-line;
}

.card-hover {
    transition: transform 0.3s ease; /* Płynne przejście efektu */
}

    .card-hover:hover {
        transform: scale(1.05); /* Powiększenie o 5% */
    }

.card-hover-big {
    transition: transform 0.3s ease; /* Płynne przejście efektu */
    z-index: 0;
}

    .card-hover-big:hover {
        transform: scale(1.25); /* Powiększenie o 25% */
        z-index: 1;
    }

.shadow-inset {
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.6); /* Cień wewnętrzny: offset-x, offset-y, blur, kolor */
}
