/* ========================================
   FONT DECLARATIONS
   ======================================== */
@font-face {
  font-family: Montserrat-ExtraBold;
  src: url(Fonts/Montserrat-ExtraBold.ttf);
}

@font-face {
  font-family: Greith;
  src: url(Fonts/Greith.otf);
}

@font-face {
  font-family: Eliot Lord;
  src: url(Fonts/Eliothand2-Regular.otf);
}

/* ========================================
         RESET & BASE STYLES
         ======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #ffffff;
  overflow-x: hidden;
  min-height: 100vh;
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #b80000;
}

::-webkit-scrollbar-thumb {
  background-color: #141414;
  border-radius: 2px;
}

img {
  -webkit-user-drag: none;
  user-select: none;
  display: block;
  max-width: 100%;
  height: auto;
}

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

/* ========================================
         TOP BLACK NAVIGATION BAR
         ======================================== */
#toptopnav {
  background-color: #ffffff;
  font-weight: 900;
  padding: 0;
  position: relative;
  top: 0;
  z-index: 1000;
}

.nav-links a:nth-of-type(1):hover {
  text-decoration: underline;
  text-decoration-color: #ec1801;
  text-decoration-thickness: 4px;
}

.nav-links a:nth-of-type(2):hover {
  text-decoration: underline;
  text-decoration-color: #00bed6;
  text-decoration-thickness: 4px;
}

.nav-links a:nth-of-type(3):hover {
  text-decoration: underline;
  text-decoration-color: #0087dc;
  text-decoration-thickness: 4px;
}

.nav-links a:nth-of-type(4):hover {
  text-decoration: underline;
  text-decoration-color: #02a95b;
  text-decoration-thickness: 4px;
}

.nav-links a:nth-of-type(5):hover {
  text-decoration: underline;
  text-decoration-color: #005b54;
  text-decoration-thickness: 4px;
}

.nav-links a:nth-of-type(6):hover {
  text-decoration: underline;
  text-decoration-color: #faa61a;
  text-decoration-thickness: 4px;
}

.nav-links a:nth-of-type(7):hover {
  text-decoration: underline;
  text-decoration-color: #326760;
  text-decoration-thickness: 4px;
}

.top-nav-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 2px 16px;
  gap: 24px;
}

.top-nav-wrapper > img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
}

#toptopnav a {
  color: #000000;
  font-size: 18px;
  font-weight: 900;
  padding: 12px 12px;
  display: inline-flex;
  font-family: Greith;
  align-items: center;
  gap: 6px;
  transition: background-color 0.15s;
  white-space: nowrap;
}

#toptopnav a img {
  width: 30px;
  height: 30px;
}

#toptopnav a:hover {
  background-color: #ffffff;
  font-weight: 900;
}

.hamburger-menu {
  display: none;
  background-color: white;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 10px;
  color: black;
  margin-left: auto;
}

.hamburger-menu:hover {
  cursor: url("img/background/Pointer.svg"),
    url("img/background/cursors/Finger%20cursor.png"), pointer;
}

/* ========================================
         RED NEWS BANNER
         ======================================== */
.headerlogo {
  background-color: #bb1919;
  padding: 0;
  position: relative;
  z-index: 999;
}

.headerlogo-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding: 6px 16px;
}

.news-title {
  color: #ffffff;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin: 0;
  text-align: left;
}

/* ========================================
         RED SECTION NAVIGATION
         ======================================== */
.ripnav {
  background-color: #bb1919;
  padding: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 0.6px solid #ffffff;
  z-index: 999;
  overflow: hidden;
}

.ripnav-links {
  display: flex;
  gap: 0;
  align-items: center;
  width: 100%;
  font-family: Greith;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  margin-bottom: -5px;
}

.ripnav a {
  padding: 6px 20px;
  color: #ffffff;
  font-size: 20px;
  font-weight: 900;
  white-space: nowrap;
  position: relative;
  display: inline-block;
}

.ripnav a::before {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 20px; /* Try a fixed pixel value */
  width: 1px;
  background-color: rgba(255, 255, 255, 0.3);
}
.ripnav a:hover::after {
  background-color: #ffffff;
}

