:root {
    /* Allgemein */
    --accent-color: rgb(46, 152, 223);
    --font: sans-serif;
    --header-background: rgb(46, 152, 223);
    
    /* Spezifisch */
    --text-color: black;
    --body-background: white;
    --switched-color: white;
    --border-color: black;
}

@media (prefers-color-scheme: dark) {
    :root {
        --text-color: white;
        --body-background: rgb(23, 23, 23);
        --switched-color: black;
        --border-color: white;
    }
}

::selection {
    background-color: var(--text-color);
    color: var(--switched-color);
}

* {
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100vw;
    height: 100vh;
}

body {
    color: var(--text-color);
    background: var(--body-background);
    font-family: var(--font);
    display: flex;
    flex-direction: column;
}

header {
    background: var(--header-background);
    padding: 20px 8px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 20px;
}

.error-display {
    position: fixed;
    top: 10px;
    width: 40%;
    background-color: rgba(148, 0, 0, 0.882);
    backdrop-filter: blur(3px);
    align-self: center;
    justify-self: center;
    padding: 10px 8px;
    z-index: 9999999;
    color: white;
    overflow: hidden;
    border-radius: 8px;
    display: none;
    flex-direction: row;
    align-items: center;
    user-select: none;
    -webkit-animation: slide-in-top 0.6s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
    animation: slide-in-top 0.6s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}

.error-display.success {
    background-color: rgb(0, 111, 0);
}

.error-display.info {
    background-color: rgb(0, 126, 180);
}

.error-display.copied {
    background-color: rgb(77, 74, 71);
}

#errorDisplayText {
    width: calc(100% - 70px);
    display: flex;
    justify-content: center;
    font-size: 18px;
    font-family: sans-serif;
    font-weight: 600;
    text-align: center;
    word-break: keep-all;
    overflow-wrap: normal;
    padding: 0 10px;
}

.error-display-timer {
    position: absolute;
    bottom: 3px;
    right: 5px;
    font-size: 13px;
    color: rgb(195, 195, 195);
}

#errorDisplayIcon {
    font-size: 30px;
    margin-left: 5px;
}


footer {
    background: color-mix(in srgb, var(--body-background) 85%, var(--switched-color));
    padding: 10px 5px;
}

@media only screen and (max-width: 680px) {
    .error-display {
        width: 90%;
    }
}