/* ==========================================
   FONTES
========================================== */

@import url('https://fonts.googleapis.com/css2?family=Pixelify+Sans&display=swap');

@font-face {
    font-family: "Qablasco";
    src: url("Qablasco.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ==========================================
   RESET
========================================== */

* {
    color: white;
    font-family: "MS UI Gothic", Arial, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
p,
span {
    margin: 0;
    padding: 0;
}

/* ==========================================
   BODY
========================================== */

body {
    position: relative;
    min-height: 100vh;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    overflow-x: hidden;
    overflow-y: auto;

    background-image: url(https://blob.gifcities.org/gifcities/33IUA4JRR35YRIDJTRRO5NIO4PIS4I2Y.gif);
}

/* ==========================================
   CURSOR
========================================== */

.cursor-animado {
    position: absolute;
    width: 32px;
    height: 32px;

    background-color: transparent;
    pointer-events: none;
    transition: transform .1s ease;
    z-index: 99999999999991;
}

button,
a,
.cursor-select {
    cursor: none;
}

/* ==========================================
   TIPOGRAFIA
========================================== */

.title,
.title span {
    font-family: Qablasco, Arial, sans-serif;
}

dark {
    color: gray;
}

/* ==========================================
   LAYOUT
========================================== */

body .main {
    width: 60%;

    display: flex;
    flex-direction: column;
    align-items: center;

    border: 1px solid white;
}

article {
    display: flex;
    flex-direction: column;
    align-items: center;

    border: 1px solid white;
}

article header,
main header {
    width: 100%;
    font-size: 30px;
    border-bottom: 1px solid white;
}

article div {
    padding: 1em;
}

section {
    display: flex;
    width: 100%;
    padding: 1em;
    gap: 1em;
    box-sizing: border-box;
}

.wrapper {
    display: flex;
    justify-content: center;
}

.divider {
    align-items: center;
}

/* ==========================================
   GALERIA
========================================== */

.galeria {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    justify-items: center;
    gap: 1em;
    margin-top:1em;
}

#personagens {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

#personagens img, #personagens div {
    width: 200px;
    padding: 0;
}

/* ==========================================
   FLEX UTILITIES
========================================== */

.flex {
    display: flex;
    gap: 1em;
}

.flex.vertical {
    flex-direction: column;
}

.flex.vertical.reverse {
    flex-direction: column-reverse;
}

.flex.horizontal {
    flex-direction: row;
}

.flex.horizontal.reverse {
    flex-direction: row-reverse;
}

.flex.top {
    align-items: flex-start;
}

/* ==========================================
   UTILITÁRIOS
========================================== */

.noPadding {
    padding: 0;
}

.noMargin {
    margin: 0;
}

/* ==========================================
   LINKS / BOTÕES
========================================== */

button {
    color: black;
}

a {
    display: contents;
    color: rgb(123, 0, 255);
    text-decoration: underline;
}

/* ==========================================
   COMPONENTES
========================================== */

.flag {
    width: 35%;
}

.disc {
    width: 15dvw;
    height: 15dvw;
}

.logoJogo {
    width: 400px;
}

.draw {
    width: 200px;
    margin-bottom: 1em;

    border: 30px solid transparent;
    border-image: url(https://i.postimg.cc/Th8qd5DX/lace.png) 25.5 fill repeat;
}

.blinkie-area {
    width: calc(100% - 2em);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.blinkie {
    width: 150px;
    height: 20px;
}

/* ==========================================
   SIDEBAR
========================================== */

.side-bar {
    position: fixed;
    left: 5dvw;

    width: 200px;
    height: 293px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1em;

    background-image: url(note.png);
    background-size: cover;

    z-index: 999999999;
}

.side-bar .wing {
    position: absolute;
    top: 45%;
    right: -20px;
}

.side-bar .wing.t {
    left: -25px;
    right: 0;
    transform: rotateY(180deg);
}

.second-side-bar {
    position: fixed;
    right: 5dvw;

    z-index: 999999999;
}

#mp3 {
    min-width: 200px;
    min-height: 293px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    
}

#mp3 img {
    width: 200px;
    position: absolute;
    top: -22px;
}

#mp3 #mp3_scream {
    top: -8px;
    position: absolute;
    height: 132px;
    width: 171px;
    background-image: url(https://i.pinimg.com/736x/87/ba/a5/87baa5ef4325519870b1267ff162987f.jpg);
    background-size: cover;
    z-index: -1;
    display: flex;
    justify-content: center;
    align-items: center;
}

#mp3 #mp3_scream #image_wrapper {
    perspective: 200px;
}

#mp3 #mp3_scream #music-img {
    width: 70px;
    height: 70px;
    background-size: contain;
    animation: rotateMusicImage 2s linear infinite;
}

#mp3 canvas {
    top: -8px;
    position: absolute;
}

