/* --- GLOBAL STYLES & RETRO SCROLLBAR --- */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: #e0f0ff; /* Fallback light blue */
  /* Custom modern/retro scrollbar for webkit browsers */
  scrollbar-width: thin;
  scrollbar-color: #5599ff #ffffff;
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}
::-webkit-scrollbar-track {
  background: #ffffff;
  border-left: 1px solid #c0dcc0;
}
::-webkit-scrollbar-thumb {
  background: #5599ff;
  border: 2px solid #ffffff;
  border-radius: 4px;
}

/* --- THE FLOATING BACKGROUND PALM TREE --- */
.tree-gif {
  position: fixed;
  left: 0;
  top: 0;
  z-index: -1;
  pointer-events: none;
}

/* --- FLEXBOX SITE LAYOUT WRAPPER --- */
.layout {
  max-width: 980px;
  margin: 40px auto;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* --- REUSABLE GLASS/AERO BOX FRAME --- */
.box {
  background: rgba(255, 255, 255, 0.85);
  border: 3px solid #5599ff;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.08), 
              inset 0px 0px 12px rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(4px);
}

/* Specific Box Colors */
#box-header {
  border-color: #5599ff;
  background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(210,230,255,0.85) 100%);
}

#box-subheader {
  border-color: #5599ff;
  padding: 8px 15px;
  font-weight: bold;
}

#box-subheader2 {
  border-color: #9dff00; /* Vibrant Lime Green Accent Box */
  padding: 5px;
}

#box-row4-mid-new {
  border-color: #9dff00; /* Vibrant Lime Green Accent Box */
}

/* --- GRID ROWS --- */
.row {
  display: flex;
  gap: 15px;
  width: 100%;
}

/* 3-Column Middle Row (Nav / Main Content / Sidebar) */
.row-3 #box-row3-left {
  flex: 1; /* Left Nav */
  min-width: 180px;
}

.row-3 #box-row3-center {
  flex: 2.5; /* Center Content */
}

.row-3 #box-row3-right {
  flex: 1; /* Right Widgets */
  min-width: 180px;
}

/* 2-Column Bottom Row */
.row-4 .box.medium {
  flex: 1;
}

/* --- NAVIGATION MENU LINKS --- */
.nav-header {
  background: #5599ff;
  color: white;
  font-weight: bold;
  text-align: center;
  padding: 4px;
  font-size: 13px;
  border-radius: 4px;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.nav-list {
  margin: 0 0 15px 0;
  padding: 0;
}

.nav-list li {
  margin-bottom: 6px;
}

.nav-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #0330fc;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  padding: 3px;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.nav-list a:hover {
  background: rgba(157, 255, 0, 0.3); /* Soft lime green glow highlight on hover */
  color: #000;
}

/* --- STAMP MARQUEE ANIMATION SCROLLER --- */
.marquee {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
}

.marquee__inner {
  display: inline-block;
  padding-left: 100%;
  animation: marqueeAnimation 25s linear infinite;
}

@keyframes marqueeAnimation {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-100%, 0, 0); }
}

/* --- RESPONSIVE MOBILE FIX --- */
@media (max-width: 768px) {
  .row {
    flex-direction: column;
  }
  .tree-gif {
    display: none; /* Hide huge tree on mobile screens to clean up space */
  }
}
