.character-message{
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: fit-content;
    .background{
        display: flex;
        justify-content: center;
        position: absolute;
        word-break: 100%;
        width: 100%;
        height: 100%;
        img{
            max-width: 100%;
            min-width: 1080px;
            width: 100%;
            height: 100%;
            object-fit: cover;
            user-select: none;
            pointer-events: none;
        }
    }
    .character{
        position: relative;        
        z-index: 2;
        align-self: flex-start;
        transform: scale(1.15);
        img{
            user-select: none;
            pointer-events: none;
        }
        .desktop{
            display: block;
            transform: translateX(4rem) translateY(10rem);
        }
        .mobile{
            display: none;
            transform: translateY(2rem);
        }
        
    }
    .message{
        z-index: 1;
        width: 100%;
        max-width: 35rem;
        padding: 0.5rem;
        border-spacing: 1rem;
        border: 3px solid black;
        border-radius: 1.5rem;
        margin-top: 12rem;
        margin-bottom: 1rem;
        user-select: none;
        pointer-events: none;
        h1,h2,h3,h4,h5{
            color: var(--message-title);
             
        }
        .content{
            height: 100%;
            border-radius: calc(1.5rem - 0.5rem);
            padding: 1rem;
            position: relative;
            hr{
                width: 80%;
                height: 2px;
                margin-left: auto;
                margin-right: auto;
                background-color: black;
            }
            h1,h2{
                font-family: var(--title-font);
                font-size: 2.3rem;
                text-align: center;
                /* Outline effect */
                -webkit-text-stroke: 1px var(--message-title-border); /* Outline thickness and color */
                text-stroke: 1px var(--message-title-border); /* For compatibility */
        
                /* Shadow effect */
                text-shadow: 0px 3px 0px var(--message-title-border);   /* Creates the main shadow */
            }
            .size-adjuster{
                padding:3rem;
                font-size: 1.2rem;
                font-family: var(--description-font);
                color: var(--message);
            }
            .text{
                color: var(--message);
                font-family: var(--description-font);
                padding:4rem;
                height: 100%;
                
                font-size: 1.2rem;
                
                
            }
        }
    }
}
@media screen and (max-width: 1160px ){
    
    .character-message{
        
        .message{
            margin-top: calc(50% + 1rem);
            margin-bottom: 5rem;
            margin-left: 1rem;
            margin-right: 1rem;
        }
        .character:not(:has(.mobile)) + .message{
            margin-top: 5rem !important;
        }
        .character{
            z-index: 0 ;
            position: absolute;
            top: 1rem;
            width: 50%;
            .desktop{
                display: none;
            }
            .mobile{
                width: 100%;
                display: block;
            }
        }
    }
}

@media screen and (max-width: 770px ){
    
    .character-message{
        .message{
            margin-top: calc(70% + 1rem);
            .content{
                .size-adjuster{
                    padding: 1rem !important;
                }
                .text{
                    padding: 2rem;                    
                }
            }
        }

        .character{
            top: 1rem;
            width: 70%;
        }
    }
}