/* 1. RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  width: 100vw;
  min-height: 100vh;
  background-color: black;
  color: whitesmoke;
  font-family: "Sometype Mono", monospace;
  /* This centers the menu on the screen */
  display: flex;
  justify-content: center;
  align-items: center; 
  font-size: 1.3rem;
}

.flex-cont {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 500px; /* Slimmer for a better look */
  padding: 20px;
}

.centered-text {
  text-align: center;
  color: whitesmoke;
  margin-bottom: 30px;
}

/* 2. BUTTONS (Fixed Height) */
.flex-cont > a, #about-trigger, #poetry-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 54px; /* Fixed height for a cleaner look */
  margin: 5px 0;
  background-color: whitesmoke;
  color: black;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s ease;
  cursor: pointer;
}

.flex-cont a:hover, #about-trigger:hover, #poetry-trigger:hover {
  background-color: #FF3131;
  color: whitesmoke;
}

/* 3. FLUID EXPANSION */
.expand-container {
  display: flex;
  flex-direction: column;
}

.hidden-text {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.05);
  margin: 0;
  border-radius: 8px;
}

.hidden-text.is-open {
  grid-template-rows: 1fr;
  margin-bottom: 10px;
}

.hidden-text-inner {
  min-height: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #ccc;
}

.hidden-text.is-open .hidden-text-inner {
  opacity: 1;
  padding: 20px;
}

/* 4. POETRY SUB-MENU */
.sub-menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.inner-link {
  background: none !important;
  color: #FF3131; !important;
  justify-content: flex-start !important;
  height: auto !important; /* Overrides the 54px for sub-links */
  padding: 0 !important;
  font-size: 1.15rem !important;

}

.inner-link:hover {
  text-decoration: underline;
}