﻿@layer base, component, page, utilities;

:root {
    --white: #ffffff;
    --inky-blue: #002749;
    --duck-egg-blue: #a5d7d5;
    --yellow: #ffd900;
    --green: #00a685;
    --orange: #EC6608;
    --light-grey: #f4f4f4;
    --grey: #B2B2B2;
    --dark-grey: #999999;
}

html {
    height: 100%;
    width: 100%;
}

@layer utilities {
    .white {
        color: var(--white);
    }

    .inky-blue {
        color: var(--inky-blue);
    }

    .duck-egg-blue {
        color: var(--duck-egg-blue);
    }

    .yellow {
        color: var(--yellow);
    }

    .green {
        color: var(--green);
    }

    .orange {
        color: var(--orange);
    }

    .bg-white {
        background-color: var(--white);
    }

    .bg-inky-blue {
        background-color: var(--inky-blue);
    }

    .bg-duck-egg-blue {
        background-color: var(--duck-egg-blue);
    }

    .bg-yellow {
        background-color: var(--yellow);
    }

    .bg-green {
        background-color: var(--green);
    }

    .bg-orange {
        background-color: var(--orange);
    }
}

@layer component {
    .window-bar {
        display: flex;
        flex-direction: column;
        align-self: flex-start;

        > * {
            background-color: var(--inky-blue);
            height: 3ex;
            margin-bottom: 0.4ex;
            padding-left: 0.275em;
            padding-right: 0.275em;
            text-align: center;
            width: fit-content;
            font-weight: bold;
        }
    }

    .normal-text {
        width: 50%;
        align-self: flex-start;
    }

    .flat-button {
        position: relative;
        border: none;
        /*        border-top: 1px solid var(--grey);*/
        background: transparent;
        font-family: 'Circular' !important;
        font-weight: normal;
        font-size: inherit;
        color: var(--inky-blue) !important;
        width: 100%;
        text-align: start;
        padding: 0.5rem 0.5rem;

        &:hover {
            background-color: transparent;

            &::before {
                background-color: var(--light-grey);
                border-right: 1px solid var(--grey);
                z-index: -1;
            }
        }

        &::before {
            --width: 110%;
            position: absolute;
            top: 0;
            border-top: 1px solid var(--grey);
            content: "";
            width: var(--width);
            height: 100%;
            left: calc(50% - var(--width)/2);
        }
    }

    .square-button {
        --bs-btn-padding-x: 2.3rem;
        --bs-btn-padding-y: 1.4rem;
        border: none;
        background: transparent;
        /*        clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);*/
        font-family: 'Circular' !important;
        font-size: inherit;
        color: var(--inky-blue) !important;
        padding: var(--bs-btn-padding-y) var(--bs-btn-padding-x);
        position: relative;

        &::before {
            border-width: 0 0 2px 2px;
            left: 0;
            margin-top: 5px;
        }

        &::after {
            border-width: 2px 2px 0 0;
            right: 0;
            margin-bottom: 5px;
        }

        &::before, &::after {
            border-style: solid;
            bottom: 0;
            content: "";
            position: absolute;
            top: 0;
            -webkit-transition: .3s;
            -o-transition: .3s;
            transition: all .3s ease;
            width: 68px;
        }

        &:focus:after, &:focus:before,
        &:hover:after, &:hover:before {
            margin-bottom: 0;
            margin-top: 0;
            width: 100%;
        }
    }

    .bold {
        font-weight: bold;
    }
}

body {
    background-color: var(--white) !important;
    margin: 0px 0px !important;
    font-family: 'Circular' !important;
    font-size: 1.9rem !important;
    color: var(--inky-blue) !important;
}

a {
    text-decoration-line: none;
    color: var(--inky-blue);
    font-family: 'Circular';
    font-size: medium;

    &:hover {
        text-decoration-line: underline;
        color: var(--inky-blue);
    }

    &.square-button {
        font-weight: normal;
        font-size: inherit;
        text-align: center;

        &:hover {
            text-decoration: none;
            color: var(--inky-blue);
        }
    }

    &.flat-button {
        font-weight: normal;
        font-size: inherit;
        text-align: left;

        &:hover {
            text-decoration: none;
            color: var(--inky-blue);
        }
    }

    &.no-line {
        text-decoration: none;

        &:hover {
            text-decoration: none;
        }
    }
}

.icon {
    height: 1em;
    width: 1em;
    vertical-align: -0.1875em;
    margin-right: 0.125rem;
    fill: var(--inky-blue);
}
