:root {
    scroll-behavior: smooth;
}

.disabled {
    opacity: 0.3;
    pointer-events: none;
}

.main {
    margin-top: -250px;
    text-align: center;
    margin-bottom: 30px;
}

.user-info > ul:first-child {
    display: inline-flex;
    column-gap: 30px;
    align-items: center;
    padding: 0 40px;
    position: relative;
    z-index: 1;
}

.user-info > ul:first-child > li:first-child {
    min-width: 230px;
    height: 230px;
    border: 5px solid var(--main-color);
}

.user-info > ul:first-child > li:nth-child(2) {
    display: none;
}

.user-info > ul:first-child > li:last-child {
    color: white;
    height: fit-content;
    text-align: left;
    margin-bottom: 20px;
}

.user-info > ul:first-child > li:last-child > ul {
    row-gap: 4px;
    display: flex;
    flex-direction: column;
}

.user-info > ul:first-child > li:last-child > ul > li:first-child {
    font-size: 40px;
    font-weight: bold;
}

.user-info > ul:first-child > li:last-child > ul > li:last-child > ul {
    display: flex;
    flex-direction: column;
    row-gap: 14px;
}

.user-info > ul:first-child > li:last-child > ul > li:last-child > ul > li:first-child {
    font-size: 20px;
    color: var(--font-light);
}

.user-content {
    width: 85%;
    background-color: var(--main-color);
    border-bottom-right-radius: 15px;
    border-bottom-left-radius: 15px;
    margin: auto;
    margin-top: -125px;
    position: relative;
}

.user-content > div:first-child {
    margin-top: 60px;
    position: relative;
}

.member-navbar {
    width: fit-content;
    margin: auto;
    z-index: 1;
    margin-top: 15px;
}

.member-navbar > ul {
    display: flex;
    align-items: center;
    column-gap: 10px;
    font-size: 16px;
}

.member-navbar > ul li {
    padding: 6px;
    width: 95px;
    border-bottom: 1px solid var(--font-bold) !important;
}



.member-data-row {
    padding: 10px 80px;
    text-align: left;
}

.member-data-row > p {
    font-size: 30px;
    color: var(--font-light);
    padding: 15px;
}

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

.poster-row > li {
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 10px;
    width: 100%;
    height: 110px;
    overflow: hidden;
    border-radius: 15px;
    position: relative;
}

.poster-row > li a {
    position: relative;
}

.poster-row > li img {
    border-radius: 6px;
    width: 100%;
}

.poster-year-tag {
    position: absolute;
    right: 0;
    bottom: -3px;
    color: #6f6f6f;
    width: fit-content;
    background-color: var(--main-color);
    border-top-left-radius: 4px;
    padding: 3px;
    font-size: 13px;
}

.character-row {
    flex-direction: column;
    display: flex;
    row-gap: 10px;
}

.character-row > li {
    width: 100%;
    padding: 10px;
}

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

.character-row > li > ul li:first-child img {
    height: 144px;
    min-width: 144px;
    border-radius: 6px;
} 

.character-row > li > ul li:nth-child(2) {
    width: 100%;
}

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

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

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

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

.character-row > li > ul li:last-child img {
    width: 100px;
    border-radius: 6px;
} 

.character-row .character-no-img {
    width: 144px !important;
    height: 144px !important;
}

.side-navbar {
    position: absolute;
    top: -300px;
    right: -10px;
}

.side-navbar > ul {
    background-color: var(--main-color);
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    position: fixed;
}

.side-navbar > ul li {
    padding: 5px 3px;
    cursor: pointer;
    display: flex;
}

.side-navbar > ul li img {
    width: 35px;
}

.side-navbar > ul a:not(:last-child) li {
    border-bottom: 1px solid var(--font-light);
}

.info-separator {
    width: 100%;
    height: 13px;
    background-color: var(--back-color);
    position: relative;
    z-index: 1;
}

@media only screen and (max-width: 780px) {
    .character-row > li > ul li:nth-child(2) > ul li:first-child {
        font-size: 21px;
    }
    
    .character-row > li > ul li:nth-child(2) > ul li:nth-child(2) {
        font-size: 16px;
    }
    
    .character-row > li > ul li:nth-child(2) > ul li:last-child {
        font-size: 13px;
    }
    
    .side-navbar {
        display: none;
    }
}

@media only screen and (max-width: 675px) {
    .character-row > li {
        padding: unset;
    }
    
    .character-row > li > ul li:last-child img {
        display: none;   
    }
    
    .character-row > li > ul li:first-child img {
        margin-bottom: -3px;
    }
    
    .character-row > li > ul li:nth-child(2) > ul li:nth-child(2) > a {
        text-decoration: underline;
    }
    
    .member-data-row > p {
        font-size: 25px;   
    }
    
    .member-data-row {
        padding: 10px 10px;
    }
    
    .user-content {
        width: 100%;
    }
}

@media only screen and (min-width: 600px) {
    .member-navbar {
        float: right;
        margin-right: 15px;
        position: relative;
    }
    
    .info-separator {
        display: none;
    }
}

@media only screen and (max-width: 600px) {
    .user-info > ul:first-child {
        flex-direction: column;
    }
    
    .user-info > ul:first-child > li:nth-child(2) {
        background-color: var(--main-color);
        width: var(--user-content-width);
        position: absolute;
        height: calc(var(--user-info-height) - 155px);
        z-index: -1;
        top: 172px;
        display: unset;
        min-width: 300px;
    }
    
    .user-info > ul:first-child > li:last-child {
        color: var(--font-bold);
        padding: 0 10px;
    }
    
    .user-info > ul:first-child > li:last-child > ul {
        text-align: center;
    }
    
    .user-info > ul:first-child > li:last-child > ul > li:last-child > ul > li:first-child {
        color: var(--font);
    }

    .user-info > ul:first-child > li:last-child > ul > li:last-child > ul > li:nth-child(2) {
        color: var(--font-light);
    }
    
    .user-content {
        margin-top: -165px;
    }
    
    .user-content > div:first-child {
        margin-top: calc(var(--user-info-height) - (var(--user-text-height) + 60px));
    }
    
    .poster-row {
        text-align: center;
    }
    
    .member-info-separator {
        display: none;
    }
}

@media only screen and (max-width: 450px) {
    .member-data-row > p {
        font-size: 20px;
        text-align: center;
    }
}
