html, body {
    font-family: 'Saira Extra Condensed', sans-serif;
    margin: 0;
    height: 100%;
}

body {
    background-color: rgb(37, 38, 42);
    display: flex;
    align-items: center;
    vertical-align: center;
    justify-content: center;
}

img.logo {
    width: 100px;
    height: 100px;
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.5));
}

h1 {
    margin-top: 0;
    font-size: 24pt;
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.5));
}

div.content {
    color: white;
    text-align: center;
    font-size: 14pt;
    display: flex;
    flex-direction: column;
    align-items: center;
    vertical-align: center;
    justify-content: center;
    width: 100%;
}

div.logo-container {
    display: flex;
    gap: 16px;
}

div.container {
    position: relative;
    display: block;
    margin: 16px;
    padding: 16px;
    background-color: rgb(30, 30, 30);
    border: 1px solid rgb(50, 50, 50);
    border-radius: 8px;
    min-width: 620px;
    wmax-idth: 90%;
    box-shadow: inset 0 0 3px 4px rgba(0, 0 ,0, 0.2);
}

div.container div.title {
    color: rgb(180, 180, 180);
    font-size: 14pt;
    position: absolute;
    z-index: 100;
    top: -20px;
    left: 50%;
    transform: translate(-50%, 0);
    padding: 0 12px;
    background-color: rgb(30, 30, 30);
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

div.container div.title:after {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    content: "";
    height: 65%;
    border-left: 1px solid rgb(50, 50, 50);
    border-right: 1px solid rgb(50, 50, 50);
    border-top: 1px solid rgb(50, 50, 50);
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    box-shadow: inset 0 3px 3px 1px rgba(0, 0 ,0, 0.2);
}

div.apps, div.md5 {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    align-content: flex-start;
    row-gap: 4px;
    column-gap: 4px;
}

a, a:visited {
    color: rgb(200, 200, 200);
    text-decoration: none;
}

a.app, a.app:visited {
    color: rgb(200, 200, 200);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    width: 120px;
    height: 120px;
}

a.app img {
    display: block;
    margin: 0 auto;
    width: 64px;
    height: 64px;
    background: transparent;
    filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 1.0));
}

input {
    display: block;
    border: 1px solid rgb(50, 50, 50);
    border-radius: 16px;
    background: rgb(25, 25, 25);
    color: white;
    font-family: 'Saira Extra Condensed', sans-serif;
    font-size: 24px;
    text-align: center;
    outline: none;
    height: 34px;
}

input#username {
    width: 120px;
}

input#shared-secret {
    width: 350px;
}

label {
    margin-left: 16px;
    color: rgb(100, 100, 100);
}

div.md5 {
    align-items: center;
    padding: 12px;
}

div.md5 img {
    height: 32px;
}

div#hash {
    width: 300px;
    border: 1px solid rgb(50, 50, 50);
    font-size: 24px;
    background: rgb(25, 25, 25);
    border-radius: 16px;
    height: 34px;
}

@media (prefers-color-scheme: light) {
    body {
        background-color: #eee;
    }
    div.content { color: #4d4d4d; }
    div.container, div.container div.title { background-color: rgb(60, 60, 60); }
    input#input, div#hash { color: black; background: rgb(220, 220, 220   ); }
}
