@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:wght@400;700&display=swap');

:root {
    --verde: #1ba11a;
    --amarelo: #fff54f;
    --amarelo-forte: #e8db0e;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

html {
    width: 100%;
    min-width: 0;
}

body {
    margin: 8px;
    background: var(--verde) url('./greenbackground.png') top left repeat;
    font-family: "Comic Sans MS", "Comic Neue", cursive;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

header,
main,
footer {
    min-width: 0;
}

.faixa-verde {
    font-weight: bolder;
}

.faixa-verde {
    color: var(--amarelo);
    text-align: center;
}

h1 {
    color: white;
    font-family: "Times New Roman", Times, serif;
    text-align: center;
    font-size: 120px;
    margin-top: -20px;
}

h2 {
    color: var(--amarelo);
    font-family: "Comic Sans MS", "Comic Neue", cursive;
    text-align: center;
    font-size: 50px;
    margin-top: -80px;
    font-weight: lighter;
}

/* Texto original da homenagem */
.first-text,
.second-text,
.third-text,
.forth-text,
.fifth-text,
.sixth-text,
.sobre-projeto {
    font-family: "Comic Sans MS", "Comic Neue", cursive;
    text-align: center;
    overflow-wrap: break-word;
}

.first-text,
.second-text,
.third-text,
.sobre-projeto {
    max-width: 900px;
    margin: 40px auto;
}

.first-text {
    color: var(--amarelo);
    font-size: 30px;
    line-height: 1.5;
}

.second-text {
    color: var(--amarelo);
    font-size: 30px;
    line-height: 1;
}

.third-text {
    color: #ffffff;
    font-size: 20px;
    line-height: 1.5;
}

.forth-text,
.fifth-text,
.sixth-text {
    font-size: 40px;
    font-weight: bold;
}

.forth-text,
.fifth-text {
    color: var(--amarelo);
}

.fifth-text {
    margin-top: 20px;
}

.sixth-text {
    color: var(--amarelo-forte);
    margin-top: 35px;
}

/* Imagens e botão */
.facewalter,
.casa,
.banner,
.clique {
    margin-right: auto;
    margin-left: auto;
}

.facewalter {
    width: 400px;
    margin-top: -20px;
    margin-bottom: 20px;
}

.casa {
    width: 550px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.banner {
    width: 1000px;
    margin-top: 50px;
    margin-bottom: 20px;
}

.clique {
    width: 400px;
    margin-top: 50px;
    margin-bottom: 20px;
}

.aviso-doacao {
    max-width: 800px;
    margin: 22px auto 0;
    padding: 0 16px;
    color: #ffffff;
    font-size: 17px;
    font-weight: bold;
    text-align: center;
    line-height: 1.45;
    font-family: "Comic Sans MS", "Comic Neue", cursive;
}

.botao-doar {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 50px auto 20px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
}

.botao-doar .clique {
    margin: 0 auto;
    transition: transform 0.15s ease, filter 0.15s ease;
}

.botao-doar:hover .clique {
    transform: scale(1.08);
    filter: brightness(1.15);
}

.botao-doar:active .clique {
    transform: scale(0.96);
}

.botao-doar:focus-visible,
.botao-copiar:focus-visible {
    outline: 3px solid white;
    outline-offset: 5px;
}

/* Janela Pix */
.quadro-qr {
    font-family: "Times New Roman", Times, serif;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 0;
    background: var(--amarelo);
    border-radius: 12px;
    text-align: center;
    transition: max-height 0.5s ease, opacity 0.5s ease, padding 0.5s ease, margin 0.5s ease, visibility 0.5s;
}

.quadro-qr.aberto {
    max-height: 750px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    padding: 20px;
    margin: 20px auto 60px;
}

.quadro-qr h3 {
    color: var(--verde);
    font-size: 24px;
}

.qrcode {
    width: 300px;
    max-width: 100%;
    margin: 0 auto;
}

.quadro-qr p,
.quadro-qr code,
.dados-pix {
    color: var(--verde);
}

.dados-pix {
    font-weight: bold;
    margin: 16px 0;
    line-height: 1.6;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.dados-pix code {
    display: inline;
    font-size: 0.95em;
    background: rgba(0, 0, 0, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    overflow-wrap: anywhere;
}

.botao-copiar {
    padding: 8px 16px;
    font-size: 1rem;
    cursor: pointer;
    border: 2px solid #1a1a1a;
    border-radius: 6px;
    background: white;
}

.botao-copiar:hover {
    background: #eee;
}

.aviso-copia {
    min-height: 1.2em;
    font-size: 0.9rem;
}

.sobre-projeto {
    color: var(--amarelo);
    font-size: 30px;
    line-height: 1.5;
}

/* Celular e tablet: dimensões fluidas, sem rolagem lateral */
@media (max-width: 768px) {
    body {
        margin: 0;
        font-family: "Comic Neue", "Comic Sans MS", cursive;
    }

    .faixa-verde {
        padding: 10px 15px;
        background: rgba(0, 0, 0, 0.13);
    }

    .faixa-verde h3 {
        margin: 0;
        font-size: clamp(12px, 3.5vw, 16px);
        line-height: 1.4;
    }

    header {
        padding: 20px 12px 0;
    }

    h1 {
        margin: 0;
        font-size: clamp(42px, 11vw, 80px);
        line-height: 1.03;
        overflow-wrap: anywhere;
    }

    h2 {
        margin: 8px 0 0;
        font-size: clamp(22px, 5.4vw, 38px);
        line-height: 1.2;
        font-family: "Comic Neue", "Comic Sans MS", cursive;
    }

    .facewalter {
        width: min(75vw, 330px);
        margin: 20px auto 12px;
    }

    .first-text,
    .second-text,
    .third-text,
    .forth-text,
    .fifth-text,
    .sixth-text,
    .sobre-projeto {
        font-family: "Comic Neue", "Comic Sans MS", cursive;
        padding-left: 18px;
        padding-right: 18px;
    }

    .first-text,
    .second-text,
    .third-text,
    .sobre-projeto {
        max-width: 100%;
        margin: 24px auto;
    }

    .first-text,
    .second-text {
        font-size: clamp(19px, 4.7vw, 25px);
        line-height: 1.45;
    }

    .third-text {
        font-size: clamp(17px, 4vw, 20px);
        line-height: 1.6;
    }

    .third-text p + p {
        margin-top: 1.25em;
    }

    .forth-text,
    .fifth-text,
    .sixth-text {
        font-size: clamp(23px, 5.8vw, 34px);
        line-height: 1.25;
        margin-top: 20px;
    }

    .casa {
        width: min(94vw, 550px);
        margin: 24px auto;
    }

    .banner {
        width: min(100%, 1000px);
        margin: 32px auto 16px;
    }

    .aviso-doacao {
        font-family: "Comic Neue", "Comic Sans MS", cursive;
        font-size: 15px;
        padding: 0 20px;
    }

    .botao-doar {
        margin: 25px auto 15px;
    }

    .clique {
        width: min(84vw, 400px);
    }

    .quadro-qr {
        max-width: calc(100% - 28px);
    }

    .quadro-qr.aberto {
        padding: 18px 14px;
        margin: 18px auto 42px;
    }

    .quadro-qr h3 {
        font-size: 21px;
    }

    .qrcode {
        width: min(75vw, 270px);
    }

    .dados-pix {
        font-size: 15px;
    }

    .sobre-projeto {
        font-size: 18px;
        line-height: 1.5;
        margin: 35px auto 24px;
    }
}

/* Telefones bem estreitos */
@media (max-width: 380px) {
    h1 {
        font-size: 40px;
    }

    h2 {
        font-size: 21px;
    }

    .first-text,
    .second-text,
    .third-text,
    .forth-text,
    .fifth-text,
    .sixth-text,
    .sobre-projeto {
        padding-left: 14px;
        padding-right: 14px;
    }

    .first-text,
    .second-text {
        font-size: 18px;
    }

    .dados-pix {
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .botao-doar .clique,
    .quadro-qr {
        transition: none;
    }
}

.noticias {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    margin-top: 150px;
    padding: 0 22px;
}

.n1 {
    text-align: left;
    font-size: 20px;
    color: #fff54f;
    padding-left: 22px;
}

.dean {
    max-width: 400px;
    margin-top: -20px;
}

.textobaixo1 {
    text-align: left;
    font-size: 18px;
    color: #fff54f;
    padding-left: 22px;
    margin-top: -2px;
}
.Continuarlendo1 {
    text-align: left;
    font-size: 18px;
    color: #fff54f;
    padding-left: 22px;
}

.n2 {
    text-align: left;
    font-size: 20px;
    color: #fff54f;
    padding-left: 22px;
}

.rj {
    max-width: 400px;
    margin-top: -20px;
}

.textobaixo2 {
    text-align: left;
    font-size: 18px;
    color: #fff54f;
    padding-left: 22px;
    margin-top: -2px;
}
.Continuarlendo2 {
    text-align: left;
    font-size: 18px;
    color: #fff54f;
    padding-left: 22px;
}

.quadrodenoticias {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

.noticia1, .noticia2, .noticia3 {
    flex: 1;
    min-width: 0;
}

.dean, .rj, .melhorserie {
    width: 100%;
    max-width: 400px;
    height: auto;
}

@media (max-width: 768px) {
    .quadrodenoticias {
        flex-direction: column;
        gap: 40px;
    }

    .noticia1, .noticia2, .noticia3 {
        width: 100%;
    }
}
.n3 {
    text-align: left;
    font-size: 20px;
    color: #fff54f;
}
.textobaixo3 {
    text-align: left;
    font-size: 18px;
    color: #fff54f;
    margin-top: -2px;
}
.Continuarlendo3 {
    text-align: left;
    font-size: 18px;
    color: #fff54f;
}
.melhorserie {
    margin-top: -20px;
}

/* Ajustes exclusivamente de responsividade: tablets e celulares */
@media (max-width: 1050px) and (min-width: 769px) {
    .quadrodenoticias {
        gap: 20px;
        padding: 16px;
    }

    .noticias {
        padding: 0 16px;
    }

    .n1, .n2, .textobaixo1, .textobaixo2,
    .Continuarlendo1, .Continuarlendo2 {
        padding-left: 10px;
    }
}

@media (max-width: 768px) {
    body {
        min-width: 0;
        overflow-x: clip;
    }

    main, header, footer, .noticias, .quadrodenoticias {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .noticias {
        margin-top: 65px;
        padding: 0 18px;
        gap: 0;
    }

    .noticias h2 {
        width: 100%;
        max-width: 100%;
        margin: 0;
        font-size: clamp(23px, 5.5vw, 38px);
        line-height: 1.2;
        overflow-wrap: break-word;
    }

    .quadrodenoticias {
        flex-direction: column;
        align-items: stretch;
        gap: 30px;
        padding: 18px;
    }

    .noticia1, .noticia2, .noticia3 {
        flex: none;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .n1, .n2, .n3,
    .textobaixo1, .textobaixo2, .textobaixo3,
    .Continuarlendo1, .Continuarlendo2, .Continuarlendo3 {
        padding-left: 0;
        max-width: 100%;
        overflow-wrap: break-word;
    }

    .dean, .rj, .melhorserie {
        display: block;
        width: 100%;
        max-width: 400px;
        height: auto;
        margin-left: 0;
        margin-right: 0;
    }

    .quadro-qr {
        min-width: 0;
    }
}

@media (max-width: 380px) {
    .noticias {
        margin-top: 48px;
        padding: 0 14px;
    }

    .quadrodenoticias {
        padding: 14px;
        gap: 25px;
    }

    .noticias h2 {
        font-size: 22px;
    }
}
