body {
    background-color: #55BACF;
    font-family: Pixelify Sans;
}

[data-i18n] {
    white-space: pre-line;
}

.description_gg{
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


.desktop {
  position: relative;
  width: 100%;
  height: calc(100vh - 60px);
}

.desktop_nome {
    color: #003E7C;
    opacity: .2;
    font-size: 18px;
    margin-top: 2%;
    display: flex;
    justify-content: center;
    cursor: default;
}

.desktop_icon {
    position: absolute;
    left: var(--x);
    top: var(--y);
    cursor: grab;
    user-select: none;
    touch-action: none;
}

.desktop_icon p {
    width: 104px;
}

.desktop_icon.dragging {
    cursor: grabbing;
    z-index: 100;
}

.desktop_icon.returning {
    transition:
        left 0.25s steps(5),
        top 0.25s steps(5);
}

.desktop_icon img {
    user-select: none;
    -webkit-user-drag: none;
}

.desktop_link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: white;
    transition: .25;
    user-select: none;
}

.desktop_link:hover {
    transform: translate(2px, 2px);
}

.desktop_link p {
    margin-top: 10px;
    text-align: center;
}

/* BONEQUINHA */

.personagem {
    position: relative;
    width: 164px;
    height: 148px;
    cursor: pointer;
    user-select: none;
    left: 85%;
    top: 69%;
}

.rosto,.boca,.piscar {
    position: absolute;
    top: 0;
    left: 0;
    width: 164px;
    height: 148px;
    background-repeat: no-repeat;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    pointer-events: none;
}

.rosto {
    z-index: 1;
    background-image: url("/images/spritesheet-rosto.png");
    background-size: 400% 300%;
    background-position: 66.666% 50%;
}

.boca {
    z-index: 2;
    background-image: url("/images/spritesheet-boca.png");
    background-size: 400% 200%;
    background-position: 0% 100%;
}

.piscar {
    z-index: 3;
    background-image: url("/images/spritesheet-pisca.png");
    background-size: 300% 200%;
    background-position: 0% 0%;
    opacity: 0;
}

.personagem:focus-visible {
    outline: 2px solid white;
    outline-offset: 8px;
}

/* BONEQUINHA BRAVA */

.rosto_bravo,
.boca_brava {
    position: absolute;
    top: 0;
    left: 0;
    width: 164px;
    height: 148px;
    background-repeat: no-repeat;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    pointer-events: none;
    display: none;
}

.rosto_bravo {
    z-index: 10;
    background-image: url("/images/spritesheet_rosto_bravo.png");
    background-size: 200% 200%;
    background-position: 0% 0%;
}

.boca_brava {
    z-index: 11;
    background-image: url("/images/spritesheet_boca_brava.png");
    background-size: 300% 200%;
    background-position: 0% 0%;
}

.personagem.trash-reacting .rosto,
.personagem.trash-reacting .boca,
.personagem.trash-reacting .piscar {
    visibility: hidden;
}

.personagem.trash-reacting .rosto_bravo,
.personagem.trash-reacting .boca_brava {
    display: block;
}

/* BONEQUINHA CONFUSA */
.rosto_confuso,
.boca_confusa {
    position: absolute;
    top: 0;
    left: 0;
    width: 164px;
    height: 148px;
    background-repeat: no-repeat;
    /* 4 colunas × 2 linhas */
    background-size: 400% 200%;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    pointer-events: none;
    display: none;
}

.rosto_confuso {
    z-index: 10;
    background-image: url("/images/spritesheet-rosto-confuso.png");
}

.boca_confusa {
    z-index: 11;
    background-image: url("/images/spritesheet-boca.png");
}

.personagem.dizzy .rosto,
.personagem.dizzy .boca,
.personagem.dizzy .piscar,
.personagem.dizzy .rosto_bravo,
.personagem.dizzy .boca_brava {
    display: none;
}

.personagem.dizzy .rosto_confuso,
.personagem.dizzy .boca_confusa {
    display: block;
}

