        @font-face {
            font-family: 'Press Start 2P';
            src: url('https://WorldColoring.com/wp-content/uploads/PressStart2P-Regular.woff2') format('woff2');
            font-weight: normal;
            font-style: normal;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', system-ui, sans-serif;
        }

        html {
            scroll-behavior: smooth;
        }

        header {
            width: 100%;
            text-align: center;
            background-color: #1a73e8;
            padding: 5px 5px 0 5px;
            font-weight: 500;
            font-size: .75rem;
            position: absolute;
            top: 0;
            user-select: none;
        }

        header a {
            font-family: "Press Start 2P", sans-serif;
            color: white;
            text-decoration: none;
        }

        body {
            background: rgb(233, 223, 196);
            background: linear-gradient(to right,
                    rgba(233, 223, 196, 1) 0%,
                    rgba(233, 223, 196, 1) 1%,
                    rgba(237, 227, 200, 1) 2%,
                    rgba(237, 227, 200, 1) 24%,
                    rgba(235, 221, 195, 1) 25%,
                    rgba(233, 223, 196, 1) 48%,
                    rgba(235, 221, 195, 1) 49%,
                    rgba(230, 216, 189, 1) 52%,
                    rgba(230, 216, 189, 1) 53%,
                    rgba(233, 219, 192, 1) 54%,
                    rgba(230, 216, 189, 1) 55%,
                    rgba(230, 216, 189, 1) 56%,
                    rgba(233, 219, 192, 1) 57%,
                    rgba(230, 216, 189, 1) 58%,
                    rgba(230, 216, 189, 1) 73%,
                    rgba(233, 219, 192, 1) 74%,
                    rgba(233, 219, 192, 1) 98%,
                    rgba(235, 221, 195, 1) 100%);

            background-size: 120px;
            background-repeat: repeat;
            min-height: 100vh;
            padding: 20px;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .content {
            margin: 10px auto 20px auto;
            background-color: #fffcf380;
            border-radius: 1rem;
            padding: 20px 40px;
            max-width: 650px;
            color: #30271d;
        }

        .content h1,
        .content h2,
        .content h3,
        .content h4 {
            margin: 20px 0 10px 0;
        }

        h1 {
            margin-top: 0 !important;
        }

        .content p,
        .content li {
            margin: 10px 0;
            font-weight: 500;
        }

        .content ul,
        .content ol {
            margin: 10px 0;
            padding: 10px 20px;
        }

        .content figure img {
            max-width: 100%;
            height: auto;
        }

        .has-text-align-center {
            text-align: center;
        }

        .has-medium-font-size {
            font-size: larger;
        }

        hr {
            border-color: #ffdabd78;
            margin: 25px;
        }

        .app-container {
            margin-top: 20px;
            margin-bottom: 30px;
        }

        .controls {
            background: white;
            padding: 20px;
            border-radius: 12px;
            margin-top: 0;
            margin-bottom: 15px;
            width: fit-content;
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
        }

        .header-container {
            justify-content: center;
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
        }

        span#imgBase64,
        span#historico {
            display: none;
        }

        .palette-and-icon-group {
            display: flex;
            align-items: center;
            gap: 15px;
            flex-wrap: wrap;
            justify-content: center;
            flex-grow: 1;
        }

        .custom-icon-container {
            flex-shrink: 0;
        }

        .custom-tool-icon {
            width: 35px;
            height: 37px;
            display: block;
        }

        .color-palette {
            display: flex;
            gap: 5px;
            flex-wrap: wrap;
            justify-content: center;
            margin: 0;
        }

        .color-option {
            width: 35px;
            height: 35px;
            border-radius: 8px;
            border: 2px solid #ddd;
            cursor: pointer;
            transition: transform 0.2s;
        }

        .color-option span {
            font-size: 1.3rem;
            margin-top: -1px;
            left: 50%;
            top: 50%;
            position: absolute;
            transform: translate(-50%, -50%);
            line-height: 0;
        }

        .botao-mais-cores {
            border: none;
            border-radius: 10px;
            cursor: pointer;
            background: linear-gradient(270deg, #f3267e, #9138c7, #139ae7, #1aad34, #ff0303);
            background-size: 300% 300%;
            animation: animacaoGradiente 3s ease infinite;
            box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
            transition: transform 0.2s;
            display: flex;
            align-items: center;
            gap: 3px;
            width: auto;
            padding: 0 9px 0 7px;
            color: white;
            font-weight: 700;
            font-size: 1rem;
            text-transform: uppercase;
            line-height: 1;
        }

        .botao-mais-cores span {
            position: static;
            transform: none;
            font-size: 0;
            margin-top: 0;
            line-height: 0;
            display: inline-flex;
            align-items: center;
        }

        .botao-mais-cores:hover {
            transform: scale(1.1);
        }

        .botao-mais-cores svg {
            width: 18px;
            aspect-ratio: 1;
            color: #fff;
        }

        @keyframes animacaoGradiente {
            0% {
                background-position: 0% 50%;
            }

            50% {
                background-position: 100% 50%;
            }

            100% {
                background-position: 0% 50%;
            }
        }


        .color-option {
            position: relative;
        }

        .color-option::after {
            content: attr(data-name);
            position: absolute;
            bottom: -25px;
            left: 50%;
            transform: translateX(-50%);
            background: #333;
            color: white;
            padding: 2px 6px;
            border-radius: 4px;
            font-size: 0.7rem;
            opacity: 0;
            transition: opacity 0.2s;
            pointer-events: none;
            white-space: nowrap;
        }

        .color-option:hover::after {
            opacity: 1;
        }

        .color-option:hover {
            transform: scale(1.1);
            z-index: 10;
        }

        @keyframes pulse-border-color {
            0% {
                border-color: #000;
            }

            30% {
                border-color: #1a73e8
            }

            100% {
                border-color: #000;
            }
        }

        .color-option.selected {
            border: 5px solid #000;
            animation: pulse-border-color 2s infinite alternate;
        }

        #colorModal>div {
            position: relative;
            background: white;
            padding: 20px;
            border-radius: 12px;
            max-width: 300px;
            width: 90%;
            max-height: 70vh;
            text-align: center;
            display: flex;
            flex-direction: column;
        }

        #closeModalX {
            position: absolute;
            top: -12px;
            right: -12px;
            width: 30px;
            height: 30px;
            background-color: #dc3545;
            color: white;
            border: none;
            border-radius: 50%;
            font-size: 1.5rem;
            font-weight: bold;
            line-height: 1;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
            transition: background-color 0.2s ease;
        }

        #closeModalX svg {}

        #closeModalX:hover {
            background-color: #c82333;
        }

        #closeModalX:focus {
            outline: 2px solid #0056b3;
            outline-offset: 2px;
        }

        .action-buttons {
            display: flex;
            gap: 5px;
            flex-wrap: wrap;
            justify-content: center;
            align-items: center;
        }

        .action-buttons svg,
        #toggleSoundButton svg {
            width: 1.5rem;
        }

        button {
            padding: 5px 7px;
            border: none;
            height: 100%;
            border-radius: 8px;
            background: #0a6093;
            color: white;
            cursor: pointer;
            transition: background 0.2s;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        #toggleSoundButton {
            background: none;
            border: 2px solid #636363;
        }

        button#imprimirCanvas {
            width: auto;
            padding: 10px;
            max-width: 300px;
            text-wrap: pretty;
            margin-top: 10px;
            font-weight: bold;
            text-align: center;
            font-size: 1rem;
            line-height: normal;
            background: linear-gradient(270deg, rgb(44, 161, 112), #2d7d5c);
        }

        button#imprimirCanvas svg {
            width: 1.5rem;
        }

        button:hover {
            background: #0056b3;
        }

        button.undo {
            background: #9ba5ad;
        }

        button.share {
            background: #4fa563;
        }

        button.clear {
            background: #d35863;
        }

        .canvas-container {
            position: relative;
            margin: 0 auto;
            max-width: 100%;
            overflow: auto;
            background: white;
            border-radius: 12px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
            display: flex;
            width: 100%;
            justify-content: center;
            align-items: center;
            min-height: 250px;
            background-color: #f0f0f0;
            height: auto;
            scrollbar-width: thin;
            scrollbar-color: #a57f69 #f1f1f1;
        }

        #canvasPlaceholder {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: #e9e9e9;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            z-index: 5;
            border-radius: 12px;
            text-align: center;
            padding: 20px;
            box-sizing: border-box;
        }

        #canvasPlaceholder p {
            font-style: italic;
            color: #777;
            font-size: 1rem;
        }

        .spinner {
            width: 40px;
            height: 40px;
            border: 4px solid #ccc;
            border-top-color: #ff5ca2;
            border-radius: 50%;
            animation: girar 1s linear infinite;
            margin-bottom: 10px;
        }

        @keyframes girar {
            0% {
                transform: rotate(0deg);
            }

            100% {
                transform: rotate(360deg);
            }
        }

        #imageCanvas,
        #paintCanvas {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: auto;
            transform-origin: 0 0;
        }

        #paintCanvas {
            cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='30' height='30' fill='none' stroke='black' stroke-width='2' viewBox='0 0 24 24'><path stroke-linecap='round' stroke-linejoin='round' d='m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L6.832 19.82a4.5 4.5 0 0 1-1.897 1.13l-2.685.8.8-2.685a4.5 4.5 0 0 1 1.13-1.897L16.863 4.487Zm0 0L19.5 7.125'></path></svg>") 0 24, auto;
        }

        button.toggle-mode {
            background: rgb(86, 22, 248);
            font-weight: bold;
            font-size: .9rem;
        }

        .brush-size-control {
            display: none;
            align-items: center;
            gap: 5px;
            margin-top: 10px;
        }

        .brush-size-control.active {
            display: flex;
        }

        .brush-size-control input {
            width: 100px;
        }

        .brush-size-control label {
            font-size: 0.8rem;
        }

        #random-pages button {
            height: auto;
        }

        @media (max-width: 768px) {
            body {
                padding-right: 0;
                padding-left: 0;
            }

            .content {
                max-width: 100% !important;
            }

            .controls {
                flex-direction: column;
                align-items: center;
                gap: 5px !important;
            }

            .color-palette {
                justify-content: center;
            }

            .header-container {
                align-items: center;
                flex-direction: column;
                gap: 0 !important;
            }

            button#imprimirCanvas {
                width: 90%;
                height: auto !important;
                margin: 20px auto 10px auto !important;
            }

            #zoomControls button {
                background: rgb(231 221 201);
                color: white;
                filter: drop-shadow(2px 4px 6px black);
                border: 5px solid #fff;
                padding: 10px;
                border-radius: 50%;
                cursor: pointer;
            }

            #comments,
            #outras-opcoes {
                margin-right: 20px !important;
                margin-left: 20px !important;
            }

            .comments-area {
                padding: 20px;
                margin-left: 20px;
                margin-right: 20px;
            }

            .comments-title {
                font-size: 20px;
                margin-bottom: 20px;
            }

            .comment-list li {
                padding: 15px;
            }

            .comment-list .children {
                padding-left: 15px;
            }

            #respond {
                padding: 20px;
            }

            #respond h3 {
                font-size: 20px;
            }
        }

        #spacesCounterContainer {
            background-color: #fbf4de;
            padding: 5px 10px;
            border-radius: 8px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 5px;
            font-size: 1rem;

        }

        #spacesCounterContainer .labelSCC {
            width: min-content;
            line-height: 1em;
            color: #755a46;
        }

        #spacesCountValue {
            font-size: 1.5em;
            letter-spacing: 0;
            color: #755a46;
        }

        #difficultyLabel.easy {
            background-color: #5fcf63;
        }

        #difficultyLabel.medium {
            background-color: #ebb821;
        }

        #difficultyLabel.hard {
            background-color: #c74a40;
        }

        #expandedPalette {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(35px, 1fr));
            gap: 10px;
            overflow-y: auto;
            overflow-x: hidden;
            flex-grow: 1;
            padding-right: 10px;
        }

        .color-option.special-glitter span {
            font-size: 1.2rem;
            color: #FFD700;
            text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
            line-height: 35px;
            width: 100%;
            text-align: center;
            display: block;
            position: static;
            transform: none;
        }

        .comments-area {
            padding: 20px;
            margin-top: 30px;
            border-radius: 1rem;
            font-size: 16px;
            color: #333;
            max-width: 800px;
            margin-left: auto;
            margin-right: auto;
        }

        .comments-title {
            font-size: 24px;
            margin-bottom: 25px;
            color: #5d432c;
            border-bottom: 2px solid #e1cfa4;
            padding-bottom: 12px;
            text-align: center;
            font-weight: 600;
        }

        .comment-list {
            list-style: none;
            padding-left: 0;
            margin-bottom: 30px;
        }

        .comment-list li {
            margin-bottom: 25px;
            padding: 20px;
            border: 1px solid #f0e6d2;
            border-radius: 8px;
            background-color: #fffdf5;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
            transition: all 0.3s ease;
        }

        .comment-list li:hover {
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
            transform: translateY(-2px);
        }

        .comment-list .children {
            list-style: none;
            margin-top: 20px;
            padding-left: 20px;
            border-left: 3px solid #e1cfa4;
        }

        .comment-list .children li {
            background-color: #fcf8ed;
            border-color: #e9dcc4;
            margin-top: 15px;
            margin-bottom: 15px;
        }

        .comment-list .comment-author {
            font-weight: bold;
            color: #6b4c3b;
            display: flex;
            gap: 5px;
            align-items: center;
            margin-bottom: 10px;
        }

        .comment-author img.avatar {
            border-radius: 50%;
            margin-right: 10px;
            width: 48px;
            height: 48px;
            border: 2px solid #f4c361;
        }

        .comment-list .comment-meta {
            font-size: 0.85em;
            color: #9a7e5d;
            margin-top: -5px;
            display: block;
        }

        img.avatar {
            float: left;
            border-radius: 8px;
            margin-right: 20px;
        }

        #respond {
            background: #fffcf3;
            padding: 30px;
            border-radius: 1rem;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        }

        #respond h3 {
            font-size: 22px;
            margin-bottom: 20px;
            color: #5d432c;
            text-align: center;
            font-weight: 600;
        }

        #commentform input[type="text"],
        #commentform input[type="email"],
        #commentform input[type="url"],
        #commentform textarea {
            width: 100%;
            padding: 12px;
            margin-bottom: 15px;
            border: 1px solid #d7c29c;
            border-radius: 5px;
            background: #fffdf5;
            font-size: 16px;
            transition: border-color 0.3s ease, box-shadow 0.3s ease;
        }

        #commentform input[type="text"]:focus,
        #commentform input[type="email"]:focus,
        #commentform input[type="url"]:focus,
        #commentform textarea:focus {
            border-color: #f4c361;
            box-shadow: 0 0 5px rgba(244, 195, 97, 0.5);
            outline: none;
        }

        #commentform label[for="url"],
        #commentform input#url,
        .comment-metadata {
            display: none;
        }

        #commentform .comment-notes,
        .comment-form-cookies-consent {
            font-size: .9em;
            margin: 15px 0;
            color: #666;
            text-wrap: pretty;
        }

        #comments .comment-content {
            margin: 15px 0 10px 0;
            line-height: 1.6;
            padding: 0 20px;
            color: #444;
        }

        #commentform input[type="submit"] {
            background-color: #f4c361;
            border: none;
            padding: 12px 25px;
            width: 100%;
            margin-top: 20px;
            color: #4a3522;
            font-weight: bold;
            border-radius: 5px;
            cursor: pointer;
            transition: background-color 0.3s ease, transform 0.2s ease;
            font-size: 1.1em;
        }

        #commentform input[type="submit"]:hover {
            background-color: #e8b84a;
            transform: translateY(-1px);
        }

        .comment-list li .reply a {
            margin-top: 10px;
            display: inline-block;
            background-color: #f4c361;
            color: #4a3522;
            padding: 8px 15px;
            border-radius: 5px;
            text-decoration: none;
            font-weight: bold;
            font-size: 0.9em;
            transition: background-color 0.3s ease, transform 0.2s ease;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        .comment-list li .reply a:hover {
            background-color: #e8b84a;
            transform: translateY(-1px);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
        }

        .comment-list li .reply-form-container {
            margin-top: 20px;
            padding: 20px;
            background-color: #fcf8ed;
            border: 1px solid #e9dcc4;
            border-radius: 8px;
            box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
        }

        .comment-list li .reply-form-container #commentform {
            padding: 0;
            box-shadow: none;
        }

        .comment-list li .reply-form-container #commentform h3 {
            font-size: 1.2em;
            margin-bottom: 15px;
            text-align: left;
            border-bottom: none;
            padding-bottom: 0;
            color: #6b4c3b;
        }

        .comment-list li .reply-form-container #commentform input[type="text"],
        .comment-list li .reply-form-container #commentform input[type="email"],
        .comment-list li .reply-form-container #commentform textarea {
            background: #fff;
            border-color: #d7c29c;
        }

        .comment-list li .reply-form-container #commentform input[type="submit"] {
            background-color: #6b4c3b;
            color: white;
        }

        .comment-list li .reply-form-container #commentform input[type="submit"]:hover {
            background-color: #5d432c;
        }

        button.toggle-mode.active-draw-mode {
            background: #1082b3;
            animation: piscar 2s infinite;
        }

        @keyframes piscar {
            0% {
                background: #1082b3;
            }

            10% {
                background: #10b37d;
            }

            20% {
                background: #1082b3;
            }

            30% {
                background: #10b37d;
            }

            40% {
                background: #1082b3;
            }

            100% {
                background: #1082b3;
            }
        }

        #currentSelectedColorDisplay span.sparkle-icon {
            font-size: 1.2rem;
            color: #FFD700;
            text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
            line-height: 35px;
            width: 100%;
            text-align: center;
            display: block;
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            pointer-events: none;
        }

        #conditionalActionButton {
            background: #1a73e8;
            color: white;
            border: none;
            padding: 2px 6px;
            text-transform: uppercase;
            border-radius: 4px;
            font-weight: bold;
            cursor: pointer;
            display: none;
            align-items: center;
            gap: 5px;
            font-size: 1rem;
            transition: background 0.2s;
        }

        #conditionalActionButton:hover {
            background: rgb(33, 232, 26);
            color: black;
        }

        #conditionalActionButton svg {
            width: 1.2rem;
            height: 1.2rem;
        }

        .hero-section {
            position: relative;
            width: 100%;
            z-index: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        /* .hero-background-image {
            position: relative;
            width: 100%;
            max-width: 1280px;
            height: 500px;
            background-size: cover;
            background-position: center center;
            background-repeat: no-repeat;
            z-index: 1;
            padding-bottom: 150px;
            box-sizing: border-box;
        }

        .hero-background-image::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 150px;
            background: linear-gradient(to top, rgba(233, 223, 196, 1) 0%, rgba(233, 223, 196, 0) 100%);
            z-index: 2;
            pointer-events: none;
        } */

        .hero-image-container {
            width: 100%;
            max-width: 1280px;
            margin: 0 auto;
            text-align: center;
        }

        .coloring-page-image {
            max-width: 100%;
            height: auto;
            border-radius: 1rem;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        }

        .hero-content-wrapper {
            position: relative;
            z-index: 3;
            width: 100%;
            max-width: 1280px;
            margin-top: -150px;
        }

        .hero-content {
            margin: 0 auto;
            background-color: #fffcf3;
            border-radius: 1rem;
            padding: 20px 40px;
            max-width: 800px;
            color: #30271d;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        }

        .hero-content h1 {
            margin-top: 0 !important;
            padding-top: 10px;
        }

        .ads-after-hero-section {
            position: relative;
            width: 100%;
            max-width: 1200px;
            margin: 20px auto;
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            z-index: 1;
        }

        .ads-lateral {
            position: static;
            width: 160px;
            flex-shrink: 0;
            margin: 0 20px;
        }

        @media (max-width: 768px) {
            .hero-background-image {
                height: 300px;
                padding-bottom: 100px;
            }

            .hero-background-image::after {
                height: 100px;
            }

            .hero-content-wrapper {
                margin-top: -100px;

            }

            .hero-content {
                padding: 15px 20px;
                box-shadow: none;
                margin: 0 20px !important;
            }

            .ads-after-hero-section {
                display: none;
            }
        }

        .floating-action-button {
            position: fixed;
            bottom: 20px;
            right: 20px;
            background: #FF984A;
            color: black;
            padding: 15px 25px;
            border-radius: 50px;
            font-size: 1.1rem;
            font-weight: bold;
            justify-content: space-between;
            text-transform: uppercase;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
            cursor: pointer;
            border: none;
            height: auto !important;
            display: flex;
            align-items: center;
            gap: 10px;
            transition: all 0.3s ease;
            z-index: 1000;
            overflow: hidden;
        }

        .floating-action-button::before {
            content: '';
            position: absolute;
            z-index: -2;
            left: -50%;
            top: -50%;
            width: 200%;
            height: 200%;
            background-color: #FF984A;
            background-repeat: no-repeat;
            background-size: 50% 50%, 50% 50%;
            background-position: 0 0, 100% 0, 100% 100%, 0 100%;
            background-image: conic-gradient(#FFE175, #FF984A, #FFE175);
            animation: rotate 2s linear infinite;
        }

        .floating-action-button::after {
            content: '';
            position: absolute;
            z-index: -1;
            left: 3px;
            top: 3px;
            width: calc(100% - 6px);
            height: calc(100% - 6px);
            background: #FF984A;
            border-radius: 47px;
        }

        @keyframes rotate {
            100% {
                transform: rotate(360deg);
            }
        }

        .floating-action-button .button-icon-wrapper {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 24px;
            height: 24px;
        }

        .floating-action-button:hover {
            transform: translateY(-3px);
        }

        .floating-action-button svg {
            position: absolute;
            width: 25px;
            aspect-ratio: 1;
            transition: opacity 0.3s ease;
        }

        .floating-action-button .icon-arrow-up {
            opacity: 0;
        }

        .floating-action-button.scroll-up .icon-arrow-down {
            opacity: 0;
        }

        .floating-action-button.scroll-up .icon-arrow-up {
            opacity: 1;
        }

        @media (max-width: 768px) {
            .floating-action-button {
                font-size: 0.9rem;
                padding: 12px 20px;
                bottom: 15px;
                right: 15px;
            }

            .floating-action-button svg {
                width: 20px;
                height: 20px;
            }
        }