/* ################## Message List ################## */
#message-list {
    position: fixed;
    top: 50%;
    right: 0;
    display: flex;
    flex-direction: column-reverse;
    gap: 4px;
}

.message {
    display: flex;
    position: relative;
    cursor: pointer;
    background-color: black;
    color: white;
    padding: 0.5em 0.5em 0.5em 1em;
    border-radius: var(--rounded-border) 0 0 var(--rounded-border);
    font-size: 18px;
}

.message:hover {
    background-color: var(--button-color-main);
}

.message::before {
    content: '';
    height: 2ch;
    width: 2ch;
    background-image: url(/images/envelope.svg);
    background-size: 2ch 2ch;
    background-repeat: no-repeat;
    margin-right: 0.5em;
}

#messages-claim-all-rewards-btn::before {
    background-image: url(/images/sweep.svg);
}

.message h3 {
    margin: 0;
}

/* ################## Message Popup ################## */
#message-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 2em;
    max-width: 80%;
    max-height: 80%;
    overflow: auto;
    z-index: 1000;
    text-align: center;
    font-size: clamp(0.75em, 3vw, 1em);
    line-height: 1.15;
    font-size: 18px;
}

#message-popup.visible {
    display: block;
}

#message-popup h2 {
    margin-top: 0;
}

#message-popup button {
    min-width: 10em;
    font-size: 1.2em;
}

#message-popup button>span {
    padding: 1em 0.5em;
}

#message-popup>div>img {
    width: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: var(--rounded-border);
    max-width: 100%;
    max-height: 35vh;
}

#message-popup .reward-item {
    position: relative;
}

#message-popup .details {
    top: 0;
    position: absolute;
}



#message-popup .tutorial-text {
    display: block;
    padding-top: 1em;
}
#message-popup .tutorial-objective {
    font-weight: 800;
    color: #ffe9aa;
    list-style-type: disclosure-closed;
    text-align: left;
}
#message-popup .tutorial-optional {
    text-align: left;
}
#message-popup .tutorial-hint {
    padding-top: 1em;
}

.message-person-portrait {
    height: 8em;
    width: 8em;
    border-radius: 50%;
}
.message-building-image {
    height: 8em;
    width: auto !important;
    border-radius: unset !important;
    display: block;
    margin: 0 auto 1em;
}