* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Arial', sans-serif;
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
}
/* Offset main content from fixed header */
main {
    margin-top: 70px;
}

/* Generic content box (like footer box but for sections) */
.content-box {
    background: #ffffff;
    border: 2px solid #ff7111;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(255, 113, 17, 0.2);
    padding: 12px;
    box-sizing: border-box;
    margin: 8px;
    max-width: 100%;
    overflow-wrap: anywhere;
}
.content-box2 img {
    display: block;
    margin: 5px auto;
    max-width: 100%;
    height: auto;
    border: 2px solid #ff7111;
    border-radius: 8px;
}
.content-image { display:block; margin: 5px auto; max-width:100%; height:auto; border:2px solid #ff7111; border-radius:8px; }

@media (min-width: 769px) {
    .content-box {
        max-width: 1200px;
        /* keep side gutters on narrow desktops/tablets */
        width: calc(100% - 32px);
        margin: 16px auto 24px;
        padding: 18px 24px;
    }
}

/* Typography inside content boxes */
.content-box h1 {
    color: #ff7111;
    font-size: 1.6rem;
    line-height: 1.2;
    margin: 0px 0 10px;
    text-align: center;
    
}
.content-box h2 { color: #cc5a0a; font-size: 1.3rem; margin: 8px 0 8px; }
.content-box h3 { color: #cc5a0a; font-size: 1.2rem; margin: 6px 0 6px; }
.content-box h4 { color: #cc5a0a; font-size: 1.15rem; margin: 6px 0 6px; }
.content-box p  { color: #333; line-height: 1.6; margin: 6px 0 10px; }
 

@media (max-width: 768px) {
    .content-box h1 { font-size: 1.3rem; }
    .content-box h2 { font-size: 1.30rem; }
    .content-box h3 { font-size: 1.15rem; }
    .content-box h4 { font-size: 1.05rem; }
    
}
header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #ff7111;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 5px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    height: 46px;
    margin-left: 0;
    display: block; /* evita gap de baseline quando dentro de <a> */
}
/* garante que o link do logo não adicione altura extra */
header > a { display: flex; align-items: center; line-height: 0; }
nav {
    display: flex;
    align-items: center;
    background-color: #ff7111;
    border-radius: 5px;
    padding: 5px 10px;
}
nav ul {
    list-style: none;
    display: flex;
    gap: 10px;
}
nav ul li {
    cursor: pointer;
}
nav ul li a {
    text-decoration: none;
    color: #ffffff;
    font-weight: bold;
    transition: color 0.3s;
    display: block;
    padding: 5px;
}
nav ul li:hover {
    background-color: #ffe0cc;
    border-radius: 3px;
}
nav ul li a:hover {
    color: #000;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}
.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    margin: 3px 0;
    transition: 0.3s;
}
.hamburger.active span {
    background-color: #800020;
}
.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}
.hero {
    padding: 60px 10px 10px;
    text-align: center;
    background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
}
.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #ff7111;
}
.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    color: #666;
}
.cards {
    padding: 10px 15px ;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
}
.card {
    background-color: #fff1e6;
    border: 2px solid #ff7111;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(255, 113, 17, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}
.cards .card {
    display: block;
    text-decoration: none;
    color: inherit;
}
.cards .card:visited {
    color: inherit;
}
.cards .card:hover,
.cards .card:active {
    text-decoration: none;
    color: inherit;
}
.cards .card:focus-visible {
    outline: 3px solid #ff7111;
    outline-offset: 3px;
    text-decoration: none;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(204, 90, 10, 0.45);
}
.card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}
.card-content {
    padding: 5px;
    text-align: center;
    background-color: #fff1e6;
}
.card-content h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: #cc5a0a;
}
.card-content p {
    color: #333;
    font-size: 0.9rem;
}
@media (max-width: 768px) {
    nav.active {
        background-color: #ffe0cc;
    }
    nav ul {
        display: none;
        position: absolute;
        top: 60px;
        right: 6px;
        background-color: #ffe0cc;
        border: 1px solid #ff7111;
        border-radius: 5px;
        padding: 10px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    nav ul.active {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }
    /* separators for active mobile menu */
    #nav-menu.active li + li {
        border-top: 1px solid #ff7111;
    }
    #nav-menu.active li {
        margin: 0;
    }
    nav ul li a {
        color: #000;
        padding: 3px;
    }
    nav ul li:hover {
        background-color: #ff7111;
    }
    nav ul li a:hover {
        color: #ffffff;
    }
    .hamburger {
        display: flex;
    }
    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 1px
    }
        .hero h2 {
        font-size: 1.3rem;
            
    }
