:root {
    --accent-color: #429e5c;
    --links-color: #5f658f;

    --font-family: monospace;
    --font-size: 11px;

    --outer-shadow: 0 0 1.5px rgba(0, 0, 0, 1);
    --inner-shadow: inset var(--outer-shadow);
}

html {
    scrollbar-width: thin;
    scrollbar-color: #333 #0f0f0f; /* Thumb: #333, Track: #0f0f0f */
}

body {
    margin: 0; padding: 0;
    background: url("../media/bg3.png") #0b0b0b;
    color: #a0a0a0;
    max-width: 580px;
    margin: auto;
    font-family: var(--font-family);
    font-size: var(--font-size);
}


/* --- header --- */

header {
    margin-bottom: 10px;
}
#top {
    display: grid;
    grid-template-columns: auto 1fr;
    background: #1a1a1a;
    border-bottom: 1px solid #2f2f2f;
    padding: 7px 4px;
    box-shadow: var(--outer-shadow);
}
#top div { 
    padding: 0 8px;
}
#top h1 { /* ~avz */
    margin: 4px 0;
    font-size: 1.2em;
    color: var(--accent-color);
    font-weight: normal;
}
#top img {
    width: 80px;
    padding: 3px 0;
}

/* navbar */
#bottom {
    margin-left: -3px;
    margin-right: -3px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
}
#bottom button {
    margin: 3px 3px;
    padding: 2px 8px;
    background: #1a1a1a;
    border: 1px solid #3a3a3a;
    border-radius: 0;
    cursor: pointer;
    transition: background 0.1s ease;
    font-family: var(--font-family);
    font-size: var(--font-size);
    box-shadow: var(--outer-shadow);
    color: #666;
}
#bottom a {
    display: grid;
    text-decoration: none;
}
#bottom a button {
    color: #a0a0a0;
}
#bottom a button:hover {
    color: var(--accent-color);
}

/* --- main --- */

#content {
    margin: 8px 0;
    padding: 8px;
    background: #121212;
    border: 1px solid #222;
    box-shadow: var(--inner-shadow);
}
#content img {
    max-width: 100%;
}
hr {
    border: 0px;
    height: 1px;
    background: #2f2f2f;
}

#postform {
    background: #1a1a1a;
    padding: 6px 5px;
    border: 1px solid #2f2f2f;
    border-radius: 0;
    box-shadow: var(--outer-shadow);
}
#postform input[type="text"],
#postform input[type="url"],
#postform textarea {
    width: 100%;
    max-width: 100%;
    margin: 0 0 6px 0;
    padding: 3px;
    background: #0f0f0f;
    color: #a0a0a0;
    border: 1px solid #333;
    border-radius: 0;
    font-family: var(--font-family);
    font-size: var(--font-size);
    box-sizing: border-box;
    box-shadow: var(--outer-shadow);
}
#postform input[type="text"]:focus,
#postform input[type="url"]:focus,
#postform textarea:focus {
    border-color: var(--accent-color);
    outline: none;
}
#postform textarea {
    resize: vertical;
    min-height: 50px;
}
#postform input[type="submit"] {
    background: #2a2a2a;
    color: #a0a0a0;
    border: 1px solid #3a3a3a;
    padding: 3px 12px;
    border-radius: 0;
    cursor: pointer;
    font-family: var(--font-family);
    font-size: var(--font-size);
    transition: all 0.1s ease;
    box-shadow: var(--outer-shadow);
}
#postform input[type="submit"]:hover {
    color:var(--accent-color);
}
#guestbook .post,
#comments .post {
    padding: 6px;
    margin: 6px 0;
    background: #141414;
    border: 1px solid #2f2f2f;
    border-radius: 0;
    box-shadow: var(--outer-shadow);
}
#guestbook .postinfo,
#comments .postinfo {
    color: #555;
    margin-bottom: 4px;
    border-bottom: 1px solid #2f2f2f;
    padding-bottom: 2px;
}
#guestbook .name,
#comments .name {
    font-weight: bold;
    color: var(--accent-color);
}
#guestbook .datetime,
#comments .datetime {
    margin: 0 3px;
    color: #444;
}
#guestbook .num a,
#comments .num a {
    color: #666;
    text-decoration: none;
}
#guestbook .num a:hover,
#comments .num a:hover {
    color: var(--links-color);
}
#guestbook .quotes a,
#comments .quotes a {
    color: var(--links-color);
    text-decoration: none;
    margin-left: 4px;
}
#guestbook .quotes a:hover,
#comments .quotes a:hover {
    text-decoration: underline;
}
/* contenido del mensaje */
#guestbook .postmessage,
#comments .postmessage {
    padding: 4px 0;
    color: #a0a0a0;
    word-wrap: break-word;
}
#guestbook .postmessage a,
#comments .postmessage a {
    color: var(--links-color);
    text-decoration: none;
}
#guestbook .postmessage a:hover,
#comments .postmessage a:hover {
    text-decoration: underline;
}
.gt {
    color: #00aa55;
}
#guestbook .postmessage a {
    color: var(--links-color);
    text-decoration: none;
}
#guestbook .postmessage a:hover {
    text-decoration: underline;
}
/* páginas */
.pagination {
    text-align: center;
    margin-top: 8px;
}
.pagination a, .pagination .current {
    padding: 2px 6px;
    color: var(--links-color);
    text-decoration: none;
    border: 1px solid #2f2f2f;
    border-radius: 0;
    background: #1a1a1a;
    box-shadow: var(--outer-shadow);
}
.pagination .current {
    color: #999;
    
}


