:root {
    --primary: #327EC0;
    --secondary: #FAA964;
    --high: #74B8DF;
    --low: #123054;

    --black: #000000;
    --white: #FFFFFF;
    --dark: #707071;
    --light: #F5F5F5;

    --blue: #00A6ED;
    --notification: var(--blue);

    --green: #7FB800;
    --success: var(--green);

    --yellow: #FFB400;
    --warning: var(--yellow);
    
    --red: #FF3C38;
    --error: var(--red);

    --pace-fast: 200ms;
    --pace-normal: 600ms;
    --pace-slow: 1000ms;

    --break-xl: 1200px;
    --break-lg: 1000px;
    --break-md: 800px;
    --break-sm: 600px;
    --break-xs: 400px;

    --size-xl: 4em;         /* 64px */
    --size-lg: 3em;         /* 48px */
    --size-md: 1.5em;       /* 24px */
    --size-sm: 1.25em;      /* 20px */
    --size-xs: 0.75em;      /* 12px */

    --space-xl: 4em;
    --space-lg: 3em;
    --space-md: 2em;
    --space-sm: 1em;
    --space-xs: 0.5em;

    --curve-lg: 2.0em;
    --curve-md: 1.25em;
    --curve-sm: 0.5em;
}

[x-cloak] { display: none !important; }

@media screen and (max-width: 1000px) {
    :root {
        --size-xl: 3.75em;
        --size-lg: 2.75em;
        --size-md: 1.5em;
        --size-sm: 1.25em;
        --size-xs: 0.75em;

        --space-xl: 3.5em;
        --space-lg: 2.5em;
        --space-md: 1.75em;
        --space-sm: 0.75em;
        --space-xs: 0.25em;
    }
}

@media screen and (max-width: 750px) {
    :root {
        --size-xl: 3em;
        --size-lg: 2.5em;
        --size-md: 1.5em;
        --size-sm: 1.25em;
        --size-xs: 0.75em;

        --space-xl: 3em;
        --space-lg: 2em;
        --space-md: 1.75em;
        --space-sm: 0.75em;
        --space-xs: 0.25em;
    }
}

@media screen and (max-width: 450px) {
    :root {
        --size-xl: 2.5em;
        --size-lg: 1.75em;
        --size-md: 1.5em;
        --size-sm: 1.25em;
        --size-xs: 0.75em;

        --space-xl: 2.5em;
        --space-lg: 1.5em;
        --space-md: 1.75em;
        --space-sm: 0.75em;
        --space-xs: 0.25em;
    }
}

* { 
    box-sizing: border-box; 
    interpolate-size: allow-keywords;
}
.space-nowrap { white-space: nowrap; }
.space-ellipsis {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.space-xl { 
    padding: var(--space-xl);
    &.sides { padding: 0em var(--space-xl); }
    &.tops { padding: var(--space-xl) 0em; }
}
.space-lg { 
    padding: var(--space-lg);
    &.sides { padding: 0em var(--space-lg); }
    &.tops { padding: var(--space-lg) 0em; }
}
.space-md { 
    padding: var(--space-md);
    &.sides { padding: 0em var(--space-md); }
    &.tops { padding: var(--space-md) 0em; }
}
.space-sm { 
    padding: var(--space-sm);
    &.sides { padding: 0em var(--space-sm); }
    &.tops { padding: var(--space-sm) 0em; }
}
.space-xs { 
    padding: var(--space-xs);
    &.sides { padding: 0em var(--space-xs); }
    &.tops { padding: var(--space-xs) 0em; }
}

.font-barlow { font-family: 'Barlow'; }

.font-size-xl { font-size: var(--size-xl); }
.font-size-lg { font-size: var(--size-lg); }
.font-size-md { font-size: var(--size-md); }
.font-size-sm { font-size: var(--size-sm); }
.font-size-xs { font-size: var(--size-xs); }

.font-weight-700 { font-weight: 700; }
.font-weight-600 { font-weight: 600; }
.font-weight-500 { font-weight: 500; }

.line-height-lg { line-height: 1.6; }
.line-height-md { line-height: 1.2; }
.line-height-sm { line-height: 0.8; }

.color-primary { color: var(--primary); fill: var(--primary); }
.color-secondary { color: var(--secondary); fill: var(--secondary); }
.color-high { color: var(--high); fill: var(--high); }
.color-low { color: var(--low); fill: var(--low); }
.color-black { color: var(--black); fill: var(--black); }
.color-white { color: var(--white); fill: var(--white); }
.color-dark { color: var(--dark); fill: var(--dark); }
.color-light { color: var(--light); fill: var(--light); }
.color-blue { color: var(--blue); fill: var(--blue); }
.color-green { color: var(--green); fill: var(--green); }
.color-yellow { color: var(--yellow); fill: var(--yellow); }
.color-red { color: var(--red); fill: var(--red); }

.background-primary { background-color: var(--primary); }
.background-secondary { background-color: var(--secondary); }
.background-high { background-color: var(--high); }
.background-low { background-color: var(--low); }
.background-black { background-color: var(--black); }
.background-white { background-color: var(--white); }
.background-dark { background-color: var(--dark); }
.background-light { background-color: var(--light); }
.background-blue { background-color: var(--blue); }
.background-green { background-color: var(--green); }
.background-yellow { background-color: var(--yellow); }
.background-red { background-color: var(--red); }
.background-glass {
    background: transparent;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}
.background-gradient {
    &::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: -1;
        pointer-events: none;
    }

    &.dark {
        &::after {
            background: linear-gradient(180deg, rgba(18, 48, 84, 0.5) 0%, rgba(18, 48, 84, 0.325903) 10.97%, rgba(18, 48, 84, 0.17) 17.32%, rgba(18, 48, 84, 0) 23.96%);
        }
    }

    &.light {
        &::after {
            background: linear-gradient(180deg, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0.5625) 69.23%, rgba(255, 255, 255, 0.681152) 78.85%, rgba(255, 255, 255, 0.75) 84.62%);
        }
    }
}

