
:root {
    --color-blue: rgb(0, 183, 255);
}

html,
body {
    width: 100%;
    height: 100%;
}

body {
    margin: 0;
    background-color: white;
}


p {
    word-break: break-word;
}

ol,
ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
li {
    box-sizing: border-box;
    padding: 5px;
}

a {
    color: #333;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}
a:hover {
    cursor: pointer;
}
a:hover,
a > *:hover {
    color: var(--color-blue);
}

img {
    user-select: none;
    -webkit-user-drag: none;
}

dialog {
    border: 1px solid rgba(128, 128, 128, 0.3);
    box-shadow: 0 0 5px rgba(128, 128, 128, 0.3);
    position: fixed;
    max-height: 80%;
}
dialog > div {
    display: flex;
    flex-direction: column;
}

table {
    border: 1px solid gray;
    border-collapse: collapse;
}
th,
tr,
td {
    box-sizing: border-box;
    padding: 1em;
    border: 1px solid gray;
    text-align: center;
}

input {
    transition: all 0.2s;
    box-sizing: border-box;
    padding: 0.25em 0.5em;

    box-shadow: none;
    border: 0.5px solid #ddd;
    outline: 0.5px solid #ddd;
    border-radius: 2px;
}
input:focus {
    border-color: var(--color-blue);
    outline-color: var(--color-blue);
}
[required] + span::after {
    content: "*";
    color: red;
}
input:valid + span + span::after {
    content: " √ ";
    color: green;
}
input:invalid + span + span::after {
    content: " X ";
    color: red;
}

textarea {
    resize: none;
    transition: all 0.2s;
    box-sizing: border-box;
    padding: 0.5em;
}
textarea:focus {
    border-color: var(--color-blue);
    outline-color: var(--color-blue);
}

.nav {
    display: flex;
    flex-direction: row;
}

button,
.button {
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    border-radius: 2px;
    background-color: #eee;

    box-sizing: border-box;
    padding: 0.5em 1em;
}

button:hover,
.button:hover {
    cursor: pointer;
}
button:active,
.button:active {
    filter: brightness(95%);
    transition: 0.1s ease-in;
    transform: scale(0.95);
}
button:focus,
.button:focus {
    border: 1px;
}
button.primary,
.button.primary {
    color: white;
    background-color: #0095FF;
}
button.danger,
.button.danger {
    color: white;
    background-color: red;
}
button.danger:active,
.button.danger:active {
    filter: brightness(80%);
}
button.success,
.button.success {
    color: white;
    background-color: green;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 1em;
}
.form  > * {
    width: fit-content;
    margin: 0 2em;
}

