:root {
  --primary-color: #121212;
  --secondary-color: #1e1e1e;
  --accent-color: #bb86fc;
  --text-light: #ffffff;
  --text-dark: #121212;
  --background-light: #e0e0e0;
  --border-radius: 8px;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  --transition: all 0.3s ease;
  --nav-height: 70px;}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;}
body {
  background-color: rgba(0, 0, 0, 0.95);
  background-image: url("https://decipher.wiki/decipher_logo.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-blend-mode: overlay;
  color: var(--text-light);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif, 'Exo 2';
  line-height: 1.6;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
  flex-direction: column;
  z-index: 0;
}

#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  z-index: -2;
  opacity: 0.2;
  pointer-events: auto;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: var(--transition);}
a:hover {
  color: #cfa9fd;}
/* Navigation header */
header {
  width: 100%;
  background-color: var(--primary-color);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0;}
body.light-theme .symbol-label {
color: var(--text-light);}
.header-container {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  justify-content: space-between;
  max-width: 100%;
  margin: 0 auto;
  width: 100%;
  position: relative;}
/* Logo styling */
.logo-container {
  display: flex;
  align-items: center;
  text-decoration: none;
  margin-right: 0px;}
.left-header {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: flex-start;
  flex: 1;}
.right-header {
  display: flex;
  align-items: center;
  gap: 16px;}
.logo-container a {
  display: flex;
  align-items: center;
  text-decoration: none;}
.logo-icon {
  height: 40px;
  width: 40px;
  filter: brightness(1.2) contrast(1.1);
  transition: var(--transition);}
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.logo-container {
  position: absolute;
  left: 49%;
  transform: translateX(-50%);
}
.logo-text {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-light);
  text-transform: uppercase;
  margin-left: 10px;
  letter-spacing: 1px;}
/* Discord button */
.discord-button {
  margin-left: auto;
  margin-right: 20px;}
.discord-button button {
  background-color: #5865F2;
  color: var(--text-light);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 16px;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);}
.discord-button button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);}
/* Navigation bar */
.nav-container {
  width: 100%;
  background-color: #1e1e1e;
  padding: 0;}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  justify-content: center;}
.main-nav {
  display: flex;
  justify-content: center;
  width: 100%;}
.main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: center;}
.main-nav ul li {
  position: relative;}
.main-nav ul li a {
  display: block;
  padding: 12px 20px;
  color: var(--text-light);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: var(--transition);}
.main-nav ul li a:hover,
.main-nav ul li a.active {
  color: var(--accent-color);
  background-color: rgba(187, 134, 252, 0.1);}
.main-nav ul li a.active {
  position: relative;}
.main-nav ul li a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20%;
  width: 60%;
  height: 3px;
  background-color: var(--accent-color);}
/* Theme toggle */
.theme-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);}
.theme-toggle:hover {
  background-color: rgba(255, 255, 255, 0.2);}
.theme-toggle i {
  color: var(--text-light);
  font-size: 18px;}
/* Main content area */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;}
/* Card styling */
.div1 {
  background-color: rgba(30, 30, 30, 0.9);
  width: 100%;
  max-width: 1000px;
  border: none;
  padding: 30px;
  border-radius: 12px;
  margin: 20px auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;}
textarea, input[type="text"] {
width: 100%;
max-width: 800px;
box-sizing: border-box;}
.full-width {
width: 100%;
max-width: 800px;
box-sizing: border-box;}
.div1 p {
margin: 20px 0;}
/* Headings and text */
h1 {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 2.5rem;
  position: relative;
  padding-bottom: 15px;}
h1::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 3px;
  background-color: var(--accent-color);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);}
  body.fonts-loaded h1 {
    font-family: 'Exo 2', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  }
h2 {
  color: var(--text-light);
  text-align: center;
  margin-bottom: 20px;
  font-weight: 600;
  letter-spacing: 1px;}
.subtitle {
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
  font-size: 1.1rem;}
/* Buttons */
button.button6 {
  background-color: rgba(40, 40, 40, 0.95);
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 15px 25px;
  font-weight: 600;
  margin: 10px 5px;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  min-width: 250px;
  border-radius: 12px;
  cursor: pointer;}
