:root {
  /* Use viewport height times √2 to ensure full-screen coverage when rotated */
  --animation-duration: 1.5s;
  --easing: ease-in-out;
  --sitred: #ee2e24;
  --sitredhover: #ffffff;
  --sitblack: #000000;
  --sitblue: #2482ee;
}
.fillset {
  position: fixed;
  height: 100%;
  width: 100%;
  left: 0;
  top: 0;
}
.hidden {
  display: none !important;
}
.bgvid {
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.stylebutton {
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 24px;
  border-radius: 25px;
  margin: 40px;
}
.stylebutton:hover {
  background-color: var(--sitredhover);
  color: var(--sitblack);
}
.sitred {
  background-color: var(--sitred);
}
.sitblack {
  background-color: var(--sitblack);
}
.sitblue {
  background-color: var(--sitblue);
}

.triangle {
  position: fixed;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  height: 200%;
  width: 200%;
  bottom: 0;
  left: -50%;
  animation: slide-out var(--animation-duration) var(--easing) forwards;
}
.cover--left {
  --dir: -1;
}

.cover--right {
  --dir: 1;
}
@keyframes slide-out {
  to {
    transform: translate(calc(var(--dir) * 100%), 100%);
  }
}
.logotext {
  margin-bottom: 5%;
  font-size: 10vmin;
  color: #ffffff;
  text-shadow:
    0.2vmin 0 0 #000,
    0 -0.2vmin 0 #000,
    0 0.2vmin 0 #000,
    -0.2vmin 0 0 #000;
}

.news-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 350px;
  background: #323232;
  color: #ffffff;
  padding: 0;
}

.news-header {
  background: #1a1a1a;
  padding: 10px 15px;
  font-weight: bold;
  font-size: 15px;
  letter-spacing: 0.5px;
}

.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 200px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #555 #1a1a1a;
}

/* Custom Scrollbar Styling for Chrome, Safari, and Edge */
.news-list::-webkit-scrollbar {
  width: 6px;
}

.news-list::-webkit-scrollbar-track {
  background: #1a1a1a; /* Matches the header background */
}

.news-list::-webkit-scrollbar-thumb {
  background: #555; /* The actual scroll handle */
  border-radius: 10px;
}

.news-list::-webkit-scrollbar-thumb:hover {
  background: #ff4d4d;
}

.news-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 15px;
  border-bottom: 1px solid #333;
  cursor: pointer;
  font-size: 12px;
  transition: background 0.2s ease;
}

.news-item:hover {
  background: #3a3a3a;
}

.news-item:last-child {
  border-bottom: none;
}

.news-date {
  color: #ffffff;
  padding-left: 15px;
  white-space: nowrap;
}

/* Overlay Background */
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Dim the background */
  backdrop-filter: blur(3px);
  z-index: 10000;
  justify-content: center;
  align-items: center;
}

/* The Modal Card */
.overlay-card {
  background-color: #2d2d2d;
  width: 500px;
  max-width: 90%;
  padding: 20px;
  color: white;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* Header Section */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-date {
  font-size: 16px;
  font-weight: bold;
  color: #ccc;
}

.close-circle {
  background-color: #eee;
  color: #222;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 20px;
  cursor: pointer;
  transition: transform 0.2s;
}

.close-circle:hover {
  transform: scale(1.1);
}

/* Title and Content */
.modal-title {
  text-align: center;
  font-size: 22px;
  margin-bottom: 25px;
  font-weight: 600;
}

.modal-content-area {
  max-height: 300px; /* Limits height to trigger scroll */
  overflow-y: auto;
  padding-right: 15px;
}

.modal-text {
  line-height: 1.6;
  font-size: 16px;
  color: #eee;
  text-align: left;
}

/* CUSTOM SCROLLBAR FOR MODAL (White Thumb) */
.modal-content-area::-webkit-scrollbar {
  width: 4px;
}

.modal-content-area::-webkit-scrollbar-track {
  background: #111; /* Dark track */
}

.modal-content-area::-webkit-scrollbar-thumb {
  background: #ffffff; /* High contrast white thumb as per design */
  border-radius: 10px;
}
