@media screen and (min-width: 577px) {
    .only-sm {
        display: none;
    }
}

a.nostyle:link,
a.nostyle:visited {
    text-decoration: inherit;
    color: inherit;
    cursor: auto;
}

.from_waitlist {
    background: repeating-linear-gradient(-45deg, #eeeeee, #eeeeee 10px, transparent 10px, transparent 20px);
}




@media only screen and (max-width: 576px) {
    thead th {
        display: none;
        font-weight: 400;
        color: grey !important;
        border-left-width: 0px !important;
        border-right-width: 0px !important;
    }

    .crewpics {
        margin-top: 8px;
    }

    thead {
        display: none;
    }

    td,
    th {
        display: block;
        border-left-width: 1px !important;
        border-right-width: 1px !important;
        border-bottom-width: 0px !important;
        border-top-width: 0px !important;
        padding-bottom: 0.1rem !important;
        padding-top: 0.1rem !important;
    }

    td:first-child {
        border-top-width: 1px !important;
        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
    }

    td:last-child {
        border-bottom-width: 1px !important;
        border-bottom-left-radius: 10px;
        border-bottom-right-radius: 10px;
        /*padding-bottom: 0.8rem!important;*/
        padding-top: 0.1rem !important;
    }

    td:last-child::after {
        content: "";
        display: block;
        clear: both;
        padding-bottom: 3px;
    }

    .tablemargin {
        border-collapse: separate;
        border-spacing: 0 1em;
    }

    td[data-th]:before {
        content: attr(data-th);
        margin-right: 1em;
        font-size: .875em;
        color: rgba(108, 117, 125);
        margin-right: .5rem;
    }

    #tripSummary th {
        font-size: .875em;
        font-weight: 400;
        padding-left: 8px !important;
        color: rgba(108, 117, 125);
    }

    #tripSummary td:last-child {
        border-bottom-left-radius: 0px;
        border-bottom-right-radius: 0px;
        border-bottom-width: 0px !important;
    }
}

#tripSummary th {
    padding-left: 16px;
}

form.inline {
    display: inline;
}

.blink {
    animation-name: example;
    animation-duration: 2s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

@keyframes example {
    0% {
        opacity: 100%;
    }

    20% {
        opacity: 0%;
    }

    40% {
        opacity: 100%;
    }

    100% {
        opacity: 100%;
    }
}

/* Add styling to your banner */
.fixed-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgb(233, 236, 239);
    /* Customize the background color */
    color: #000;
    /* Customize the text color */
    padding: 10px;
    /* Add padding to your banner */
    text-align: center;
    box-shadow: 0px 0px 10px grey;
    z-index: 1000;
}

.new-banner {
    position:fixed;
    bottom: 70px;
    z-index: 10000;
    width: auto;
    padding: 10px;
    text-align: center;
    border-radius: 6px;
    box-shadow: 0 0 4px #f8f9fa, 0 0 6px white, 0 0 6px white, 0 0 6px white, 0 0 6px white, 0 0 6px white, 0 0 6px white, 0 0 6px white, 0 0 6px white, 0 0 6px white;
    left: 50%;              /* center anchor */
    transform: translateX(-50%);  /* true centering */
}

.fixed-banner.minimal {
    background-color: white;
    width: auto;
    left: auto;
    right: 0;
    border-top-left-radius: 8px;
}

.fixed-banner.minimal.left {
    background-color: white;
    width: auto;
    left: 0;
    right: auto;
    border-top-right-radius: 8px;
    border-top-left-radius: 0px;
}

.btn-group-xs>.btn,
.btn-xs {
    padding: .25rem .4rem;
    font-size: .875rem;
    line-height: .5;
    border-radius: .2rem;
}

img.zoom:hover {
    transform: scale(2);
    transition: all 0.2s ease;
}


.trip {
    margin: 2px 0;
    padding: 2px 4px;
    border: 1px solid #ddd;
    border-left: 5px solid grey;
    border-radius: 4px;
    background-color: #f8f9fa;
    height: 68px;
    max-height: 68px;
    overflow: hidden;
    position: relative;
}

.trip .highlight {
    color: grey;
}

.logbook_banner {
    margin: -2px 0px 4px 0px;
    padding: 2px 4px;
    font-size: small;
    font-weight: bold;
    text-align: center;
    border-radius: 4px;
    z-index: 0;
}

.trip.past {
    opacity: 0.5;
}

.trip.Freies_Segeln {
    border-left: 5px solid #1d2cff;
}

.trip.Freies_Segeln .highlight {
    color: #1d2cff;
}

