@property --lilypad-green {
    syntax: "<color>";
    inherits: false;
    initial-value: #b6dcc1;
}

@property --dark-grey {
    syntax: "<color>";
    inherits: false;
    initial-value: #131313;
}

@property --middle-grey {
    syntax: "<color>";
    inherits: false;
    initial-value: #13131366;
}

@property --select-grey {
    syntax: "<color>";
    inherits: false;
    initial-value: #232323;
}

@property --light-grey {
    syntax: "<color>";
    inherits: false;
    initial-value: #b6b6b6;
}

@property --fail-color {
    syntax: "<color>";
    inherits: false;
    initial-value: #FF6338;
}

@property --background-grey-lighter {
    syntax: "<color>";
    inherits: false;
    initial-value: #1B1B1B;
}

:root, input {
    background-color: var(--dark-grey);
    color: var(--light-grey);
    font-family: "Figtree", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    font-size: 16px;
}

.lilypad-green {
    color: var(--lilypad-green);
}

a {
    color: var(--light-grey);
    text-decoration: none;
    cursor: pointer;
}

button, .button-like {
    display: inline-flex;
    height: 32px;
    padding: 5px 14px;
    font: inherit;
    font-weight: bold;
    border-radius: 29px;
    border: none;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
    background-color: var(--lilypad-green);
    color: var(--dark-grey);
    cursor: pointer;
}


.lilypad-rounded {
    display: inline;
    height: 36px;
    border-radius: 29px;
    border: 1.5px solid var(--dark-grey);
    align-items: center;
    outline: none; /* Todo maybe can use something? */
    margin: auto;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
    transition: background-color 5000s ease-in-out 0s;
}

input[type=text].lilypad-rounded,
input[type=password].lilypad-rounded {
    display: flex;
    padding: 5px 14px;
    justify-content: center;
    gap: 7px;
    flex-shrink: 0;
    font-weight: 500;

    &::placeholder {
        font-weight: 400;
    }
}

button.lilypad-rounded {
    display: flex;
    flex-direction: row;
    width: fit-content;
    align-items: center;
    justify-content: center;

    & * {
        display: inline;
    }
}

.fill-green {
    background-color: var(--lilypad-green);
    color: var(--dark-grey);
}


.fill-dark-grey {
    background-color: var(--dark-grey);
    color: var(--lilypad-green);
}

header {
    display: inline-flex;
    width: 100%;

    & > a, & > div > a {
        padding: 0 10px 0 10px;
    }

    & #user-profile {
        margin-right: 0;
        margin-left: auto;
    }
}

dialog[open] {
    border-radius: 24px;
    flex-shrink: 0;
    background: var(--lilypad-green);

    width: fit-content;

    & * {
        align-content: center;
        text-align: center;
    }

    &::backdrop {
        opacity: 0.7;
        background: #000;
    }
}

.selected {
    fill: var(--lilypad-green);
}

ul {
    list-style-type: none;
}

body, label, input, textarea, div {
    display: block;
    box-sizing: border-box;
}

input[type="submit"] {
    border-radius: 29px;
    border-width: 0;
    height: 28px;
    padding: 4px;
    background-color: var(--lilypad-green);
    color: var(--dark-grey);
}

input[type="file"] {
    display: none;
}

.hide-when-empty:empty, .hide {
    display: none;
}

.editor {
    & p:first-child {
        margin-top: 0;
    }

    & p:last-child {
        margin-bottom: 0;
    }
}

form {
    box-sizing: border-box;

    display: block;

    & > .field-hint {
        color: rgba(0, 0, 0, 0.5);
        font-size: 0.8rem;
    }

    & > * {
        box-sizing: border-box;

        display: block;

        & > * {
            box-sizing: border-box;

            display: block;

        }
    }
}

.visuallyhidden {
    visibility: hidden;
    display: none;
}
