:root {
    --borderRadius: 4px;
}

html, body {
    width: 100%;
    height: 100%;
    cursor: default;
    font-size: 14px;
    background-color: var(--colorBgSecondary);
    color: var(--colorText);
}

@media screen and (max-width: 980px) {
    .popup {
        background-color: var(--colorBgSecondary);
        padding: 20px;
        width: calc(100vw - 20px);
        border-radius: var(--borderRadius);
        position: fixed;
        bottom: 50px;
        left: 10px;
    }

    .change-theme-button {
        width: 30px;
        height: 30px;
        margin: 20px;
        right: 0;
        position: absolute;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: rgba(255, 255, 255, 0.3);
        color: #333;
        border-radius: var(--borderRadius);
        font-size: 16px;
    }

    .cover {
        height: calc(100vw / 1.5);
    }

    .header-nav {
        display: none;
    }

    main {
        width: calc(100% - 20px);
        padding-bottom: 60px;
    }

    .filter-main {
        margin-bottom: 10px;
    }

    footer {
        position: fixed;
        width: 100%;
        left: 0;
        bottom: 0;
        background-color: var(--colorBgMain);
        border-top: 1px solid var(--colorBgSecondary);
    }

    footer nav {
        display: flex;
        justify-content: center;
    }

    footer a {
        line-height: 50px;
        color: var(--colorTextComment);
        text-align: center;
        padding: 0 30px;
    }

    .header-nav {
        display: none;
    }

    .event-popup-content__avatar {
        width: calc(100vw - 60px);
        height: calc(100vw - 60px);
    }
}

@media screen and (min-width: 981px) {

    .event-popup-content__avatar {
        width: 260px;
        height: 260px;
    }
    .popup {
        background-color: var(--colorBgSecondary);
        padding: 20px;
        margin: 20px auto;
        width: 300px;
        border-radius: var(--borderRadius);
    }

    .change-theme-button {
        display: none;
    }

    header {
        width: 960px;
        margin: 0 auto;
        display: flex;
        border-bottom-left-radius: var(--borderRadius);
        border-bottom-right-radius: var(--borderRadius);
        overflow: hidden;
    }

    .cover {
        width: 150px;
        height: 100px;
    }

    .header {
        width: calc(100% - 150px);
    }

    .header-main {
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    main {
        width: 960px;
    }

    footer {
        display: none;
    }

    .filters {
        display: flex;
        justify-content: space-between;
    }

    .filter-main {
        width: 300px;
    }

    .filter-search {
        width: calc(100% - 310px);
    }

    .header-nav {
        display: flex;
    }
}

.cover {
    background-size: cover;
    position: relative;
}

.header {
    background-color: var(--colorBgMain);
}

.header-festival {
    display: flex;
    padding: 10px 20px;
    justify-content: space-between;
}

.header-festival__info__name {
    font-size: 20px;
    color: var(--colorMain);
    font-weight: bold;
}

.header-festival__info__dates {
    color: var(--colorTextComment);
    margin-top: 5px;
}

.header-festival__auth {
    width: 30px;
    height: 30px;
    background-size: cover;
    border-radius: var(--borderRadius);
}

.header-nav {
    height: 30px;
    background-color: var(--colorBgNav);
}

.header-nav a {
    line-height: 30px;
    padding: 0 30px;
    color: var(--colorTextComment);
}

main {
    margin: 10px auto;
}

.filters {
    margin-bottom: 10px;
}

.filters select, .filters input {
    border: none;
    border-radius: var(--borderRadius);
    background-color: var(--colorBgMain);
    outline: none;
    padding: 5px 10px;
    width: 100%;
    height: 30px;
    color: var(--colorText);
}

.filter-main {
    display: flex;
    justify-content: space-between;
}

.filter-main select {
    width: calc(50% - 5px);
}

.filter-search form {
    display: flex;
}

.filter-search .filter-search-button {
    height: 30px;
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--colorBgMain);
    margin-left: -5px;
    border-top-right-radius: var(--borderRadius);
    border-bottom-right-radius: var(--borderRadius);
    cursor: pointer;
}

.event {
    display: flex;
    padding: 10px;
    background-color: var(--colorBgMain);
    border-radius: var(--borderRadius);
}

.event:not(:last-child) {
    margin-bottom: 10px;
}

.event-avatar {
    width: 50px;
    height: 50px;
    border-radius: var(--borderRadius);
    background-size: cover;
    margin-right: 10px;
}

.event-time {
    width: 70px;
    margin-right: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.event-time__start, .event-info__name {
    color: var(--colorText);
    font-weight: bold;
    font-size: 16px;
}

.event-time__end, .event-time__date, .event-info__location {
    color: var(--colorTextComment);
    font-size: 12px;
}

.event-time__date {
    color: var(--colorTextComment);
    font-size: 12px;
}

.event-info {
    width: calc(100% - 150px);
    margin-right: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.event-follow {
    width: 50px;
    height: 30px;
    border: 1px solid var(--colorTextComment);
    border-radius: var(--borderRadius);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.event-follow:not(.event-follow_active) i.fa-solid {
    display: none;
}

.event-follow.event-follow_active i.fa-regular {
    display: none;
}

.event-follow.event-follow_active {
    border: 1px solid var(--colorMain);
    background-color: var(--colorMain);
    color: var(--colorBgMain);
}

nav {
    display: flex;
}

nav a {
    display: block;
}

nav a.active {
    color: var(--colorMain);
}


footer a {
    line-height: 50px;
}

.shield {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    left: 0;
    top: 0;
}

.tgbanner {
    background-color: var(--colorMain);
    padding: 10px;
    border-radius: var(--borderRadius);
    margin-bottom: 10px;
    color: #333;
}

.tgbanner-caption {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.tgbanner-description {
    font-size: 15px;
    margin-bottom: 10px;
}

.event-popup-content__avatar {
    background-size: cover;
    margin-bottom: 10px;
}

.event-popup-content__name {
    font-weight: bold;
    margin-bottom: 5px;
}

.event-popup-content__info {
    font-size: 12px;
    color: var(--colorTextComment);
}

.event-popup-content__link {
    margin-top: 10px;
    display: flex;
    color: var(--colorText);
    align-items: center;
}

.event-popup-content__link i {
    margin-right: 10px;
}

.event-popup-content__link a {
    color: var(--colorText);
}

.event-popup-content__description {
    margin-top: 10px;
}

.event-info_with-details .event-info__name {
    text-decoration: underline  #B0CB08;
}

.question {
    margin-top: 20px;
}

.question-answer {
    display: none;
    margin-top: 10px;
    background-color: rgba(175,175,175,0.2);
    padding: 20px;
    border-radius: 4px;
}

.question-question {
    font-weight: bold;
    text-decoration: underline;
}

.event_past {
    display: none;
}

.show-past-button {
    padding: 10px 0 15px;
    text-decoration: underline dashed;
}