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

:root {
    --background: #fff;
    --foreground: #000;

    --light-gray-background: #00000008;

    --card-bg: #7b51c944;
    --card-fg: #000;

    --theme-colour: #00a777;
    --theme-colour-fg: white;
    --error-fg: #580000;

    --section-bg: #7b51c909;
    --ok-background: #e3ffe3;
}

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

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

body {
    background-color: rgba(0, 0, 0, 0.03);
}

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

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

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

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

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

    background-color: var(--background);
    color: var(--foreground);
}

nav > div.nav-spacer {
    width: 32px;
}

/* img */
nav > img.image-logo {
    width: 48px;
    height: 48px;
}

/* Hero containers */
div.main {
    display: flex;
    flex-direction: column;
    gap: 16px;

    padding: 16px;
}

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

    padding: 24px;
}

div.hero-row {
    display: flex;
    flex-direction: row;
    gap: 16px;
}

div.hero-row > div.hero {
    flex-basis: 0;
    flex-grow: 1;
}

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

    display: flex;
    flex-direction: column;
    
    width: 50%;
    min-width: 300px;
    max-width: 900px;

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

@media screen and (max-width: 200px) {
    div.card {
        display: flex;
        flex-direction: column;
        
        width: 100%;
        min-width: 0px;
        max-width: 900px;

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

/* 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.hero.primary {
    background-color: var(--theme-colour);
}

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

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

    font-weight: bold;

    transition: all 0.4s;
}

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: var(--foreground);
    font-weight: normal;
    font-size: medium;
}

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

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

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

/* Footer */
footer {
    background-color: var(--light-gray-background);
    padding: 32px;
}