/************
My Events
 */

#events {
    width: 100%;
    margin: auto;
    padding: 0 20px;
    max-width: 1400px;
}

#eventsHeader {
    font-weight: 700;
    font-size: 42px;
    text-align: center;
    margin-bottom: 15px;
}

#eventsPlan {
    margin: 0 auto 30px;
    max-width: 530px;
}

#eventsPlanTitle {
    text-align: center;
    font-size: 20px;
    margin-bottom: 15px;
}

#eventsPlanTitle b {
    font-weight: bold;
}

#eventsPlanList {
    display: grid;
    row-gap: 10px;
    margin: 0 auto;
    width: fit-content;
}

.eventsPlanListItem {
    display: flex;
    gap: 5px;
    align-items: center;
}

.eventsPlanListItem::before {
    content: "";
    background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA1MTIgNTEyIj48IS0tIUZvbnQgQXdlc29tZSBGcmVlIDYuNy4yIGJ5IEBmb250YXdlc29tZSAtIGh0dHBzOi8vZm9udGF3ZXNvbWUuY29tIExpY2Vuc2UgLSBodHRwczovL2ZvbnRhd2Vzb21lLmNvbS9saWNlbnNlL2ZyZWUgQ29weXJpZ2h0IDIwMjUgRm9udGljb25zLCBJbmMuLS0+CiAgICA8cGF0aCBmaWxsPSIjQzU5NDZDIiBkPSJNMjU2IDUxMkEyNTYgMjU2IDAgMSAwIDI1NiAwYTI1NiAyNTYgMCAxIDAgMCA1MTJ6TTM2OSAyMDlMMjQxIDMzN2MtOS40IDkuNC0yNC42IDkuNC0zMy45IDBsLTY0LTY0Yy05LjQtOS40LTkuNC0yNC42IDAtMzMuOXMyNC42LTkuNCAzMy45IDBsNDcgNDdMMzM1IDE3NWM5LjQtOS40IDI0LjYtOS40IDMzLjkgMHM5LjQgMjQuNiAwIDMzLjl6Ii8+Cjwvc3ZnPg==);
    height: 24px;
    width: 24px;
}

#eventsList {
    margin-bottom: 30px;
    display: none;
    row-gap: 15px;
}

#eventsList.active {
    display: grid;
}

.eventsListItem {
    display: grid;
    grid-template-columns: 4fr 4fr 4fr;
    margin: auto;
    border: 2px solid var(--brown);
    border-radius: 8px;
    background-color: #f8f8f8;
    width: 100%;
    overflow: hidden;
}

/**************** Event Poster *************/

.eventsListItemPoster {
    width: 100%;
    position: relative;
    border-right: 2px solid var(--brown);
}

.eventsListItemPosterEdit {
    padding: 6px 14px;
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 19px;
    font-weight: 500;
    background-color: white;
    border-radius: 12px;
    justify-content: center;
    align-items: center;
    gap: 6px;
    border: 3px solid var(--brown);
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
    display: none;
}

.eventsListItemPosterEdit.active {
    display: flex;
}

.eventsListItemPosterEdit svg {
    width: 23px;
    height: auto;
}

.eventsListItemPosterImage {
    aspect-ratio: 1;
    object-fit: cover;
}

/*********************** Info ******************/

.eventsListItemInfo {
    display: flex;
    flex-direction: column;
    padding: 20px 10px 20px 20px;
    gap: 10px;
}

.eventsListItemInfoGeneral {
    background-color: rgba(255, 255, 255);
    border-radius: 8px;
    padding: 10px;
    border: 2px solid var(--brown);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.eventsListItemInfoGeneral span {
    font-weight: 500;
}

.eventsListItemInfoGeneralTitle {
    font-size: 20px;
    font-weight: 500;
    display: flex;
    gap: 8px;
}

.eventsListItemInfoGeneralTitleEdit {
    cursor: pointer;
}

.eventsListItemInfoGeneralTitleEdit svg {
    width: 20px;
    height: auto;
}

.eventsListItemInfoGeneralCount,
.eventsListItemInfoGeneralCreated {
    font-size: 14px;
}


.eventsListItemInfoStatus {
    border-radius: 8px;
    background-color: rgba(255, 255, 255);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    padding: 10px;
    border: 2px solid var(--brown);
}

.eventsListItemInfoStatus b {
    font-weight: 500;
}

.eventsListItemInfoStatus::before {
    content: "";
    height: 10px;
    width: 10px;
    border-radius: 100%;
}

.eventsListItemInfoStatus[data-active="true"]::before {
    background-color: #15cd72;
}

.eventsListItemInfoStatus[data-active="true"]::after {
    content: "Active - Uploads Enabled";
}

.eventsListItemInfoStatus[data-active="false"]::before {
    background-color: #ff9f24;
}

.eventsListItemInfoStatus[data-active="false"]::after {
    content: "Inactive - Uploads Disabled";
}

.eventsListItemInfoExpired {
    display: none;
}

.eventsListItemInfoExpired.active {
    display: flex;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    background-color: rgba(255, 255, 255);
    border-radius: 8px;
    padding: 10px;
    border: 2px solid var(--brown);
}

.eventsListItemInfoButton {
    padding: 12px 6px;
    border: 2px solid var(--brown);
    border-radius: 6px;
    width: 100%;
    text-align: center;
    background-color: white;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    gap: 5px;
    justify-content: center;
    align-items: center;
}

.eventsListItemInfoButton svg {
    width: 20px;
    height: auto;
}

/*************** Actions **************/

.eventsListItemAction {
    padding: 20px 20px 20px 10px;
    display: flex;
    flex-direction: column;
    row-gap: 10px;
}

.eventsListItemActionItem {
    padding: 12px 6px;
    border: 2px solid var(--brown);
    border-radius: 6px;
    width: 100%;
    text-align: center;
    background-color: white;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    gap: 5px;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
}

.eventsListItemActionItem:first-child {
    font-weight: 700;
    color: white;
    background-color: var(--brown);
    border: none;
    flex-grow: 2;
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
}

.eventsListItemActionItem:first-child:last-child {
    flex-grow: 0;
}

.eventsListItemActionItem:hover {
    text-decoration: underline;
}

.eventsListItemActionItem svg {
    width: 20px;
    height: auto;
}

#eventsEmpty {
    display: none;
}

#eventsEmpty.active {
    display: block;
}

#eventsEmptyTitle {
    text-align: center;
    font-size: 20px;
    margin-bottom: 20px;
}

@media (max-width: 800px) {
    #eventsHeader {
        margin-bottom: 10px;
        font-size: 32px;
    }

    #eventsPlanTitle {
        font-size: 18px;
    }

    .eventsPlanListItem {
        font-size: 14px;
    }

    .eventsPlanListItem::before {
        height: 20px;
        width: 20px;
    }

    .eventsListItem {
        width: 100%;
        grid-template-columns: 1fr;
    }

    .eventsListItemPoster {
        border-right: none;
    }

    .eventsListItemInfo {
        padding: 20px 20px 10px 20px;
    }

    .eventsListItemAction {
        order: 1;
        padding: 0 20px 20px 20px;
    }

}

/******
QR Popup
 */

#qr {
    
}

#qr img {
    width: 100% !important;
    height: auto !important;
}