.hero p {
    font-size: 1rem;
}
}

/* Ad block between hero and cards */
.ad-block {
    max-width: 1000px;
    margin: 12px auto 12px;
    padding: 8px 8px 2px;
    background: #ffffff;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}
.ad-block--wide { max-width: 1200px; }
.cards .ad-block { grid-column: 1 / -1; }
.cards .ad-block { width: 100%; min-width: 300px; }
.ad-label {
    display: inline-block;
    font-size: 11px;
    color: #888;
    background: #f5f5f5;
    border: 1px solid #e6e6e6;
    border-radius: 999px;
    padding: 2px 8px;
    margin: 2px 0 6px 2px;
}

.ad-block .adsbygoogle {
    display: block !important;
    width: 100% !important;
    min-height: 100px;
}

@media (max-width: 768px) {
    .ad-block .adsbygoogle { min-height: 90px; }
    .cards { grid-template-columns: minmax(0, 1fr); }
}

@media (min-width: 1024px) {
    .ad-block--wide .adsbygoogle { min-height: 250px; }
}

/* Ensure ad label container styled on desktop too */
@media (min-width: 769px) {
    .ad-block {
        max-width: 1000px;
        margin: 12px auto 12px;
        padding: 8px 8px 2px;
        background: #ffffff;
        border: 1px solid #e6e6e6;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
        overflow: hidden;
    }
}

/* Footer styles */
.site-footer {
    background: #f9f9f9;
    padding: 20px 10px;
    width: 100%;
    clear: both;
}
.footer-box {
    max-width: none;
    margin: 0 8px 16px;
    background: #ffffff;
    border: 2px solid #ff7111;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(255, 113, 17, 0.2);
    text-align: center;
    padding: 12px;
    box-sizing: border-box;
}

/* Unified footer look across viewports */
.footer-copy {
    color: #666;
    font-size: 0.95rem;
}
.footer-links a {
    color: #cc5a0a;
    text-decoration: none;
    font-weight: bold;
}
.footer-links a:hover,
.footer-links a:focus {
    color: #ff7111;
    text-decoration: underline;
}
.footer-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin: 10px 0;
}
.footer-badges .badge-img {
    display: block;
    height: auto;
}
.footer-subscribe {
    margin-top: 8px;
}
.subscribe-img {
    width: 170px;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(255, 113, 17, 0.25);
}

