/* --------------------------------- assignmentCard */
assignment-card {
    pointer-events: auto;
    display: block;
    box-sizing: border-box;
    border: 2px solid transparent;
    min-width: 500px;
    max-width: 500px;
    animation: assignmentCardFadeIn 1.5s ease-in-out;
    height: fit-content;
    z-index: 3;
}

@keyframes assignmentCardFadeIn {
    from {
        transform: translateY(55px) scale(0.8);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.assignment-card-content {
    width: 100%;
    display: grid;
    grid-template-rows: auto auto;
    justify-items: center;
}

/* ------------------------------ assignment header */
.assignment-header {
    margin-top: 60px;
    position: relative;
    box-sizing: border-box;
    border-radius: 20px;
    opacity: 1;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: var(--wb-80-blue) !important;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
    width: 100%;
    height: 130px;
    color: white;
    overflow: hidden;
    transition: background-color 0.5s ease-in-out,
    border-color 0.5s ease-in-out,
    margin-top 0.5s ease-in-out,
    height 0.5s ease-in-out;
    }

.assignment-header:hover {
    cursor: pointer;
    background: var(--wb-70-blue) !important;
}

.assignment-header.loading {
    animation: loading 2s infinite ease-in-out;
}

@keyframes loading {
    0% {
        opacity: 0.4;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.4;
    }
}

.assignment-header.not-found {
    animation: notFound 2s infinite ease-in-out;
}

@keyframes notFound {
    0% {
        border: 1px solid rgba(255, 255, 255, 0.18);
    }
    50% {
        border: 1px solid rgba(237, 0, 64, 1);
    }
    100% {
        border: 1px solid rgba(255, 255, 255, 0.18);
    }
}

.assignment-header.active {
    margin-top: 0;
    background: var(--accent) !important;
    height: 190px;
    color: black;
}

.assignment-header.active:hover {
    background: var(--accent-dark) !important;
}

.assignment-header.highlighted {
    animation: highlighted 2s infinite ease-in-out;
}

@keyframes highlighted {
    0% {
        border: 1px solid rgba(255, 255, 255, 0.18);
    }
    50% {
        border: 1px solid rgb(255, 255, 255);
    }
    100% {
        border: 1px solid rgba(255, 255, 255, 0.18);
    }
}

.assignment-icon {
    box-sizing: border-box;
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: end;
    padding: 10px 10px;
    fill: var(--wb-60-blue);
}

.assignment-icon.active {
    fill: black;
}

.assignment-icon svg {
    width: 30px;
}

.assignment-name {
    position: absolute;
    bottom: 0;
    width: calc(100% - 100px);
    box-sizing: border-box;
    margin: 30px 50px;
    grid-area: description;
    text-align: center;
    font-weight: 400;
    font-size: 0.85rem;
}

.click-to-open-animation {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 70px;
    height: 70px;
    z-index: 1;
}

#cursor-group {
    animation: cursorGroupAnimation 4s ease-in-out infinite;
}

@keyframes cursorGroupAnimation {
    0% {
        translate: 60px 60px;
    }
    50% {
        translate: 10px 10px;
        scale: 1;
    }
    55% {
        scale: 0.8;
    }
    58% {
        scale: 1;
    }
    61% {
        translate: 10px 10px;
    }
    100% {
        translate: 60px 60px;
    }
}

#sprinkles-group {
    translate: 7px 7px;
    animation: sprinklesGroupAnimation 4s ease-in-out infinite;
}

@keyframes sprinklesGroupAnimation {
    0%, 55% {
        opacity: 0;
    }
    58% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}


/* -------------------------------- assignment Body */
.assignment-body {
    will-change: height, opacity, margin-top;
    border-radius: 12px;
    border: 2px solid var(--wb-20);
    background: var(--wb-5) !important;
    overflow: hidden;
    opacity: 0;
    margin-top: 0;
    width: 100%;
    height: 0;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
}

.assignment-body.opening {
    animation: openAssignmentBody 0.5s ease forwards;
}

.assignment-body.closing {
    animation: closeAssignmentBody 0.5s ease forwards;
}

@keyframes openAssignmentBody {
    0% {
        margin-top: 0;
        height: 0;
        opacity: 0;
    }
    10% {
        margin-top: 8px;
        opacity: 1;
    }
    100% {
        margin-top: 8px;
        height: var(--target-height, 1000px);
        opacity: 1;
    }
}

@keyframes closeAssignmentBody {
    0% {
        margin-top: 8px;
        height: var(--target-height, 1000px);
        opacity: 1;
    }
    90% {
        margin-top: 8px;
        height: 30px;
        opacity: 1;
    }
    100% {
        margin-top: 0;
        height: 0;
        opacity: 0;
    }
}

.assignment-body-content {
    width: 100%;
    box-sizing: border-box;
    padding: var(--gap-colosal);
    display: grid;
    grid-template-areas:
        "icon"
        "title"
        "description"
        "assets"
        "asset-groups"
        "separator"
        "comments";
    gap: 50px;
    transition: opacity 1.2s ease-in-out, transform 1.2s ease-in-out;
    opacity: 0;
    transform: translateY(35px);
}

.assignment-body-content.open {
    opacity: 1;
    transform: translateY(0);
}

.assignment-body-content .icon {
    grid-area: icon;
    width: 40px;
    fill: var(--gold);
}

.assignment-body-content .title {
    grid-area: title;
    text-transform: capitalize;
    font-weight: var(--font-weight-semi-bold);
    font-size: 1.1rem;
    color: var(--wb-80);
}

.assignment-body-content h3 {
    margin: 0;
}

.assignment-body-content .description {
    grid-area: description;
    font-size: 0.8rem;
    color: var(--wb-60);
    fill: var(--accent);
    line-height: 25px;
}

.assignment-body-content .assets {
    grid-area: assets;
    box-sizing: border-box;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: var(--gap-bigger);
}

.assignment-body-content .asset-groups {
    grid-area: asset-groups;
    box-sizing: border-box;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: var(--gap-small);
}

.assignment-body-content .separator {
    grid-area: separator;
    stroke: var(--wb-30);
    stroke-width: 2;
    width: 100%
}

.assignment-body-content .comments {
    grid-area: comments;
    display: flex;
    flex-direction: column;
}

.API-output-error {
    margin: 0;
    font-size: 0.7rem;
}

.API-output-message {
    margin: 0;
    font-size: 0.7rem;
}












/*.assignment-header.error {*/
/*    margin-top: 0;*/
/*    background: var(--error) !important;*/
/*    height: 190px;*/
/*}*/

/*.assignment-header .ui-message-error {*/
/*    color: var(--wb-20);*/
/*}*/



