:root {
    --picture-size: 105px;
}

.main {
    margin: auto;
    max-width: 1350px;
    overflow: hidden;
    margin-bottom: 30px;
}

.event-banner {
    display: flex;
    column-gap: 7px;
}

.event-banner > li:first-child img {
    height: 420px;
}

.event-banner > li:last-child {
    height: 420px;
    width: 100%;
    background-attachment: unset;
    position: relative;
}

.event-banner > li:last-child > div:first-child {
    background-image: url(https://assets.serius.pt/cover/filter2.webp);
    width: 100%;
    height: 100%;
    background-position-y: bottom;
    opacity: 0.5;
}

.event-banner > li:last-child > div:last-child {
    top: 15px;
}

.event-banner > li:last-child > div:nth-child(2) {
    position: absolute;
    left: 15px;
    bottom: 15px;
    color: white;
    z-index: 1;
}

.event-banner > li:last-child > div:nth-child(2) li:first-child {
    font-size: 40px;
    font-weight: bold;
}

.event-banner > li:last-child > div:nth-child(2) li:nth-child(2) {
    font-size: 25px;
    margin-top: -5px;
    color: var(--font-light);
}

.event-banner > li:last-child > div:nth-child(2) li:last-child {
    font-size: 15px;
    color: var(--font-light);
}

.events-list {
    padding: 0 80px;
    background-color: var(--main-color);
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 5px;
    padding-bottom: 20px;
}

.events-list > p {
    color: var(--font-light);
    font-size: 30px;
}

.events-list > li {
    display: inline-block;
    margin: auto;
}

.events-list > li > a {
    display: flex;
    flex-direction: column;   
}

.events-list > li > a > img {
    max-width: 150px;
    width: 22vw;
    border-radius: 10px;   
    margin: auto;
}

.events-list > li > a > span {
    text-align: center;
    margin-top: 10px;
    width: 150px;
    overflow: hidden;
    font-weight: bold;
}

.events-container {
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

.event-info {
    background-color: var(--main-color);
    padding: 10px;
}

.event-info-rows {
    padding: 20px;
    min-height: 100px;
}

.event-info-rows > div > div > p {
    color: var(--font-light);
}

.event-info-rows > div > div > div {
    padding: 5px;
}

#small-screen-poster img {
    margin: auto;
}

.navbar > ul {
    background-color: var(--main-color);
}

.navbar > ul > li:not(:first-child) {
    filter: unset;   
}

.burger-menu > ul > li {
    background-color: black;
}

.event-navbar {
    display: flex;
    column-gap: 10px;
    width: 100%;
    overflow-x: auto;
    scroll-behavior: smooth;
}

.event-navbar li {
    padding: 10px;
    border-bottom: 1px solid var(--font-light);
    color: var(--font-light);
    cursor: pointer;
    margin-bottom: 5px;
}

.event-navbar li:hover, .event-navbar-active {
    border-bottom: 1px solid var(--font-bold) !important;
    color: var(--font-bold) !important;
}

.event-navbar a {
    position: relative;
}

.event-navbar a .green-notification-dot {
    top: 4px;
    right: 3px;
}

.character-row {
    column-gap: 10px;
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(300px,1fr));
}

.character-row > li {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 6px;
    display: block;
    margin: 5px 0;
    overflow: hidden;
}

.character-row > li > ul {
    display: flex;
    column-gap: 20px;
    text-align: left;
    align-items: center;
}

.character-row > li > ul > li:not(:nth-child(2)) {
    padding: 10px;
}

.character-row > li > ul li:first-child img {
    height: var(--picture-size);
    min-width: var(--picture-size);
    border-radius: 6px;
    margin-bottom: -5px;
} 

.character-row > li > ul li:nth-child(2) {
    width: 100%;
    overflow: auto;
    padding-right: 10px;
}

.character-row > li > ul li:nth-child(2) > ul {
    display: flex;
    flex-direction: column;
    row-gap: 2px;
}

.character-row > li > ul li:nth-child(2) > ul li:first-child {
    font-size: 16px;
    font-weight: bold;
    color: var(--font-bold);
}

.character-row > li > ul li:nth-child(2) > ul li:nth-child(2) {
    color: gray;
    font-size: 13px;
}

.character-row > li > ul li:last-child img {
    width: var(--picture-size);
    border-radius: 50%;
    margin-bottom: -5px;
}

.events-section {
    background-color: var(--main-color);
    padding: 20px 40px;
}

#past-sessions > .section-title {
    cursor: pointer;
}

#past-sessions  > .section-title:hover {
    opacity: 0.7;
}

.event-sessions {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(420px,1fr));
    column-gap: 15px;
}

.event-sessions > li {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    column-gap: 10px;
    border: 1px solid var(--border);
    margin: 5px 0;
}

.event-sessions > li img {
    width: 110px;
}

.event-sessions > li > a:nth-child(2) {
    height: 100%;
    border-left: 4px solid #fa7777;
    display: inline-grid;
}

.event-sessions > li ul {
    padding-left: 15px;
}

.event-sessions > li ul > li:first-child {
    font-size: 17px;
    color: gray;
}

