.loading-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.zoomable-image {
  cursor: zoom-in;
  max-width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  cursor: pointer;
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
}

.modal-image {
  height: 100%;
  width: 100%;
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}

.close-button {
  position: absolute;
  top: 0px;
  right: 30px;
  color: white;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  z-index: 1001;
}

.close-button:hover {
  opacity: 0.8;
} 
.filter-labels {
    margin-bottom: var(--spacing-xl);
  }
  
  .filter-labels__title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--color-text);
  }
  
  .filter-labels__container {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
  }
  
  .filter-labels__button {
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--border-radius-full);
    font-size: var(--font-size-sm);
    transition: background-color var(--transition-speed), color var(--transition-speed);
    cursor: pointer;
  }
  
  .filter-labels__button--active {
    background-color: var(--color-primary);
    color: var(--color-white);
  }
  
  .filter-labels__button--inactive {
    background-color: var(--color-border);
    color: var(--color-text);
  }
  
  .filter-labels__button--inactive:hover {
    background-color: var(--color-border-hover);
  }
.footer {
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer__content {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    text-align: center;
    color: var(--color-text-light);
}
.header {
    color: #ffffff;
    flex: none;
    position: relative;
    z-index: 10;
    box-shadow: var(--shadow-sm);
    background-image: url(/header-pattern.jpg);
    background-position: 50%;
    background-size: cover;
    padding: var(--header-padding);
}

.header__meta-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-md);
    line-height: 1;
}

.header__site-name {
    flex: 1 1;
    min-width: 0;
    position: relative;
}

.header__logo {
    font-size: var(--font-size-base);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    z-index: 2;
    margin: 0;
}

.header__logo a {
    display: inline-block;
    text-decoration: none;
}

.header__logo img {
    max-width: 360px;
    max-height: 35px;
    vertical-align: baseline;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
}

.header__aside {
    order: 1;
    margin: 0 0 0 1em;
}

.header__links {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--spacing-sm);
    width: auto;
    font-weight: 600;
}

.header__links svg {
    width: 13px;
    height: 13px;
    vertical-align: middle;
}

.header__links a:hover {
    opacity: 0.8;
}

.header__link {
    display: flex;
    align-items: center;
    gap: var(--spacing-xxs);
    color: inherit;
    text-decoration: none;
}

.header__link:hover {
  text-decoration: underline;
}

.header__links span {
    font-size: var(--font-size-sm);
    display: inline-block;
    vertical-align: middle;
}

.header__headline {
    font-size: var(--font-size-xl);
    font-weight: 300;
    color: inherit;
    margin: 0 0 var(--spacing-xs) 0;
}

.header__meta p {
    margin: 0;
}

.language-select {
    height: 35px;
    width: 120px;
    color: inherit;
    padding: 8px 12px 5px 30px;
    border: none;
    background-color: inherit;
    font-size: 16px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 8px center;
}


/* Dark theme example */
.dark-mode select {
    background-color: #333;
    color: white;
    border-color: #555;
}

/* Responsive */
@media (max-width: 768px) {
    select {
        width: 100%;
        font-size: 14px;
    }
}
.home__container {
    display: flex;
    flex-direction: row;
    gap: var(--spacing-md);
  }
  
  .newsfeed {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
  }
  
  .home-page__loading,
  .home-page__no-more {
    text-align: center;
    margin-top: var(--spacing-xl);
    color: var(--color-text-light);
  }
.newsitem__image {
    transition: all var(--transition-speed) linear;
}

.newsfeed__image img {
    border-radius: var(--border-radius-sm) var(--border-radius-sm) 0 0;
    min-width: 100%;
    min-height: 100%;
}

.newsitem__body {
    padding: var(--spacing-lg) var(--spacing-xxl);
}

.newsitem__labels {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-sm);
}

