/*
 * Style sheet for some custom styles which cannot be achieved with Bootstrap.
 */

/*
 * Target all headings that have any element preceding them on the same level, this prevents unnecessary
 * margins for the first heading
 */
* + h1, * + h2, * + h3, * + h5, * + h6 {
    margin-top: 1.1em;
}

#user-menu[data-bs-popper] {
    left: unset;
    right: 0;
}

#page-content {
    margin-bottom: 60px;
}

.nav-pills {
    margin-bottom: 30px;
}

input.number-field {
    width: 5em;
}

.clearable-input-image {
    vertical-align: top;
}

.flatpage-content img {
    max-width: 100%;
}

th.border-left, td.border-left {
    border-left: 2px solid #DDDDDD;
}

th.border-right, td.border-right {
    border-right: 2px solid #DDDDDD;
}

/* See https://martinahonecker.com/youtube-videos-responsive-einbinden/ */
.video-container {
    position: relative;
    margin-bottom: 20px;
    height: 0;
    padding-bottom: 56.25%;
}

.video-container iframe, .video-container object, .video-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.image-column {
    width: 80px;
}

.name-column {
     min-width: 12em;
     max-width: 15em;
}

.team-image {
    width: 50px;
    max-height: 50px;
    object-fit: contain;
}

img#load-spinner {
    width: 1.7em;
}

#history-table td {
    padding-left: 2px;
    padding-right: 2px;
}

#history-table td a {
    /* Make the whole table cell clickable */
    display: block;
}

#history-table td a {
    text-decoration: none;
}

#check-list {
    padding-left: 20px;
}

.navbar-brand img {
    margin-right: 15px;
    height: 35px;
}

.navbar-brand {
    padding: 5px 15px;
}

.big-logo {
    padding: 5px 15px;
}

#supporter-column img {
    margin-top: 10px;
    margin-bottom: 25px;
}
