.card {
    display: flex;
    flex-direction: column;
    width: 480px;
    box-sizing: border-box;
    padding: 24px;
    border-radius: 8px;
    border: 1px solid var(--contrast-softest);
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    background-color: var(--main);
    overflow: hidden;
    transition: 0.6s;
    cursor: pointer;

    &:hover {
        border: 1px solid var(--theme-softer);
        box-shadow: rgba(255, 193, 7, 0.2) 0px 2px 8px 0px;
    }

    &.active {
        width: 50%;
        border: 1px solid var(--theme-softer);
        box-shadow: rgba(255, 193, 7, 0.2) 0px 2px 8px 0px;
        cursor: default;

        & .static-only {
            display: none;
        }

        & .active-only {
            display: flex;
        }

        & .action {
            display: flex;
            justify-content: flex-start;
            opacity: 1;

            &:hover {
                width: 68px;
            }

            & .confirmation {
                position: absolute;
                top: 32px;
                right: 0px;
                box-sizing: border-box;
                padding: 16px;
                border-radius: 8px;box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px;
                transition: 0.6s;
                opacity: 1;
                overflow: hidden;
                z-index: 10;

                & > button {
                    padding: 8px 12px;
                    border: none;
                    border-radius: 6px;
                    color: var(--text-color);
                    font-family: Inter;
                    font-size: 12px;
                    font-weight: 600;
                    text-align: center;
                    cursor: pointer;
                    transition: 0.4s;

                    &.delete {
                        background-color: var(--alert-soft);

                        &:hover {
                            background-color: var(--alert);
                        }
                    }                    
                    
                    &.close {
                        background-color: var(--theme-soft);

                        &:hover {
                            background-color: var(--theme);
                        }
                    }

                    &.cancel {
                        background-color: var(--main);
                    
                        &:hover {
                            background-color: var(--main-hard);
                        }
                    }
                }
            }
        }

        & input {
            width: 100%;
            color: var(--text-color)!important;
            font-size: 24px;
            cursor: text;

            &.invalid {
                border-bottom: 1px solid var(--alert);
            }
        }

        & textarea {
            width: 100%;
            color: var(--text-color)!important;
            font-size: 24px;
            cursor: text;

            &.invalid {
                border-bottom: 1px solid var(--alert);
            }
        }

        & label {            
            &.invalid {
                color: var(--alert);
            }
        }
    }

    &.stable {
        & .action {
            &.save {
                display: none!important;
            }
        }
    }

    &.new {
        & .action {
            &.close {
                display: none!important;
            }
        }
    }

    & .active-only {
        display: none;
    }

    & .action {
        position: relative;
        display: none;
        height: 24px;
        width: 24px;
        box-sizing: border-box;
        border-radius: 12px;
        margin-left: 8px;
        color: var(--text-color-invert);
        font-family: Inter;
        font-size: 12px;
        font-weight: 600;
        opacity: 0;
        overflow: visible;
        transition: 0.4s;
        cursor: pointer;

        &:hover {
            & img {
                margin-right: 8px;
            }

            & span {
                width: fit-content;
            }
        }

        &.save {
            background-color: var(--focus);
        }

        &.delete {
            background-color: var(--alert);
        }

        &.close {
            background-color: var(--theme-hard);
        }

        & img {
            height: 50%;
            width: auto;
            margin: 0 6px 0 6px;
            transition: 0.6s;
            cursor: pointer;
        }

        & span {
            width: 0px;
            overflow: hidden;
            transition: 0.7s;
        }
    }

    & .badge {
        box-sizing: border-box;
        padding: 6px 12px;
        border-radius: 4px;
        background-color: var(--theme-soft);
        color: var(--text-color);
        font-family: Inter;
        font-size: 12.5px;
        font-weight: 600;
    }

    & input {
        display: block;
        max-width: 100%;
        box-sizing: border-box;
        padding: 4px 0;
        border: 1px solid transparent;
        background-color: transparent;
        color: var(--text-color);
        font-family: Inter;
        font-size: 11px;
        font-weight: 700;
        transition: 0.6s;
        cursor: pointer;
    }

    & textarea {
        display: block;
        max-width: 100%;
        height: 200px;
        box-sizing: border-box;
        padding: 4px 0;
        border: 1px solid transparent;
        background-color: transparent;
        color: var(--text-color);
        font-family: Inter;
        font-size: 11px;
        font-weight: 700;
        transition: 0.6s;
        resize: none;
        cursor: pointer;
    }

    & a {
        box-sizing: border-box;
        padding: 4px 0;
        font-size: 12px;
        font-weight: 500;
        text-decoration: underline;
        white-space: nowrap;
        cursor: pointer;
    }

    & .palette {
        height: 40px;
        width: 40px;
        box-sizing: border-box;
        border-radius: 50%;
        box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
    }

    & .text-xs {
        font-size: 11px!important;
    }

    & .text-sm {
        font-size: 12px!important;
    }

    & .text-base {
        font-size: 14px!important;
    }

    & .text-md {
        font-size: 16px!important;
    }

    & .text-lg {
        font-size: 20px!important;
    }

    & .text-xl {
        font-size: 28px!important;
    }

    & .text-xxl {
        font-size: 36px!important;
    }

    & .text-xxxl {
        font-size: 48px!important;
    }
}
