﻿:root {
    --clr-white: #FFFFFF;
    --clr-white-transparent: rgba(255, 255, 255, 0.3);
    --clr-light-gray: #F5F5F5;
    --clr-red: #C73535;
    --clr-red-disabled: #e6a4a4;
    --clr-red-transparent: #f8d7da;
    --clr-green: #00b33c;
    --clr-yellow: #fcba03;
    --clr-alert: rgb(253 197 0);
    --clr-green-excel: #1d7044;
    --clr-black: #000000;
    --clr-svea-1: #00AECE;
    --clr-svea-2: #00325C;
    --clr-svea-3: #CCEFF5;
    --clr-svea-4: #F4FCFD;
    --clr-svea-5: #00AFD0;
    --clr-svea-6: #CEF0F6;
    --clr-svea-7: #DAF3F8;
    --clr-svea-8: #00699a;
    --clr-background-1: #CCEFF5;
    --clr-text-1: #434343;
    --clr-disabled: #707070;
    --clr-disabled-background: #F3F3F3;
    --clr-readonly-background: #F7F7F7;
    --clr-border: var(--clr-svea-3);
    --clr-placeholder: var(--clr-disabled);
    --fs-base-large: 1.25rem;
    --fs-base: 1rem;
    --fs-base-tablet: .875rem;
    --fs-base-mobile: .75rem;
    --fs-large: 1.5rem;
    --fs-xlarge: 2.5rem;
    --fw-regular: 400;
    --fw-semibold: 500;
    --fw-bold: 600;
    --label-margin: .625rem;
    --container-padding: 2rem;
    --dashboard-container-border: 1px solid var(--clr-svea-3);
    --danger-color: rgba(255,0,0, 1);
}

@font-face {
    font-family: asap-regular;
    src: url(/fonts/Asap-Regular.ttf) format("truetype");
    font-weight: 400;
}

@font-face {
    font-family: asap-semibold;
    src: url(/fonts/Asap-Semibold.ttf) format("truetype");
    font-weight: 500;
}

@font-face {
    font-family: asap-semibolditalic;
    src: url(//fonts/Asap-SemiBoldItalic.ttf) format("truetype");
    font-style: italic;
}

@font-face {
    font-family: segoeUI-semibolditalic;
    src: url(//fonts/SegoeUI-SemiBoldItalic.ttf) format("truetype");
    font-style: italic;
}

/* Set core root defaults */
html {
    overflow-x: hidden;
    margin-right: calc(-1 * (100vw - 100%));
}

    html:focus-within {
        scroll-behavior: smooth;
    }

/* Set core body defaults */
body {
    margin: 0;
    padding: 0;
    color: var(--clr-svea-2);
    font-family: asap-regular;
    font-size: var(--fs-base-large);
    min-height: 100vh;
    text-rendering: optimizeSpeed;
    line-height: 1.5;
    display: grid;
    min-height: 100vh;
    grid-template-rows: auto 1fr auto;
    grid-template-areas: 
        'header'
        'main'
        'footer';
    flex-direction: column;
}

ul {
    list-style-type: none;
}

fieldset {
    border: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    flex: 1;
}

main {
    grid-area: main;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-image: url('data:image/svg+xml,%3Csvg%20width%3D%223000px%22%20height%3D%223000px%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%20%20%20%20%3Cellipse%20style%3D%22fill%3A%23CCEFF5%3Bopacity%3A30%25%22%20cx%3D%22200%22%20cy%3D%22400%22%20rx%3D%221100%22%20ry%3D%221100%22%20%2F%3E%0A%20%20%20%20%3Cellipse%20style%3D%22fill%3A%23CCEFF5%3Bopacity%3A20%25%22%20cx%3D%222400%22%20cy%3D%22500%22%20rx%3D%221100%22%20ry%3D%221100%22%20%20%2F%3E%0A%20%20%20%20%3Cellipse%20style%3D%22fill%3A%23CCEFF5%3Bopacity%3A40%25%22%20cx%3D%221300%22%20cy%3D%222000%22%20rx%3D%221000%22%20ry%3D%221000%22%20%20%2F%3E%0A%20%20%3C%2Fsvg%3E'); /*SVG is URL-encoded */
    background-size: cover;
    background-repeat: no-repeat;
}

.svea-logo {
    height: 48px;
    width: 130px;
    background-image: url('/img/svealogo.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    margin: .5em;
}

#languageSelection {
    margin-left: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .2em;
    padding-right: .5em;
}

.nav-link {
    cursor: pointer;
}

input[type='radio'] {
    accent-color: var(--clr-svea-2);
}

input[type=text], input[type=date], input[type=email], input[type=tel], input[type=number] {
    box-sizing: border-box;
    padding: .5em;
    margin: .5em;
}

input[type=text], input[type=date], input[type=email], textarea, input[type=tel], input[type=number] {
    box-shadow: 0 0 5px 2px rgba(0,0,0,0.06);
    border: 0;
    border-radius: 5px;
    font-family: asap-regular;
}

    input[type=text]:focus, input[type=date]:focus, input[type=email]:focus, textarea:focus, input[type=tel]:focus, input[type=number]:focus {
        outline: none !important;
    }

    input[type=text]:disabled, input[type=date]:disabled, input[type=email]:disabled, input[type=tel]:disabled, input[type=number]:disabled {
        background: var(--clr-disabled-background);
    }

    input[type=text]:read-only, input[type=date]:read-only, input[type=email]:read-only, input[type=tel]:read-only, input[type=number]:read-only {
        background: var(--clr-readonly-background);
    }


input[type="number"].no-arrow::-webkit-outer-spin-button,
input[type="number"].no-arrow::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}


/* Firefox */
input[type="number"].no-arrow {
    -moz-appearance: textfield;
}

    .btn {
        cursor: pointer;
        border: 0;
        border-radius: 5%;
        margin: .5em;
        padding: 0.4em 0.8em;
        display: flex;
        flex-direction: row;
        justify-content: center;
        flex-shrink: 0;
        font-size: 100%;
        line-height: 1.5;
        transition: color .13s ease-in-out,background .13s ease-in-out,opacity .13s ease-in-out,box-shadow .13s ease-in-out;
        user-select: none;
        -webkit-user-select: none;
        touch-action: manipulation;
        align-items: center;
        appearance: button;
        box-shadow: rgba(255, 255, 255, 0.26) 0 1px 2px inset;
        box-sizing: border-box;
        color: #fff;
    }

    .btn:disabled {
        cursor: not-allowed;
        box-shadow: none;
    }

.btn-primary {
    background-color: var(--clr-svea-1);
}

.btn-error {
    background-color: var(--clr-red);
}

    .btn-primary:hover {
        opacity: .9;
    }

.btn-transparent {
    border: 0px !important;
    background-color: transparent !important;
    color: inherit;
    padding: 0;
}

.form-group {
    display: flex;
    flex-direction: row;
}

header {
    grid-area: header;
    background: #ffffff;
    display: flex;
    justify-content: flex-start;
    height: 56px;
}

footer {
    grid-area: footer;
    background: #164b70;
    color: #ffffff;
    height: 2rem;
    padding: .5em;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

footer a, footer a:visited {
    text-decoration: none;
    color: #ffffff;
}

.input-error {
    display: block;
    color: var(--danger-color);
    font-size: 0.8rem;
}

.fa-trash {
    color: var(--clr-red);
}

.fa-plus {
    color: var(--clr-green);
}

.required:after {
    color: var(--clr-red);
    content: " *";
}