body {
    min-height: 100vh;
    --h2r-primary: #FF455D;
    --h2r-bg-light: #ffd1d7;
    --h2r-bg-light-transparent: rgba(255, 209, 215, 0.8);
    --h2r-menu-width: 48px;
}
.hidden {
    display: none !important;
}
#root {
    display: flex;
    flex-direction: row;
    justify-content: center;
    background-size: cover;
    background-position: center center;
    height: 100vh;
}
#navbar {
    background-color: var(--h2r-bg-light);
}
h1, h2, h3, h4, h5 {
    color: var(--h2r-primary);
}
h1:not(:first-child), h2:not(:first-child), h3:not(:first-child), h4:not(:first-child), h5:not(:first-child) {
    margin-top: 1em;
}
#navbar ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    padding: 0;
    width: var(--h2r-menu-width);
    height: 100%;
    transition: width 200ms ease;
    overflow: hidden;
}
#navbar li {
    height: var(--h2r-menu-width);
    flex-shrink: 1;
    overflow: hidden;
}
#navbar li.active {
    background-color: white;
}
#navbar li .icon {
    width: var(--h2r-menu-width);
    padding: 5px;
    display: inline-block;
}
#navbar li .text {
    display: none;
    padding: 5px;
    padding-right: 1em;
    text-decoration: underline;
}
#navbar li a {
    display: flex;
    color: initial;
    text-decoration: none;
    align-items: center;
    height: 100%;
}
#navbar li.margin {
    flex-grow: 1;
}
#navbar li.logo {
    height: calc(2 * var(--h2r-menu-width));
    text-align: center;
}
#navbar li.logo img {
    height: 100%;
    width: var(--h2r-menu-width);
    padding: 5px;
}
#login {
    display: flex;
    align-items: center;
}
#login > form {
    background: var(--h2r-bg-light-transparent);
    height: auto;
    display: inline-flex;
    flex-direction: column;
    padding: 1em;
    border-radius: 5px;
}
#login > form .logo {
    height: 164px;
    width: 164px;
    align-self: center;
    margin-bottom: 2em;
}
#login > form > * {
    display: inline-block;
    flex-shrink: 1;
    margin: 0.5em 1em;
}
#login > form > input {
    border: 1px solid black;
}

