@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

* {
    padding: 0;
    margin: 0;
    font-family: "Inter", sans-serif;
}

html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

/* Nav */
nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;

    padding: 8px 16px 8px 16px;
    box-shadow: 0px 8px 16px #00000015;
}

img.nav-logo {
    width: 48px;
    height: 48px;
}

div.website-logo {
    display: flex;
    flex-direction: row;
    gap: 4px;
    align-items: center;

    justify-content: center;

    padding: 2px 8px 2px 8px;
    border-radius: 8px;
    background-color: transparent;

    transition: background-color .2s;
}

div.website-logo:hover {
    background-color: rgba(0, 0, 0, .08);
}

/* Flex utils */
div.flex-grow-1 {
    flex-grow: 1;
}

/* Div */
div.hero-page-root {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    justify-content: start;

    padding: 24px;
}

div.card-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;

    width: 70%;
    min-width: 300px;
    max-width: 700px;
}

div.button-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
}

div.card {
    background-color: var(--background);
    color: var(--foreground);
    padding: 16px;
    border-radius: 16px;

    display: flex;
    flex-direction: column;
    gap: 16px;

    box-shadow: 0px 0px 10px 10px rgb(0, 0, 0, .05);
}

@media screen and (max-width: 600px) {
    div.card-column {
        width: 100%;
        min-width: 0px;
        max-width: 900px;
    }

    div.card {
        box-shadow: 5px 10px 10px rgb(0, 0, 0, 0);
        padding: 0px;
    }
}

/* Text */
p.nav-logo-caption {
    font-weight: bold;
    font-size: large;
}

div.hero > p.title {
    font-size: 22px;
    font-weight: bold;
    color: var(--theme-colour);
}

div.hero.primary > p {
    color: var(--theme-colour-fg);
}

p.title {
    font-weight: bold;
    font-size: 22px;
    color: var(--theme-colour);
}

p.subtitle {
    font-weight: bold;
    font-size: 18px;
    /*color: var(--theme-colour);*/
}

p.form-field-title {
    font-weight: bold;
}

p.note {
    background-color: var(--theme-colour-a10);
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 4px;
    border-left: 4px solid var(--theme-colour);
    list-style-type: none;
}

p.warning {
    background-color: rgba(200, 117, 0, .1);
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 4px;
    border-left: 4px solid rgb(200, 117, 0);
    list-style-type: none;
    color: rgb(200, 117, 0);
    font-weight: bold;
}

/* Lists */
ul.left-padding {
    padding-left: 16px;
}

/* Heroes */
div.hero {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: start;

    padding: 16px;
    border-left: 4px solid var(--theme-colour);
    border-radius: 8px;
    background-color: var(--section-bg);
}

div.card-page-main {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    justify-content: start;

    padding: 24px;
}

div.hero.primary {
    background-color: var(--theme-colour);
}

div.hero.error {
    color: rgb(100, 0, 0);
    border-left: 4px solid rgb(100, 0, 0);
    background-color: rgba(200, 0, 0, .1);
}

div.hero.error > p.title {
    color: rgb(100, 0, 0);
}

/* Forms */
form {
    display: flex;
    gap: 4px;
    flex-direction: column;
    align-items: stretch;

    align-self: stretch;
}

form > div {
    display: flex;
    flex-direction: column;
    gap: 0px;

    align-items: stretch;
}

/* Form error message */
form > div > ul, ul.errorlist, p.error {
    background-color: rgba(200, 0, 0, .1);
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 4px;
    border-left: 4px solid rgb(200, 0, 0);
    list-style-type: none;
    color: rgb(200, 0, 0);
    font-weight: bold;
}

label {
    font-weight: bold;
}

/* Buttons */
button {
    background-color: #444;
    color: white;
    border-radius: 8px;
    padding: 8px;
    border: none;
    cursor: pointer;

    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;

    font-weight: bold;

    transition:
        filter 0.2s,
        transform 0.2s,
        background-color 0.2s;
}

button.primary {
    color: var(--theme-colour-fg);
    background-color: var(--theme-colour);
}

button.secondary {
    color: var(--card-fg);
    background-color: #f0e8ff;
}

button.transparent {
    background-color: transparent;
    color: rgba(0, 0, 0, .6);
    text-decoration: underline;
    font-weight: normal;
    font-size: medium;
}

button.transparent.primary {
    color: var(--theme-colour);
}

button.transparent.error {
    color: rgb(200, 0, 0);
}

button.form-validate {
    align-self: flex-end;
    margin-top: 8px;
}

button:hover {
    filter: brightness(1.25);
}

button.transparent:hover {
    filter: brightness(1.25);
    background-color: #00000008;
}

button:active {
    transform: scale(0.95);
}

button > img.icon {
    color: var(--theme-colour-fg);
    width: 20px;
    height: 20px;
}

button.transparent > img.icon {
    color: var(--theme-colour);
    width: 20px;
    height: 20px;
}

/* Inputs */
input {
    padding: 8px;
    border-radius: 8px;
    border: 2px solid var(--border-medium);

    transition:
        border 0.2s;
}

input:focus {
    border: 2px solid var(--theme-colour);
}

/* Links */
a {
    color: var(--theme-colour);
}

a.inline {
    display: inline-block;
}

a:hover {
    background-color: rgba(0, 0, 0, .05);
}

a.hover-disabled:hover {
    background-color: transparent;
}

a.no-decoration {
    text-decoration: none !important;
}

p.no-decoration {
    text-decoration: none;
    color: var(--foreground);
}

/* Card v2 */
div.card2 {
    display: flex;
    flex-direction: column;
    gap: 0px;
    justify-content: center;

    background-color: transparent;

    border-radius: 16px;

    box-shadow: 0px 0px 10px 10px rgb(0, 0, 0, .05);
}

div.card-header {
    border-radius: 16px 16px 0px 0px;
    background-color: var(--theme-colour-a20);
    padding: 16px;
}

div.card-header.error {
    background-color: rgba(200, 0, 0, .1);
}

div.card-header.error > p.title {
    color: rgb(200, 0, 0);
}

div.card-content {
    border-radius: 0px 0px 16px 16px;
    background-color: var(--background);
    color: var(--foreground);

    padding: 16px;

    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media screen and (max-width: 600px) {
    div.card2 {
        box-shadow: 5px 10px 10px rgb(0, 0, 0, 0);
        padding: 0px;
    }

    div.card-header {
        background-color: var(--background);
        border-radius: 0px;
        padding: 0px 0px 16px 0px;
    }

    div.card-header.error {
        background-color: transparent;
    }

    div.card-content {
        border-radius: 0px;
        padding: 0px;
    }
}