button.button6:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.4);
  background-color: rgba(60, 60, 60, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);}
/* Search bar */
.search-container {
  position: relative;
  margin: 30px auto;
  max-width: 600px;
  width: 90%;}
.search-container input {
  width: 100%;
  padding: 15px 50px 15px 20px;
  border: none;
  border-radius: 30px;
  background-color: rgba(40, 40, 40, 0.9);
  color: var(--text-light);
  font-size: 16px;
  font-family: 'Exo 2', sans-serif;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);}
.search-container input:focus {
  outline: none;
  background-color: rgba(50, 50, 50, 0.95);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--accent-color);}
.search-container .search-icon {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-color);
  font-size: 18px;
  pointer-events: auto;}
/* Categories */
.tool-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;}
.category {
  padding: 10px 20px;
  background-color: rgba(40, 40, 40, 0.9);
  color: var(--text-light);
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.1);}
.category:hover {
  background-color: rgba(60, 60, 60, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);}
.category.active {
  background-color: var(--accent-color);
  color: var(--primary-color);
  font-weight: 700;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);}
/* Tools grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;}
.tool-item {
  background-color: rgba(40, 40, 40, 0.9);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.1);}
.tool-item:hover {
  transform: translateY(-7px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);}
.tool-item.featured {
  border: 2px solid var(--accent-color);}
.tool-content {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;}

@font-face {
  font-family: 'Exo 2';
  font-display: swap;
}

.loader { display: none; }
body.loading .loader { display: block; }

.tool-content h3 {
  color: var(--accent-color);
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 20px;}
.tool-content p {
  margin-bottom: 20px;
  flex: 1;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;}
.tool-meta {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;}
.tool-category {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 12px;
  text-transform: capitalize;
  font-weight: 500;}
.symbol-container {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
gap: 16px;
padding: 20px;}
.symbol-entry {
display: flex;
flex-direction: column;
align-items: center;
background: #1e1e1e;
border-radius: 12px;
padding: 10px;}
.symbol {
min-width: 250px;
width: 100%;
height: auto;
object-fit: contain;}
.tool-badge {
  background-color: var(--accent-color);
  color: var(--primary-color);
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.5px;}
.tool-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent-color);
  color: var(--primary-color);
  padding: 12px 20px;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-top: auto;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-decoration: none;}
.tool-link:hover {
  background-color: #cfa9fd;
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);}
.tool-link i {
  margin-left: 8px;}
.highlight {
  background-color: rgba(187, 134, 252, 0.2);
  padding: 2px 5px;
  border-radius: 3px;
  color: #ffffff;
  font-weight: 500;}
.symbol-label {
font-size: 13px;
text-align: center;
word-break: break-word;
white-space: normal;
overflow-wrap: break-word;
max-width: 100%;}
/* Footer */
footer {
  margin-top: 40px;
  text-align: center;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 30px 20px;
  background-color: var(--primary-color);
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.15);}
.contact-info {
  margin-bottom: 30px;
  max-width: 1200px;
  margin: 0 auto;}
.contact-info p {
  margin: 8px 0;
  opacity: 0.8;
  font-size: 14px;}
/* Mobile menu */
.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  margin-right: 20px;}
.hamburger-menu span {
  width: 80%;
  height: 2px;
  background-color: var(--text-light);
  border-radius: 3px;
  transition: all 0.3s ease;}
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 100;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  padding-bottom: 60px;}
  
.mobile-nav.open {
  transform: translateX(0);}
.mobile-nav ul {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: auto;
  list-style: none;
  padding: 40px 0 60px;
  overflow-y: visible;}
.mobile-nav ul li {
  margin-bottom: 9px;}
.mobile-nav ul li a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 16px;
  padding: 6px 12px;
  display: block;
  transition: var(--transition);}
.mobile-nav ul li a:hover {
  color: var(--accent-color);}
