.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;
}

:root {
    --background-color: #ffffff;
    --text-accent-color: hsl(115, 0%, 13%);
    --nav-hover-color: #ffffff;
    --nav-text-color: #000000;
    --nav-accent-color: #fcfcfcfd;
    --horse-box-color: hsl(80, 81%, 64%);
    --primary-color: hsl(50,100%,70%);
    --secondary-color: hsl(50,100%,90%);
    --primary-element-color: hsl(50,100%,80%);
    --secondary-element-color: hsl(50,100%,95%);
    --caution-color: hsl(20, 85%, 60%);
    --warning-color: hsl(20, 66%, 62%); /*20, 100%, 64%*/
    --logotype-color: hsl(213, 27%, 32%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, .modal {
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

    .modal,
    .modal .modal-body,
    .modal .modal-content {
        font-weight: normal !important;
    }

body {
    min-height: 100vh;
    min-height: 100dvh;
    background-color: var(--background-color);
}

main {
    padding: min(5em, 7%);
}

    main p {
        margin-top: .35em;
    }


a {
    text-decoration: none !important;
    cursor: pointer !important;
    color: Black !important;
}

#open-sidebar-button {
    display: none;
    background: none;
    border: none;
    padding: 1em;
    margin-left: auto;
    cursor: pointer;
}

#close-sidebar-button {
    display: none;
    background: none;
    border: none;
    padding: 1em;
    cursor: pointer;
}

#overlay {
    background: rgba(0,0,0,0.5);
    position: fixed;
    inset: 0;
    z-index: 9;
    display: none;
}


input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #ddd;
    outline: none;
    margin: 0 10px;
    transition: background 0.3s;
}

    input[type=range]::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background: white;
        border: 2px solid #aaa;
        cursor: pointer;
        box-shadow: 0 0 2px rgba(0,0,0,0.5);
    }

    input[type=range]::-moz-range-thumb {
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background: white;
        border: 2px solid #aaa;
        cursor: pointer;
        box-shadow: 0 0 2px rgba(0,0,0,0.5);
    }

.slider.red {
    background: linear-gradient(to right, rgba(255, 0, 0, 0), rgb(255, 0, 0));
}

.slider.green {
    background: linear-gradient(to right, rgba(0, 255, 0, 0), rgb(0, 255, 0));
}

.slider.blue {
    background: linear-gradient(to right, rgba(0, 0, 255, 0), rgb(0, 0, 255));
}

.horse-box {
    text-decoration: none;
    height: 240px;
    color: Black;
    max-width: 200px;
    position: relative;
}

    .horse-box:hover {
        color: inherit;
        text-decoration: none;
    }

.slider-group {
    margin-bottom: 10px;
    touch-action: none;
}

#stable-container {
    gap: 30px;
    display: grid;
    padding: 5em;
    justify-self: center !important;
}

.content-container {
    max-width: 60%;
    margin-left: auto;
    margin-right: auto;
}

.corner-shadow {
    padding: 20px;
    border-radius: 20px;
    background: #fcfff0;
    text-align: center;
    box-shadow: rgb(38, 57, 77) 2px 12px 12px -10px;
    overflow-wrap: break-word;
}


.image-text-container {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
    text-align: left;
}

    .image-text-container img {
        max-width: min(20%, 60px);
        height: auto;
        flex-shrink: 1;
        margin-left: 5px;
    }

    .image-text-container p {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
        white-space: nowrap;
    }

.owner-image-cover {
    margin-left: -10px !important;
    margin-right: -5px !important;
    z-index: 2 !important;
    width: clamp(30px, 1.1vw, 40px);
}

    .owner-image-cover img {
        margin-left: 10px !important;
        margin-right: 5px !important;
        width: clamp(20px, 1vw, 35px);
        aspect-ratio: 1/1;
    }

.horse-image-cover {
    margin-left: -10px !important;
    margin-right: -5px !important;
    z-index: 2 !important;
    width: clamp(35px, 3.1vw, 45px);
}

    .horse-image-cover img {
        margin-left: 5px !important;
        margin-right: 5px !important;
        width: clamp(30px, 3vw, 40px);
        aspect-ratio: 1/1;
    }

@media screen and (max-width: 1268px) {
    #stable-container {
        grid-template-columns: 1fr !important;
        padding: 1em !important;
        margin-top: 40px;
    }

    .corner-shadow {
        grid-row: auto !important;
        grid-column: auto !important;
    }

    .content-container {
        max-width: 100% !important;
        margin: 0 !important;
    }
}

@media screen and (max-width: 768px) {


    #open-sidebar-button, #close-sidebar-button {
        display: block;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: min(15em, 100%);
        z-index: 10;
        border-left: 1px solid var(--nav-hover-color);
        transition: right 300ms ease-out;
    }

        nav.show {
            right: 0;
        }

            nav.show ~ #overlay {
                display: block;
            }

        nav ul {
            width: 100%;
            flex-direction: column;
        }

        nav a {
            width: 100%;
            padding-left: 2.5em;
        }

            nav a.active-link {
                border-bottom: none;
            }

        nav .home-li {
            margin-right: unset;
        }
}

nav {
    background-color: var(--background-color);
}

    nav ul {
        list-style: none;
        display: flex;
    }

    nav li {
        display: flex;
    }

    nav .home-li {
        margin-right: auto;
    }

    nav a {
        display: flex;
        text-decoration: none;
        color: var(--nav-text-color);
        padding: 1em 2em;
        transition: background-color 150ms ease;
    }

        nav a:hover {
            background-color: var(--nav-hover-color);
        }

        nav a.active-link {
            border-bottom: 2px solid var(--nav-text-color);
        }

        nav a.accent-link {
            background-color: var(--nav-accent-color);
        }

