.user {
    .banner {
        gap: 24px;
        width: 100%;
        padding: 1em;
        display: flex;
        border-radius: 6px;
        align-items: center;
        background: var(--secondary-header);
        overflow: hidden;

        .avatar {
            cursor: pointer;
            transition: 0.2s ease filter;

            &:hover {
                filter: brightness(80%);
            }
        }

        .username {
            font-size: 1.5rem;
            font-weight: 600;
        }

        .userid {
            font-size: .875rem;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 4px;
            color: var(--tertiary-foreground);

            a {
                color: inherit;
                cursor: pointer;
            }
        }
    }

    .details {
        display: flex;
        margin-top: 1em;
        flex-direction: column;

        > div {
            gap: 12px;
            padding: 4px;
            display: flex;
            align-items: center;
            flex-direction: row;
            margin-bottom: 5px;

            > svg {
                flex-shrink: 0;
            }
        }

        .detail {
            flex-grow: 1;
            min-width: 0;

            display: flex;
            flex-direction: column;

            .subtext {
                display: inline;
                font-size: .875rem;
                font-weight: 600;
                color: var(--foreground);
                text-transform: uppercase;

                text-overflow: ellipsis;
                white-space: nowrap;
                overflow: hidden;
            }

            a {
                font-size: .875rem;
                cursor: pointer;

                &:hover {
                    text-decoration: underline;
                }
            }

            p {
                text-overflow: ellipsis;
                white-space: nowrap;
                overflow: hidden;
            }
        }

        p {
            margin: 0;
            font-size: 1rem;
            color: var(--tertiary-foreground);
        }
    }

    .preview {
        width: 100%;
        display: grid;
        place-items: center;
        grid-template-columns: minmax(auto, 100%);
        
        > div {
            width: 100%;
            max-width: 560px;
        }
    }

    .row {
        gap: 20px;
        display: flex;

        .pfp {
            display: flex;
            align-items: center;
            flex-direction: column;
        }

        .background {
            flex-grow: 1;
        }
    }

    .buttons {
        display: flex;
        gap: 12px;
    }
}

.appearance {
    .theme {
        min-width: 0;
        display: flex;
        flex-direction: column;
    }

    .themes {
        gap: 8px;
        display: flex;

        img {
            cursor: pointer;
            border-radius: 8px;
            transition: border 0.3s;
            border: 3px solid transparent;

            &[data-active="true"] {
                cursor: default;
                border: 3px solid var(--accent);
                &:hover {
                    border: 3px solid var(--accent);
                }
            }

            &:hover {
                border: 3px solid var(--tertiary-background);
            }
        }
    }

    details {

        summary {
            font-size: .8125rem;
            font-weight: 700;
            text-transform: uppercase;
            color: var(--secondary-foreground);
            cursor: pointer;
        }      
    }

    .emojiPack {
        gap: 12px;
        display: flex;
        flex-direction: column;

        .row {
            gap: 12px;
            display: flex;

            > div {
                flex: 1;
                display: flex;
                flex-direction: column;
            }
        }

        .button {
            padding: 2rem 1.5rem;
            display: grid;
            place-items: center;

            cursor: pointer;
            border-radius: 8px;
            transition: border 0.3s;
            background: var(--hover);
            border: 3px solid transparent;

            img {
                max-width: 100%;
            }

            &[data-active="true"] {
                cursor: default;
                background: var(--secondary-background);
                border: 3px solid var(--accent);

                &:hover {
                    border: 3px solid var(--accent);
                }
            }

            &:hover {
                background: var(--secondary-background);
                border: 3px solid var(--tertiary-background);
            }
        }

        h4 {
            text-transform: unset;

            a {
                
                opacity: 0.7;
                color: var(--accent);
                font-weight: 600;
                &:hover {
                    text-decoration: underline;
                }

                
            }

            @media only screen and (max-width: 800px) {
                a {
                    display: block;
                }
            }
        }
    }

    .display {
        gap: 8px;
        display: flex;
        flex-direction: column;
    }

    .actions {
        gap: 8px;
        display: flex;
        flex-wrap: wrap;
        margin-bottom: 8px;
    }

    .overrides {
        display: grid;
        grid-template-columns: 1fr 1fr;

        .entry {
            gap: 8px;
            padding: 2px;
            margin-top: 8px;

            .override {
                display: flex;
            }

            span {
                flex: 1;
                display: block;
                font-size: .875rem;
                font-weight: 600;
                margin-bottom: 4px;
                text-transform: capitalize;
            }

            .picker {
                width: 30px;
                height: 30px;
                flex-shrink: 0;
                border-radius: 4px;
                overflow: hidden;
                margin-inline-end: 4px;

                //TOFIX - Looks wonky on Chromium
                border: 1px solid black;

                input {
                    opacity: 0;
                    width: 30px;
                    height: 30px;
                    border: none;
                    display: block;
                    cursor: pointer;
                }
            }

            .text {
                border-radius: 4px;
                padding: 0 4px 0;
            }
        }
    }
}

