/* https://htmx.org/examples/progress-bar/ */
.progress {
    height: 20px;
    margin-bottom: 20px;
    overflow: hidden;
    background-color: #f5f5f5;
    border-radius: 4px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.1);
}
.progress-bar {
    float: left;
    width: 0%;
    height: 100%;
    font-size: 12px;
    line-height: 20px;
    color: #fff;
    text-align: center;
    background-color: #337ab7;
    -webkit-box-shadow: inset 0 -1px 0 rgba(0,0,0,.15);
    box-shadow: inset 0 -1px 0 rgba(0,0,0,.15);
    -webkit-transition: width .6s ease;
    -o-transition: width .6s ease;
    transition: width .6s ease;
}

/* https://stackoverflow.com/questions/73688604/how-can-i-show-a-horizontal-scrollbar-at-the-top-of-the-table */
.scroll-top {
    overflow-x: scroll;
    overflow-y: auto;
    transform: rotateX(180deg);
}
.scroll-top table {
transform: rotateX(180deg);
}

/* https://stackoverflow.com/questions/21993661/css-auto-hide-elements-after-5-seconds/21994053#21994053 */
#autohide {
    -moz-animation: cssAnimation 0s ease-in 10s forwards;
    /* Firefox */
    -webkit-animation: cssAnimation 0s ease-in 10s forwards;
    /* Safari and Chrome */
    -o-animation: cssAnimation 0s ease-in 10s forwards;
    /* Opera */
    animation: cssAnimation 0s ease-in 10s forwards;
    -webkit-animation-fill-mode: forwards;
    animation-fill-mode: forwards;
}
@keyframes cssAnimation {
    to {
        width:0;
        height:0;
        overflow:hidden;
    }
}
@-webkit-keyframes cssAnimation {
    to {
        width:0;
        height:0;
        visibility:hidden;
    }
}

/* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input/range */
datalist {
  display: flex;
  justify-content: space-between;
}

option {
  padding: 0;
}

input[type="range"] {
  margin: 0;
}

/* https://stackoverflow.com/questions/37287153/how-to-get-images-in-bootstraps-card-to-be-the-same-height-width */
.card-img-middle {
    width: 100%;
    height: 20vh;
    object-fit: cover;  /* other option is to use 'contain' */
}

.card-img-top {
    width: 100%;
    height: 20vh;
    object-fit: cover;  /* other option is to use 'contain' */
}

.carousel .card-img {
    width: 100%;
    height: 85vh;
    object-fit: contain;  /* other option is to use 'contain' */
}

/* https://stackoverflow.com/questions/78304599/how-to-break-long-url-that-contains-hyphens-in-html-with-css */
a {
  color: rgba(var(--bs-link-color-rgb), var(--bs-link-opacity, 1));
  text-decoration: underline;
  word-break: break-all;
}

/* https://stackoverflow.com/questions/42922619/how-to-disable-horizontal-scrolling-in-html-pre-tag */
pre {
  white-space: pre-wrap;
}