/* --- blog --- */

.blogdate {
    color: grey;
}

/* --- format --- */

h1 {
    margin: 0;
    color: var(--accent-color); /* #429e5c */
    font-weight: normal;
    letter-spacing: 0.5px;
    font-size: var(--font-size); /* 11px */
}

h2 {
    margin: 0;
    color: var(--accent-color);
    font-weight: normal;
    letter-spacing: 0.5px;
    font-size: calc(var(--font-size) * 1.2); /* ~13.2px */
}

h3 {
    margin: 0;
    color: var(--accent-color);
    font-weight: normal;
    letter-spacing: 0.5px;
    font-size: calc(var(--font-size) * 1.1); /* ~12.1px */
}

h4 {
    margin: 0;
    color: var(--accent-color);
    font-weight: normal;
    letter-spacing: 0.5px;
    font-size: var(--font-size); /* 11px */
}

h5 {
    margin: 0;
    color: var(--accent-color);
    font-weight: normal;
    letter-spacing: 0.5px;
    font-size: calc(var(--font-size) * 0.9); /* ~9.9px */
}

h6 {
    margin: 0;
    color: var(--accent-color);
    font-weight: normal;
    letter-spacing: 0.5px;
    font-size: calc(var(--font-size) * 0.8); /* ~8.8px */
}
p {
    margin: 0 0 8px 0;
    color: #a0a0a0;
    line-height: 17px;
}
ul, ol {
    margin: 0 0 8px 0;
    padding-left: 20px;
    color: #a0a0a0;
}

li {
    margin: 4px 0;
    list-style-type: square;
}
blockquote {
    margin: 0 0 8px 0;
    padding: 6px 10px;
    background: #1a1a1a;
    border-left: 3px solid #2f2f2f;
    color: #a0a0a0;
}

blockquote p {
    margin: 0;
}
strong {
    color: #ffffff;
    font-weight: normal; 
}

em {
    color: #cccccc; /* Lighter grey for italics */
    font-style: italic;
}
del {
    color: #666; /* Dim grey for strikethrough */
    text-decoration: line-through;
}
a {
    color: var(--links-color);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
p code, code {
    font-family: var(--font-family); /* monospace */
    font-size: var(--font-size); /* 11px */
    background: #0f0f0f;
    padding: 0px 4px;
    border: 1px solid #1f1f1f;

    color: #ccc;
}

pre {
    margin: 0 0 8px 0;
    padding: 6px;
    background: #0f0f0f;
    border: 1px solid #333;
    box-shadow: var(--outer-shadow);
    overflow-x: auto;
    /* Scrollbar styling */
    scrollbar-width: thin;
    scrollbar-color: #333 #0f0f0f; /* Thumb: #333, Track: #0f0f0f */

}
pre code {
    padding: 0;
    color: #a0a0a0;
    background: none;
    border: none;
    box-shadow: none;
}
#content button {
    margin: 0 3px;
    padding: 3px 12px;
    background: #151515;
    color: #b8b8b8;
    border: 1px solid #404040;
    border-radius: 0;
    cursor: pointer;
    font-family: var(--font-family);
    font-size: var(--font-size);
    transition: all 0.1s ease;
}
#content button:hover {
    color: var(--accent-color);
}

#content input[type="number"] {
    -moz-appearance: textfield;
    padding: 3px 5px;
    background: #070707;
    color: #b8b8b8;
    border: 1px solid #404040;
    border-radius: 0;
    font-family: var(--font-family);
    font-size: var(--font-size);
    box-sizing: border-box;
}
input::-webkit-outer-spin-button, input::-webkit-inner-spin-button {  
    -webkit-appearance: none;   
    margin: 0; 
}
#content input[type="number"]:focus {
    border-color: var(--accent-color);
    outline: none;
}

