@font-face {
  font-family: "Verdana";
  src: url("/fonts/link");
}

:root {
  --bg-color: #181616;
  --base-color: #faf4ed;
  --base-variant: #48201c;
  --text-color: #2f100a;
  --title-text: #faf4ed;
  --accent-color: #66271a;
  --base-border: #bfb5a3;
  --variant-border: #180704;
  --hover-color: #331613;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--bg-color);
  background-attachment: fixed;
  color: var(--text-color);
  font-family: Verdana;
  font-size: 15px;
  cursor: url('/assets/images/cursor.png'), auto;
}
  
a {
  color: var(--accent-color);
  cursor: url('/assets/images/cursor.png'), pointer;
  text-decoration: underline;
  font-weight: bold;
}

a:hover {
  color: #873524;
  cursor: url('/assets/images/cursor.png'), pointer;
}

strong {
  color: var(--accent-color);
}

hr {
  border: none;
  height: 3px;
  background-color: var(--base-border);
}

h3 {
  color: var(--base-variant);
}
  
.title {
  font-family: "Verdana";
  font-size: 1.5em;
  border-radius: 0em 0em 0.5em 0.5em;
}
  
.wrapper {
  margin-top: 30px;
  width: 900px;
  justify-content: center;
  display: flex;
  align-items: center;
}

.footer, .title, .box {
  margin-top: 15px;
}

.main {
  column-gap: 15px;
}
  
.footer {
  margin-bottom: 25px;
}

.box {
  border: var(--base-border) 3px solid;
  border-radius: 0.5em;
  background: var(--base-color);
}

.titlebox {
  color: var(--title-text);
  background: var(--base-variant);
  border: var(--variant-border) 3px solid;
  border-bottom: none;
  border-bottom-style: none;
  border-radius: 0.5em 0.5em 0em 0em;
}

.navbar {
  font-family: Verdana;
  font-size: 1.17em;
  display: flex;
  justify-content: center;
  text-align: center;
  background: var(--base-variant);
  border: var(--variant-border) 3px solid;
  border-radius: 0em 0em 0.5em 0.5em;
}

.navbar ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex; /* Aligns main menu items horizontally */
}

.navbar a {
  display: block;
  color: var(--title-text);
  text-align: center;
  padding: 14px 20px;
  text-decoration: none;
}

.navbar a:hover {
  background-color: var(--hover-color);
}

/* 2. Position Anchor for Dropdowns */
.navbar li {
  position: relative; /* Crucial: Keeps child submenus anchored to this item */
}

/* 3. First-Level Dropdown Container (Hidden by default) */
.navbar ul {
  class: "dropdown"
  /* Handled by standard child selectors below */
}
    
.navbar li ul {
  display: none;
  position: absolute;
  top: 100%; /* Positions it directly below the main nav bar */
  left: 0;
  background-color: var(--base-variant);
  min-width: 250px;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
}

/* First-Level Dropdown Links Style */
.navbar li ul a {
  color: var(--title-text);
  padding: 12px 16px;
  text-align: left;
}

.navbar li ul a:hover {
  background-color: var(--hover-color);
}

/* 4. Second-Level Subsection (Nested Dropdowns) */
.navbar li ul li ul {
  top: 0;
  left: 100%; /* Positions the subsection to the right of the first dropdown */
}

/* 5. Third-Level Subsection (Nested Dropdowns) */
.navbar li ul li ul li ul {
  top: 0;
  left: 100%; /* Positions the subsection to the right of the first dropdown */
}

/* 6. Hover Triggers to Reveal Lists */
.navbar li:hover > ul {
  display: block; /* Shows the immediate child list on hover */
}