/* Palette 1 */
.theme-dark {
  --background: #000000;
  --text: #9929EA;
  --top_bar: #FF5FCF;
  --header_text: #FAEB92;
  --code_text: #000000;
  --code_background: #9929EA;
}

.theme-default {
  --background: #2D2D2D;
  --text: lightgray;
  --top_bar: black;
  --header_text: lightgray;
  --code_text: black;
  --code_background: lightgray;
}

.theme-mainframe {
  --background: black;
  --text: green;
  --top_bar: black;
  --header_text: green;
  --code_text: blue;
  --code_background: black;
}

html {
    scroll-padding-top: 60px;
}

a:link { color: blue; }
a:visited { color: goldenrod; }
a:hover { color: red; }
a:active { color: orange; }   

p {
  text-indent: 2em;
}

body {
    background-color: var(--background);
    color: var(--text);
    font-size: x-large;
    font-family:'Times New Roman', Times, serif;
    /* font-size: 1.2rem; */
    max-width: 800px;
    margin: auto;
    padding: 0 20px;
}
.parent {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

.topbar {
  position: sticky; /* stays pinned when scrolling; use static if you don't want that */
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.5rem;
  background: var(--top_bar);
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
}

.topbar a {
  color:var(--header_text);
  text-decoration: none;
  margin-left: 1rem;
}

article {
  scroll-margin-top: 4rem; /* roughly the topbar's height */
}

code {
    font-family: monospace;
    background: var(--code_background);
    color: var(--code_text);
    padding: 2px 2px;
    border-radius: 2px;
}

pre {
    background: var(--code_background);
    color: var(--code_text);
    padding: 10px;
    border-radius: 6px;
    line-height: 1.3;
}

#theme-toggle {
    background: transparent;
    color: var(--header_text);
    border: 1px solid var(--header_text);
    border-radius: 6px;
    padding: 0.35rem 0.75rem;
    font-size: 0.9rem;
    cursor: pointer;
}

 #theme-toggle:hover {
    background: var(--background);
    color: var(--text)
 }
/* 
.right_pictures {
    flex: 1;
} */

.link-card {
    display: block;
    text-decoration: none;
    width: 460px;
    border-radius: 8px;
    overflow: hidden; /* keeps corners rounded */
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.link-image {
    background-color: #3a4448;
    height: 220px;
}

.link-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.link-caption {
    background-color:darkmagenta;
    color: white;
    font-weight: bold;
    padding: 12px 16px;
    font-family: sans-serif;
}
@media (max-width: 768px) {
    .parent {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }
    .main_text,
    .right_pictures {
        flex: none;
    }
}