/* Define theme variables */
:root {
  --background-color: #0d0d0d;
  --text-color: #e0e0e0;
  --highlight-color: #ffcc00;
  --hover-highlight-color: #e6b800;
  --border-color: #ffcc00;
  --header-height: 60px;
  --font-family: 'Orbitron', sans-serif;
  --transition-speed: 0.3s;
}

/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  background-color: var(--background-color);
  color: var(--text-color);
  overflow-x: hidden;
  line-height: 1.6;
  padding-top: var(--header-height); /* Ensure content is not hidden behind the header */
}

/* Header Styling */
header {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--header-height);
  background: #121212;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  z-index: 1000;
  border-bottom: 2px solid var(--border-color);
}

header .mezhona-title {
  font-size: 2rem;
  color: var(--highlight-color);
  text-decoration: none;
  display: inline-block;
  transition: color var(--transition-speed);
}

header .mezhona-title:hover {
  color: var(--hover-highlight-color);
}

/* Dropdown Tag */
.dropdown-tag {
  position: absolute;
  top: -50px; /* Start off-screen */
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--highlight-color);
  color: var(--background-color);
  font-size: 1.2rem;
  font-weight: bold;
  padding: 5px 15px;
  border-radius: 5px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  opacity: 0; /* Initially hidden */
  transition: top 1s ease-out, opacity 0.5s ease-in;
}

.dropdown-tag.visible {
  top: 10px; /* Drop to the visible position */
  opacity: 1;
}

.close-tag {
  position: absolute;
  top: 5px;
  right: 5px;
  background-color: #121212;
  color: var(--highlight-color);
  border: 2px solid var(--highlight-color);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-tag:hover {
  background-color: var(--highlight-color);
  color: #121212;
}

/* Navigation Menu */
.nav-list {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-list li a {
  text-decoration: none;
  color: var(--text-color);
  font-size: 1rem;
  transition: color var(--transition-speed);
}

.nav-list li a:hover {
  color: var(--highlight-color);
}

/* Dropdown Navigation for Small Screens */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--highlight-color);
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-list {
    display: none;
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    right: 20px;
    background-color: #121212;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    padding: 10px;
  }

  .nav-list.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }
}

/* Mode Toggle Icon */
.mode-toggle {
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--highlight-color);
  background: none;
  border: none;
  outline: none;
  margin-right: 20px;
  transition: color var(--transition-speed);
  display: inline-block;
}

.mode-toggle svg {
  width: 30px;
  height: 30px;
  display: block;
}

/* Stuff Container Grid */
.stuff-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columns per row */
  gap: 20px; /* Space between the items */
  margin-top: 80px; /* Add margin to prevent overlap with header */
  margin-bottom: 40px;
}

.round-container {
  background-color: var(--highlight-color);
  color: var(--background-color);
  padding: 20px;
  text-align: center;
  border-radius: 15px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.round-container:hover {
  background-color: var(--hover-highlight-color);
}

.stuff-container .round-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 150px;
}

/* Expand the clicked container */
.round-container.expanded {
  grid-column: span 3; /* Make the container span all 3 columns */
  height: 300px; /* Adjust the height when expanded */
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Buttons and Links */
button, .close-tag, .mode-toggle {
  background-color: var(--background-color);
  color: var(--highlight-color);
  border: 2px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  transition: background-color var(--transition-speed), color var(--transition-speed);
}

button:hover, .close-tag:hover, .mode-toggle:hover {
  background-color: var(--highlight-color);
  color: var(--background-color);
}

/* Footer */
footer {
  position: fixed;
  bottom: 0;
  width: 100%;
}

.footer-bar {
  height: 2cm;
  background: linear-gradient(to top, #000, transparent);
}

/* General Containers */
.container {
  padding: 20px;
  margin: 20px auto;
  background-color: var(--background-color);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
}

/* Smooth Transitions */
a, button {
  transition: all var(--transition-speed);
}
