$CL_BACKGROUND: #13151a;
$CL_PRIMARY: #f8da19;
$CL_PRIMARY_DARK: #baa51e;
$CL_TEXT: #fff;

$CL_SUCCESS: rgb(90, 186, 45);
$CL_ERROR: #f83b19;

$CL_NOTE_YELLOW: #f8da19;
$CL_NOTE_GREEN: #7dc45f;
$CL_NOTE_BLUE: #5f9ac4;
$CL_NOTE_RED: #c4735f;

$GLOBAL_BORDER_RADIUS: 15px;

* {
    padding: 0;
    margin: 0;
    scroll-behavior: smooth;
    box-sizing: border-box;
    //font-family: 'Afacad', sans-serif;
    font-family: "DM Sans", sans-serif;
}

html,
body {
    height: 100%;
    background-color: $CL_BACKGROUND;
}

main {
    width: 100%;
    height: 100%;
}

h1 {
    color: $CL_TEXT;
}

p {
    color: darken($CL_TEXT, 10);
}

button,
.button__link {
    background-color: lighten($CL_BACKGROUND, 5);
    box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.372);
    border: 1px solid lighten($CL_BACKGROUND, 10);
    color: $CL_TEXT;
    padding: 5px 15px;
    font-size: 18px;
    display: flex;
    align-items: center;
    cursor: pointer;
    border-radius: $GLOBAL_BORDER_RADIUS;
    transition:
        transform 0.1s ease-in-out,
        box-shadow 0.1s ease-in-out,
        background-color 0.1s ease-in-out;
    &:active {
        background-color: lighten($CL_BACKGROUND, 2) !important;
        transform: translate(2px, 2px);
        box-shadow: 0px 0px 0px rgba(0, 0, 0, 0.372);
        transition:
            transform 0.1s ease-in-out,
            box-shadow 0.1s ease-in-out,
            background-color 0.1s ease-in-out;
    }
    &:hover {
        background-color: lighten($CL_BACKGROUND, 15);
        transition:
            transform 0.1s ease-in-out,
            box-shadow 0.1s ease-in-out,
            background-color 0.1s ease-in-out;
    }
    &.confirm {
        //background-color: $CL_SUCCESS;
    }
    &.cancel {
        background-color: $CL_ERROR !important;
    }
}

.context__menu {
    background-color: lighten($CL_BACKGROUND, 5);
    box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.372);
    border: 1px solid lighten($CL_BACKGROUND, 25);
    border-radius: $GLOBAL_BORDER_RADIUS;
    width: 150px;
    height: auto;
    font-size: 14px;
    position: absolute;
    padding: 10px 5px;
    z-index: 150;
    display: flex;
    flex-direction: column;
    user-select: none;
    gap: 10px;
    button {
        width: 100%;
        display: flex;
        justify-content: center;
        gap: 5px;
        background-color: lighten($CL_BACKGROUND, 3);
        // svg{
        //     font-size: 20px !important;
        // }
    }
}

kbd {
    background-color: $CL_BACKGROUND;
    border-radius: 3px;
    border: 1px solid lighten($CL_BACKGROUND, 10);
    box-shadow:
        0 1px 1px rgba(0, 0, 0, 0.2),
        0 2px 0 0 rgba($CL_BACKGROUND, 0.7) inset;
    color: lighten($CL_BACKGROUND, 35);
    display: inline-block;
    font-size: 0.85em;
    font-weight: 700;
    line-height: 1;
    padding: 2px 4px;
    white-space: nowrap;
}

@keyframes fadeIn {
    from {
        transform: var(--initial-transform) scale(0);
        opacity: 0;
    }
    to {
        transform: var(--initial-transform) scale(1);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        transform: var(--initial-transform) scale(1);
        opacity: 1;
    }
    to {
        transform: var(--initial-transform) scale(0);
        opacity: 0;
    }
}

@keyframes bounceIn {
    from,
    20%,
    40%,
    60%,
    80%,
    to {
        -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
        animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    }

    0% {
        opacity: 0;
        -webkit-transform: scale3d(0.3, 0.3, 0.3);
        transform: scale3d(0.3, 0.3, 0.3);
    }

    20% {
        -webkit-transform: scale3d(1.1, 1.1, 1.1);
        transform: scale3d(1.1, 1.1, 1.1);
    }

    40% {
        -webkit-transform: scale3d(0.9, 0.9, 0.9);
        transform: scale3d(0.9, 0.9, 0.9);
    }

    60% {
        opacity: 1;
        -webkit-transform: scale3d(1.03, 1.03, 1.03);
        transform: scale3d(1.03, 1.03, 1.03);
    }

    80% {
        -webkit-transform: scale3d(0.97, 0.97, 0.97);
        transform: scale3d(0.97, 0.97, 0.97);
    }

    to {
        opacity: 1;
        -webkit-transform: scale3d(1, 1, 1);
        transform: scale3d(1, 1, 1);
    }
}

header {
    display: flex;
    align-items: center;
    gap: 20px;
    kbd {
        font-size: 24px;
    }
    .button__link {
        margin-left: auto;
        padding: 20px 20px !important;
        font-size: 38px !important;
        border-radius: 100% !important;
    }
}

.selectable {
    position: relative;
    button {
        position: relative;
    }
    .items {
        position: absolute;
        bottom: 110%;
        left: 50%;
        transform: translateX(-50%);
        background-color: lighten($CL_BACKGROUND, 5);
        box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.372);
        border: 1px solid lighten($CL_BACKGROUND, 25);
        border-radius: $GLOBAL_BORDER_RADIUS;
        padding: 20px;
        z-index: 1000;
        display: flex;
        flex-direction: column;
        gap: 5px;
        align-items: center;
        width: max-content !important;
        .option {
            display: flex;
            flex-direction: column;
            gap: 5px;
            .colors {
                display: flex;
                flex-wrap: wrap;
                max-width: 200px;
                gap: 5px;
                button {
                    padding: 5px !important;
                    width: 40px;
                    height: 40px;
                    svg {
                        filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.588));
                    }
                    &.yellow {
                        background-color: $CL_NOTE_YELLOW;
                    }
                    &.red {
                        background-color: $CL_NOTE_RED;
                    }
                    &.green {
                        background-color: $CL_NOTE_GREEN;
                    }
                    &.blue {
                        background-color: $CL_NOTE_BLUE;
                    }
                }
            }
        }
    }
}

.badge {
    position: absolute;
    bottom: 70%;
    left: 60%;
    background-color: #f83b19;
    font-size: 16px;
    color: $CL_TEXT;
    font-weight: 900;
    padding: 5px;
}
