:root {
    --bg-back: brown;
    --bg-light: ivory;
    --bg-standard: beige;
    --bg-dark: bisque;
}

* {
    font-size: large;
    font-family: sans-serif;
}

body {
    margin: 0;
/* do I need this at all ??

    margin: 0;
    padding: 0;
    height: 100dvh;
    overflow: scroll;
    background-color: beige; /* if article is smaller */
    background-color: var(--bg-standard);
 */
    
}

#log {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 0;

    overflow: scroll;
    background-color: beige; /* if article is smaller */
    background-color: var(--bg-standard);
}
#navigation {
    background-color: antiquewhite;
    position: fixed;
    top: 0;
    bottom: 0;
    left: -100dvw;
    width: 100dvw;
    z-index: 10;
    overflow: scroll;
}
#navigation.show {
    left: 0;
}
#navigation a {
    display: block;
    background-color: aliceblue;
    padding: 20px;
    margin: 5px;
    font-size: x-large;
}

.headerbar {
    --gap: 10px;
    position: sticky;
    top: 0;
    display: flex;
    gap: var(--gap);
    padding: var(--gap) var(--gap) 0 var(--gap);
    background-color: var(--bg-back);
}

.headerbar button {
    font-size: larger;
    color: white;
    font-weight: bolder;
    background-color: transparent;
    border: none;
}

/* What is following depends on #log */
.headerbar label {
    flex-basis: 100%;
    background-color: var(--bg-dark);
    text-align: center;
    vertical-align: middle;
    font-weight: bold;
    padding: 0.5lh 0; /* aligns vertically */
    border-radius: 15px 15px 0 0;
}

footer {
    position: fixed; /* why does sticky not work */
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1lh;
    background-color: var(--bg-back);
    display: flex;
    justify-content: space-between;
}

/* TAB coloring:  next refers to label style, exceptional if selected */
body:has(#radio-input:checked) label[for="radio-input"],
body:has(#radio-display:checked) label[for="radio-display"] {
    background-color: var(--bg-standard);
} /* DO: I could use a toned down color for inactive tabs, the same color as the following body for the active tab */

article {
    background-color: beige;
    background-color: var(--bg-standard);
    padding: 20px;
}

h1 {
    background-color: var(--bg-dark);
    padding: 10px;
}
summary {
    background-color: antiquewhite;
    background-color: var(--bg-light);
    padding: 5px;
}
details * {
    margin: 5px;
}
details div {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

input[type="number"] {
    width: 6ch;
}

input[type="radio"] {
    display: none; /* besser wäre es, auf den name abzustellen */
}

input[type="radio"]:not(:checked) + article {
    display: none;
}

.tempAlert {
    position:fixed;
    font-weight: bold;
    font-size: larger;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: white;
    text-align: center;
    line-height: 100dvh;
    opacity: .5;
}
