* {
    font-family: 'Courier New', Courier, monospace;
    line-height: 1.2;
}

body, html {
    margin: 0;
    height: 100%;
    background-image: url(static/images/quartz512.png);
}

/* marked.js */

pre, code {
  color: #e6e6e6;
}

pre {
  background: rgba(255, 255, 255, 0.08);
  padding: 1rem;
  overflow-x: auto;
  border-radius: 4px;
}

code {
  background: rgba(255, 255, 255, 0.12);
  padding: 0.15em 0.35em;
  border-radius: 3px;
}

pre code {
  background: none;
  padding: 0;
}

#content img {
  max-width: 100%;
  height: auto;
  border: 2px dotted #ccc;
  box-sizing: border-box;
}

#content a,
#content a:visited {
  color: white;
  font-weight: bold;
  text-decoration: none;
}

#content a:hover {
  text-decoration: underline;
}

.container {
    height: 100%;
    display: flex;
}

.box-navbar {
    border: 2px dotted #ccc;
    margin: 5px;
    padding: 5px;
    text-align: left;
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
}

.box-navbar a,
.box-navbar a:visited {
    margin: 5px;
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.box-navbar a:hover {
    text-decoration: underline;
    font-weight: bold;
}

.box-main {
    margin-top: 15px;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    padding: 10px;
    border: 2px dotted #ccc;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.65);
    color: white;
}

.box-side {
    margin-top: 15px;
    margin-bottom: 15px;
    flex: 1;
    padding: 40px;
}

.box-md {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    border: 2px dotted #ccc;
    margin: 5px;
    padding: 5px;
}

#content {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    text-align: justify;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Edge/IE viejos */
}

#content::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Feed de artículos (vista sin ?post=) */

.feed-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card {
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
    border: 2px dotted #ccc;
    padding: 10px;
    text-align: left;
    text-decoration: none;
    color: white;
    background-color: rgba(255, 255, 255, 0.04);
    transition: background-color 0.15s ease;
}

.card:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.card h2 {
    margin: 0 0 6px 0;
    font-size: 1.05em;
}

.card p {
    margin: 0;
    text-align: justify;
    text-justify: inter-word;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
}

.feed-status {
    text-align: center;
    opacity: 0.7;
    margin: 15px 5px;
}

/* Media queries */
@media screen and (max-width: 992px) {
    .box-side {
        display: none;
    }

    .box-main {
        margin: 5px;
    }
}
