* {
    box-sizing: border-box
}

.idabkids-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at top, #ffffff 0%, #dff7ff 40%, #9ee5ff 100%);
    color: #17376b;
    overflow-x: hidden;
    position: relative;
    font-family: 'Poppins', sans-serif;
    /* font-family: 'Comic Sans MS', Arial, sans-serif */
}

.idabkids-page::before {
    content: "🧩 ⭐ ☁️ 🧩 ⭐ ☁️";
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    font-size: 60px;
    letter-spacing: 80px;
    opacity: .08;
    pointer-events: none;
    z-index: 0
}

#particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0
}

.container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1500px;
    margin: auto;
    padding: 35px 25px
}

.logo_idabkids {
    text-align: center;
    margin-bottom: 25px
}

.kids-logo-img {
    width: 230px;
    filter:
        drop-shadow(0 10px 20px rgba(0, 0, 0, .25))
}

.btn-home-site {
    position: fixed;
    top: 35px;
    right: 35px;
    z-index: 20;
    background:
        linear-gradient(135deg, #ffb800, #ff7300);
    color: white;
    padding: 16px 45px;
    border-radius: 25px;
    font-weight: bold;
    text-decoration: none;
    border: 5px solid white;
    box-shadow:
        0 10px 25px rgba(255, 120, 0, .4);
    transition: .3s
}

.btn-home-site:hover {
    transform: scale(1.08)
}

.puzzle-hero {
    max-width: 900px;
    margin: 0 auto 35px auto;
    text-align: center;
    background: white;
    padding: 35px;
    border-radius: 40px;
    box-shadow:
        0 15px 35px rgba(0, 150, 220, .25)
}

.puzzle-hero h1 {
    font-size: 45px;
    margin-bottom: 15px
}

.puzzle-hero p {
    font-size: 22px;
    font-weight: bold;
    color: #4b6b8c
}

#home {
    max-width: 1300px;
    margin: auto
}

.puzzle-selection {
    background:
        rgba(255, 255, 255, .75);
    border-radius: 40px;
    padding: 35px;
    box-shadow:
        0 20px 40px rgba(0, 120, 200, .20);
    backdrop-filter: blur(8px)
}

.puzzle-selection h2 {
    font-size: 35px;
    text-align: center;
    margin-bottom: 35px
}

.galeria {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px
}

.puzzle-card-img {
    background: white;
    border-radius: 35px;
    padding: 18px;
    box-shadow:
        0 12px 0 #bdefff,
        0 25px 35px rgba(0, 0, 0, .18);
    transition: .3s
}

.puzzle-card-img:hover {
    transform:
        translateY(-10px) scale(1.03)
}

.puzzle-card-img.selecionado {
    outline: 6px solid #00c8ff
}

.foto-area {
    height: 250px;
    border-radius: 25px;
    overflow: hidden;
    background: #eee
}

.foto-area img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.dificuldades {
    margin-top: 18px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px
}

.dificuldades button {
    border: 0;
    cursor: pointer;
    border-radius: 18px;
    padding: 12px 5px;
    background:
        linear-gradient(135deg, #ffe15d, #ffb700);
    color: #17376b;
    font-weight: bold;
    box-shadow:
        0 6px 0 #d99b00;
    transition: .2s
}

.dificuldades button:hover {
    transform: translateY(-5px)
}

.dificuldades button:active {
    transform: translateY(5px);
    box-shadow: none
}

.dificuldades button span {
    display: block;
    font-size: 25px
}

.dificuldades button strong {
    display: block;
    font-size: 20px
}

.dificuldades button small {
    font-size: 14px
}

#game {
    display: none;
    margin-top: 50px
}

.game-wrapper {
    display: flex;
    justify-content: center;
    width: 100%
}

.game-box {
    background: white;
    border-radius: 40px;
    padding: 30px;
    box-shadow:
        0 20px 50px rgba(0, 100, 180, .25);
    max-width: 100%
}

.game-box h2 {
    text-align: center;
    font-size: 35px;
    margin-bottom: 25px
}

#topo {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 25px;
    flex-wrap: wrap
}

.status-box {
    background:
        linear-gradient(135deg, #e7f8ff, #ffffff);
    padding: 18px 35px;
    border-radius: 25px;
    font-size: 22px;
    font-weight: bold;
    box-shadow:
        0 8px 18px rgba(0, 120, 200, .2)
}

.canvas-area {
    background: #eefaff;
    padding: 15px;
    border-radius: 25px;
    overflow: auto;
    width: 100%;
    max-width: 100%
}

canvas#canvas {
    display: block;
    background: white;
    border-radius: 15px;
    max-width: none;
    box-shadow:
        inset 0 0 20px rgba(0, 0, 0, .08)
}

.btn-voltar-puzzle {

    border: 0;

    margin:
        0 auto 25px auto;

    display: block;

    padding:
        15px 35px;

    border-radius: 25px;

    background:
        linear-gradient(135deg,
            #ffb800,
            #ff7300);

    color: white;

    font-size: 20px;

    font-weight: bold;

    cursor: pointer;

    box-shadow:
        0 8px 20px rgba(255, 120, 0, .35)
}

.btn-voltar-puzzle:hover {

    transform:
        scale(1.05)
}

@media(max-width:900px) {
    .container {
        padding: 25px 15px
    }

    .kids-logo-img {
        width: 170px
    }

    .btn-home-site {
        position: absolute;
        top: 20px;
        right: 20px;
        padding: 12px 25px
    }

    .puzzle-hero {
        padding: 25px
    }

    .puzzle-hero h1 {
        font-size: 30px
    }

    .puzzle-hero p {
        font-size: 18px
    }

    .puzzle-selection {
        padding: 20px
    }

    .galeria {
        grid-template-columns: 1fr
    }

    .foto-area {
        height: 220px
    }

    #topo {
        flex-direction: column
    }

    .status-box {
        font-size: 18px
    }
}

@media(max-width:700px) {

    .container {
        padding: 20px 10px
    }

    .game-box {
        width: 100%;
        padding: 12px
    }

    .canvas-area {
        padding: 5px;
        overflow-x: hidden
    }

    canvas#canvas {
        width: 100%;
        height: auto
    }

    #topo {
        gap: 15px
    }

    .status-box {
        width: 100%;
        justify-content: center;
        text-align: center
    }

}

.btn-home-site {
    position: fixed;
    top: 25px;
    right: 25px;
    z-index: 99999;
    height: 58px;
    padding: 0 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    border: 5px solid #fff;
    background: linear-gradient(145deg, #ff8a00, #ff5e00);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 7px 0 #c94700, 0 18px 35px rgba(255, 94, 0, .35);
    transition: .25s;
}

.btn-home-site:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 10px 0 #c94700, 0 25px 45px rgba(255, 94, 0, .45);
}

.btn-home-site:active {
    transform: translateY(2px);
    box-shadow: 0 4px 0 #c94700;
}

@media(max-width:768px) {
    .btn-home-site {
        top: 15px;
        right: 15px;
        height: 52px;
        padding: 0 18px;
        font-size: 14px;
        border-radius: 18px;
    }
}