/* Loading spinner */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary-color);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.3s ease, visibility 0.3s ease;}
.loader.hidden {
  opacity: 0;
  visibility: hidden;
  display: none;
  pointer-events: none;}
.loader-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top: 3px solid var(--accent-color);
  border-radius: 50%;
  animation: spin 1s ease infinite;}
@keyframes spin {
  0% {
    transform: rotate(0deg);}
100% {
    transform: rotate(360deg);}
}
/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--accent-color);
  color: var(--text-dark);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: var(--box-shadow);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 100;}
.puzzle-content {
overflow-wrap: break-word;
word-break: break-word;
max-width: 100%;}
.award {
color: #f1c40f;}
.puzzle-dropdown {
background-color: rgba(40, 40, 40, 0.95);
color: var(--text-light);
border: 1px solid rgba(255, 255, 255, 0.1);
padding: 15px 25px;
font-weight: 600;
margin: 10px 0;
width: 100%;
box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
transition: all 0.3s ease;
border-radius: 12px;
cursor: pointer;
text-align: left;}
.puzzle-dropdown:hover {
transform: translateY(-5px);
background-color: rgba(60, 60, 60, 0.95);
border: 1px solid rgba(255, 255, 255, 0.2);
box-shadow: 0 12px 20px rgba(0, 0, 0, 0.4);}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;}
.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);}
/* Light theme */
body.light-theme {
  background-color: var(--background-light);
  color: var(--text-dark);}
body.light-theme header,
body.light-theme footer {
  background-color: #f1f1f1;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  color: black;}
body.light-theme .nav-container {
  background-color: #e1e1e1;}
body.light-theme .main-nav ul li a {
  color: var(--text-dark);}
body.light-theme .div1 {
  background-color: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.1);}
body.light-theme h1,
body.light-theme h2 {
  color: var(--text-dark);}
.collapsible {
background-color: rgba(40, 40, 40, 0.95);
color: var(--text-light);
cursor: pointer;
padding: 15px 25px;
width: 250px;
text-align: center;
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 12px;
font-size: 18px;
font-weight: 600;
margin: 10px auto;
transition: all 0.3s ease;
display: block;}
.collapsible:hover {
background-color: rgba(60, 60, 60, 0.95);}
.collapsible.active {
background-color: var(--accent-color);
color: var(--primary-color);}

@media (max-width: 1600px) {
 

  .vpn-info {
 

    position: relative !important;
 

    top: auto !important;
 

    right: auto !important;
 

    left: auto !important;
 

    margin: 30px auto 0;
 

    width: 100%;
 

    max-width: 100%;
 

    background-color: #1e1e1e;
 

    padding: 10px 0;
 

    text-align: center;
 

    z-index: 1;
 

  }
 


 

  .vpn-info img {
 

    max-height: 120px;
 

    width: auto;
 

  }
 


 

  .vpn-info p {
 

    color: white;
 

    font-size: 14px;
 

    margin-top: 5px;
 

  }
 

}
 


 

@media (max-width: 768px) {
 

  .vpn-info {
 

    position: relative !important;
 

    top: auto !important;
 

    right: auto !important;
 

    left: auto !important;
 

    margin: 30px auto 0;
 

    width: 100%;
 

    max-width: 100%;
 

    background-color: #1e1e1e;
 

    padding: 10px 0;
 

    text-align: center;
 

    z-index: 1;
 

  }
 


 

  .vpn-info img {
 

    max-height: 120px;
 

    width: auto;
 

  }
 


 

  .vpn-info p {
 

    color: white;
 

    font-size: 14px;
 

    margin-top: 5px;
 

  }
 

}
 


 

.vpn-info {
 

  position: absolute;
 

  top: 220px;
 

  right: 25px;
 

  width: 220px;
 

  z-index: 10;
 

}
 


 

.vpn-info img {
 

  width: 220px;
 

  height: auto;
 

  max-height: 1200px;
 

  border-radius: 8px;
 

  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
 

  transition: transform 0.2s ease;
 

}
 

/* Mobile dropdown styling */
.mobile-nav .dropdown {
  position: relative;
}

.mobile-nav .dropdown-toggle {
  background: none;
  border: none;
  color: white;
  font-size: 16px;
  width: 100%;
  text-align: left;
  padding: 12px 20px;
  cursor: pointer;
}

.mobile-nav .dropdown-menu {
  display: none;
  list-style: none;
  padding-left: 0;
  background-color: #222;
}

.mobile-nav .dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  color: white;
  text-decoration: none;
}

