:root {
  --base-font-size: 12px;
}

/* Base Styles */
body.light-mode {
  background: #f9f9f9;
  color: #111;
  background-image: url('matrix-background-white.jpg');
  background-repeat: repeat;
  background-size: auto;
  background-attachment: fixed;
}
/* Scrollbar (Webkit) */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #ffffff;
}
::-webkit-scrollbar-thumb {
  border-radius: 10px;
  border: 2px solid #ffffff;
}

/* Site Controls */

.site-controls button,
.site-controls a {
  background: white;
  border: none;
  padding: 5px 8px;
  border-radius: 8px;
  cursor: pointer;
  color: black;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
  text-decoration: none;
}
.site-controls button:hover,
.site-controls a:hover {
  color: white;
  text-decoration: none;
}
/*
.footer a {
  position: absolute;
  bottom: 20px; 
  left: 50%;
  transform: translateX(-50%);
  align-items: center;
  background: white;
  color: black;
  text-decoration: none;
  border-radius: 10px;
  padding: 5px;
  display: flex;
  gap: 5px;
  z-index: 1000; 
}

.footer a:hover {
  background: #6f93d1;
  color: white;
  text-decoration: none;
}
*/
/*
.container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  padding: 2rem;
}

.card {
  align-self: start;
}
*/
.container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 2rem;
  justify-content: center;
  align-items: flex-start;
}

.card {
  display: inline-block;
  width: auto;
  max-width: 100%;
}

.card {
  background: #000000;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(111, 147, 209, 0.7);
  transition: transform 0.2s, background 0.5s, color 0.5s;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 10px rgba(255, 255, 255, 1);
  transition: box-shadow 0.3s;
}
body.light-mode .card {
  background: #ffffff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Card Titles */
.card h2 {
  margin: 0 0 8px 0;
  font-size: 1.1em;
  text-align: left;
  font-family: Verdana, Helvetica, Arial, sans-serif;
  font-weight: bold;
  padding: 3px;
  line-height: normal;
  transition: color 0.5s;
}

/* Card Links */
.card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.card ul li {
  margin-bottom: 8px;
}
.card ul li a {
  color: #ffffff;
  text-decoration: none;
  padding: 3px;
  display: inline-block;
  width: 100%;
  box-sizing: border-box;
}

.card ul li a:hover {
  text-decoration: none;
  border-radius: 6px;
  padding: 3px;
}
body.light-mode .card ul li a {
  color: #000000;
}
body.light-mode .card ul li a:hover {
  border-radius: 6px;
}


/* Sort Indicators */
.sort-indicator {
  font-size: 0.8rem;
  display: inline-block; 
  transition: transform 0.3s ease;
  margin-left: 0.5rem;
}
.sort-indicator.animate {
  transform: scale(1.3);
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
  .container {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 768px) {
  .container {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .container {
    grid-template-columns: repeat(1, 1fr);
  }
}


/* Theme Palette Styling */
/*
.palette-wrapper {
  position: relative;
  display: inline-block;
}
*/
#subcontent {
  position: absolute;
  visibility: hidden;
  margin-top: 10px;
  width: 110px !important;
  padding: 8px;
  right: 0;
  background: rgba(30,30,30,0.7);
  border-radius: 8px;
  text-align: center;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  justify-items: center;
  align-items: center;
}

/*
#subcontent {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 6px;
  background: rgba(30, 30, 30, 0.9);
  padding: 10px;
  border-radius: 8px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  visibility: hidden;
  z-index: 9999;
}
*/

#subcontent a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  transition: box-shadow 0.2s ease;
}

#subcontent a:hover {
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

#subcontent a i {
  font-size: 1.2rem !important;
}

/* Site Header Styling (Vertical Centered) */
.site-header {
  margin-top: 60px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.site-header .site-logo {
  width: 100px;
  height: auto;
  margin-bottom: 20px;
}

.site-name {
  margin: 0;
  font-size: 1.3rem;
}
.site-slogan {
  margin: 0;
  font-size: 1.2rem;
}
.site-contact {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 1rem;
  line-height: 1.2rem;
}


/* Site Controls v12 working left */
/*
.site-controls {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;  
}
*/

.site-controls {
  position: absolute; /* or fixed if you want it always visible */
  right: 10px;         /* push it to the right */
  top: 10px;           /* optional: position from the top */
  background: rgba(30, 30, 30, 0.8);
  border-radius: 10px;
  padding: 5px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 9999;       /* to ensure it's on top */
}

.palette-container {
  position: relative;
  display: inline-block;
}

.palette-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  display: none;
  background: rgba(30,30,30,0.95);
  border-radius: 8px;
  padding: 10px;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  z-index: 999;
}

.palette-dropdown.show {
  display: grid;
}






/*
.site-controls {
  position: fixed;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 9999;
}

.palette-container {
  position: relative;
}

.palette-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(30, 30, 30, 0.95);
  padding: 10px;
  border-radius: 8px;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  z-index: 9999;
}

.palette-dropdown.show {
  display: grid;
}
*/

.cyber-banner {
  color: #000;
  font-weight: bold;
  padding: 20px;
  text-align: center;
  margin: 20px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cyber-banner img {
  width: auto;
  height: auto;
}
