AchievementMenu {
    position: relative;
    width: 32px;
    height: 32px;
    padding: 16px;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    pointer-events: none;
    background-color: rgba(black, 0.5);
    font-family: Verdana;
    color: white;
    width: 32px;
    height: 32px;
    transition: all 0.2s ease-out;
    z-index: 100;

    * {
        text-overflow: clip;
    }

    .open-close {
        position: absolute;
        top: 0px;
        left: 0px;
        width: 32px;
        height: 32px;
        color: white;
        pointer-events: all;
        cursor: pointer;

        i {
            position: absolute;
            width: 100%;
            height: 100%;
            justify-content: center;
            align-items: center;
            text-align: center;
            opacity: 1;
            transition: all 0.2s ease-out;

            &.hide {
                opacity: 0;
            }
        }
    }

    h1 {
        width: 100%;
        opacity: 0;
        font-weight: black;
        font-size: 24px;
        text-overflow: clip;
        white-space: nowrap;
        flex-shrink: 0;
        justify-content: center;
        align-items: center;
        text-align: center;
        margin-top: -4px;
        margin-bottom: 8px;
    }

    .achievement-count {
        position: absolute;
        top: 14px;
        right: 16px;
        font-size: 16px;
        opacity: 0;
        text-overflow: clip;
    }

    .content {
        flex-direction: column;
        flex-grow: 1;
        width: 100%;
        overflow-y: scroll;
        pointer-events: all;
        gap: 4px;
        opacity: 0;
        padding-top: 8px;
    }

    &.open {
        width: 500px;
        height: 300px;
        background-color: rgba(black, 0.5);
        sound-in: ui.navigate.forward;
        sound-out: ui.navigate.back;

        h1 {
            opacity: 1;
        }

        .achievement-count {
            opacity: 1;
        }

        .content {
            opacity: 1;
        }
    }
}