hr { 
    appearance: none;
    width: 100%; 
    outline: none;
    border-bottom: 1px solid var(--white); 
    &.low { border-bottom: 1px solid var(--low); }
}

.border { 
    border: 1px solid var(--primary); 
    &.secondary { border-color: var(--secondary); }
    &.black { border-color: var(--black); }
    &.white { border-color: var(--white); }
    &.dark { border-color: var(--dark); }
    &.light { border-color: var(--light); }
    &.blue { border-color: var(--blue); }
    &.green { border-color: var(--green); }
    &.yellow { border-color: var(--yellow); }
    &.red { border-color: var(--red); }

    &.top { 
        border-right: none;
        border-bottom: none;
        border-left: none;
     }
    &.right {
        border-top: none;
        border-bottom: none;
        border-left: none;
    }
    &.bottom {
        border-top: none;
        border-right: none;
        border-left: none;
    }
    &.left {
        border-top: none;
        border-right: none;
        border-bottom: none;
    }
}

.curve-lg { border-radius: var(--curve-lg); }
.curve-md { border-radius: var(--curve-md); }
.curve-sm { border-radius: var(--curve-sm); }

.flex-1 { flex: 1; }
.flex-2 { flex: 2; }
.flex-3 { flex: 3; }
.flex-4 { flex: 4; }
.self-start { align-self: flex-start; }
.self-end { align-self: flex-end; }
.self-center { align-self: center; }
.flex-group {
    display: flex;

    &.wrap { flex-wrap: wrap; }
    &.row { flex-direction: row; }
    &.row-reverse { flex-direction: row-reverse; }
    &.column { flex-direction: column; }
    &.column-reverse { flex-direction: column-reverse; }

    &.justify-start { justify-content: flex-start; }
    &.justify-end { justify-content: flex-end; }
    &.justify-center { justify-content: center; }
    &.justify-space-between { justify-content: space-between; }
    &.justify-space-around { justify-content: space-around; }
    &.justify-space-evenly { justify-content: space-evenly; }

    &.content-start { align-content: flex-start; }
    &.content-end { align-content: flex-end; }
    &.content-center { align-content: center; }
    &.content-space-between { align-content: space-between; }
    &.content-space-around { align-content: space-around; }
    &.content-space-evenly { align-content: space-evenly; }

    &.items-start { align-items: flex-start; }
    &.items-end { align-items: flex-end; }
    &.items-center { align-items: center; }
    &.items-baseline { align-items: baseline; }
    &.items-stretch { align-items: stretch; }

    &.gap-xxl { gap: calc(var(--space-xl) + var(--space-xl)); }
    &.gap-xl { gap: var(--space-xl); }
    &.gap-lg { gap: var(--space-lg); }
    &.gap-md { gap: var(--space-md); }
    &.gap-sm { gap: var(--space-sm); }
    &.gap-xs { gap: var(--space-xs); }
}

/* .grid-group {
    width: 100%;
    display: grid;
    grid-auto-flow: row;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    &.col-3 { grid-template-columns: 1fr 1fr 1fr; }
    &.col-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
    &.gap-lg { gap: var(--space-lg); }
    &.gap-sm { gap: var(--space-sm); }
    justify-items: center;
    align-items: center;
    &.start { align-items: start; }
} */

.grid-group {
    width: 100%;
    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    &.small { grid-template-columns: repeat(auto-fit, minmax(50px, 1fr)); }
    &.medium { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
    &.large { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
    &.x-large { grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); }
    
    &.col-1 { grid-template-columns: repeat(1, 1fr); }
    &.col-2 { grid-template-columns: repeat(2, 1fr); }
    &.col-3 { grid-template-columns: repeat(3, 1fr); }
    &.col-4 { grid-template-columns: repeat(4, 1fr); }
    &.col-5 { grid-template-columns: repeat(5, 1fr); }

    &.justify-start { justify-content: flex-start; }
    &.justify-end { justify-content: flex-end; }
    &.justify-center { justify-content: center; }
    &.justify-space-between { justify-content: space-between; }
    &.justify-space-around { justify-content: space-around; }
    &.justify-space-evenly { justify-content: space-evenly; }

    &.content-start { align-content: flex-start; }
    &.content-end { align-content: flex-end; }
    &.content-center { align-content: center; }
    &.content-space-between { align-content: space-between; }
    &.content-space-around { align-content: space-around; }
    &.content-space-evenly { align-content: space-evenly; }

    &.items-start { align-items: flex-start; }
    &.items-end { align-items: flex-end; }
    &.items-center { align-items: center; }
    &.items-baseline { align-items: baseline; }
    &.items-stretch { align-items: stretch; }

    &.gap-xl { gap: var(--space-xl); }
    &.gap-lg { gap: var(--space-lg); }
    &.gap-md { gap: var(--space-md); }
    &.gap-sm { gap: var(--space-sm); }
    &.gap-xs { gap: var(--space-xs); }
}

.anchor-target { scroll-margin-top: 475px; }

a { color: inherit; }

ul, li {
    padding: 0 0 0 0em;
    margin: 0 0 0 1em;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background-color: var(--light);
}
::-webkit-scrollbar-thumb {  
    background-color: var(--low);
    border-radius: 20px;
}