/* Define CSS Variables for Maintainability */
:root {
  --primary-color: #e56262; /* Restored original red */
  --hover-color: #a82323; /* Darker red for hover */
  --background-color: #fefefe; /* Cleaner off-white */
  --border-color: #e56262; /* Restored original red */
  --text-color: #e56262; /* Restored original text color */
  --selection-bg: #ff6b6b; /* Vibrant selection background */
  --font-stack: 'Inter', 'Varela Round', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Selection Styles */
::-moz-selection {
  background: var(--selection-bg);
  color: #fff;
}
::selection {
  background: var(--selection-bg);
  color: #fff;
}

/* Base Styles */
html {
  position: relative;
  height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  background: var(--background-color);
  padding: 1rem;
  border: 1rem solid var(--border-color);
  position: relative;
  overflow-y: auto;
  color: var(--text-color);
  font-family: var(--font-stack);
  font-weight: 400;
  line-height: 1.6;
}

/* Typography */
p, h1, h2, h3, a {
  color: var(--text-color);
  font-family: var(--font-stack);
}

/* Links */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--hover-color);
  text-decoration: none;
}

a:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Sticky Elements */
.sticky {
  position: sticky;
  top: 1rem;
}

/* Text Body */
.text-body {
  max-width: 720px; /* Slightly wider for modern screens */
  margin: 0 auto;
}

/* Layout */
.wrapper {
  display: flex;
  flex-flow: row nowrap;
  gap: 1.5rem;
}

.main-header {
  flex: 0 0 250px; /* Fixed width for header */
}

.main-body {
  flex: 1 1 auto;
}

/* Responsive Design */
@media (max-width: 768px) {
  .wrapper {
    flex-flow: column wrap;
  }

  .main-header {
    flex: 1 1 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
  }

  .main-header a.logo {
    padding-right: 1.5rem;
  }

  .main-header > ul {
    flex: 0 1 auto;
  }

  .main-body {
    flex: 1 1 100%;
  }
}

/* Copyright */
.copyright {
  position: absolute;
  bottom: 0.5rem;
  width: 100%;
  font-size: 0.875rem;
  text-align: center;
  color: #666;
}

/* Margin Utility */
.margin-bottom-30 {
  margin-bottom: 1.875rem;
}

/* Image Handling */
img, .img-responsive {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Menu Styles */
.main-header {
  margin: 1.5rem;
  padding: 0;
  list-style: none;
}

.main-header li {
  flex: 0 1 100%;
}

.main-header .logo > img {
  margin-bottom: 2rem;
  transition: transform 0.3s ease-in-out;
}

.main-header .logo:hover > img {
  transform: scale(1.1); /* Subtler scale effect */
}

.submenu {
  display: none;
  padding-left: 1rem;
  list-style: none;
}

.active .submenu {
  display: block;
}

.main-header li.active > a {
  color: var(--hover-color);
  font-weight: 600;
}

.main-header a {
  color: var(--primary-color);
  font-size: 1.125rem;
  line-height: 1.2;
  font-weight: 500;
  transition: color 0.3s ease;
}

.main-header a:hover {
  color: var(--hover-color);
  animation: none; /* Remove flashing animation */
}

.main-header .submenu li:last-child {
  margin-bottom: 0.625rem;
}

.main-header .margintop {
  margin-top: 1.875rem;
}

/* Posters Section */
.posters {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  padding: 0.5rem;
}

.posters .item {
  display: block;
}

.posters .item .item-inner {
  position: relative;
  width: 100%;
}

.posters .item .item-inner img {
  width: 100%;
  max-width: 350px;
  margin: 0 auto;
  border-radius: 8px; /* Modern rounded corners */
  transition: transform 0.3s ease;
}

.posters .item:hover .item-inner img {
  transform: scale(1.05);
}

/* Blog Section */
.news-datum {
  font-size: 0.666rem;
  text-align: justify;
  color: #e56262;
}

/* Hide Elements */
.force-hide {
  display: none !important;
}