.sessions {
    .session {
        display: flex;
        align-items: center;
        gap: 12px;
        flex-direction: row;

        .detail {
            display: flex;
            gap: 12px;
            flex-grow: 1;
        }

        
    }

    .entry {
        margin: 10px 0;
        padding: 16px;
        display: flex;
        border-radius: 6px;
        flex-direction: column;
        background: var(--secondary-header);

        &[data-active="true"] {
            color: var(--primary-background);
            background: var(--accent);
            margin-bottom: 20px;

            .session .detail .info > input {
                &:focus {
                    border-bottom: 2px solid var(--primary-background);
                }
            }

        }

        &[data-deleting="true"] {
            opacity: 0.5;
        }

        .name {
            font-weight: 600;
            border-bottom: 2px solid transparent;
        }

        input {
            background: transparent;
            border: 0;
            font-family: inherit;
            font-size: 1rem;
            padding: 0;
            outline: 0;
            border-radius: 0;
            color: inherit;
            width: 100%;

            &:focus {
                border-bottom: 2px solid var(--accent);
            }

            &[data-active="true"] {
                border-bottom: 2px solid inherit;
            }
        }

        .icon {
            gap: 8px;
            display: flex;
            /*padding-right: 12px;*/
            align-items: center;

            svg {
                height: 42px;
            }

            div svg {
                height: 24px;
            }
        }

        .label {
            margin-bottom: 8px;
            color: var(--primary-text);
            font-size: .75rem;
            font-weight: 600;
        }

        .info {
            flex-grow: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;

            text-overflow: ellipsis;
            white-space: nowrap;
            overflow: hidden;

            .name {
                text-transform: capitalize;
                text-overflow: ellipsis;
            }

            .time {
                font-size: .75rem;
                color: var(--teriary-text);
                text-overflow: ellipsis;
                overflow: hidden;
            }
        }
    }

    > button {
        margin-top: 20px;
    }

    @media only screen and (max-width: 900px) {
        .session {
            align-items: unset;
            flex-direction: column;
            gap: 20px;
    
            > button {
                width: 100%;
            }
        }

        > button {
            width: 100%;
        }
    }
}

.languages {
    .list {
        margin-bottom: 1em;
        
        .entry {
            height: 50px;
        }

        .entry > span > span {
            gap: 20px;
            display: flex;
            align-items: center;
            flex-direction: row;

            .flag {
                display: flex;
                font-size: 2.625rem;
                line-height: 48px;

                > div {
                    display: flex;
                    align-items: center;
                    justify-content: center;
                }
            }

            .description {
                color: var(--primary-text);
            }
        }
    }
}

.feedback .options {
    gap: 10px;
    display: flex;
    flex-direction: column;
}

.experiments { /* TOFIX: Center the "No new experiments available at this time" text without having a scrollbar */
    height: 100%;
    .empty {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100%;
    }
}