:root {
    --bg: #0a0a0a;
    /* almost black */
    --panel: #111;
    /* header/footer cards */
    --ink: #f5f5f5;
    /* off white text */
    --muted: #9aa0a6;
    /* grey */
    --accent: #00e5a8;
    /* a little color */
    --danger: #ff4d4d;
    --ok: #a3ff6f;
    --radius: 18px;
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

html {
    background: var(--bg);
    color: var(--ink);
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
}

body {
    margin: 0;
    display: flex;
    align-items: stretch;
    justify-content: center
}

#app {
    height: 100vh;
    width: 100%;
    max-width: 820px;
    display: flex;
    flex-direction: column;
}


.app-header,
.app-footer {
    background: var(--panel);
    border-bottom: 1px solid #1b1b1b;
    z-index: 10;
}

.app-footer {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translate(-50%, 0);
    border: 1px solid #353535;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    width: max-content;
    margin: 0 auto;
    font-size: 12px;
    opacity: 0;
    animation: fadeInOut 15s linear infinite;
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    3.33% { opacity: 1; }
    36.66% { opacity: 1; }
    40% { opacity: 0; }
    100% { opacity: 0; }
}

.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    position: sticky;
    top: 0;
    z-index: 10;
    height: 60px;
}

.app-header h1 {
    margin: 0;
    font-size: 1.25rem;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.app-footer {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 12px 20px;
    color: var(--muted)
}

.app-footer .dot {
    opacity: .6
}


.screen {
    flex: 1;
    padding: 8px;
    display: grid;
    gap: 16px;
    height: calc(100vh - 100px);
    overflow: scroll;
}

.card {
    background: #0e0e0e;
    border: 1px solid #1b1b1b;
    border-radius: var(--radius);
    padding: 16px;
}

.row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap
}

.grid {
    display: grid;
    gap: 10px
}

.grid.two {
    grid-template-columns: repeat(2, 1fr)
}


button,
.btn {
    appearance: none;
    border: none;
    background: var(--ink);
    color: #000;
    padding: 10px 12px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer
}

button:hover {
    filter: brightness(.95)
}

button:active {
    transform: translateY(1px)
}

button.ghost {
    background: #151515;
    color: var(--ink);
    border: 1px solid #222
}

button.accent {
    background: var(--accent);
    color: #002b20
}

button.bad {
    background: var(--danger);
    color: white
}

button.good {
    background: var(--ok);
    color: #002b00
}

button.full {
    width: 100%
}


input,
select {
    width: 100%;
    padding: 12px 12px;
    border-radius: 12px;
    background: #0b0b0b;
    color: var(--ink);
    border: 1px solid #242424
}

input::placeholder {
    color: #6b6b6b
}

label {
    font-size: .9rem;
    color: var(--muted)
}

.info {
    text-decoration: none;
    color: var(--accent);
    font-size: 1.2rem;
    font-weight: 600
}

.small {
    font-size: .9rem;
    color: var(--muted)
}

.center {
    text-align: center
}

.muted {
    color: var(--muted)
}

.tag {
    border: 1px dashed #2a2a2a;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: .85rem;
}

.list {
    display: flex;
    flex-direction: column;
    gap: 8px
}

.list .item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #0b0b0b;
    border: 1px solid #1f1f1f;
    border-radius: 12px;
    padding: 10px 12px
}

.name {
    font-weight: 600
}

.role {
    color: var(--accent);
    font-weight: 700
}


hr {
    border: none;
    border-top: 1px dashed #222
}


.reveal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 40px 20px
}

.reveal .word {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1px
}

.reveal .note {
    color: var(--muted)
}


.vote-bubble {
    display: inline-block;
    border: 1px solid #2a2a2a;
    padding: 6px 10px;
    border-radius: 999px
}

.resetLink {
    color: var(--danger);
    text-decoration: none;
    font-weight: 600
}

kbd {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    background: #151515;
    border: 1px solid #222;
    border-bottom-width: 2px;
    padding: 1px 6px;
    border-radius: 6px
}

.developer {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600
}

.center {
    width: 100%;
    text-align: center;
}

.rules-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.app-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.overlay {
    /* A full size element wit a backround blur */
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    backdrop-filter: blur(4px);
    z-index: 15;
}

.rules {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--panel);
    border: 1px solid #1b1b1b;
    border-radius: var(--radius);
    padding: 20px;
    z-index: 20;
    width: 90%;
    max-width: 400px;

    li {
        margin-bottom: 10px;
    }
}