/*
    Subnodal Accounts

    Copyright (C) Subnodal Technologies. All Rights Reserved.

    https://subnodal.com
    Licenced by the Subnodal Open-Source Licence, which can be found at LICENCE.md.
*/

h1.logo, h2.logo, h3.logo {
    color: var(--foregroundSubtle);
    text-align: center;
    font-weight: 400;
}

body {
    background-color: var(--background);
}

html.embed, html.embed body {
    background-color: transparent;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5em;
    padding-left: 10vw;
    padding-right: 10vw;
    background-color: rgba(255, 255, 255, 0.9);
}

header + main {
    margin-top: 6.5rem;
}

.logo * {
    color: inherit;
}

.logo *:hover {
    text-decoration: none;
}

.card {
    display: block;
    width: 400px;
    max-width: 100%;
    margin: auto;
    padding: 10px;
    text-align: center;
    border-radius: 5px;
    background-color: var(--panel);
    color: var(--panelText);
}

.footer {
    padding-left: 10vw;
    padding-right: 10vw;
    overflow-x: auto;
}

.footer sui-icon {
    position: relative;
    top: -2px;
}

.authContent {
    min-height: 200px;
    max-height: 300px;
    margin-bottom: 10px;
    overflow: auto;
}

.authContent input:not([type="checkbox"]), .authContent select, .authContent label {
    display: block;
    width: calc(100% - 20px);
    margin: auto;
    margin-bottom: 10px;
}

.authContent .labelContainer {
    width: calc(100% - 20px);
    margin: auto;
    text-align: start;
}

.authContent .errorMessage {
    margin-left: 10px;
    margin-right: 10px;
    font-size: 1em;
    text-align: start;
}

.authButtons {
    display: flex;
    flex-direction: row-reverse;
    margin-left: 10px;
    margin-right: 10px;
    margin-bottom: 10px;
    text-align: end;
}

.callToAction {
    color: var(--foregroundSubtle);
}

.embedButton {
    display: block;
    width: 100vw;
    height: 100vh;
    background-color: var(--panel);
    border-radius: 5vw;
    font-size: min(5vw, 50vh);
    transition: 0.5s background-color;
}

.embedButton:hover {
    text-decoration: none;
}

.embedButton:active {
    background-color: var(--uiInput);
}

.embedButton:focus {
    border: 2px solid black;
}

.embedButton:focus:not(:focus-visible) {
    border: none;
}

.embedButton:focus-visible {
    outline: 2px solid black;
}

.embedButton .embedMessage {
    width: -moz-fit-content;
    width: fit-content;
    margin: auto;
    padding-top: calc(50vh - 0.5em);
    color: var(--foregroundSubtle);
    font-family: "Overpass Mono", "Roboto Mono", sans-serif;
}

.embedButton:focus .embedMessage {
    padding-top: calc(50vh - 0.5em - 2px);
}

.embedButton:focus:not(:focus-visible) .embedMessage {
    padding-top: calc(50vh - 0.5em);
}

.embedButton:focus-visible .embedMessage {
    padding-top: calc(50vh - 0.5em - 2px);
}

#language {
    width: 150px;
}

@media (prefers-color-scheme: dark) {
    header {
        background-color: rgba(30, 30, 30, 0.9);
    }
}