.ripnav a.active::after {
  background-color: #ffffff;
}

.ripnav a:last-child {
  border-right: none;
}

.ripnav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 5px;
  background-color: transparent;
  transition: background-color 0.15s;
}

.ripnav a:hover::after {
  background-color: #ffffff;
}

.ripnav a.active::after {
  background-color: #ffffff;
}

.ripnav-hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 10px;
  color: #ffffff;
  margin-left: auto;
}

.ripnav-hamburger:hover {
  cursor: url("img/background/Pointer.svg"),
    url("img/background/cursors/Finger%20cursor.png"), pointer;
}
/* ========================================
         MAIN CONTENT AREA
         ======================================== */
#container {
  width: 100%;
  background-color: #ffffff;
  padding: 48px 16px;
  min-height: 400px;
}

/* ========================================
         GAMES GRID - HORIZONTAL LAYOUT
         ======================================== */
.games-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.game-item {
  text-align: center;
  transition: transform 0.3s ease;
}

.game-item:hover {
  transform: translateY(-5px);
}

.game-item a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: #141414;
}

.game-title {
  font-size: 30px;
  font-weight: 700;
  color: #bb1919;
  margin: 0;
  font-family: Greith;
}

.game-item a:hover .game-title {
  color: #141414;
  text-decoration: underline;
}

.game-item img {
  width: 300px;
  height: 300px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.game-item:hover img {
  transform: scale(1.05);
}

/* Crosswords animation */
#cross {
  animation: shake1 0.8s ease-in-out infinite;
}

@keyframes shake1 {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  25% {
    transform: translate(-2px, -2px) rotate(-1deg) scale(1);
  }
  50% {
    transform: translate(2px, 2px) rotate(1deg) scale(1);
  }
  75% {
    transform: translate(-2px, 2px) rotate(-1deg) scale(1);
  }
}

.game-item:hover #cross {
  animation: shake1 0.4s ease-in-out infinite;
}

/* ========================================
         RESPONSIVE LAYOUTS
         ======================================== */
@media (max-width: 600px) {
  .hamburger-menu,
  .ripnav-hamburger {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #000000;
    flex-direction: column;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  }

  .nav-links.active {
    display: flex;
  }

  .ripnav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #bb1919;
    flex-direction: column;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  }

  .ripnav-links.active {
    display: flex;
  }

  #toptopnav .nav-links a,
  .ripnav-links a {
    width: 100%;
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  #toptopnav .nav-links a {
    color: #ffffff;
  }

  #toptopnav .nav-links a:hover {
    color: #b80000;
  }

  .games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 600px;
  }

  .game-item img {
    width: 100px;
    height: 100px;
  }
}