/* Section title (Simpatias) */
.section-title {
    max-width: 1200px;
    margin: 20px auto 16px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.cards .section-title { grid-column: 1 / -1; }
.section-title h4 {
    display: inline-block;
    color: #cc5a0a;
    font-size: 1.6rem;
    font-weight: 800;
    margin: 6px 0 4px;
    position: relative;
    background: #ffffff;
    border: 2px solid #ff7111;
    border-radius: 999px;
    padding: 6px 14px;
    box-shadow: 0 4px 12px rgba(255, 113, 17, 0.15);
}
.section-title h4::after { content: none; }

.section-title::before,
.section-title::after {
    content: "";
    display: block;
    height: 2px;
    flex: 1;
    max-width: 220px;
    border-radius: 2px;
}
.section-title::before {
    background: linear-gradient(to left, rgba(255,113,17,0), rgba(255,113,17,0.85));
}
.section-title::after {
    background: linear-gradient(to right, rgba(255,113,17,0), rgba(255,113,17,0.85));
}

@media (max-width: 768px) {
    .footer-box {
        margin: 0 8px 16px;
        padding: 12px;
    }
    .section-title h4 {
        font-size: 1.35rem;
    }
}

/* Highlight specific card title */
.card-title-highlight {
    color: #ff7111;
    font-weight: 800;
}

/* Footer image sizing refinements */
.footer-badges .comodo { width: 80px; height: auto; }
.footer-badges .webwiki { width: 110px; height: auto; border-radius: 50%; }

/* Show footer on all viewports; desktop uses boxed layout below */
@media (min-width: 769px) {
    .site-footer { padding: 28px 16px; }

    /* Flex fallback for broad support */
    .footer-box {
        max-width: 1200px;
        margin: 16px auto 24px;
        padding: 18px 24px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 18px;
        text-align: left;
        flex-wrap: wrap;
    }
    .footer-copy { margin: 0; font-size: 1rem; color: #555; flex: 1 1 280px; }
    .footer-links { margin: 0; flex: 1 1 220px; }
    .footer-badges { justify-content: center; gap: 18px; margin: 0; flex: 0 1 260px; }
    .footer-subscribe { margin: 0; align-self: center; flex: 0 0 auto; }
    .subscribe-img { width: 220px; height: auto; }
    .footer-badges .comodo { width: 90px; }
    .footer-badges .webwiki { width: 130px; }

    /* Use CSS Grid when supported */
    @supports (display: grid) {
        .footer-box {
            display: grid;
            grid-template-columns: 1.2fr 1fr auto;
            grid-template-rows: auto auto;
            grid-template-areas:
                "copy badges subscribe"
                "links badges subscribe";
            column-gap: 24px;
            row-gap: 10px;
        }
        .footer-copy { grid-area: copy; align-self: end; }
        .footer-links { grid-area: links; }
        .footer-badges { grid-area: badges; }
        .footer-subscribe { grid-area: subscribe; justify-self: end; }
    }
}

/* ===== Tarot Cigano – Futuro Amoroso (deck/resultado/loading) ===== */
.lenormand-deck {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
    gap: 10px;
    align-items: start;
}
.lenormand-card {
    display: block;
    width: 68px;
    height: 106px;
    margin: 0 auto;
    background: url('../tarot-cigano-futuro-amoroso/imagens/card-verso.jpg') center/cover no-repeat;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    transition: transform 0.16s ease, box-shadow 0.16s ease;
    border: 2px solid #ff7111;
    box-sizing: border-box;
}
.lenormand-deck.stacked { justify-content: center; padding-top: 48px; }
.lenormand-deck.stacked .lenormand-card { margin-top: -48px; }
@media (min-width: 769px) {
  .lenormand-deck.stacked { grid-template-columns: repeat(9, 68px); padding-top: 60px; }
  .lenormand-deck.stacked .lenormand-card { margin-top: -60px; }
}
.lenormand-card:hover,
.lenormand-card:focus {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.25);
}
.lenormand-card:focus-visible { outline: 3px solid #ff7111; outline-offset: 2px; }

/* Click feedback */
.lenormand-deck.clicked .lenormand-card { pointer-events: none; }
.lenormand-card.active {
    transform: translateY(-10px) scale(1.08);
    /* brilho/glow */
    box-shadow:
      0 10px 24px rgba(0,0,0,0.28),
      0 0 0 3px #fff6f0,
      0 0 16px rgba(255,113,17,0.75),
      0 0 32px rgba(255,113,17,0.45);
    animation: tg-pulse-scale 0.4s ease-in-out 0s 2;
    z-index: 5;
}
@keyframes tg-pulse-scale {
  0% { transform: translateY(-6px) scale(1.02); }
  50% { transform: translateY(-12px) scale(1.09); }
  100% { transform: translateY(-6px) scale(1.02); }
}

.lenormand-face {
    display: block;
    margin: 0 auto;
    border: 3px solid #ff7111;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(255, 113, 17, 0.2);
}

.tg-loading-box { text-align: center; }
.tg-loading { display: flex; gap: 12px; align-items: center; justify-content: center; margin-top: 10px; }
.tg-loading-text { font-size: 1.1rem; color: #cc5a0a; line-height: 1.2; }
.tg-ball {
    display: inline-block;
    width: 50px; height: 50px;
    background: #FF6600;
    border: 2px solid #FF0000;
    border-radius: 50%;
    box-shadow: inset 6px -10px 50px -20px #000;
    animation: tg-bounce 1s infinite;
}
@keyframes tg-bounce {
    0%, 100% { transform: translateY(0); animation-timing-function: ease-out; }
    50% { transform: translateY(-26px); animation-timing-function: ease-in; }
}

/* Buttons row on resultado: tighter on mobile */
@media (max-width: 480px) {
  .lenormand-actions { gap: 6px !important; }
  .lenormand-actions .bt-link { padding: 6px 10px !important; }
}
