/* This file is for classes applied website wide - Figs */

:root {
    --md-elevation-0: none;
    --md-elevation-1:
        0px 1px 2px rgba(0, 0, 0, 0.30),
        0px 1px 3px 1px rgba(0, 0, 0, 0.15);
    --md-elevation-2:
        0px 1px 2px rgba(0, 0, 0, 0.30),
        0px 2px 6px 2px rgba(0, 0, 0, 0.15);
    --md-elevation-3:
        0px 1px 3px rgba(0, 0, 0, 0.30),
        0px 4px 8px 3px rgba(0, 0, 0, 0.15);
    --md-elevation-4:
        0px 2px 3px rgba(0, 0, 0, 0.30),
        0px 6px 10px 4px rgba(0, 0, 0, 0.15);
    --md-elevation-5:
        0px 4px 4px rgba(0, 0, 0, 0.30),
        0px 8px 12px 6px rgba(0, 0, 0, 0.15);

    --md-shape-none: 0;
    --md-shape-corner-extra-small: 4px;
    --md-shape-corner-small: 8px;
    --md-shape-corner-medium: 12px;
    --md-shape-corner-large: 16px;
    --md-shape-corner-large-increased: 20px;
    --md-shape-corner-extra-large: 28px;
    --md-shape-corner-extra-large-increased: 32px;
    --md-shape-corner-extra-extra-large: 48px;
    --md-shape-corner-full: 99px;

    --md-outline: 1px solid var(--md-sys-color-outline-variant);

    --md-transition: all 0.25s;

    --bouncing-ease: cubic-bezier(0.232, 0.881, 0.259, 1.14);
}

html {
    padding: 1.5rem;
    background-color: var(--md-sys-color-surface);
}

body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 0;
    font-family: "Cabin";
    font-size: 1rem;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Interactive components */

button,
.a-button {
    background-color: var(--md-sys-color-primary-container);
    width: fit-content;
    border: none;
    padding: 12px 24px;
    color: var(--md-sys-color-on-primary-container);
    font-family: inherit;
    font-size: inherit;
    border-radius: 0.3rem;
    cursor: pointer;
    transition: all 0.25s;
    text-decoration: none;
    display: flex;
    align-items: center;
}

button:active,
.a-button:active {
    background-color: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
    border-radius: 2rem;
    cursor: pointer;
}

button.is-active, .a-button.is-active {
    background-color: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
    border-radius: 2rem;    
    cursor: pointer;
}

.button-pilled {
    border-radius: var(--md-shape-corner-full);
}


button:hover,
.a-button:hover {
    filter: brightness(0.9);
}

/* Button group container */

.button-group {
    display: flex;
    gap: 3px;
}

/* Card components */

/* Foundation card */
.card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 1rem;
    border-radius: var(--md-shape-corner-medium);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
}

.card:active {
    transform: scale(0.98);
}

.card::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: var(--md-sys-color-on-surface);
    opacity: 0;
    transition: opacity 0.15s ease;
    pointer-events: none;
}

.card:hover::after {
    opacity: 0.08;
}

.card:focus-visible::after {
    opacity: 0.10;
}

/* Card component variations */

.card-elevated {
    background-color: var(--md-sys-color-surface-container-low);
    box-shadow: var(--md-elevation-1);
}

.card-elevated:hover {
    box-shadow: var(--md-elevation-2);
}

.card-filled {
    background-color: var(--md-sys-color-surface-container-highest);
    box-shadow: var(--md-elevation-0);
}

.card-outlined {
    background-color: var(--md-sys-color-surface);
    box-shadow: var(--md-elevation-0);
    border: var(--md-outline)
}

/* Card component elements */

.card_media {
    width: 100%;
    height: 180px;
    border-radius: calc(var(--md-shape-corner-medium) - 4px);
    object-fit: cover;
    background-color: var(--md-sys-color-surface-variant);
    margin-bottom: 1rem;
}

.card_headline {
    font-family: "Instrument Serif", sans-serif;
    font-style: normal;
    font-size: 1.5rem;
    line-height: 1.5rem;
    font-weight: 900;
    margin: 0;
    color: var(--md-sys-color-on-surface);
}

.card_subhead {
    font-family: "Cabin", sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.25rem;
    margin: 0;
    color: var(--md-sys-color-on-surface-variant);
    text-align: left;
}

/* Property for desktops and tablets */
@media screen and (min-width: 800px) {
    html {
        padding: 3rem;
        justify-content: center;
        align-items: center;
        display: flex;
    }

    body {
        display: flex;
        gap: 2rem;
        max-width: 1000px;
    }

}