.event-sessions > li ul > li:nth-child(2) {
    font-size: 20px;
    font-weight: bold;
    color: var(--font-bold);
}

.event-sessions > li ul > li:nth-child(3) {
    font-size: 18px;
    font-weight: bold;
    color: var(--font-bold);
}

.event-sessions > li ul > li:nth-child(4) {
    font-size: 18px;
    margin-top: 20px;
}

.no-sessions {
    font-size: 20px;
    color: gray;
    padding: 20px;
    padding-left: 60px;
}

.event-team {
    margin: 0 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    row-gap: 15px;
}

.team-section-title {
    font-size: 28px;
    font-weight: bold;
    margin: 5px;
}

.team-section-list {
    font-size: 20px;
    display: flex;
    flex-direction: column;
    row-gap: 5px;
}

.team-section-list > li {
    display: flex;
    flex-direction: column  ;
}

.team-section-list a {
    text-decoration: underline;
}

.team-section-entry-note {
    font-size: 16px;
    color: gray;
}

.event-location {
    display: flex;
    flex-direction: row;
    height: 300px;
    column-gap: 20px;
}

.event-location > li:first-child {
    margin: 20px 0px;
    width: 400px;
}

.event-location > li:first-child > ul {
    display: flex;
    flex-direction: column;
    row-gap: 10px;
}

.event-location > li:first-child > ul > li:first-child {
    font-size: 30px;
    font-weight: bold;
}

.event-location > li:first-child > ul > li:nth-child(2) {
    font-size: 20px;
}

.event-location > li:first-child > ul > li:nth-child(3) {
    display: flex;
    flex-direction: row;
    column-gap: 10px;
    align-items: center;
}

.event-location > li:first-child > ul > li:nth-child(3) img {
    width: 30px;
    height: 30px;
    opacity: 0.7;
}

.event-location > li:last-child {
    width: 100%;
}

.event-location > li:last-child > ul {
    height: 100%;
}

.event-location > li:last-child > ul > li:last-child {
    display: flex;
    align-items: center;
    column-gap: 10px;
}

.event-location > li:last-child > ul iframe {
    width: 100%;
    height: 255px;
}

.event-location > li:last-child > ul > li:last-child {
    font-size: 14px;
    display: flex;
    align-items: center;
    column-gap: 8px;
    padding: 10px 0;
    height: 100%;
    position: relative;
}

.event-location > li:last-child > ul > li:last-child > img {
    width: 25px;
}

.map-loading {
    width: 100%;
    text-align: center;
    height: fit-content;
    margin: auto;
    position: absolute;
    background-color: var(--main-color);
    padding: 140px 0px;
}

@media only screen and (min-width: 870px) {
    .event-navbar a:first-child {
        display: none;
    }
}

@media only screen and (max-width: 870px) {
    .events-list {
        padding-left: unset !important;
        padding-right: unset !important;
    }
}

@media only screen and (max-width: 750px) {
    .events-list > ul > li > a > img {
        width: 125px;
    }
    
    .events-list > ul > li > a > span {
        width: 125px;
        font-size: 13px;
    }
}

@media only screen and (max-width: 700px) {
    .event-location {
        flex-direction: column;
        height: unset;
        column-gap: unset;
        row-gap: 10px;
    }
    
    .event-location > li:first-child {
        width: unset;
    }

    .event-location > li:last-child {
        width: 100%;
    }
    
    .event-location > li:last-child > ul iframe {
        width: 98%;
    }
}

@media only screen and (max-width: 670px) {
    .event-info-rows {
        padding: 0px;
    }
}

@media only screen and (min-width: 651px) {
    .event-navbar a:first-child {
        display: none;
    }
    
    #small-screen-poster {
        display: none;
    }
}

@media only screen and (max-width: 650px) {
    .event-banner > li:first-child, .events-section > .title .arrow  {
        display: none;
    }

    .events-section > .title, .events-list > ul, .events-list {
        text-align: center;
    }

    .no-sessions {
        padding-left: 20px;
        text-align: center;
    }

    .events-list > ul > li > a > img {
        margin: auto;
    }
}

@media only screen and (max-width: 600px) {
    /* Hide scrollbar for Chrome, Safari and Opera */
    .event-navbar::-webkit-scrollbar {
      display: none;
    }
    
    /* Hide scrollbar for IE, Edge and Firefox */
    .event-navbar {
      -ms-overflow-style: none;  /* IE and Edge */
      scrollbar-width: none;  /* Firefox */
    }

    .events-list {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
}

@media only screen and (max-width: 500px) {
    .events-list > ul > li > a > img {
        width: 100px;
    }

    .event-sessions {
        grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
    }

    .team-section-title {
        font-size: 24px;
    }

    .team-section-list {
        font-size: 16px;
    }

    .events-list {
        grid-template-columns: repeat(auto-fill, minmax(125px, 1fr));
    }
}

@media only screen and (max-width: 400px) {
    :root {
        --picture-size: 70px;
    }
    
    .events-list {
        padding: 0 20px;
    }
    
    .events-list > p {
        font-size: 20px;
        text-align: center;
    }

    .events-list > ul > li > a > img {
        margin: auto;
    }
}
