/* Reset and base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  height: 100%;
  font-family: 'Courier New', monospace; /* More readable base font */

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout container */
.container {
  display: flex;
  min-height: 100vh;
  align-items: stretch;
}

/* Sidebar */
.sidebar {
  color: #d8d6cc;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 220px;
  padding: 20px;
  z-index: 5;
  text-align: left;
  box-shadow: 10px 0 16px -4px #2f3a1a; /* Dark greenish shadow */
  background-color: #2f3a1a; /* Dark olive green */
  font-size: 92.5%;
  border-right: 3px solid #8fbf3f; /* sickly green highlight */
  font-family: 'Special Elite', cursive; /* Sidebar font */
}

.sidebar h2 {
  margin-bottom: 20px;
  text-align: center;
  font-size: 20px;
  color: #d8c45c; /* Muted yellow */
  font-weight: normal;
}

/* Nav links */
.nav-link {
  text-decoration: none;
  background: none;
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 10px;
  transition: background 0.3s, color 0.3s;
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: #d8d6cc;
  font-family: 'Special Elite', cursive;
}

.nav-link:hover,
.nav-link:focus-visible {
  background-color: #4b5523; /* Slightly lighter olive green */
  color: #8fbf3f; /* Sickly green accent */
  outline: none;
}

/* Main content */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;

  font-family: 'Courier New', monospace;
}

.main p, .main ul {
  font-size: 20px;
  line-height: 1.4;
}

/* Header */
.header {
  position: relative;
  width: 100%;
  padding: 8px;
  text-align: center;
  box-shadow: 0 4px 16px -4px #8fbf3f88; /* Sickly green translucent shadow */
  background-color: #3a4a1b; /* Olive green */
  color: #d8c45c; /* Muted yellow */
  font-weight: bold;
  font-family: 'Special Elite', cursive;
  z-index: 1;
}

/* Content */
.content {
  max-width: 1000px;
  margin: auto;
  flex: 1;
  padding: 30px;
  word-wrap: break-word;
}

/* Footer */
.footer {
  position: relative;
  left: 0;
  box-shadow: 0 4px 16px -4px #474a1a;
  background-color: #2f3a1a;
  color: #8fbf3f;
  bottom: 0;
  width: 100%;
  text-align: center;
  padding: 50px;
  z-index: 1;
  font-family: 'Special Elite', cursive;
}

.footer .social-links {
  margin-top: 10px;
}

.footer .social-links a {
  color: #8fbf3f;
  margin: 0 10px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer .social-links a:hover,
.footer .social-links a:focus-visible {
  color: #d8c45c;
  outline: none;
}

.dropdown {
  position: relative;
  display: inline-block;
}

/* Items */
.items {
  box-shadow: 10px 0 20px rgba(0, 255, 34, 0.1);
  background-color: #1e3826;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 16px 0;
  border-radius: 30px;
  border-right: 3px solid rgb(21, 255, 0);
  width: 240px;
}

.dropdown:hover .items,
.dropdown:focus-within .items {
  display: block;
}

.items a {
  display: block;
  padding: 10px 15px;
  color: #d8d6cc;
  text-decoration: none;
  transition: background 0.25s ease;
}

.items a:hover,
.items a:focus-visible {
  background-color: #4b5523;
  color: #d8c45c;
  outline: none;
}


.dropdown-btn, .dropdown-btn-h {
  all: unset;
  display: block;
  width: 92.5%;
  text-decoration: none;
  background: none;
  padding: 16px 16px;
  border-radius: 4px;
  margin-bottom: 10px;
  transition: background 0.3s, color 0.3s;
  cursor: pointer;
  font-family: 'Special Elite', cursive;
  font-size: 14px;
  color: #d8d6cc;
}

.dropdown-btn:hover,
.dropdown-btn:focus-visible,
.dropdown-btn-h:hover,
.dropdown-btn-h:focus-visible {
  background-color: #4b5523;
  color: #8fbf3f;
  outline: none;
}

/* Sidebar nested dropdown colors */
.sidebar .dropdown-content {
  background-color: #395019;
}

.sidebar .dropdown-content .dropdown-content {
  background-color: #4b5523;
}

.sidebar .dropdown-content .dropdown-content .dropdown-content {
  background-color: #5e6a2f;
}

.sidebar .dropdown-content .dropdown-content .dropdown-content .dropdown-content {
  background-color: #708239;
}
/* Scroll to top button */
#myBtn {
  position: fixed;
  bottom: 20px;
  right: 30px;
  z-index: 100;
  background-color: #5f5f5f;
  box-shadow: 10px 0 16px -4px #5f5f5f;
  color: white;
  border: 1px solid black;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(40px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

#myBtn.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#myBtn:hover {
  background-color: #7f7f7f;
}
/* Background */
.background {
  animation: zoomRotate 40s infinite;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/Enigmatic-Website/MEDIA/enigma.png');
  background-color: transparent;
  background-blend-mode: multiply; /* or overlay, darken, etc */
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  filter: blur(10px);
  z-index: -1;
}
.background.dark-mode {
  background-color: darkslategray;
}
/* Utility */
.show {
  display: block;
}
