* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji" !important;
    background-color: #1d1e28;
    color: #F0F6FC;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    border-top: 6px #ffa500 solid !important;
    font-size: 24px;
    font-weight: 600;

    display: flex;
    flex-direction: row;
}

i.fa-solid.fa-bars {
    display: none;
}

.container {
    display: flex;
    gap: 1%;
    flex-wrap: wrap;
    align-content: start;
    height: 98vh;
    padding: 0.5% 0;

    div.sidebar,
    div.content {
        -webkit-border-radius: 5px;
        -moz-border-radius: 5px;
        border-radius: 5px;
        height: 100%;
        flex-shrink: 1;
    }

    div.sidebar {
        background-color: #1A1A1E;
        display: flex;
        flex-direction: column;
        flex-grow: 0;

        hr {
            width: 95%;
            border-image: linear-gradient(90deg, rgba(150, 150, 150, 1) 0%, rgba(198, 198, 198, 1) 25%, rgba(255, 255, 255, 1) 50%, rgba(198, 198, 198, 1) 75%, rgba(150, 150, 150, 1) 100%) 1;
        }

        img.humor {
            position: absolute;
            -webkit-border-radius: 5px;
            -moz-border-radius: 5px;
            border-radius: 5px;
            bottom: 0;
            left: 0;
        }

        &>div:not(.sidebar-content) {
            position: relative;

            margin: 1em 1em 0em 1em;
            width: 260px;
            height: 100%;

            img.avatar {
                /* border: 2px solid white; */
                -webkit-border-radius: 35%;
                -moz-border-radius: 35%;
                border-radius: 35%;

                display: block;
                width: auto;
                height: 100%;
            }
        }

        &>div.sidebar-content {
            display: flex;
            flex-direction: column;
            margin: 1em;
            gap: 3%;
            font-size: 20px;

            i {
                font-size: 24px !important;
            }

            p {
                font-size: 0.95em;
            }

            button#contact {
                background-color: #FFA50A;
                color: #ffffff;
                font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji" !important;
                padding: 1em;
                border: 1px solid #FFA50A;
                border-radius: 5px;
                width: fit-content;

                display: flex;
                gap: 0.5%;
            }
        }


    }

    div.content {
        background-color: #202024;
        flex-grow: 1;
        flex: 1;
        overflow-y: auto;

        ul {
            padding: 0 40px;
            list-style-type: none;

            overflow: auto;

            &>hr {
                border-image: linear-gradient(90deg, rgba(150, 150, 150, 1) 0%, rgba(198, 198, 198, 1) 25%, rgba(255, 255, 255, 1) 50%, rgba(198, 198, 198, 1) 75%, rgba(150, 150, 150, 1) 100%) 1;
            }

            li>div {
                padding-left: 20px;
            }
        }
    }
}

.commentaire {
    font-size: 0.95em !important;
    font-style: italic !important;
    color: lightgray !important;
}

.highlight {
    color: #ffa500;
}

a {
    text-decoration: none;
    color: lightslategray;

    &:hover {
        text-decoration: underline;
    }
}


div.avatar-container {
    position: relative;
    height: 100%;
    aspect-ratio: 1/1;
    transition: transform 0.8s;
    transform-style: preserve-3d;

    img.avatar {
        position: absolute;
        width: 100%;
        height: 100%;
        -webkit-backface-visibility: hidden;
        /* Safari */
        backface-visibility: hidden;
    }

    img.avatar#night {
        background-image: url(assets/avatar_day.png);
        transform: rotateY(180deg);
    }
}

@media only screen and (min-device-width : 320px) and (max-device-width : 480px) {
    body {
        font-size: 16px !important;
    }

    .container {
        flex-direction: column;
        height: auto;
    }

    .container>div.sidebar {
        align-items: center;
        margin-bottom: 5%;

        &>div.sidebar-content {
            font-size: 16px !important;
        }

        &>div:not(.sidebar-content) {
            width: 130px;
            height: 130px;

            img.avatar {
                width: 130px;
            }
        }
    }


}