.trip.S_o_clock {
    border-left: 5px solid #42ab00;
}

.trip.S_o_clock .highlight {
    color: #42ab00;
}

.trip.Regatta {
    border-left: 5px solid #ca1800;
}

.trip.Regatta .highlight {
    color: #ca1800;
}

.trip.event {
    border-left: 5px solid #eab300;
}

.trip.event .highlight {
    color: #eab300;
}

.trip.mytrip {
    box-shadow: 0 0rem 1rem green !important;
    border: 3px solid green!important;
    background-color: rgb(230, 247, 230);
    z-index: 2;
}

.trip.mytrip:has(.btn-outline-secondary) {
    border-width: 1px!important;         /* shrink width only */
    border-style: solid!important;
    border-color: #ddd!important;        /* base border */
    border-left: 3px dotted green!important;    /* keep left border size */
    background-image: linear-gradient(130deg, rgb(230, 247, 230) 16.67%, #fcfcfc 16.67%, #fcfcfc 50%, rgb(230, 247, 230) 50%, rgb(230, 247, 230) 66.67%, #fcfcfc 66.67%, #fcfcfc 100%);
    background-size: 39.16px 46.67px;
}

.boat_labels {
    position: sticky;
    top: 80px;
    z-index: 10;
    text-align: center;
    font-weight: bold;
    margin: 0;
    z-index: 101;
}

.boat_labels div {
    padding-top: 10px;
    padding-bottom: 10px;
    background-color: #ddd;
}

@media (max-width: 768px) {
    .boat_labels {
        display: none;
    }

    .trip {
        height: inherit;
        max-height: inherit;
    }

    .hide_small_screen {
        display: none;
    }
}

@media (min-width: 768px) {
    .boat_name {
        display: none;
    }

    .hide_big_screen {
        display: none;
    }
}

.crewpics_container {
    display: inline-flex;
    align-items: center;
    height: 32px;
    min-width: 32px;
    /* optional but helps reserve space */
    max-height: 32px;
    /* optional but helps reserve space */
    overflow-x: visible;
    /* enable horizontal scrolling */
    overflow-y: visible;
    /* 👈 key */
}

.crewpics_container img:hover {
    z-index: 1000;
}

.signup_button_span {
    position: absolute;
    bottom: 4px;
    right: 4px;
    z-index: 50;
}

.signup_button_span>.btn-sm:not(.btn-primary):not(.btn-secondary) {
    text-shadow: 0 0 4px #f8f9fa, 0 0 4px #f8f9fa, 0 0 4px #f8f9fa, 0 0 4px #f8f9fa, 0 0 4px #f8f9fa, 0 0 4px #f8f9fa, 0 0 4px #f8f9fa, 0 0 4px #f8f9fa, 0 0 4px #f8f9fa, 0 0 4px #f8f9fa;
}

.signup_button_span>.btn:is(.btn-primary, .btn-secondary) {
    box-shadow: 0 0 4px #f8f9fa, 0 0 4px #f8f9fa, 0 0 4px #f8f9fa, 0 0 4px #f8f9fa, 0 0 4px #f8f9fa, 0 0 4px #f8f9fa, 0 0 4px #f8f9fa, 0 0 4px #f8f9fa, 0 0 4px #f8f9fa, 0 0 4px #f8f9fa;
}

.date-separator {
    font-weight: bold;
    font-size: 1.2rem;
    margin: 1.5rem 0 0.5rem 0;
    border-bottom: 1px solid #ddd;
    padding-bottom: 0.25rem;
}

.month-separator {
    margin: 1.5rem 0 0.5rem 0;
    border-bottom: 3px solid #ddd;
    padding-bottom: 0.25rem;
}

.month-separator-bg {
    background-color: white;
    z-index: 10;
}

.top-fixed-buttons {
    position: fixed;
    /* fixed position relative to viewport */
    bottom: 0;
    /* stick to bottom */
    left: 50%;
    /* center horizontally */
    transform: translateX(-50%);
    /* center alignment */
    z-index: 200;
    /* on top of other elements */
    /*display: flex;*/
    justify-content: center;
    /* center buttons inside container */
    gap: 0.5rem;
    /* spacing between buttons */
}

.top-fixed-buttons>* {
    box-shadow: 0 0 6px white, 0 0 6px white, 0 0 6px white, 0 0 6px white, 0 0 6px white, 0 0 6px white, 0 0 6px white, 0 0 6px white, 0 0 6px white, 0 0 6px white;
}

.fill-white {
    background-color: white;
}

body.only-mine .trip:not(.mytrip) {
    display: none;
}