#pixelCanvas{
    margin-top:20px;
    border:1px solid #555;

    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

#mp3 #mp3_controls {

}

#mp3 #mp3_controls button {
    position: absolute;
    width: 41px;
    height: 41px;
    background-color: transparent;
    border: 1px solid black;
}

#mp3 #mp3_controls #pause_btn{
    top: 240px;
    left: 80px;
}

#mp3 #mp3_controls #prev_btn {
    top: 197px;
    left: 37px;
}

#mp3 #mp3_controls #next_btn {
    top: 197px;
    left: 123px;
}

/* ==========================================
   IFRAME
========================================== */

iframe {
    height: 432px;

    border: 30px solid transparent;
    border-image: url(https://i.postimg.cc/15LJ6br1/Untitled276-20241031174517.png) 24 fill repeat;
}

/* ==========================================
   IMAGENS
========================================== */

#cursors img {
    width: 100px;
}

/* ==========================================
   ANIMAÇÕES
========================================== */

.wonderMove {
    display: inline-block;
    animation: wonderMove 2s linear infinite;
}

@keyframes wonderMove {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes rotateMusicImage {
    0% {
        transform: rotateY(0deg);
    }

    100% {
        transform: rotateY(360deg);
    }

}
/* ==========================================
   RESPONSIVO
========================================== */

.width-auto {
    width: calc(100% - 2em) !important;
}

@media screen and (max-width: 1000px) {
    .gameDiv {
        flex-direction: column !important;
    }
}

@media screen and (max-width: 800px) {

    * {
        font-family: "Pixelify Sans", sans-serif;
    }

    body .main {
        width: 90dvw !important;
    }

    .disc {
        width: 35dvw;
        height: 35dvw;
    }

    #project {
        flex-direction: column;
    }

    .side-bar, .second-side-bar {
        display: none;
    }

    .divider {
        flex-direction: column !important;
    }

    .gameDiv.top {
        align-items: center !important;
    }

    .sm-100 { width: 100px !important; }
    .sm-200 { width: 200px !important; }
    .sm-300 { width: 300px !important; }
    .sm-400 { width: 400px !important; }
    .sm-500 { width: 500px !important; }
}

@media screen and (max-width: 500px) {
    #meetMe {
        flex-direction: column;
    }
    .logoJogo {
        width: 300px;
    }
    #extra-container {
        display: flex;
        flex-direction: column;
    }
}

.panel {
    height: 100px;
    width: 400px;
    border: 1px solid white;
    border-radius: 25px;
    background: #2A7B9B;
    background: linear-gradient(0deg, rgba(45, 125, 156, 0.69) 0%, rgba(192, 240, 211, 0.63) 76%, rgba(101, 114, 119, 0.65) 100%);
}

#verity {
    height: 64px;
    width: 64px;
    background-image: url(verity-face1.png);
    background-size: cover;
    position: fixed;
    top: 600px;
    transition: 0.2s;
    display: flex;
    justify-content: center;
    z-index: 99999;
}

#verity.saying {
    transform: scaleY(200%);
    background-image: url(verity-face2.png);
}

#verity #message {
    display: none;
    height: 100px;
    width: 200px;
    border: 30px solid transparent;
    border-image: url(ballon.png) 7 fill repeat;
    position: relative;
    top: -120px;
    transform: scaleY(50%);
    color: black;

}

#verity.saying #message {
    display: block;
}


.image-place-panel {
    position: fixed;

    right: 20px;
    bottom: 20px;

    width: 280px;

    max-height: 80vh;

    overflow-y: auto;

    padding: 15px;

    background: #111;

    border: 2px solid white;

    color: white;

    font-family: monospace;

    z-index: 999999999;

    box-shadow: 5px 5px 0 black;
}


.image-place-header {
    display: flex;

    align-items: center;

    justify-content: space-between;

    border-bottom: 1px solid #555;

    padding-bottom: 10px;

    margin-bottom: 15px;
}


