@import url("https://fonts.googleapis.com/css2?family=DM+Mono&family=IBM+Plex+Mono&display=swap");

* {
    user-select: none;
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    color: #fff;
    font-family: "IBM Plex Mono", monospace;
}

.container {
    width: 420px;
    border: 1px solid #303030;
    padding: 24px;
}

h1 {
    margin: 0 0 24px;
    font-size: 18px;
    font-weight: normal;
}

.generator {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.username {
    height: 48px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    border: 1px solid #303030;
    color: #aaa;
    overflow: hidden;
    user-select: text;
}

.username:empty::before {
    content: "generate a username";
    color: #666;
    user-select: none;
    pointer-events: none;
}

button {
    height: 40px;
    border: 1px solid #303030;
    background: #000;
    color: #fff;
    font-family: monospace;
    cursor: pointer;
}

button:hover {
    background: #303030;
}

button:active {
    background: #202020;
}

.settings {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #303030;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #aaa;
}

input[type="number"] {
    width: 70px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid #303030;
    outline: none;
    background: #000;
    color: #fff;
    font-family: monospace;
}

input[type="number"]:focus {
    border-color: #505050;
}

.checkbox {
    justify-content: flex-start;
    gap: 10px;
}

.checkbox input {
    appearance: none;
    width: 16px;
    height: 16px;
    margin: 0;
    border: 1px solid #303030;
    background: #000;
    cursor: pointer;
}

.checkbox input:checked {
    background: #fff;
    box-shadow: inset 0 0 0 3px #000;
}