.mobile-nav .dropdown.open .dropdown-menu {
  display: block;
}

#mobile-nav {
  display: none; /* hidden until toggled */
}

#mobile-nav.open {
  display: block;
}
 

.vpn-info img:hover {
 

  transform: translateY(-5px);
 

}

#close-nav {
position: absolute;
top: 10px;
right: 15px;
font-size: 28px;
background: none;
color: white;
border: none;
cursor: pointer;
z-index: 101;}
.content {
max-height: 0;
overflow: hidden;
transition: max-height 0.3s ease;}
body.light-theme .subtitle {
  color: rgba(0, 0, 0, 0.8);}
body.light-theme .tool-content h3 {
  color: var(--accent-color);}
body.light-theme .tool-content p {
  color: rgba(0, 0, 0, 0.8);}
.merch-button a {
background-color: #ff9800;
color: #121212;
font-weight: 600;
font-size: 14px;
padding: 8px 16px;
border-radius: 8px;
text-decoration: none;
transition: all 0.3s ease;
display: inline-block;}
.merch-button a:hover {
background-color: #e68900;
transform: translateY(-2px);
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);}
@media (max-width: 768px) {
.merch-button {
margin-right: 0;}
.theme-toggle {
  width: 30px;
  height: 30px;}
body.light-theme .tool-item {
  background-color: #ffffff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.1);}
body.light-theme .search-container input {
  background-color: #ffffff;
  color: var(--text-dark);
  border: 1px solid rgba(0, 0, 0, 0.1);}
body.light-theme .category {
  background-color: #e0e0e0;
  color: var(--text-dark);
  border: 1px solid rgba(0, 0, 0, 0.1);}
body.light-theme .theme-toggle {
  background-color: rgba(0, 0, 0, 0.1);}
body.light-theme .theme-toggle i {
  color: var(--text-dark);}
body.light-theme .username {
  color: var(--text-dark);}
body.light-theme .logo-text {
  color: var(--text-dark);}
.boxed {
  margin-top: 10px;
  margin-bottom: 10px;}
/* Ad container */
.ad-container {
  margin: 30px auto;
  max-width: 800px;
  width: 100%;
  overflow: hidden;}
/* Responsive */
@media (max-width: 992px) {
  .main-nav ul li a {
    padding: 10px 15px;
    font-size: 15px;}
.tools-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));}
@media (max-width: 768px) {
  .header-container {
    padding: 15px;
    flex-wrap: wrap;}
.hamburger-menu {
    display: flex;}
.logo-text {
    font-size: 24px;}
.logo-icon {
    height: 35px;
    width: 35px;}
.discord-button {
    margin-right: 40px;}
.theme-toggle {
    margin-left: auto;}
.nav-container {
    display: none;}
.mobile-nav {
    display: block;}
.tools-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));}
.tool-categories {
    gap: 8px;}
.category {
    font-size: 14px;
    padding: 8px 16px;}
h1 {
    font-size: 2rem;}
.subtitle {
    font-size: 1rem;}
.div1 {
    padding: 20px;}
@media (max-width: 576px) {
  .tool-categories {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 20px;
    padding-right: 20px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;}
.category {
    scroll-snap-align: start;
    flex: 0 0 auto;
    white-space: nowrap;}
.tools-grid {
    grid-template-columns: 1fr;}
.tool-item {
    margin-bottom: 15px;}
.search-container {
    width: 100%;}
.back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;}
#header-auth-slot {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;}
#header-auth-slot a,
#header-auth-slot button {
  background-color: #bb86fc;
  color: #121212;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease;}
#header-auth-slot a:hover,
#header-auth-slot button:hover {
  background-color: #a46bf9;}
}}}}
