/* =========================================================
   MIDDLE LEFT / RIGHT for Quests
   ========================================================= */

#quest-container {
    flex: 0 0 33.333%;

    min-width: 0;
    min-height: 0;
    padding-left: 100px;
    padding-top: 10px;

    display: flex;
    flex-direction: column;

    overflow: hidden;
}

#quest-container > div {
    display: flex;
    flex-direction: column;

    gap: 10px;

    width: 100%;
    height: 100%;

    padding: 15px;

    overflow-y: auto;
    overflow-x: hidden;
}

#quest-detail {
    flex: 1 1 66.666%;

    min-width: 0;
    min-height: 0;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    background-color: var(--glass-dark);
}

.quest {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;

    min-height: 60px;

    padding: 10px 20px;
    margin: 5px;

    background-color: rgba(0, 0, 0, 0.5);

    border: 2px solid var(--glass-border);

    cursor: pointer;

    transition: transform 0.2s ease-in-out, background-color 0.2s ease-in-out;
}

.quest:hover {
    transform: scale(1.02);
    background-color: rgba(0, 0, 0, 0.7);
}

.quest-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.quest-name {
    font-size: 18px;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.quest-type {
    font-size: 12px;
    color: var(--text-color);
    opacity: 0.6;
    align-self: flex-start;
    text-transform: capitalize;
}

.quest-year {
    font-size: 14px;
    color: var(--text-color);
    opacity: 0.7;
    white-space: nowrap;
    margin-left: 15px;
    flex-shrink: 0;
}


/* =========================================================
   QUEST DETAIL
   ========================================================= */

#quest-detail {
    display: none;
    flex-direction: column;

    width: 100%;
    height: 95%;

    min-width: 0;
    min-height: 0;

    margin-top: 15px;

    overflow: hidden;

    border: 2px solid var(--glass-border);
    background: linear-gradient(
        to right,
        var(--glass-dark-heavy),
        transparent
    );
}

#quest-detail > img {
    flex: 1 1 auto;

    width: 100%;
    height: 100%;

    object-fit: contain;
}

.quest-info {
    flex: 0 0 auto;

    padding: 30px;

    text-align: left;
    z-index: 2;
}

.quest-info h2 {
    margin: 0 0 5px 0;

    font-size: 32px;
}

.quest-date {
    margin: 0 0 20px 0;

    opacity: 0.6;
}

.quest-description {
    margin: 0;
}