/*
Theme Name: Tema Personalizado n-069a
Author: Seu Nome
Description: Tema convertido de HTML estático para WordPress
Version: 1.0
*/

/* =========================
ROOT / TOKENS
========================= */

:root {
    --retro-red: #9e0000;
    --retro-light: #f2eee1;
    --retro-dark: #353535;
    --retro-gold: #8b7444;
    --retro-link: #7a6b52;
    --retro-border: 2px solid #353535;
    --retro-shadow: 3px 3px 0 #9e0000;
}

/* =========================
RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

ul,
li {
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--retro-link);
}

a img {
    border: 0;
}

input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

/* =========================
BASE
========================= */

html {
    font-size: 62.5%;
    min-height: 100%;
}

/* BODY */
body {
    background: var(--retro-red) url(image/back02.gif);
    color: var(--retro-light);

    /* volta ao tamanho original */
    font-size: 1.2em;

    font-family: 'Candal', Verdana, Roboto, sans-serif;
    letter-spacing: .1em;
    word-wrap: break-word;
    text-align: center;
}

/* LAYOUT */
#contents {
    width: 1000px;
    margin: 0 auto;
    overflow: hidden;
}

/* SIDEBAR ESQUERDA */
#leftcolumn {
    float: left;
    width: 300px;
    text-align: left;
}

/* CONTEÚDO DIREITA */
#rightcolumn {
    float: right;
    width: 680px;
    text-align: left;
}

#contents::after {
    content: "";
    display: block;
    clear: both;
}
/* MOBILE */
@media screen and (max-width: 600px) {

    #contents {
        width: 100%;
        max-width: 100%;
    }

    #leftcolumn,
    #rightcolumn {
        width: 100%;
        float: none;
    }

}

/* =========================
HEADER
========================= */

header {
    background: url(image/back01.gif);
    position: relative;
    width: 100%;
    z-index: 10;
}

#header-inner {
    padding: 10px;
    text-align: center;
    position: relative;
    z-index: 2;
}

/* título */
.site-title,
.site-title a {
    display: block;
    color: var(--retro-light) !important;
    font-size: 1.5em;
    text-shadow: 2px 2px 0 var(--retro-gold);
}

/* subtítulo */
.site-description {
    display: block;
    color: var(--retro-light);
    font-size: 1.1em;
    margin-bottom: 10px;
    letter-spacing: .1em;
    opacity: .95;
    text-shadow: 1px 1px 0 var(--retro-gold);
}

/* =========================
FOOTER
========================= */

footer {
    background: url(image/back01.gif);
    width: 100%;
    min-height: 50px;
    margin-top: 40px;
}

.footer-inner {
    padding: 10px;
    text-align: center;
}

/* =========================
RETRO SYSTEM
========================= */

.retro-box,
.widget,
.geo-box,
.box-2000,
.comment,
.comment-respond,
.wp-caption {
    background: var(--retro-light) url(image/back03.gif);
    border: var(--retro-border);
    box-shadow: var(--retro-shadow);
    color: var(--retro-dark);
}

.retro-title,
.widget-title,
.geo-title,
.geo-box-title,
.box-2000-title {
    background: var(--retro-red);
    color: var(--retro-light);
    padding: 6px 8px;
    text-align: center;
    font-weight: bold;
    letter-spacing: .2em;
    border-bottom: var(--retro-border);
}

/* =========================
BLOCKS
========================= */

.block {
    background: url(image/back03.gif);
    border-radius: 5px;
    box-shadow: 0 1px 2px var(--retro-dark);
    margin: 20px 0;
    padding: 8px;
}

/* =========================
MENU DESKTOP
========================= */

#menu {
    background: url(image/back03.gif);
    border-radius: 0 5px 5px 0;
    padding: 5px 10px;
    margin-top: 10px;
    position: relative;
    width: 100%;
}

.menu > li {
    display: inline-block;
    position: relative;
    height: 2em;
    line-height: 2em;
}

.menu > li > a {
    font-size: 1.6em;
    color: var(--retro-light);
    padding: 0 5px;
    display: block;
}

.menu > li > a:hover,
.menu > li > a:first-letter {
    color: var(--retro-red);
}

/* =========================
SUBMENU
========================= */

.sub-menu {
    background: var(--retro-red);
    position: absolute;
    width: 180px;
    z-index: 20;

    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: .25s ease-in-out;
    pointer-events: none;
}

.menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.sub-menu li {
    display: block;
}

.sub-menu li a {
    color: var(--retro-light);
    display: block;
    padding: 5px 10px;
}