.newsitem__label {
    display: flex;
    flex-direction: row;
    align-items: center;
    font-size: var(--font-size-sm);
    font-weight: 500;
    line-height: 22px;
    padding: 0 var(--spacing-sm);
    border-radius: var(--border-radius-full);
}

.newsitem__title a{
  color: inherit;
  text-decoration: none;
}

.newsitem__title a:hover {
    text-decoration: underline;
}

.newsitem__title {
    margin: 0 0 8px;
    font-size: var(--font-size-xl);
    line-height: var(--line-height-base);
}

.newsitem__meta {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: var(--font-size-base);
    font-weight: 400;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-lg);
}

.newsitem__author {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.newsitem__author-avatar {
    width: 24px;
    height: 24px;
    vertical-align: bottom;
    border-radius: 50%;
    box-shadow: 0 0 0 2px white;
    position: relative;
    z-index: 4;
    object-fit: cover;
}

.newsitem__content {
    font-size: 17px;
    color: var(--color-text);
}

/* TYPOGRAPHY */
.newsitem__content h1, .newsitem__content h2, .newsitem__content h3, .newsitem__content h4, .newsitem__content h5, .newsitem__content h6 {
    margin-bottom: var(--spacing-md);
    line-height: var(--line-height-sm);
}
.newsitem__content h1 {
    font-size: var(--font-size-xxl);
}
.newsitem__content h2 {
    font-size: var(--font-size-xl);
}
.newsitem__content h3 {
    font-size: var(--font-size-lg);
}
.newsitem__content h4 {
    font-size: var(--font-size-md);
}
.newsitem__content h5 {
    font-size: var(--font-size-sm);
}
.newsitem__content h6 {
    font-size: var(--font-size-xs);
}
.newsitem__content a {
    color: var(--color-text);
    text-decoration: underline;
}
.newsitem__content a:hover {
    color: #06c;
}
.newsitem__content p, .newsitem__content ul, .newsitem__content ol, .newsitem__content dl, .newsitem__content blockquote, .newsitem__content pre {
    margin-bottom: 1em;
}
.newsitem__content blockquote {
    border-left: 4px solid #ccc;
    padding-left: 1em;
    font-style: italic;
}
.newsitem__content pre {
    background-color: var(--color-code-background);
    font-size: 14px;
    border-radius: 6px;
    padding: 1em;
    overflow-x: auto;
    width: 100%;
}
.newsitem__content ul, .newsitem__content ol {
    padding-left: 2em;
}
.newsitem__content li {
    margin-bottom: var(--spacing-xs);
}
.newsitem__content dl dt {
    font-weight: bold;
}
.newsitem__content dl dd {
    margin-left: 1em;
    margin-bottom: 0.5em;
}
.newsitem__content table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 1em;
}
.newsitem__content th, .newsitem__content td {
    border: 1px solid #ccc;
    padding: 0.5em;
    text-align: left;
}
.newsitem__content th {
    background-color: #f5f5f5;
    font-weight: bold;
}
.newsitem__content caption {
    font-style: italic;
    margin-bottom: var(--spacing-xs);
}
.newsitem__content em, .newsitem__content i {
    font-style: italic;
}
.newsitem__content strong, .newsitem__content b {
    font-weight: bold;
}
.newsitem__content code, .newsitem__content kbd, .newsitem__content samp {
    font-family: monospace;
}
.newsitem__content small {
    font-size: 0.9em;
}
.newsitem__content sub, .newsitem__content sup {
    font-size: var(--font-size-xs);
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}
.newsitem__content sup {
    top: -0.5em;
}
.newsitem__content sub {
    bottom: -0.25em;
}
.newsitem__content hr {
    border: none;
    border-top: 1px solid #ccc;
    margin: 2em 0;
}
.newsitem__content ins, .newsitem__content mark {
    background: rgba(250,225,0,.2);
    text-decoration: none;
}

/* Beamer fixes */
.newsitem__content p img {
    margin-top: 1em;
}