.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    z-index: 1000;
    min-width: 150px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    list-style: none;
    padding: 0;
    margin: 0;
}

    .dropdown-menu li {
        padding: 0;
        color: #fff;
    }

    .dropdown-menu a {
        display: block;
        padding: 10px 15px;
        color: #000000;
        text-decoration: none;
    }

        .dropdown-menu a:hover {
            background-color: #f8f9fa;
            color: #000;
        }

.dropdown:hover .dropdown-menu {
    display: block;
}

.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
}

    .switch input {
        display: none;
    }


.column {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.vertical-top-space {
    margin-top: 20px;
}

.box-center {
    margin: 0 auto;
    width: 100%;
}

.container-center {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    padding: 0 8px;
    margin-top: 8px;
}

.bold {
    font-weight: 500;
}

.big-font {
    font-size: clamp(1.4rem, calc(2vw + 1rem), 2.5rem) !important;
    letter-spacing: 4px;
}

.medium-font {
    font-size: clamp(1.2rem, calc(1.5vw + 1rem), 2rem) !important;
    letter-spacing: 3px;
}

.small-font {
    font-size: clamp(1.1rem, calc(1vw + 1rem), 1rem) !important;
    letter-spacing: 2px;
}

.extra-small-font {
    font-size: clamp(0.9rem, calc(0.5vw + 0.7rem), 0.7rem) !important;
    letter-spacing: 2px;
}

.box-color {
    background: var(--horse-box-color);
}

.primary-color {
    background: var(--primary-color);
}

.secondary-color {
    background: var(--secondary-color);
    background-color: var(--secondary-color);
}

.primary-element-color {
    background: var(--primary-element-color);
}

.secondary-element-color {
    background: var(--secondary-element-color);
}

.text-accent-color {
    color: var(--text-accent-color);
}

.caution-color {
    background: var(--caution-color);
}

.warning-color {
    background: var(--warning-color);
}

.logotype-color {
    background: var(--logotype-color);
}

.no-selecting {
    user-select: none;
}

.no-cursor {
    cursor: auto !important;
}

.hidden-footer {
    display: none;
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    background-color: #ffffffaa;
    width: 100%;
    padding: 10px;
    text-align: center;
    z-index: 1000;
}

.popup-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    font-size: 1rem;
    letter-spacing: 2px;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}


.popup-content {
    background-color: white;
    padding: 20px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}


.button-confirm {
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    margin: 5px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    letter-spacing: 2px;
    border-radius: 5px;
}

.button-cancel {
    background-color: hsl(20, 85%, 60%);
    color: white;
    padding: 10px 20px;
    margin: 5px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    letter-spacing: 2px;
    border-radius: 5px;
}

.button-confirm:hover {
    background-color: #218838;
}

.button-cancel:hover {
    background-color: hsl(20, 85%, 50%);
}

.button-no-click-animation {
    outline: none !important;
    box-shadow: none !important;
}

input[type="submit"] {
    color: black !important;
}

.scroll-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.scroll-text {
    display: inline-block;
    white-space: nowrap !important;
    text-align: left;
}

    .scroll-text.scrolling {
        animation: scroll 7s linear infinite;
    } 
 
.wrap-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.wrap-text {
    white-space: normal !important;
    word-break: break-word;
    overflow-wrap: break-word;
    text-align: center;
    display: block;
    width: 100%;
    margin-right: 30px;
}

@keyframes scroll {
    0% {
        transform: translateX(50%);
    }

    80% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(50%);
    }
}


.pulse_contrast {
    animation: pulse_contrast 2s infinite;
}

@keyframes pulse_contrast {
    0% {
        -moz-box-shadow: 0 0 0 0 hsl(80, 81%, 64%);
        box-shadow: 0 0 0 0 hsl(80, 81%, 64%);
    }

    70% {
        -moz-box-shadow: 0 0 0 18px #00000010;
        box-shadow: 0 0 0 10px #00000010;
    }

    100% {
        -moz-box-shadow: 0 0 0 0 #00000000;
        box-shadow: 0 0 0 0 #00000000;
    }
}

.pulse_no_contrast {
    animation: pulse_no_contrast 2s infinite;
}

@keyframes pulse_no_contrast {
    0% {
        -moz-box-shadow: 0 0 0 0 hsl(20, 85%, 60%);
        box-shadow: 0 0 0 0 hsl(20, 85%, 60%);
    }

    70% {
        -moz-box-shadow: 0 0 0 18px #00000010;
        box-shadow: 0 0 0 10px #00000010;
    }

    100% {
        -moz-box-shadow: 0 0 0 0 #00000000;
        box-shadow: 0 0 0 0 #00000000;
    }
}

.collapsible {
    overflow: hidden;
    transition: max-height 0.5s ease;
    max-height: 0;
}

    .collapsible.expanded {
        max-height: 1000px;
    }

.rotated {
    transform: rotate(90deg);
    transition: transform 0.3s ease;
}

.notification-badge {
    position: absolute;
    top: 15%;
    right: -1%;
    background-color: red;
    width: 1.8em;
    height: 1.8em;
    color: white;
    padding: 0.1em 0.3em 0em 0.3em;
    border-radius: 100%;
    font-weight: bold;
    text-align: center;
    font-size: clamp(1.1rem, calc(1vw + 1rem), 1rem) !important;
}

.notification-container{
    position: relative;
} 

/*TIMETABLE / CALENDAR*/
 
.fc-header-toolbar {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
 
@media (max-width: 768px) {
    .fc-header-toolbar {
        flex-direction: column;
        align-items: flex-start; 
    }

        .fc-header-toolbar > * {
            margin: 5px 0;  
        }
} 