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;
}

input:focus, select:focus, button:focus {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

.nav-btn-side {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    width: 48px;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
    font-size: 2.5rem;
    color: #0d6efd;
    z-index: 2;
    transform: none;
}

    .nav-btn-side:focus,
    .nav-btn-side:hover {
        background: rgba(13,110,253,0.18);
        color: #0a58ca;
        box-shadow: 0 0 0 4px rgba(13,110,253,0.15);
    }

        .nav-btn-side:hover i,
        .nav-btn-side:focus i {
            transform: scale(1.15);
        }

.nav-btn-prev {
    left: 0;
    right: auto;
}

.nav-btn-next {
    right: 0;
    left: auto;
}

.card.position-relative {
    position: relative;
    max-width: 1100px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

    .card.position-relative .card-body {
        padding-left: 3.5rem;
        padding-right: 3.5rem;
    }

.media (max-width: 768px) {
    .nav-btn-side {
        width: 36px;
        height: 100%;
        font-size: 2rem;
    }

    .card.position-relative .card-body {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }
}

.equal-height-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.equal-height-card-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.text-secondary {
    color: #495057 !important;
}

.bg-primary a, .bg-success a, .bg-info a, .bg-warning a, .bg-danger a {
    color: #fff;
    text-decoration: underline;
    font-weight: 500;
}

.bg-light a, .bg-white a {
    color: #0d6efd;
    text-decoration: underline;
    font-weight: 500;
}

.high-contrast, .high-contrast * {
    background: #000 !important;
    color: #fff !important;
    border-color: #fff !important;
}

    .high-contrast a {
        color: #ff0 !important;
        text-decoration: underline !important;
    }

    .high-contrast .btn, .high-contrast button {
        background: #fff !important;
        color: #000 !important;
        border-color: #fff !important;
    }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

button, .btn, .form-control, .form-check-input {
    min-height: 44px;
    min-width: 44px;
}

    button:active, .btn:active, .nav-btn-side:active {
        background-color: #e2e6ea !important;
        box-shadow: 0 0 0 2px #0d6efd33;
    }

button, .btn, .nav-btn-side {
    transition: background 0.1s, box-shadow 0.1s, transform 0.1s;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

:root {
    --primary-color: #0d6efd;
    --secondary-color: #495057;
    --focus-outline: #0d6efd;
    --card-padding: 3.5rem;
}

input:focus, select:focus, button:focus {
    outline: 2px solid var(--focus-outline);
    outline-offset: 2px;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.card.position-relative .card-body {
    padding-left: var(--card-padding);
    padding-right: var(--card-padding);
}

.form-check-input {
    min-width: 1em;
    min-height: 1em;
}

.input-medium {
    min-width: 180px;
    max-width: 300px;
    width: 100%;
}

.input-wide {
    min-width: 220px;
    max-width: 520px;
    width: 100%;
}

.navbar.bg-dark {
    background-color: #212529 !important;
}

.footer.bg-dark {
    background-color: #212529 !important;
    color: #fff !important;
}

    .footer.bg-dark a {
        color: #fff !important;
        text-decoration: underline;
    }
