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

.character-info {
    width: 100%;
    background-color: var(--main-color);
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    padding-top: 20px;
}

.character-info > ul {
    padding: 15px 80px;
}

.character-data {
    display: flex;
    column-gap: 25px;
}

.character-data > li:first-child > img {
    border-radius: 50%;
}

.character-data > li:nth-child(2) {
    padding: 10px;
    width: 100%;
}

.character-data > li:nth-child(2) > ul > li:first-child {
    font-weight: bold;
    font-size: 40px;
}

.character-data > li:nth-child(2) > ul > li {
    margin-bottom: 10px;
}

.character-events > li {
    display: inline-block;
    margin-right: 15px;
}

.character-events > li > div {
    width: 140px;
    position: relative;
}

.character-events > li > div > a:first-child > img {
    width: 100%;
    border-radius: 6px;
}

.character-events > li > div > a:nth-child(2) > img {
    position: absolute;
    width: 64px;
    border-top-left-radius: 50%;
    bottom: 0px;
    right: 0px;
    border-left: 5px solid var(--main-color);
    border-top: 5px solid var(--main-color);
}

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

.character-relations-list > li {
   margin: auto; 
}

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

.character-relations-list > li > a > div {
    position: relative;
}

.character-relations-list > li > a > div > img {
    border-radius: 10px;
    width: 100%;
}

.character-relations-list > li > a > div > span {
    position: absolute;
    width: 100%;
    bottom: 0;
    background-color: rgba(0,0,0,0.7);
    color: white;
    font-size: 11px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    text-align: center;
    padding: 5px 0;
    pointer-events: none;
}

.character-relations-list > li > a > span {
    color: var(--font-light);
    width: 100px;
    overflow: hidden;
    text-align: center;
    font-size: 11px;
    padding-top: 10px;
}

.character-line:not(:first-child) {
    margin-top: 45px;
}

.character-line > div:first-child {
    border-top: 1px solid var(--font-light);
    padding-top: 20px;
    margin-top: 20px !important;
}

.character-line > p {
    font-style: italic;
}

.character-line > a {
    float: right;
    margin-top: 5px;
}

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

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

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

@media only screen and (max-width: 800px) {
    .character-info > ul {
        padding: 15px 40px;
    }
}

@media only screen and (max-width: 600px) {
    .navbar {
        background-color: var(--main-color) !important;
    }
    
    .character-data {
        text-align: center;
        margin: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

@media only screen and (max-width: 540px) {
    .character-info > ul {
        flex-direction: column;
        row-gap: 15px;
    }
    
    .character-events > li > div {
        width: 100px;
    }
    
    .character-events > li > div > a:nth-child(2) > img {
        width: 50px;
    }
    
    .character-data > li:nth-child(2) > ul > li:first-child {
        font-size: 25px;
    }
}

@media only screen and (max-width: 450px) {
    .character-info > ul {
        padding: 15px;
    }

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

@media only screen and (max-width: 359px) {
    .character-events, .character-relations {
        text-align: center;
    }
}
