@import url('global.css');
/* NICHT GENUTZTE ENTFERNEN!!!!!!! */

:root {
    --app-bar-height: 48px;
}

:root:not(.darkMode) {
    --bg-color: white;
    --txt-color: black;
}
  
:root.darkMode {
    --bg-color: #3a3a3a;
    --txt-color: white;
}

@media (min-height: 500px) {
    :root {
        --app-bar-height: 60px;
    }
}

html, body {
    height: 100%;
    margin: 0;
    overscroll-behavior: none;
}

.app-bar {
    height: var(--app-bar-height);
    min-height: var(--app-bar-height);
    background-color: var(--bg-color);
    transition: background-color 200ms;
    width: 100%;
    /* max-width: 800px; */
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid #2a2a2a;
    box-sizing: border-box;
}

:root.darkMode .app-bar {
    color: white;
    border-bottom-color: #7a7a7a;
}

.app-bar .middle-element {
    flex-grow: 1;
    display: flex;
    justify-content: flex-start;
}

.app-bar .title {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Fredoka', sans-serif;
    font-weight: 500;
    font-size: 24px;
    color: #2a2a2a;
}

@media (min-height: 500px) {
    .app-bar .title {
        font-size: 28px;
    }
}

:root.darkMode .app-bar .title {
    color: white;
}

.app-bar button, nav .buttons button {
    background-repeat: no-repeat;
    background-position: center;
    background-origin: content-box;
    background-size: contain;
    border: 0;
    background-color: transparent;
    height: 24px;
    width: 24px;
    padding: 0;
    cursor: pointer;
}

.app-bar button.close {
    /* default */
    background-image: url(/icons/back.svg);
}
.app-bar button.close {
    width: var(--app-bar-height);
    height: 32px;
}
.app-bar button.close.arrow {
    background-image: url(/icons/back.svg);
}
.app-bar button.close.house {
    background-image: url(/icons/home.svg);
}
.app-bar button.close.hamburger {
    background-image: url(/icons/menu.svg);
}
.app-bar button.close.cross {
    background-image: url(/icons/close2.svg);
}

.app-bar button:not(.close) {
    margin-right: calc((var(--app-bar-height) - 24px) / 2);
}

:root.darkMode .app-bar button {
    filter: invert(1);
}

/* Achtung, das ist `nav .title` und `.app-bar .title`! */
.title a {
    color: var(--txt-color);
    text-decoration: none;
}

.account-chip {
    border: 2px solid #943cd5;
    border-radius: 8px;
    height: 65%;
    padding: 6px 7px 6px 9px;
    margin-right: 6px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.1s ease-out;
    cursor: pointer;
}

.account-chip:hover {
    background-color: #ebd0ff;
}

.app-bar .account-chip button {
    margin-right: 0;
}