:root {
    --primary-color: #bbb299;
    --secondary-color: #6c757d;
    --tertiary-color: #21ef5e;
    --tertiary-color-rgb: 33, 159, 94;
    --nametag-color: #66c984;
    --nametag-border-color: #4da66b;
    --nametag-text-color: rgba(27, 37, 30, 0.637);
    --background-color: #f8f9fa;
    --text-color: #403737d6;
    --border-color: #776e518c;
    /* --inner-border-color: #574d2d6b; */

    --disconnected-color: #ff4d4d;
    --font-family: "Fredoka", sans-serif;
}
body {
    font-family: var(--font-family);
    font-optical-sizing: auto;
    font-style: normal;
    margin: 0;
    padding: 0;
     /*background-color: #292929; */
    
    background-color: transparent;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; 
    overflow: hidden;
}


.connection-status {
    opacity: 0;
    background-color: var(--disconnected-color);
    color: white;
    padding: 10px 10px;
    width: 10px;
    height: 10px;
    border-radius: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    text-align: center;

    justify-self: center;

    margin-bottom: 50px;
}

.container {
    /* background-color: rgb(70, 70, 70); */
    background-color: transparent;
    padding-left: 1rem;
    padding-right: 1rem;
    max-width: 100%;

    margin-bottom: 10vh;
}

.main-bubble-container {
    position: relative;
    display: grid;
    max-width: 100%;
    grid-template-columns: auto auto auto 1fr;

    min-width: 0%;
    padding-top: 1rem;
}
.main-bubble-container * {
    box-sizing: border-box;
    margin: 0;
}

.chat-bubble-container {
    --base-transform: translate(0, 0);
    width: 100%;
    position: relative;
}
.bubble-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

.bubble-name-tag {
    --bubble-width: calc(100% - 6.3rem);
    transform: translateY(27px) rotate(-6deg);
    border-radius: 20px;
    margin-right: 0%;
    /* border: none; */
    border: 2px solid var(--nametag-border-color); 

    z-index: 3;
    opacity: 0;
    color: var(--nametag-text-color);
    font-family: var(--font-family);
    font-size: 0;

    height: fit-content;
    padding: .13rem 0;

    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
    background-color: var(--nametag-color);

}
.name-tag-text {
    /* padding: 0 0.8rem; */
    font-size: inherit;
    font-family: inherit;
    color: inherit;
    opacity: 0;
    /* text-shadow: #cec3a791 1px 1px 2px; */
}


.chat-bubble:before {
    content: "";
    position: absolute;
    top: -100px;
    bottom: -100px;
    left: -100px;
    right: -100px;
    z-index: 1;
    opacity: 0.1;
    background-repeat: repeat;
    background-image: url('./resources/images/staggered-sprout.svg');
    background-size: 50px auto;
    animation: progress 3.5s linear infinite;
}
.chat-bubble {
    max-width: 100%;
    min-width: 0;
    width: 0%;
    /* height: auto; */
    /*for height size ^*/

    opacity: 0;
    text-align: start;
    font-size: 1.1rem;
    line-height: 2.25rem;
    word-wrap: break-word;
    color: var(--text-color);
    text-shadow: #cec3a791 1px 1px 2px;

    background-color: var(--primary-color);
    border-radius: 35px 35px 35px 10px;
    margin: 10px 0px 10px 10px;
    border: 3px solid var(--border-color);

    position: relative;
    z-index: 2; /* we have to set the z index higher than the :before so text overlays properly */
    overflow: hidden;

    transition: height .3s ease-out;
    transform-origin: left center;
}
.chat-bubble h1 {
    margin: 0rem;
    position: relative;
    z-index: 2;
}

/* .chat-bubble::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at center, rgba(var(--tertiary-color-rgb), 1) 10%, transparent 25%);
    background-size: 0.5rem 0.5rem;
    background-repeat: round;
    background-position: center;
    pointer-events: none;
    z-index: 1;
    border-radius: inherit;
    mask-image: linear-gradient(to right, 
        rgba(0,0,0,0.8) 0%, 
        rgba(0,0,0,0.4) 30%, 
        rgba(0,0,0,0) 100%
    );
    -webkit-mask-image: linear-gradient(to right,
        rgba(0,0,0,0.6) 0%,
        rgba(0,0,0,0.4) 20%,
        rgba(0,0,0,0.2) 70%, 
        rgba(0,0,0,0) 100%
    );
} */

.large-bubble, .medium-bubble, .small-bubble {
    opacity: 0;
    
    background-color: var(--primary-color);
    border: 2px solid var(--border-color);
    border-radius: 35px;
    max-height: .5rem;
    max-width: .5rem;
    align-self: end;
    
    transform: var(--base-transform);

    will-change: transform, opacity;
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
}


.large-bubble {
    --base-transform: translate(4px, 10px);
    --fade-delay: var(--large-dot-delay);
    padding: 20px 5px 0px 15px;
}

.medium-bubble {
    --base-transform: translate(9px, 25px);
    --fade-delay: var(--medium-dot-delay);
    padding: 15px 8px 0px 7px;
}

.small-bubble {
    --base-transform: translate(12px, 37px);
    --fade-delay: var(--small-dot-delay);
    padding: 10px 5px 0px 5px;
}

.enable-button {
    background-color: transparent;
    background-image: url("./resources/images/littl_heart.png");
    background-size: contain; /* Changed to contain so full image is visible */
    background-repeat: no-repeat;
    background-position: center;
    scale: 150%;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    min-height: 50px; /* Give it a minimum height so the image has space */
    
    transition: background-color 0.3s ease;
    /* width: 10rem; */
    margin-left: 45%;
    margin-bottom: 1rem;
}