@media (max-width: 768px) {
  .news-title {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .games-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
         PREFOOTER
         ======================================== */
.prefooter {
  background: linear-gradient(
    to right,
    #ea4a42,
    #ec6a80,
    #f094c1,
    #dff8fe,
    #8eb3f9
  );
  padding: 40px 16px;
  border-top: 1px solid #404040;
}

.prefooter-content {
  max-width: 1280px;
  margin: 0 auto;
}

.prefooter-content h2 {
  color: #ffffff;
  font-size: 20px;
  margin-bottom: 32px;
  text-align: center;
  font-weight: 700;
  background-color: #141414;
  padding: 16px;
  transition: background-color 0.3s ease;
}

.prefooter-content h2:hover {
  background-color: #c93c76;
}

.prefooter-links {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
  align-items: center;
}

.prefooter img {
  max-width: 300px;
  height: auto;
  transition: opacity 0.3s ease;
}

.prefooter img:hover {
  opacity: 0.7;
}

/* ========================================
         BBC FOOTER
         ======================================== */
.bbc-footer {
  background-color: #1a1a1a;
  color: #ffffff;
  padding: 0;
  margin: 0;
  width: 100%;
}

.footer-links-top {
  background-color: #1a1a1a;
  border-bottom: 1px solid #404040;
  padding: 16px 0;
}

.footer-links-top nav {
  display: flex;
  flex-wrap: wrap;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

.footer-links-top a {
  color: #ffffff;
  font-size: 13px;
  font-weight: 400;
  padding: 8px 16px;
  border-right: 1px solid #404040;
  transition: text-decoration 0.2s;
  white-space: nowrap;
}

.footer-links-top a:last-child {
  border-right: none;
}

.footer-links-top a:hover {
  text-decoration: underline;
}

.footer-links-bottom {
  background-color: #1a1a1a;
  padding: 12px 0;
  border-bottom: 1px solid #404040;
}

.footer-links-bottom nav {
  display: flex;
  flex-wrap: wrap;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

.footer-links-bottom a {
  color: #cccccc;
  font-size: 12px;
  font-weight: 400;
  padding: 6px 12px;
  transition: text-decoration 0.2s;
  white-space: nowrap;
}

.footer-links-bottom a:hover {
  text-decoration: underline;
  color: #ffffff;
}

.footer-copyright {
  background-color: #1a1a1a;
  padding: 20px 16px;
}

.footer-copyright p {
  color: #999999;
  font-size: 11px;
  max-width: 1280px;
  margin: 0 auto;
  line-height: 1.6;
  text-align: center;
}

.footer-copyright a {
  color: #ffffff;
  text-decoration: underline;
}

.footer-copyright a:hover {
  text-decoration: none;
}

/* ========================================
         UTILITY
         ======================================== */
#Graundia {
  display: none;
}

.article-container {
  width: 20%;
  padding: 5%;
  background-color: white;
  color: black;
}

.article-container a:hover {
  color: #a82216;
  text-decoration: underline;
  text-decoration-thickness: 6px;
}

/* ========================================
         NEWS GRID - BBC STYLE LAYOUT
         ======================================== */
/* Container with CSS Grid */
.news-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  padding: 20px;
  max-width: 1280px;
  margin: 0 auto;
}

/* Hero article spans full height on left */
.article-card.hero {
  grid-column: 1;
  grid-row: 1 / 5;
  display: flex;
  flex-direction: column;
}

/* Standard articles stack on right side */
.article-card {
  display: flex;
  flex-direction: row;
  background: white;
  border-bottom: 1px solid #e0e0e0;
  overflow: hidden;
  transition: box-shadow 0.2s;
  min-height: 140px;
}

.article-card:hover {
  background-color: #f5f5f5;
}

/* Image styling for regular articles (left side, smaller) */
.article-image {
  width: 150px;
  min-height: 140px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

/* Hero image (full width at top) */
.hero .article-image {
  width: 100%;
  height: 300px;
  max-height: none;
}

/* Hero card layout */
.article-card.hero {
  flex-direction: column;
  border: none;
  border-bottom: 1px solid #e0e0e0;
  min-height: auto;
  max-height: none;
}

/* Content area */
.article-content {
  padding: 12px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.article-title {
  font-family: "Helvetica", "Arial", sans-serif;
  font-size: 15px;
  font-weight: bold;
  line-height: 1.2;
  margin: 0 0 6px 0;
  color: #222;
}

.hero .article-title {
  font-size: 28px;
  margin-bottom: 12px;
}

.article-excerpt {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
  margin-bottom: 12px;
  display: none;
}

.hero .article-excerpt {
  display: block;
  font-size: 16px;
}

/* Category and metadata */
.article-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  margin-top: auto;
}

.article-category {
  color: #bb1919;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 11px;
}

.article-time {
  color: #6c6c6c;
}

/* Responsive design */
@media (max-width: 1024px) {
  .news-grid {
    grid-template-columns: 1fr;
  }

  .article-card.hero {
    grid-column: 1;
    grid-row: auto;
  }

  .article-card {
    flex-direction: column;
  }

  .article-image {
    width: 100%;
    height: 200px;
  }

  .article-excerpt {
    display: block;
  }
}

@media (max-width: 640px) {
  .news-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px;
  }

  .article-card.hero {
    grid-column: 1;
  }

  .hero .article-image {
    height: 200px;
  }

  .hero .article-title {
    font-size: 22px;
  }
}

img .icon {
  width: 40px;
  height: 40px;
}
