

:root {
    --bg: #0a0a0a;
    --bgh: #333333;
    --text: #ccffcc;
    --border: #00ff00;
    --accent: #00ff00;
    --active: #00dd00;
    --hover: #001a00;
    --shadow: rgba(0, 255, 0, 0.2);
    --debug: #ff00ff;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: sans-serif;
    margin: 0;
    padding: 2em;
    overflow-y: scroll;
    padding-bottom: 60px;
}

.entry {
    max-width: 800px;
    margin: 4em auto;
    padding: 2em;
    background-color: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 0 15px  var(--shadow);
    font-family: monospace;
    color: var(--text);
    position: relative;
    transition: transform 0.2s ease;
}

.entry:hover {
    transform: scale(1.005);
    box-shadow: 0 0 25px  var(--shadow);
}

.entry h1,
.entry h2,
.entry h3,
.entry h4,
.entry h5,
.entry h6 {
    color: var(--accent);
    text-shadow: 0 0 3px var(--accent);
    margin-top: 1em;
}

.entry h1 {
    font-size: 2em;
}

.entry h2 {
    font-size: 1.5em;
}

.entry h3,
.entry h4,
.entry h5,
.entry h6 {
    font-size: 1.2em;
}

.entry footer {
    margin-top: 2em;
    font-size: 0.8em;
    color: var(--text);
    text-align: right;
    border-top: 1px solid var(--bgh);
    padding-top: 1em;
}

.entry-content {
    overflow: hidden;
    line-height: 1.6em;
    max-height: calc(2.7em * 5); /* exactamente 5 líneas */
    transition: max-height 0.3s ease;
}

.entry.expanded .entry-content {
    max-height: 1000vh; /* lo suficientemente grande para cualquier contenido */
}

.entry p {
    line-height: 1.6;
    font-size: 1.2em;
    color: var(--text);
}

.entry code {
    padding: 0 0.25em;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.95em;
    box-shadow: 0 0 4px var(--border);
    vertical-align: baseline;
}

.entry strong {
    color: var(--accent);
    font-weight: bold;
}

.entry em {
    color: var(--accent);
    font-style: italic;
}

.entry blockquote {
    border-left: 4px solid var(--accent);
    padding-left: 1em;
    margin: 1em 0;
    font-style: italic;
    color: var(--text);
    opacity: 0.8;
}

/* horizontal lines */
.entry hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2em 0;
}

.entry img {
    display: block;
    max-width: 100%;
    margin: 1em auto;
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: 0 0 8px var(--shadow);
}

.entry video {
    display: block;
    max-width: 100%;
    margin: 1em auto;
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: 0 0 8px var(--shadow);
}

.task-list-item {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.task-list-item input[type="checkbox"] {
    accent-color: var(--accent);
    width: 1em;
    height: 1em;
    cursor: default;
}

.toggle-btn {
    background-color: transparent;
    color: var(--accent);
    border: 1px solid var(--border);
    padding: 0.5em 1.2em;
    margin-top: 1em;
    cursor: pointer;
    font-size: 1em;
    font-family: monospace;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 5px var(--border);
    transition: all 0.2s ease;
}

.toggle-btn:hover {
    background-color: var(--bg);
    box-shadow: 0 0 10px var(--border);, 0 0 20px var(--border);
    transform: scale(1.05);
}

input[type="checkbox"] {
    appearance: none;
    width: 1.1em;
    height: 1.1em;
    background-color: var(--background_hover);
    border: 1px solid var(--accent);
    cursor: default;
    display: inline-block;
    position: relative;
}

input[type="checkbox"]:checked {
    background-color: var(--accent);
}

.entry table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
    font-family: monospace;
}

.entry th,
.entry td {
    border: 1px solid var(--border);
    padding: 0.5em;
    text-align: left;
}

.entry th {
    background-color: var(--background_hover);
}

header img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    display: block;
    margin-bottom: 2em;
}

.hero-header {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.hero-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.site-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--accent);
    font-size: 3em;
    font-family: monospace;
    font-weight: bold;
    text-shadow: 0 0 10px var(--accent);
    margin: 0;
    text-align: center;
    white-space: nowrap;
}

.site-title span {
    font-size: 0.4em;
    display: block;
    color: var(--text);
    text-shadow: 0 0 10px var(--text);
}

.tab-container {
    text-align: center;
    margin: 2em auto;
}

.tab-button {
    background-color: transparent;
    color: var(--accent);
    border: 1px solid var(--border);
    font-family: monospace;
    padding: 0.5em 1.5em;
    margin: 0.2em;
    cursor: pointer;
    border-radius: 4px;
    box-shadow: 0 0 5px var(--border);
    transition: all 0.2s ease;
}

.tab-button:hover,
.tab-button.active-tab {
    background-color: var(--active);
    box-shadow: 0 0 15px var(--border);
    transform: scale(1.05);
}

footer {
    margin-top: 2em;
    font-size: 0.9em;
    color: var(--bgh)
    text-align: right;
}

.page-footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: var(--bg);
    color: var(--text);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5em 1em;
    padding-right: 2em;
    font-size: 0.9em;
    font-family: monospace;
    z-index: 1000;
    border-top: 1px solid var(--border);
    box-sizing: border-box;
}

.footer-right {
    margin-left: auto;
    margin-right: 1em; 
    position: relative;
}

.footer-right select {
    max-width: 160px;
    width: 100%;
    box-sizing: border-box;
    background-color: var(--bgh);
    color: var(--text);
    border: 1px solid var(--accent);
    padding: 0.3em 1em;
    font-size: 0.9em;
    font-family: monospace;
    border-radius: 4px;
    box-shadow: 0 0 3px var(--accent);
    cursor: pointer;
}
