@import url('https://adobe-fonts.github.io/source-code-pro/source-code-pro.css');

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    background: #f4f4f4;
}

header {
    background: #dad6d6;
    color: #000;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo {
    display: flex;
    align-items: flex-end;
    flex-direction: row;
    justify-content: center;
}

.logo img {
    max-height: 60px;
    margin: 0;
}

.logo h2 {
    margin: auto 0 0 0;
    line-height: 1;
}

section {
    margin: auto;
    flex-grow: 1;
    max-width: 800px;
    padding: 8px;
}

nav {
    background: #070371a4;
    width: 100%;
}

.menu {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    list-style: none;
    gap: 15px;
    padding: 0;
    margin: 0;
    position: relative;
}

.menu a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

.menu a.active {
    color: #dfcdff;
    text-decoration: underline;
}

.menu-toggle {
    display: none;
    background: #070371a4;
    color: #fff;
    border: none;
    padding: 10px;
    font-size: 18px;
    cursor: pointer;
}

.menu li:last-child {
    position: absolute;
    top: 0;
    right: 20px;
}

@media (max-width: 768px) {
    .menu {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
    }
    .menu li {
        margin: 10px 0;
    }
    .menu li:last-child {
        position: relative;
        top: 0;
        right: 0;
    }
    .menu-toggle {
        display: block;
    }
    .menu.active {
        display: flex;
    }
}

login-indicator[data-state="logged-in"]::part(indicator) {
    border-left: 2px dotted #e6e6e6;
    border-right: 2px dotted #e6e6e6;
    padding-left: 2px;
    padding-right: 2px;
    background: transparent;
}

login-indicator[data-state="logged-out"]::part(indicator) {
    border-left: 2px dotted #fff;
    border-right: 2px dotted #fff;
    padding-left: 4px;
    padding-right: 4px;
    background: transparent;
}

login-indicator[data-state="logged-in"]::part(text) {
    color: #d6ff8a;
}

login-indicator[data-state="logged-in"]::part(icon) {
    background: #d6ff8a;
}

login-indicator[data-state="logged-out"]::part(icon) {
    background: #fff;
}

login-indicator[data-state="logged-out"]::part(text) {
    color: #fff;
}

footer {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    margin-top: 20px;
    padding: 10px 20px;
    background: #070371a4;
    color: #fff;
    font-family: sans-serif;
    text-align: center;
    min-height: 60px;
}

footer p {
    grid-column: 2;
    margin: 0;
}

footer a {
    color: #fff;
    text-decoration: none;
}

footer lang-switcher {
    grid-column: 3;
    justify-self: end;
}

footer lang-switcher::part(button) {
    color: #fff;
}

footer lang-switcher::part(dropdown-button) {
    background: #070371f0;
    color: #fff;
}

footer lang-switcher::part(dropdown-button):hover {
  background-color: #4945d1f0;
  cursor: pointer;
}

@media (max-width: 600px) {
    footer {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        min-height: 80px;
    }
    footer lang-switcher {
        margin-top: 10px;
    }
}

.aligner {
    display: flex;
    justify-content: center;
    align-content: center;
    height: 100%;
}

pre {
    margin: auto;
    display: block;
    white-space: pre;
    width: 300px;
    height: 300px;
    overflow: hidden;
    font-family: 'Source Code Pro', monospace;
    font-size: 1rem;
}