.newsitem__content figure img {
    margin-top: 1em;
    margin-bottom: 1em;
}
.reaction-buttons {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
}

.reaction-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all var(--transition-speed);
  border: 2px solid var(--color-white);
  background: var(--color-background);
}

.reaction-button:hover {
  transform: scale(1.1);
}

.reaction-button:active {
  transform: scale(0.95);
}

.reaction-button__emoji {
  transition: transform var(--transition-speed);
}

.reaction-button:hover .reaction-button__emoji {
  transform: scale(1.2);
}

.reaction-button--selected {
  pointer-events: none;
  cursor: not-allowed;
  font-size: 2.5rem;
  transform: none;
  animation: popUpAnimation 0.4s ease forwards;
}

.reaction-button--unselected {
  cursor: pointer;
  filter: grayscale(5);
}

@keyframes popUpAnimation {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  60% {
    transform: scale(1.1);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
/*
  1. Use a more-intuitive box-sizing model.
*/
*, *::before, *::after {
    box-sizing: border-box;
  }
  
  /*
    2. Remove default margin
  */
  * {
    margin: 0;
  }
  
  /*
    Typographic tweaks!
    3. Add accessible line-height
    4. Improve text rendering
  */
  body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
  }
  
  /*
    5. Improve media defaults
  */
  img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
  }
  
  /*
    6. Remove built-in form typography styles
  */
  input, button, textarea, select {
    font: inherit;
  }
  
  /*
    7. Avoid text overflows
  */
  p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
  }
  
  /*
    8. Create a root stacking context
  */
  #root, #__next {
    isolation: isolate;
  }
.search-bar {
    margin-bottom: var(--spacing-md);
  }
  
  .search-bar__form {
    display: flex;
  }
  
  .search-bar__input-wrapper {
    position: relative;
    flex-grow: 1;
    display: flex;
    align-items: center;
  }
  
  .search-bar__input {
    width: 100%;
    padding: var(--spacing-md);
    padding-left: calc(var(--spacing-md) * 2 + 18px);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    color: var(--color-text);
    font-size: var(--font-size-base);
  }
  
  .search-bar__input:focus {
    outline: none;
    box-shadow: var(--shadow-md);
  }
  
  .search-bar__icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-light);
  }
  
  .search-bar__icon--search {
    left: var(--spacing-md);
  }
  
  .search-bar__clear-button {
    position: absolute;
    right: var(--spacing-md);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
  }
  
  .search-bar__icon--clear {
    color: var(--color-text-light);
    width: 18px;
    height: 18px;
  }
  
  .search-bar__clear-button:hover .search-bar__icon--clear {
    color: var(--color-text);
  }
.share-buttons {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
  }
  
  .share-button {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-md);
    color: var(--color-white);
    border-radius: var(--border-radius-md);
    font-size: var(--font-size-sm);
    text-decoration: none;
    transition: opacity var(--transition-speed);
  }
  
  .share-button:hover {
    opacity: 0.9;
  }
  
  .share-button__icon {
    display: flex;
    align-items: center;
  }
  
  .share-button__icon svg {
    width: 18px;
    height: 18px;
  }
  
  .share-button__text {
    font-weight: bold;
  }
  
  @media (max-width: 768px) {
    .share-button__text {
      display: none;
    }
    
    .share-button {
      padding: var(--spacing-xs);
    }
  }
