:root {
    --dark: #404040;
    --event-next: #4fb795;

    --back-color: #f7f7f7;
    --main-color: white;
    --font: #535353;
    --font-bold: #545454;
    --font-light: #b6b6b6;
}

ul {
    padding: 0;
    margin: 0;
}

li {
    list-style: none;
}


body {
    padding: 0;
    margin: 0;
    font-family: 'Avenir LT Std', sans-serif;
    background-color: var(--back-color);
    overflow-x: hidden;
}

.main {
    color: var(--font);
    min-height: calc(100% - 310px) !important;
    margin-bottom: 20px !important;
}

p {
    margin: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

footer {
    background-color: var(--main-color);
    color: #b6b6b6;
    text-align: center;
    padding: 50px; 
}

footer > ul {
    display: flex;
    flex-direction: column;
    row-gap: 15px;
}

footer > ul ul {
    display: flex;
    column-gap: 10px;
    margin: auto;
    align-items: center;
}

footer > ul li img {
    width: 20px;
    opacity: 0.6;
    filter: invert(1);
}

input:focus-visible {
    outline: unset;
}

img {
    display: block;
}

.absolute-centered {
    bottom: 0;
    top: 0;
    left: 0;
    right: 0;
    width: fit-content;
    height: fit-content;
    margin: auto;
    position: absolute;
}

.no-select {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.loading-cover {
    width: 100%;
    height: 100%;
    position: absolute;
    background-color: var(--back-color);
    z-index: 10;
}

.loading-cover > img {
    left: 0;
    width: 90px;
    right: 0;
    position: absolute;
    top: 0;
    bottom: 0;
    height: fit-content;
    margin: auto;
}

.loader {
    width: 130px;
    height: 75px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-evenly;
    top: 270px;
    transform: scale(0.7)
}

.loader > span {
    font-size: 17px;
    margin: auto;
    color: #a4a4a4;
}

.loader > div {
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background-color: #bfbfbf;
    animation: bounce .5s alternate infinite;
}

.loader > div:nth-child(2) {
    animation-delay: .16s;
}

.loader > div:nth-child(3) {
    animation-delay: .32s;
}

@keyframes bounce {
    from {
        transform: scaleX(1.25);
    }
    
    to {
        transform: translateY(-50px) scaleX(1);
    }
}

.top {
    width: 100%;
    height: 700px;
}

.top>div:nth-child(2) > div:first-child {
    background-image: url(https://assets.serius.pt/cover/filter2.webp);
    width: 100%;
    height: 100%;
    background-position-y: bottom;
}

/* IMAGE SLIDER */
.image-slider {
    height: 92%;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow-x: hidden;
    position: relative;
}

.slider-chooser {
    position: absolute;
    top: 215px;
    left: 0;
    right: 0;
    margin: auto;
    width: fit-content;
}

.slider-chooser > ul {
    column-gap: 10px;
    display: flex;
    flex-direction: row;
}

.slider-chooser > ul > li {
    width: 10px;
    height: 10px;
    background-color: gray;
    border-radius: 50%;
    opacity: 0.4;
    cursor: pointer;
    transition: 0.3s;
    border: 1px solid var(--font-light);
}

.slider-chooser > ul > li:hover {
    opacity: 1 !important;
}

.slider-active {
    opacity: 1 !important;
    background-color: var(--back-color) !important;
}

.slider-arrows {
    position: absolute;
    bottom: 0;
    top: 0;
    left: 0;
    right: 0;
    margin: auto;
    display: flex;
    height: 100%;
    padding: 0 20px;
    align-items: center;
}

.slider-arrows > li {
    width: 100%;
    cursor: pointer;
    align-items: center;
    display: flex;
    flex-flow: row-reverse;
    opacity: 0.3;
    transition: 0.3s;
}

.slider-arrows > li:hover {
    opacity: 0.6;
}

.slider-arrows > li:last-child {
    text-align: right;
}

.slider-arrows > li img {
    width: 35px;
    height: auto;
    filter: invert(1);
    pointer-events: none;
}

.slider-arrows > li:first-child {
    transform: rotate(180deg);
}

.slider-progress-bar {
    position: absolute;
    bottom: 0;
    height: 5px;
    background-color: var(--main-color);
    width: 0;
    transition: linear var(--slider-timer);
}

.separator {
	width: 80%;
	height: 1px;
	background-color: var(--font-light);
	margin: auto;
}

.section-title {
    font-size: 30px;
    font-weight: bold;
    padding: 20px;
    position: relative;
}

.section-title > span {
    font-size: 20px;
    color: gray;
    margin-left: 15px;
}

.section-title > .arrow {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    height: fit-content;
}

.section-title > .arrow img {
    width: 20px;
    opacity: 0.7;
}

.character-no-img {
	width: 130px;
	height: 130px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--back-color);
	border-radius: 10px;
    font-size: 25px;
    color: var(--font);
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(200px,1fr));
    gap: 5px;
}

.photo-grid > li {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.photo-grid > li:hover {
    cursor: pointer;
    filter: brightness(0.7);
}

.photo-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.92);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: unset !important;
    flex-direction: column;
    row-gap: 50px;
}