.sub-menu li a:hover {
    background: #c66;
}

/* =========================
WIDGETS
========================= */

.widget {
    margin: 10px;
    padding: 0;
}

.widget > *:not(.widget-title) {
    padding: 8px;
    color: var(--retro-dark);
}

.widget ul {
    padding-left: 15px;
}

.widget li {
    padding: 3px 0;
    border-bottom: 1px dotted #bca475;
}

/* =========================
LINKS
========================= */

.content a,
.widget a,
.comment a,
.entry-content a,
.wp-block-post-content a,
.post a,
.page a,
.reply a {
    color: var(--retro-dark);
    text-decoration: underline;
}

.content a:hover,
.widget a:hover,
.comment a:hover,
.entry-content a:hover,
.wp-block-post-content a:hover,
.post a:hover,
.page a:hover,
.reply a:hover {
    color: var(--retro-red);
}

/* =========================
UTIL
========================= */

.marker {
    background: #bca475;
    padding: 1px 5px;
}

.frame {
    background: var(--retro-light);
    border-radius: 3px;
    padding: 6px;
    box-shadow: 3px 3px 3px var(--retro-dark);
}

.hr-2000 {
    text-align: center;
    color: var(--retro-red);
    font-family: monospace;
    margin: 10px 0;
}

#pagetop {
    background: url(image/back02.gif);
    color: #fff;
    height: 50px;
    width: 50px;
    border-radius: 50%;
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 999;
    box-shadow: 3px 3px 0 var(--retro-dark);
    transition: .2s ease-in-out;
}

#pagetop:hover {
    transform: scale(1.1);
    background: var(--retro-red);
}

/* =========================
TYPO
========================= */

h1 {
    text-shadow: 2px 2px 0 var(--retro-gold);
    font-size: 1.5em;
    margin-bottom: .5em;
}

h2 {
    font-size: 1.2em;
    margin: 15px 0;
    border-bottom: 3px double var(--retro-dark);
}

h3 {
    background: url(image/icon01.gif) no-repeat;
    border-bottom: 1px dotted var(--retro-dark);
    font-weight: 400;
    padding: 0 25px;
}

/* =========================
FORMS
========================= */

input,
textarea {
    width: 100%;
    max-width: 400px;
}

.comment-form {
    display: flex;
    flex-direction: column;
    padding: 10px;
}

.comment-form label {
    display: block;
    margin: 8px 0 4px;
    color: var(--retro-dark);
    font-weight: bold;
    font-size: .9em;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 6px;
    background: #fff;
    border: var(--retro-border);
    color: var(--retro-dark);
}

.comment-form textarea {
    min-height: 120px;
    resize: vertical;
}

.comment-form input[type="submit"] {
    margin-top: 10px;
    padding: 6px 12px;
    background: var(--retro-red);
    color: var(--retro-light);
    border: var(--retro-border);
    cursor: pointer;
    font-weight: bold;
    letter-spacing: .1em;
}

.comment-form input[type="submit"]:hover {
    background: #c40000;
}

/* =========================
WORDPRESS TYPO FIX
========================= */

.entry-content,
.wp-block-post-content,
.content,
article,
.type-post,
.type-page {
    color: var(--retro-light);
    line-height: 1.8;
    font-family: inherit;
    text-align: left;
}

.entry-content p,
.entry-content li,
.entry-content span,
.wp-block-post-content p,
.wp-block-post-content li,
.wp-block-post-content span {
    font-weight: 400 !important;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.wp-block-post-content h1,
.wp-block-post-content h2,
.wp-block-post-content h3 {
    font-weight: normal !important;
    color: var(--retro-light);
    text-shadow: 2px 2px 0 var(--retro-gold);
    border-bottom: 2px dotted var(--retro-dark);
    padding-bottom: 4px;
}

/* =========================
IMAGENS
========================= */

.entry-content img,
.wp-block-post-content img,
.comment-content img,
.comment-body img,
.wp-block-comment-content img {
    max-width: 100%;
    height: auto;
    display: block;

    border: var(--retro-border);
    background: #fff;
    padding: 3px;
}

.entry-content img,
.wp-block-post-content img {
    margin: 10px auto;
    box-shadow: var(--retro-shadow);
}

.entry-content img:hover,
.wp-block-post-content img:hover {
    transform: scale(1.01);
    transition: .2s ease-in-out;
    box-shadow: 4px 4px 0 var(--retro-red);
}

.comment-content img,
.comment-body img,
.wp-block-comment-content img {
    max-width: 420px;
    margin: 5px 0;
}

/* =========================
COMMENTS
========================= */

.comments-area {
    margin-top: 40px;
}

.comments-title {
    font-size: 1.4em;
    text-align: center;
    margin-bottom: 20px;
    color: var(--retro-light);
    text-shadow: 2px 2px 0 var(--retro-gold);
}

.comment-list {
    padding: 0;
}

.comment {
    margin: 15px 10px;
    padding: 10px;
    font-family: "Courier New", monospace;
}

.comment-author {
    font-weight: bold;
    color: var(--retro-red);
    margin-bottom: 5px;
}

.comment-author img.avatar {
    width: 48px;
    height: 48px;
    border: var(--retro-border);
    background: #fff;
    float: left;
    margin-right: 10px;
}

.comment-meta {
    font-size: .9em;
    opacity: .8;
    margin-bottom: 8px;
}

.comment-content {
    line-height: 1.6;
}

.comment::after {
    content: "";
    display: block;
    clear: both;
}

/* =========================
GEO BOX
========================= */

.geo-title {
    box-shadow: inset 0 -2px 0 rgba(0,0,0,.2);
}

.geo-box {
    margin: 10px 0;
}

.geo-box-content {
    padding: 8px;
}

.widget .geo-box {
    margin: 0;
}

.geo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
    gap: 6px;
    padding: 8px;
    justify-items: center;
    align-items: center;
}