#login > form > .submit {
    background-color: var(--h2r-primary);
}
.error {
    color: var(--h2r-primary);
    background: white;
    padding: 5px;
    border-radius: 5px;
    font-weight: bold;
}
#page {
    flex: 1;
    margin: 0 calc(var(--h2r-menu-width) / 2);
    margin-top: calc(var(--h2r-menu-width) / 2);
    height: 100vh;
    overflow-x: visible;
    overflow-y: auto;
    padding-bottom: 2rem;
}
#page.gdrive,
#page.calendar,
#page.trombi,
#page.program,
#page.concerts,
#page.availabilities {
    display: flex;
    flex-direction: column;
}
#page.gdrive > iframe,
#page.calendar > iframe,
#page.trombi > iframe,
#page.program > iframe,
#page.availabilities > iframe {
    flex: 1;
    width: 100%;
}
#page.availabilities > h1 > .bi::before {
    font-size: 0.6em;
}
#page.contact ul {
    list-style-type: none;
    padding: 0;
}
#page.contact .role {
    padding: 0 1em;
}
#page.contact .name {
    border-bottom: 1px solid var(--h2r-primary);
}
.bi::before {
    color: var(--h2r-primary);
}
#page.contact .bi.icon::before {
    padding: 0 1em;
}
#page.contact .em.icon {
    color: var(--h2r-primary);
    padding: 0 1em;
}
#page.contact .PU-members {
    padding: 0 1em; 
}
#page.concerts {
    margin: 0;
}
#page.concerts .filterbar {
    display: flex;
    align-items: center;
    justify-content: start;
    margin: 0.5em;
}
#page.concerts > h1 {
    margin: 0 calc(var(--h2r-menu-width) / 2);
    margin-top: calc(var(--h2r-menu-width) / 2);
}
#page.concerts .filterbar > div {
    display: flex;
}
#page.concerts .filterbar > div > a {
    margin-left: 1em;
    text-decoration: none;
}
#page.concerts .filterbar .input-group a {
    text-decoration: none;
}
#page.concerts section .concert-title {
    width: 100%;
}
#page.concerts .cover .concert-title {
    height: 25em;
    min-height: 50vh;
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    justify-content: end;
    background-size: cover;
    background-position: center center;
}
#page.concerts section .concert {
    display: flex;
    align-items: center;
}
#page.concerts section .concert > * {
    margin: 1em;
}
#page.concerts .nocover .concert {
    min-height: 25vh;
}
#page.concerts .cover .concert {
    min-height: 50vh;
}
#page.concerts section .concert .recording {
    min-width: 75%;
}
#page.concerts section .concert .recording > ul > li:not(:first-child) {
    margin-top: 0.75em;
}
#page.concerts .recording li .links > a::before {
    padding: 0 0.2em;
}
#page.concerts .recording li .links > a:not(:first-child) {
    margin-left: 1em;
}
#page.concerts .concert-title .concert {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
#page.concerts .concert-title .title-container {
    display: flex;
    flex: 0;
    padding: 0 calc(var(--h2r-menu-width) / 2);
    align-items: end;
    width: 100%;
    background: var(--h2r-bg-light-transparent);
    border-bottom: 1px solid var(--h2r-primary);
}
#page.concerts .nocover .concert-title .title-container {
    background: var(--h2r-bg-light);
}
#page.concerts .concert-title h3 {
    margin: 0;
    flex: 1;
}
#page.concerts .name {
    font-style: italic;
}
#page.concerts .name,
#page.concerts .composer > span,
#page.concerts .arranger > span {
    border-bottom: 1px solid var(--h2r-primary);
}
#page.concerts .osm-wrapper {
    display: inline-block;
    flex: 1;
    min-height: 25vh;
    min-width: 200px;
}
#page.concerts .osm {
    width: 100%;
    height: 100%;
    min-height: 25vh;
}
#page.concerts .osm-locations {
    width: 100%;
    height: 50vh;
}
#page.concerts .osm-locations h5 {
    font-size: 1rem;
    font-weight: bold;
}
#page.concerts .osm-locations .leaflet-marker-icon.filtered {
    filter: saturate(0.4);
}
#page.concerts .osm-locations .leaflet-popup-content {
    user-select: none;
}
#page.concerts .concert .recording ul ::marker {
    color: var(--h2r-primary);
}
@media screen and (max-width: 900px) {
    #login {
        flex: 1;
    }
    #login > form {
        flex: 1;
        height: 100vh;
        border-radius: 0;
        justify-content: center;
        align-items: center;
    }
    #login > form > * {
        width: 240px;
    }
    #root {
        flex-direction: column;
        height: initial;
    }
    #navbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: var(--h2r-menu-width);
        margin: 0;
        z-index: 2000;
        border-bottom: 1px solid var(--h2r-primary);
    }
    #navbar li {
        display: none;
    }
    #navbar li.logo {
        display: inline-block;
        text-align: start;
    }
    body.menu-visible #navbar {
        height: 100%;
    }
    body.menu-visible #navbar li {
        display: list-item;
        text-align: center;
    }
    #navbar ul {
        width: 100%;
    }
    #navbar li .text {
        display: inline;
    }
    #navbar li.logo img {
        height: 100%;
        width: auto;
        padding: 10px;
    }
    #page {
        margin-top: var(--h2r-menu-width)!important;
        height: initial;
        min-height: 100vh;
    }
    #page.concerts .concert-title .title-container {
        flex-direction: column;
        align-items: start;
    }
    #page.concerts section .concert {
        flex-direction: column;
    }
    #page.concerts section .concert > * {
        margin-bottom: 0;
    }
    #page.concerts section .concert .osm-wrapper {
        width: 100%;
        margin: 0;
        padding: 1em;
    }
    #page.concerts section .concert .osm {
        display: inline-block;
        min-height: 50vh;
    }
    #page.concerts .filterbar {
        display: block;
        justify-content: center;
    }
    #page.concerts .filterbar input {
        flex: 1;
    }
}
@media screen and (min-width: 900px) {
    #navbar:hover ul {
        width: calc-size(max-content, size);
    }
    #navbar:hover li .text {
        display: inline;
        transition-delay: 200ms;
    }
    #navbar:hover li.logo img {
        height: 100%;
        width: 100%;
        padding: 10px;
    }
    #page.concerts .filterbar {
        margin-left: calc(var(--h2r-menu-width) / 2);
    }
    #page.concerts .filterbar .input-group {
        width: initial;
    }
}