.photo-popup .photo-container {
    max-width: calc(100% - 40px);
    max-height: 70%;
}

.photo-popup .photo-container img {
    width: 100%;
    height: 100%;
}

.photo-popup > * {
    padding: unset !important;
}

.photo-popup .loading {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    width: fit-content;
    height: fit-content;
    margin: auto;
    color: white;
    opacity: 0.5;
    font-size: 20px;
}

.photo-arrows {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    display: flex;
    height: fit-content;
    width: 95%;
    align-items: center;
}

.photo-arrows > li {
    cursor: pointer;
    align-items: center;
    display: flex;
    opacity: 0.3;
    transition: 0.3s;
    filter: invert(1);
    position: absolute;
}

.photo-arrows > li.left-arrow {
    transform: rotate(180deg);
    left: 10px;
}

.photo-arrows > li.right-arrow {
    right: 10px;
}

.photo-arrows > li:hover {
    opacity: 0.6;
}

.photo-characters-list {
    width: 95%;
    overflow-x: auto;
    overflow-y: hidden;
}

.photo-characters-list > ul {
    display: flex;
    gap: 40px;
    align-items: start;
    justify-content: center;
    flex-wrap: nowrap;
    min-width: max-content;
    max-height: 180px;
    overflow: auto;
    color: white;
}

.photo-characters-list > ul > li:hover {
    cursor: pointer;
    opacity: 1 !important;
}

.photo-characters-list > ul > li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 10px;
}

.photo-characters-list > ul > li img {
    width: 90px;
    border-radius: 15px;
}

.photo-characters-list > ul > li span {
    font-size: 20px;
    max-width: 110px;
    text-align: center;
}

.photo-characters-list {
    scrollbar-width: thin;
    scrollbar-color: #888 transparent;
}

.photo-popup-close {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    margin: auto;
    width: fit-content;
    cursor: pointer;
    opacity: 0.3;
}

.photo-popup-close img {
    width: 70px;
    filter: invert(1);
}

.photo-popup .photo-container {
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    row-gap: 5px;
}

.photo-popup .photo-bottom-section {
    display: flex;
    align-items: center;
    column-gap: 10px;
    padding: 5px 15px;
    background-color: var(--main-color);
    justify-content: space-between;
}

.photo-popup .photo-bottom-section li:first-child {
    width: 40px;
    height: 40px;
    overflow: hidden;
    border-radius: 50%;
}

.photo-popup .photo-bottom-section li:nth-child(2) {
    font-size: 18px;
    color: var(--font);
    text-wrap: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 50vw;
}

.photo-popup .photo-bottom-section li:last-child {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.photo-popup .photo-bottom-section li:last-child:hover {
    opacity: 0.5;
}

.green-notification-dot {
    position: absolute;
    top: 0;
    right: 0;
    width: 8px;
    height: 8px;
    background-color: #00a8a1;
    border-radius: 50%;
    border: 3px solid white;
    z-index: 100;
}

:focus:not(:focus-visible) {
  outline: none;
}

* {
  -webkit-tap-highlight-color: transparent;
}

@media only screen and (min-width: 680px) {
    .photo-popup-close {
        display: none;
    }
}

@media only screen and (max-width: 680px) {
    .photo-popup {
        flex-direction: unset;
    }

    .photo-characters-list {
        position: absolute;
        bottom: 30px;
    }

    .photo-characters-list > ul {
        display: grid;
        gap: 20px;
        grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
        justify-content: center;
    }

    .photo-characters-list > ul > li span {
        display: none;
    }

    .photo-characters-list img {
        width: 65px !important;
    }

    .photo-arrows {
        width: 100%;
    }
    
    .photo-arrows > li {
        padding: 15px;
        padding-right: 0px;
    }
    
    .photo-arrows > li img {
        width: 35px;
    }

    .photo-popup .photo-container img {
        height: unset;
    }
}

@media only screen and (max-width: 540px) {   
    .top {
        height: 550px;
    }

    .photo-characters-list {
        position: absolute;
        bottom: 10px;
    }

    .section-title {
        text-align: center;
    }
}

@media only screen and (max-width: 450px) {
    .photo-grid {
        grid-template-columns: repeat(auto-fill,minmax(150px,1fr));
    }

    .photo-grid > li {
        height: 150px;
    }

}