.geo-grid img,
.geo-box img {
    width: 88px;
    height: 31px;
    border: 1px solid var(--retro-dark);
    background: #fff;
    transition: .15s ease-in-out;
}

.geo-grid img {
    image-rendering: pixelated;
}

.geo-grid img:hover,
.geo-box img:hover {
    transform: scale(1.08);
    border-color: var(--retro-red);
    box-shadow: 0 0 6px var(--retro-red);
}

.geo-content p,
.geo-content li {
    font-weight: 400;
    line-height: 1.6;
}

/* =========================
POSTS
========================= */

.post-title a {
    color: var(--retro-light);
    text-shadow: 2px 2px 0 var(--retro-gold);
    text-decoration: none;
}

.post-title a:hover {
    color: var(--retro-red);
    text-decoration: underline;
}

#fl a {
    color: var(--retro-light);
    background: var(--retro-red);
    border-radius: 5px;
    display: inline-block;
    padding: 3px 6px;
    font-size: 1em;
    transition: .2s;
}

#fl a:hover {
    background: #c66;
}

/* =========================
MOBILE
========================= */

@media screen and (max-width: 600px) {

    body {
        font-size: 1.3rem;
        margin-bottom: 80px;
    }

    #contents {
        width: 100%;
        flex-direction: column;
    }

    #leftcolumn,
    #rightcolumn {
        width: 100%;
    }

    header,
    footer {
        min-width: 100%;
    }

    #menu {
        display: none;
        position: static;
        width: 100%;
        background: rgba(122,106,83,.8);
    }

    .menu > li {
        display: block;
        height: auto;
    }

    .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }

    .menu li:hover > .sub-menu {
        display: block;
    }

    #open {
        background: var(--retro-red);
        border: var(--retro-border);
        border-radius: 20px;
        height: 40px;
        width: 40px;
        position: absolute;
        top: 10px;
        left: 10px;
    }
}

/* remove underline dos títulos e menu no single/page */

.single .post-title a,
.page .post-title a,
.single h1 a,
.page h1 a,
.single #menu a,
.page #menu a,
.single footer a,
.page footer a {
    text-decoration: none !important;
}

/* =========================
POST TITLE RETRÔ BOX
========================= */

.post-title {
    background: var(--retro-red);
    border: var(--retro-border);

    box-shadow:
        inset 0 -2px 0 rgba(0,0,0,.25),
        3px 3px 0 var(--retro-dark);

    padding: 8px 10px;
    margin-bottom: 12px;

    text-align: center;
    letter-spacing: .15em;

    border-radius: 3px;
}

/* link interno */
.post-title a {
    color: var(--retro-light) !important;
    text-decoration: none !important;

    text-shadow:
        2px 2px 0 var(--retro-gold);

    display: block;
}

/* hover retrô */
.post-title:hover {
    transform: translateY(-1px);

    box-shadow:
        inset 0 -2px 0 rgba(0,0,0,.25),
        4px 4px 0 var(--retro-dark);

    transition: .15s ease-in-out;
}

.post-title a:hover {
    color: #fff !important;
}

/* =========================
RETRO COMMENT REPLY
========================= */

.comment-respond {
    background: var(--retro-light) url(image/back03.gif);
    border: var(--retro-border);
    box-shadow: var(--retro-shadow);

    padding: 0;
    margin: 25px 10px;

    color: var(--retro-dark);
}

