.popup
{
    position: absolute;
    padding: 8px;
    overflow: hidden;
    border-radius: 6px;
    display: flex;

    color: var(--text-color);
    background-color: color-mix(in srgb, var(--content-bg) 30%, transparent);
    border: 1px solid var(--content-bg);
    box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05),
    inset 0 0 6px 3px rgba(255, 255, 255, 0.05);

    backdrop-filter: blur(5px);

    transform: scale(0.5);
    transition: opacity 0.3s ease, transform 0.3s ease;

    opacity: 0;
    z-index: 999;
}

.popup.active
{
    display: flex;
    opacity: 1;
    transform: scale(1);
}

#popupConnect
{
    color: var(--principale-1);

    display: flex;
    flex-direction: column;
    gap: 16px;

    top: 20vh;
    left: 50%;
    transform: translateX(-50%);

    width: 32vw;

    align-items: center;
    text-align: center;

    padding: 4vh;
    padding-top: 1vh;
    border-radius: 24px;
}

#popupConnect h2
{
    margin-bottom: 0px;
    padding-bottom: 0px;
    font-size: 2.4rem;
}

#popupConnect h3
{
    margin-bottom: 0px;
    padding-bottom: 0px;
    font-size: 1.8rem;
}

#popupMessages 
{
    right: 10%;
    height: 600px;
    width: 400px;
}

#popupThemes 
{
    top: 120px;
    right: 3%;
    height: 410px;
    width: 280px;

    overflow-y: scroll;
    clip-path: inset(0 round 6px);

    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
}

.lang_select,
.theme_select
{
    width: 90%;

    color: var(--text-color);
    background-color: color-mix(in srgb, var(--content-bg) 80%, transparent);
    transition: 0.3s ease;

    border-radius: 12px 10px 8px 12px;
    border-bottom: 1px solid var(--link-color);
    border-left: 1px solid var(--link-color);
    box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1),
    inset 0 0 6px 3px rgba(255, 255, 255, 0.3);
}

.lang_select:hover,
.theme_select:hover
{
    color: var(--link-color);
    background-color: var(--content-bg);
    border: 1px solid var(--text-color);
    transform: scale(1.05);
}

#popupLangs
{
    top: 120px;
    right: 10%;
    height: 410px;
    width: 280px;

    overflow-y: scroll;
    clip-path: inset(0 round 6px);

    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
}