.image-place-title {
    font-weight: bold;

    font-size: 16px;
}


.close-panel {
    border: none;

    background: transparent;

    color: white;

    font-size: 25px;

    cursor: pointer;
}


.image-place-section {
    margin-bottom: 15px;
}


.image-place-section label,
.element-selector-container label {
    display: flex;

    margin-bottom: 5px;

    font-size: 11px;

    color: #aaa;
}


.image-place-panel input,
.image-place-panel select {
    width: 100%;

    box-sizing: border-box;

    background: #050505;

    color: white;

    border: 1px solid #555;

    padding: 7px;

    font-family: monospace;
}


.element-selector-container {
    margin-bottom: 15px;
}


.select-element {
    width: 100%;

    margin-top: 5px;

    padding: 7px;

    background: #222;

    color: white;

    border: 1px solid white;

    cursor: pointer;
}


.position-inputs,
.size-inputs {
    display: flex;

    gap: 5px;
}


.position-inputs > div,
.size-inputs > div {
    flex: 1;
}


.position-inputs span,
.size-inputs span {
    display: block;

    margin-bottom: 4px;

    font-size: 11px;

    color: #aaa;
}


.ratio-container {
    display: flex !important;

    align-items: center;

    gap: 5px;

    margin-top: 10px;

    cursor: pointer;
}


.ratio-container input {
    width: auto !important;
}


.image-place-buttons {
    display: flex;

    gap: 5px;

    margin-bottom: 10px;
}


.image-place-buttons button {
    flex: 1;

    padding: 8px;

    background: black;

    color: white;

    border: 1px solid white;

    cursor: pointer;
}


.image-place-panel button:hover {
    background: white;

    color: black;
}


.image-code {
    width: 100%;

    height: 130px;

    box-sizing: border-box;

    resize: vertical;

    background: #050505;

    color: #00ff88;

    border: 1px solid #444;

    padding: 8px;

    font-family: monospace;

    font-size: 10px;
}


.sticker {
    cursor: grab;

    user-select: none;

    touch-action: none;
}


.sticker.dragging {
    cursor: grabbing;

    opacity: 0.8;
}

.image-place-highlight {
    outline: 2px dashed red !important;
    outline-offset: 2px;
}

.element-controls {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.anchor-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}

.anchor-grid button {
    aspect-ratio: 1;
    cursor: pointer;
}

.anchor-grid button.active {
    border: 2px solid white;
    transform: scale(1.08);
}

.two-inputs {
    display: flex;
    gap: 5px;
}

.two-inputs > div {
    flex: 1;
}

.keep-ratio-label {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
}

.sticker {
    cursor: grab;
    user-select: none;
    touch-action: none;
}

.sticker.dragging {
    cursor: grabbing;
}

.anchor-preview {
    width: 100%;
    height: 130px;

    position: relative;

    border: 2px solid #777;

    background:
        linear-gradient(
            90deg,
            transparent 49.5%,
            #333 50%,
            transparent 50.5%
        ),
        linear-gradient(
            0deg,
            transparent 49.5%,
            #333 50%,
            transparent 50.5%
        );

    margin-top: 8px;

    box-sizing: border-box;

    border-radius: 4px;
}

.anchor-point {
    position: absolute;

    width: 13px;
    height: 13px;

    border-radius: 50%;

    background: #555;

    border: 2px solid #111;

    cursor: pointer;

    transform: translate(-50%, -50%);

    transition:
        transform 0.15s,
        background 0.15s,
        box-shadow 0.15s;
}

.top-left {
    top: 0;
    left: 0;
}

.top-center {
    top: 0;
    left: 50%;
}

.top-right {
    top: 0;
    left: 100%;
}

.center-left {
    top: 50%;
    left: 0;
}

.center {
    top: 50%;
    left: 50%;
}

.center-right {
    top: 50%;
    left: 100%;
}

.bottom-left {
    top: 100%;
    left: 0;
}

.bottom-center {
    top: 100%;
    left: 50%;
}

.bottom-right {
    top: 100%;
    left: 100%;
}

.anchor-point:hover {
    background: white;

    transform:
        translate(-50%, -50%)
        scale(1.3);
}

.anchor-point.active {
    background: white;

    transform:
        translate(-50%, -50%)
        scale(1.4);

    box-shadow:
        0 0 0 3px black,
        0 0 0 5px white;
}