/* título da reply box */
.comment-reply-title {
    background: var(--retro-red);

    color: var(--retro-light);

    padding: 6px 8px;

    text-align: center;

    font-weight: bold;

    letter-spacing: .15em;

    border-bottom: var(--retro-border);

    text-shadow: 1px 1px 0 var(--retro-dark);

    margin: 0 0 10px 0;
}

/* remove estilo estranho do WP */
.comment-reply-title small {
    font-size: .8em;
    margin-left: 8px;
}

.comment-reply-title a {
    color: #fff !important;
    text-decoration: none !important;
}


/* textos */
.comment-notes,
.logged-in-as,
.comment-form-cookies-consent {
    color: var(--retro-dark);
    font-size: .95em;
    margin-bottom: 10px;
}

/* labels */
.comment-form label {
    display: block;

    margin: 8px 0 4px;

    color: var(--retro-dark);

    font-weight: bold;

    letter-spacing: .05em;
}

/* campos */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;

    max-width: 100%;

    background: #fff;

    border: 2px solid var(--retro-dark);

    padding: 8px;

    color: var(--retro-dark);

    box-shadow: inset 1px 1px 0 rgba(0,0,0,.15);
}

/* textarea */
.comment-form textarea {
    min-height: 140px;

    resize: vertical;
}

/* botão */
.comment-form input[type="submit"] {
    display: inline-block;

    width: auto;

    margin-top: 12px;

    padding: 6px 14px;

    background: var(--retro-red);

    color: var(--retro-light);

    border: var(--retro-border);

    box-shadow: 2px 2px 0 var(--retro-dark);

    cursor: pointer;

    font-weight: bold;

    letter-spacing: .1em;

    transition: .15s ease-in-out;
}

.comment-form input[type="submit"]:hover {
    transform: translateY(-1px);

    background: #c40000;

    box-shadow: 3px 3px 0 var(--retro-dark);
}

/* impede conteúdo de estourar a coluna */

#rightcolumn article,
#rightcolumn .post-box,
#rightcolumn .entry-content {
    width: 100%;
    overflow: hidden;
}

/* imagens */
#rightcolumn img {
    max-width: 100%;
    height: auto;
}

/* embeds */
#rightcolumn iframe,
#rightcolumn embed,
#rightcolumn object,
#rightcolumn video {
    max-width: 100%;
}

/* tabelas */
#rightcolumn table {
    max-width: 100%;
    display: block;
    overflow-x: auto;
}

/* blocos de código */
#rightcolumn pre {
    overflow-x: auto;
}

.post-meta {
    margin: -4px 0 12px;

    font-size: .9em;

    color: #d8c9a8;

    text-align: center;

    letter-spacing: .08em;

    text-shadow: 1px 1px 0 rgba(0,0,0,.4);
}

.post-meta a {
    color: #d8c9a8;
    text-decoration: none;
}

.post-meta a:hover {
    color: #fff;
}

.post-comments-button {
    text-align: center;
    margin-top: 18px;
}

.post-comments-button a {
    display: inline-block;

    background: var(--retro-red);

    color: var(--retro-light) !important;

    border: var(--retro-border);

    box-shadow: 3px 3px 0 var(--retro-dark);

    padding: 8px 14px;

    text-decoration: none !important;

    letter-spacing: .12em;

    font-size: .95em;

    transition: .15s ease-in-out;
}

.post-comments-button a:hover {
    background: #c40000;

    transform: translateY(-1px);

    box-shadow: 4px 4px 0 var(--retro-dark);
}

/* =========================
RETRO PAGINATION
========================= */

.retro-pagination {

    text-align: center;

    margin: 35px 0;

    display: flex;

    justify-content: center;

    gap: 10px;

    flex-wrap: wrap;
}

.retro-pagination .page-numbers {

    display: inline-block;

    background: #9e0000 url(image/back02.gif);

    color: #f2eee1 !important;

    padding: 8px 14px;

    border: 2px solid #353535;

    box-shadow: 3px 3px 0 #353535;

    text-decoration: none !important;

    font-weight: bold;

    letter-spacing: .08em;

    min-width: 42px;

    text-align: center;

    transition: .15s ease-in-out;
}

.retro-pagination .page-numbers:hover {

    background: #c40000;

    transform: translateY(-2px);

    box-shadow: 4px 4px 0 #353535;
}

.retro-pagination .current {

    background: #353535;

    color: #fff !important;
}

html,
body {
    overflow-x: hidden;
}