:root {
    /* Colors */
    --color-primary: #3b82f6;
    --color-secondary: #1d4ed8;
    --color-background: #f1f1f1;
    --color-text: #1f2937;
    --color-text-light: #6b7280;
    --color-text-muted: #8f919d;
    --color-border: #e5e7eb;
    --color-border-hover: #d1d5db;
    --color-white: #ffffff;
    --color-black: #000000;
    --color-code-background: #f5f5f5;
  
    /* Typography */
    --font-family-base: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    --font-size-base: 16px;
    --font-size-xs: 12px;
    --font-size-sm: 14px;
    --font-size-lg: 18px;
    --font-size-xl: 28px;
    --font-size-xxl: 33px;
    --line-height-base: 1.5;
    --line-height-sm: 1.24;
  
    /* Spacing */
    --spacing-xxs: 0.25rem;
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 2.5rem;
  
    /* Border Radius */
    --border-radius-sm: 0.25rem;
    --border-radius-md: 0.5rem;
    --border-radius-lg: 1rem;
    --border-radius-full: 9999px;
  
    /* Transitions */
    --transition-speed: 0.3s;
  
    /* Shadows */
    --shadow-sm: 0 1px 4px 0 rgba(0, 0, 0, 0.2);
    --shadow-md: 0 3px 8px 0 rgba(0, 0, 0, 0.03);
  
    /* Layout */
    --container-padding: 20px;
    --content-max-width: 900px;
    --header-padding: 25px 0;
  
    --label-background: #000000;
    --label-border: #ededed;
    --label-text: #ffffff;
  
    /* Dark mode colors */
    --color-primary-dark: #2563eb;
    --color-secondary-dark: #1d4ed8;
    --color-background-dark: #000000;
    --color-text-dark: #ededed;
    --color-text-light-dark: #9ca3af;
    --color-text-muted-dark: #888888;
    --color-border-dark: #374151;
    --color-border-hover-dark: #4b5563;
    --color-white-dark: #0a0a0a;
    --color-black-dark: #0a0a0a;
    --shadow-md-dark: rgba(255, 255, 255, 0.145) 0px 0px 0px 1px, rgba(0, 0, 0, 0.16) 0px 1px 2px 0px;
    --label-background-dark: #0a0a0a;
    --label-border-dark: #0a0a0a;
    --label-text-dark: #ededed;
    --color-code-background-dark: #5b5b5b;
  }
  
  /* Dark mode class */
  .dark-mode {
    --color-primary: var(--color-primary-dark);
    --color-secondary: var(--color-secondary-dark);
    --color-background: var(--color-background-dark);
    --color-text: var(--color-text-dark);
    --color-text-light: var(--color-text-light-dark);
    --color-text-muted: var(--color-text-muted-dark);
    --color-border: var(--color-border-dark);
    --color-border-hover: var(--color-border-hover-dark);
    --color-white: var(--color-white-dark);
    --color-black: var(--color-black-dark);
    --shadow-md: var(--shadow-md-dark);
    --color-code-background: var(--color-code-background-dark);
  }
/*


*/

/* Base styles */
body {
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-text);
  background-color: var(--color-background);
  margin: 0;
  padding: 0;
}
  
img, video, svg {
  max-width: 100%;
}

p {
  margin-bottom: var(--spacing-md);
}

h1, h2, h3, h4, h5, h6 {
  margin-bottom: var(--spacing-sm);
  font-weight: 500;
}

/* Utility classes */
.container {
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
  flex: 1 0 auto;
  min-height: 130px;
}

.content {
  max-width: var(--content-max-width);
  width: 100%;
  margin: 0 auto;
}

.section {
  padding: var(--spacing-lg) 0;
}

.card {
  background-color: var(--color-white);
  border-radius: var(--border-radius-sm);
  position: relative;
  z-index: 3;
  text-decoration: none;
  overflow: hidden;
  width: 100%;
  display: block;
  outline: none;
  box-shadow: var(--shadow-md);
  transition: border var(--transition-speed) linear, transform var(--transition-speed) linear, background-color var(--transition-speed) linear, box-shadow var(--transition-speed) linear, opacity var(--transition-speed) linear;
}

.separator {
  height: 1px;
  width: 100%;
  background-color: var(--color-border);
  margin: var(--spacing-md) 0;
}

.dark-mode-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
}

.dark-mode-toggle .hidden {
  display: none;
}

.page-not-found {
  background-color: #f6f3f3;
  align-content: center;
  text-align: center;
  height: 700px;
}
