/* ~*~ Zipa Health - Style.css ~*~ */
/* Dark edition - early 2000s style */

body {
    background-color: #1a0a0a;
    background-image: linear-gradient(180deg, #1a0a0a 0%, #2d1515 30%, #1a0a0a 60%, #0d0505 100%);
    font-family: "Times New Roman", Times, serif;
    color: #e0e0e0;
    margin: 0;
    padding: 10px;
    cursor: crosshair;
}

a:link {
    color: #4fc3f7;
    text-decoration: underline;
}

a:visited {
    color: #ce93d8;
    text-decoration: underline;
}

a:hover {
    color: #ff5252;
    text-decoration: none;
    background-color: #333333;
}

a:active {
    color: #69f0ae;
}

table {
    border-collapse: collapse;
}

td, th {
    font-family: "Times New Roman", Times, serif;
}

blockquote {
    background-color: #3a3a3a;
    border-left: 5px solid #ff5252;
    padding: 10px;
    margin: 10px;
}

hr {
    border: none;
    height: 3px;
    background-color: #ff5252;
}

marquee {
    font-weight: bold;
}

/* Web ring style */
.webring {
    border: 3px dashed #4fc3f7;
    padding: 10px;
    margin: 10px auto;
    text-align: center;
    background-color: #3a3a3a;
    width: 400px;
}

/* Guestbook style */
.guestbook {
    border: 2px solid #666666;
    background-color: #333333;
    padding: 15px;
    margin: 10px;
}

.guestbook-entry {
    border-bottom: 1px dashed #555555;
    padding: 10px 0;
    margin-bottom: 10px;
}

/* Star blink effect */
.star {
    animation: blink 0.5s infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

/* Under construction banner */
.under-construction {
    background-color: #3d3d3d;
    border: 3px dashed #ff5252;
    padding: 10px;
    text-align: center;
    font-weight: bold;
    font-size: 18px;
    color: #ff5252;
    margin: 10px;
}

/* Hit counter */
.hit-counter {
    font-family: "Courier New", monospace;
    background-color: #000000;
    color: #00ff00;
    padding: 5px 10px;
    border: 2px inset #555555;
    display: inline-block;
    font-size: 16px;
    letter-spacing: 3px;
}

/* Navigation buttons */
.nav-button {
    background-color: #333333;
    border: 2px outset #555555;
    padding: 5px 15px;
    text-decoration: none;
    color: #d0d0d0;
    font-weight: bold;
    font-family: "MS Sans Serif", Arial, sans-serif;
    font-size: 12px;
}

.nav-button:active {
    border-style: inset;
}

/* Guestbook form */
input[type="text"], input[type="email"], textarea {
    border: 2px inset #666666;
    background-color: #333333;
    color: #e0e0e0;
    font-family: "Times New Roman", Times, serif;
    font-size: 14px;
    padding: 3px;
}

input[type="submit"] {
    background-color: #333333;
    border: 2px outset #555555;
    color: #d0d0d0;
    padding: 5px 20px;
    font-weight: bold;
    cursor: pointer;
}

input[type="submit"]:active {
    border-style: inset;
}

select {
    background-color: #333333;
    color: #e0e0e0;
    border: 2px inset #666666;
    padding: 3px;
}

/* Selection color */
::selection {
    background-color: #ff5252;
    color: #000000;
}

/* Scrollbar colors for WebKit */
::-webkit-scrollbar {
    width: 16px;
}

::-webkit-scrollbar-track {
    background-color: #3a3a3a;
    border: 1px solid #666666;
}

::-webkit-scrollbar-thumb {
    background-color: #666666;
    border: 2px outset #444444;
}

/* Flame animation */
.flame {
    animation: flame-flicker 0.3s infinite alternate;
    display: inline-block;
}

@keyframes flame-flicker {
    0% { transform: scale(1) rotate(-2deg); }
    100% { transform: scale(1.1) rotate(2deg); }
}

/* Smoke effect */
.smoke {
    animation: smoke-rise 2s infinite;
    display: inline-block;
    opacity: 0.7;
}

@keyframes smoke-rise {
    0% { transform: translateY(0) scale(1); opacity: 0.7; }
    50% { transform: translateY(-5px) scale(1.2); opacity: 0.4; }
    100% { transform: translateY(0) scale(1); opacity: 0.7; }
}

/* Cigarette icon decoration */
.cigarette-icon {
    font-size: 24px;
    display: inline-block;
    animation: cigarette-glow 1.5s infinite alternate;
}

@keyframes cigarette-glow {
    0% { text-shadow: 0 0 5px #ff5252, 0 0 10px #ff5252; }
    100% { text-shadow: 0 0 15px #ff9800, 0 0 25px #ff5252; }
}

/* Banner image style */
.banner-border {
    border: 3px solid #ff5252;
    border-image: linear-gradient(45deg, #ff5252, #ff9800, #ff5252) 1;
    padding: 10px;
    margin: 10px 0;
    background-color: #2a1515;
}

/* Colorful section headers */
.section-header {
    background: linear-gradient(90deg, #ff5252, #ff9800, #ff5252);
    color: #000000;
    padding: 5px 15px;
    font-weight: bold;
    font-size: 16px;
    text-align: center;
    margin: 10px 0;
    border: 2px outset #ff9800;
}

/* Glowing text */
.glow-text {
    text-shadow: 0 0 10px #ff5252, 0 0 20px #ff5252, 0 0 30px #ff9800;
    animation: glow-pulse 2s infinite alternate;
}

@keyframes glow-pulse {
    0% { text-shadow: 0 0 10px #ff5252, 0 0 20px #ff5252; }
    100% { text-shadow: 0 0 20px #ff9800, 0 0 40px #ff5252, 0 0 60px #ff5252; }
}

/* Decorative divider */
.divider-flame {
    text-align: center;
    font-size: 20px;
    margin: 15px 0;
    color: #ff9800;
}

/* Image frame */
.image-frame {
    border: 3px outset #ff9800;
    padding: 5px;
    background-color: #1a0a0a;
    display: inline-block;
    margin: 10px;
}

/* Rainbow text for early 2000s vibe */
.rainbow {
    background: linear-gradient(90deg, #ff5252, #ff9800, #69f0ae, #4fc3f7, #ce93d8, #ff5252);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbow-move 3s linear infinite;
}

@keyframes rainbow-move {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* Fire border box */
.fire-box {
    border: 2px solid #ff9800;
    box-shadow: 0 0 10px #ff5252, inset 0 0 10px rgba(255, 82, 82, 0.1);
    padding: 15px;
    margin: 10px 0;
    background-color: #2a1515;
}

/* Sparkle effect */
.sparkle {
    animation: sparkle-twinkle 1s infinite;
}

@keyframes sparkle-twinkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Visitor badge */
.visitor-badge {
    display: inline-block;
    border: 2px outset #ff9800;
    background: linear-gradient(180deg, #3d2020, #2a1515);
    padding: 5px 10px;
    margin: 3px;
    font-size: 11px;
    color: #ff9800;
    font-weight: bold;
}

/* Animated border */
.animated-border {
    border: 3px solid;
    border-image: linear-gradient(45deg, #ff5252, #ff9800, #69f0ae, #4fc3f7, #ce93d8) 1;
    border-image-slice: 1;
}

/* ============================================ */
/* FAKE ADS — Estilo early 2000s               */
/* ============================================ */

.fake-ad {
    display: inline-block;
    margin: 5px;
    padding: 8px 12px;
    border: 3px outset;
    font-family: "Comic Sans MS", Arial, sans-serif;
    font-weight: bold;
    font-size: 13px;
    cursor: pointer;
    text-align: center;
    width: 140px;
    text-decoration: none;
}

.fake-ad:hover {
    opacity: 0.85;
}

.fake-ad-1 {
    background: linear-gradient(180deg, #ff0000, #cc0000);
    color: #ffff00;
    border-color: #ff6666;
    animation: ad-blink-1 0.8s infinite;
}

.fake-ad-2 {
    background: linear-gradient(180deg, #0000cc, #000099);
    color: #00ff00;
    border-color: #6666ff;
    animation: ad-blink-2 1.2s infinite;
}

.fake-ad-3 {
    background: linear-gradient(180deg, #009900, #006600);
    color: #ffffff;
    border-color: #66ff66;
    animation: ad-blink-3 1s infinite;
}

.fake-ad-4 {
    background: linear-gradient(180deg, #cc6600, #993300);
    color: #ffcc00;
    border-color: #ff9966;
    animation: ad-blink-1 1.5s infinite;
}

.fake-ad-5 {
    background: linear-gradient(180deg, #9900cc, #660099);
    color: #ff66ff;
    border-color: #cc66ff;
    animation: ad-blink-2 0.9s infinite;
}

@keyframes ad-blink-1 {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes ad-blink-2 {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.03); }
}

@keyframes ad-blink-3 {
    0%, 100% { opacity: 1; }
    33% { opacity: 0.6; }
    66% { opacity: 0.9; }
}

/* Under Construction banner */
.under-construction-banner {
    background: repeating-linear-gradient(
        45deg,
        #000000,
        #000000 10px,
        #ffcc00 10px,
        #ffcc00 20px
    );
    padding: 3px;
    margin: 10px 0;
    text-align: center;
}

.under-construction-inner {
    background-color: #1a0a0a;
    padding: 10px 15px;
    border: 2px solid #ffcc00;
}

/* Poll / Votação */
.poll-box {
    border: 2px solid #ff9800;
    background-color: #2a1515;
    padding: 15px;
    margin: 10px 0;
}

.poll-option {
    margin: 5px 0;
    padding: 5px;
    background-color: #333333;
    border: 1px solid #555555;
    cursor: pointer;
}

.poll-option:hover {
    background-color: #444444;
}

.poll-bar {
    height: 20px;
    background: linear-gradient(90deg, #ff5252, #ff9800);
    display: inline-block;
    min-width: 2px;
    transition: width 0.5s ease;
}

.poll-results {
    display: none;
}

.poll-results.show {
    display: block;
}

.poll-voted {
    opacity: 0.6;
    pointer-events: none;
}

/* ============================================ */
/* RESPONSIVE DESIGN — Modern best practices    */
/* Mantém o estilo early 2000s mas funciona    */
/* em smartphones e tablets                     */
/* ============================================ */

/* Base — tabelas principais com largura fluida */
table[width="800"] {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
}

/* Imagens SVG inline — nunca ultrapassam a largura do ecrã */
img[src^="data:image/svg+xml"] {
    max-width: 100%;
    height: auto;
}

/* Web ring — largura fluida */
.webring {
    width: 100%;
    max-width: 400px;
}

/* Todas as tabelas — nunca ultrapassam o container */
table {
    max-width: 100%;
}

/* ============================================ */
/* TABLETS — max-width 768px                    */
/* ============================================ */
@media screen and (max-width: 768px) {
    body {
        padding: 5px;
    }

    /* Tabelas principais — largura total */
    table[width="800"] {
        width: 100%;
    }

    /* Conteúdo principal — padding reduzido */
    table[width="800"] td[bgcolor="#333333"] {
        padding: 10px !important;
    }

    /* Fontes ajustadas para tablet */
    font[size="7"] { font-size: 28px; }
    font[size="5"] { font-size: 18px; }
    font[size="4"] { font-size: 16px; }
    font[size="3"] { font-size: 14px; }
    font[size="2"] { font-size: 12px; }

    /* Navegação — botões lado a lado mas mais compactos */
    table[width="800"] tr[bgcolor="#444444"] td {
        padding: 6px 8px;
        font-size: 13px;
    }

    /* Blockquotes */
    blockquote {
        padding: 8px;
        margin: 8px 5px;
    }

    /* Fire box */
    .fire-box {
        padding: 10px;
        margin: 8px 0;
    }

    /* Section headers */
    .section-header {
        font-size: 14px;
        padding: 4px 10px;
    }

    /* Guestbook */
    .guestbook {
        padding: 10px;
        margin: 8px 5px;
    }

    /* Divisores de chamas */
    .divider-flame {
        font-size: 16px;
        margin: 10px 0;
    }

    /* Imagens */
    .image-frame {
        margin: 5px;
        padding: 3px;
    }

    /* Formulários */
    input[type="text"],
    input[type="email"],
    textarea {
        width: 90% !important;
        max-width: 100%;
    }

    select {
        width: 95% !important;
        max-width: 100%;
    }

    /* Badges — wrap */
    .visitor-badge {
        display: inline-block;
        margin: 2px;
    }
}

/* ============================================ */
/* SMARTPHONES — max-width 480px                */
/* ============================================ */
@media screen and (max-width: 480px) {
    body {
        padding: 0;
        font-size: 14px;
        cursor: auto;
    }

    /* Tabelas principais — largura total, sem margem */
    table[width="800"] {
        width: 100%;
        margin: 0;
        border-spacing: 0;
    }

    /* Conteúdo principal — padding mínimo */
    table[width="800"] td[bgcolor="#333333"] {
        padding: 8px !important;
    }

    /* Fontes ajustadas para smartphones */
    font[size="7"] { font-size: 24px; }
    font[size="5"] { font-size: 16px; }
    font[size="4"] { font-size: 15px; }
    font[size="3"] { font-size: 14px; }
    font[size="2"] { font-size: 12px; }

    /* Navegação — botões empilhados verticalmente */
    table[width="800"] tr[bgcolor="#444444"] {
        display: flex;
        flex-direction: column;
    }
    table[width="800"] tr[bgcolor="#444444"] td {
        display: block;
        padding: 10px 5px;
        border-bottom: 1px solid #555555;
    }
    table[width="800"] tr[bgcolor="#444444"] td:last-child {
        border-bottom: none;
    }

    /* Marquee — texto menor */
    marquee font[size="5"] {
        font-size: 12px;
    }

    /* Blockquotes */
    blockquote {
        padding: 6px;
        margin: 6px 0;
        font-size: 13px;
    }

    /* Fire box */
    .fire-box {
        padding: 8px;
        margin: 6px 0;
    }

    /* Section headers */
    .section-header {
        font-size: 13px;
        padding: 3px 8px;
        margin: 8px 0;
    }

    /* Guestbook */
    .guestbook {
        padding: 8px;
        margin: 6px 0;
    }
    .guestbook-entry {
        padding: 6px 0;
        margin-bottom: 6px;
    }

    /* Divisores de chamas */
    .divider-flame {
        font-size: 14px;
        margin: 8px 0;
    }

    /* Imagens — ajustam-se ao ecrã */
    .image-frame {
        margin: 3px;
        padding: 2px;
        max-width: 100%;
        box-sizing: border-box;
    }
    .image-frame img {
        max-width: 100%;
        height: auto;
    }

    /* Formulários — inputs a largura total, previne zoom iOS */
    input[type="text"],
    input[type="email"],
    textarea {
        width: 100% !important;
        max-width: 100%;
        font-size: 16px;
        box-sizing: border-box;
    }
    input[type="submit"] {
        width: 100%;
        padding: 10px 20px;
        font-size: 16px;
        box-sizing: border-box;
    }
    select {
        width: 100% !important;
        max-width: 100%;
        font-size: 16px;
        box-sizing: border-box;
    }

    /* Tabelas internas com muitas colunas — scroll horizontal */
    table table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    /* Under construction */
    .under-construction {
        font-size: 14px;
        padding: 8px;
        margin: 8px 0;
    }

    /* Hit counter */
    .hit-counter {
        font-size: 14px;
        padding: 3px 8px;
    }

    /* Navigation buttons */
    .nav-button {
        display: block;
        margin: 3px 0;
        padding: 8px 10px;
        text-align: center;
    }

    /* Visitor badges — empilhados */
    .visitor-badge {
        display: block;
        margin: 3px auto;
        width: fit-content;
    }

    /* Web ring */
    .webring {
        width: 100%;
        max-width: 100%;
        padding: 8px;
        box-sizing: border-box;
    }

    /* Flame e smoke */
    .flame { font-size: 16px; }
    .cigarette-icon { font-size: 18px; }

    /* Scrollbar mais fina */
    ::-webkit-scrollbar { width: 6px; }

    /* Glow text — menos intenso */
    .glow-text {
        text-shadow: 0 0 5px #ff5252, 0 0 10px #ff5252;
    }

    /* Rainbow — mais suave */
    .rainbow { animation-duration: 4s; }

    /* Células — padding reduzido */
    td, th {
        font-size: 13px;
        padding: 4px;
    }

    /* Center tags — não forçar largura */
    center {
        display: block;
        text-align: center;
        width: 100%;
    }

    /* P tags — sem overflow */
    p {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* UL/LI — padding reduzido */
    ul {
        padding-left: 20px;
        margin: 8px 0;
    }
    li {
        margin-bottom: 4px;
        font-size: 13px;
    }
}

/* ============================================ */
/* SMARTPHONES MUITO PEQUENOS — max-width 360px */
/* ============================================ */
@media screen and (max-width: 360px) {
    body {
        padding: 0;
        font-size: 13px;
    }

    font[size="7"] { font-size: 20px; }
    font[size="5"] { font-size: 14px; }
    font[size="4"] { font-size: 13px; }
    font[size="3"] { font-size: 12px; }
    font[size="2"] { font-size: 11px; }

    table[width="800"] td[bgcolor="#333333"] {
        padding: 5px !important;
    }

    table[width="800"] tr[bgcolor="#444444"] td {
        padding: 8px 3px;
        font-size: 12px;
    }

    .section-header {
        font-size: 12px;
        padding: 2px 6px;
    }

    .divider-flame { font-size: 12px; }

    td, th {
        font-size: 12px;
        padding: 3px;
    }

    marquee font[size="5"] {
        font-size: 11px;
    }
}

/* ============================================ */
/* LANDSCAPE em smartphones                     */
/* ============================================ */
@media screen and (max-width: 768px) and (orientation: landscape) {
    body { padding: 2px; }
    .section-header { padding: 2px 8px; font-size: 13px; }
    .divider-flame { margin: 5px 0; }
    blockquote { margin: 5px 0; padding: 5px; }
}

/* ============================================ */
/* PRINT — não imprimir o site                  */
/* ============================================ */
@media print {
    body { background: white; color: black; }
    marquee { display: none; }
    .flame, .smoke, .sparkle, .glow-text { animation: none; }
}