/* BALÃO DE FALA */
.speech_bubble {
    position: absolute;
    right: 160px;
    bottom: 115px;
    display: none;
    align-items: stretch;
    width: max-content;
    max-width: 320px;
    z-index: 50;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

.bubble_left {
    width: 12px;
    min-width: 12px;
    height: 76px;
    background-image: url("/images/BLN_ESQ.png");
    background-repeat: no-repeat;
    background-size: 12px 76px;
    image-rendering: pixelated;
}

.bubble_center {
    min-width: 120px;
    max-width: 500px;
    height: 76px;
    padding: 15px 10px 12px 10px;
    background-color: #F5F5F5;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.bubble_right {
    width: 12px;
    min-width: 12px;
    height: 76px;
    background-image: url("/images/BLN_DIR.png");
    background-repeat: no-repeat;
    background-size: 12px 76px;
    image-rendering: pixelated;
}

.bubble_tail {
    position: absolute;
    right: 33px;
    bottom: -11px;
    width: 40px;
    height: 12px;
    background-image: url("/images/BLN_RABIXO.png");
    background-repeat: no-repeat;
    background-size: 40px 12px;
    image-rendering: pixelated;
}

#speechText {
    margin: 0;
    font-family: "Pixelify Sans", sans-serif;
    font-size: 20px;
    line-height: 1.05;
    color: #111111;
    white-space: pre-line;
    overflow-wrap: break-word;
}

.speech_bubble.angry {
    animation: angryBubbleShake 0.22s steps(2) 4;
}

@keyframes angryBubbleShake {
    0% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(-4px, 0);
    }

    50% {
        transform: translate(4px, -2px);
    }

    75% {
        transform: translate(-3px, 2px);
    }

    100% {
        transform: translate(0, 0);
    }
}

/* MODAL PROJETO */
.project_window {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: calc(100vh - 45px);

    background-color: #eeeeee;

    display: none;
    flex-direction: column;

    z-index: 900;

    font-family: "Pixelify Sans", sans-serif;
}

.project_window.open {
    display: flex;
}

.project_window_header {
    width: 100%;
    height: 38px;
    background-color: #004987;
    border-top: 4px solid #046FDB;
    border-bottom: 4px solid #102D4A;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

.project_window_header p {
    margin: 0 0 0 44px;
    color: #ffffff;
    font-size: 22px;
}

.project_window_close {
    width: 120px;
    height: 38px;
    background-color: #c90000;
    border-top: 4px solid #ff1f1f;
    border-left: 4px solid #ff1f1f;
    border-bottom: 4px solid #780000;
    border-right: 4px solid #780000;
    color: #ffffff;
    font-family: "Pixelify Sans", sans-serif;
    font-size: 22px;
    cursor: pointer;
}

.project_window_close:hover {
    border-top: 4px solid #780000;
    border-left: 4px solid #780000;
    border-bottom: 4px solid #ff1f1f;
    border-right: 4px solid #ff1f1f;
}

.project_window_content {
    flex: 1;
    overflow-y: auto;
    background-color: #eeeeee;
}

/* PROJETO LOAD */
.project_loading_overlay {
    position: absolute;
    inset: 38px 0 0;
    display: grid;
    place-items: center;
    background-color: rgba(0, 0, 0, 0.32);
    z-index: 1;
}

.project_loading_dialog {
    width: 30%;
    padding: 45px 36px 36px;
    background-color: #F5F5F5;
    border-top: 4px solid #ffffff;
    border-left: 4px solid #ffffff;
    border-right: 4px solid #7f7f7f;
    border-bottom: 4px solid #7f7f7f;
    box-sizing: border-box;
}

.project_loading_progress {
    height: 64px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 7px;
    background-color: #D9D9D9;
    border-top: 8px solid #7f7f7f;
    border-left: 8px solid #7f7f7f;
    border-right: 8px solid #ffffff;
    border-bottom: 8px solid #ffffff;
    box-sizing: border-box;
}

.project_loading_progress span {
    height: 100%;
    flex: 1;
    background-color: #046fdb;
    animation: projectLoadingSegment 1.36s ease-in-out infinite alternate;
}

.project_loading_dialog p {
    margin: 20px 0 0;
    color: #000000;
    font-size: 24px;
    text-align: center;
}

@keyframes projectLoadingSegment {
    to {
        opacity: 0.25;
    }
}




/* RESPONSIVIDADE BÁSICA */
@media (max-width: 700px) {

    .language_window {
        width: 90vw;
    }


    .inicio_btn {
        min-width: 150px;
    }


    .inicio_btn p {
        font-size: 22px;
    }


    .lan-clock {
        margin-right: 8px;

        gap: 5px;
    }


    .clock {
        width: 120px;
    }

}
