/* AIDAN BEATTIE Heading & TOP BAR */

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  background-color: #fefcf8;
  color: #111;
}

/* Navbar Container (does not control layout now, just holds elements) */
.navbar {
  position: relative;
  height: 60px; /* Ensure space under the fixed items */
}

/* Fixed Name in Top-Left */
.name {
  position: fixed;
  top: 20px;
  left: 40px;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 1px;
  color: #000;
  z-index: 1000;
}

.name a:link,
.name a:visited,
.name a:hover,
.name a:active {
  text-decoration: none !important;
  color: #000 !important;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 1px;
  font-family: 'Inter', sans-serif;
}

.name a:hover {
  opacity: 0.7;
}

/* Fixed Menu in Top-Right */
.menu {
  position: fixed;
  top: 20px;
  right: 40px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.menu a {
  text-decoration: none;
  color: #000;
  font-size: 1rem;
  transition: opacity 0.2s ease;
}

.menu a:hover {
  opacity: 0.6;
}

/* Page Content */
.content {
  padding: 40px;
  max-width: 800px;
  margin: 0 auto;
}

.link-list {
  list-style: none;
  padding-left: 0;
}

.link-list li {
  margin-bottom: 10px;
}

.link-list a {
  text-decoration: none;
  color: #007BFF;
  font-weight: 500;
}

.link-list a:hover {
  text-decoration: underline;
}

/* Dropdown Menu Styles */
.dropdown {
  position: relative;
  display: inline-block;
  text-align: center;
}

.dropdown-label {
  cursor: pointer;
  color: #000;
  font-size: 1rem;
  display: inline-block;
}

.dropdown-content {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 10px);
  padding: 4px 0;
  z-index: 999;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dropdown-content a {
  padding: 2px 0;
  margin: 2px 0;
  text-decoration: none;
  color: #000;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.2;
}

.dropdown-content a:hover {
  opacity: 0.6;
}

.dropdown:hover .dropdown-content {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}



/* Barbell Calculator */
/* ========== Barbell Calculator Styling ========== */

.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
}

h1 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

label {
  display: block;
  margin: 5px 0;
  font-size: 0.95rem;
}

input[type="number"] {
  width: 60px;
  padding: 4px;
  margin-left: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.barbell-btn {
  margin: 4px;
  padding: 8px 14px;
  font-size: 0.9rem;
  background-color: #f3f3f3;
  border: 1px solid #ccc;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.barbell-btn:hover {
  background-color: #e0e0e0;
}

.barbell-btn.selected {
  background-color: #000;
  color: #fff;
  border-color: #000;
}

/* Button row */
#calculate-btn, #reset-btn {
  padding: 10px 18px;
  margin: 10px 5px;
  border: none;
  background-color: #000;
  color: #fff;
  font-size: 0.95rem;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

#calculate-btn:hover,
#reset-btn:hover {
  opacity: 0.7;
}

/* Output text */
#total-weight {
  margin-top: 20px;
  font-weight: 700;
  font-size: 1.1rem;
}

/* Barbell visualization */
#barbell-visual {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.plate-stack {
  display: flex;
  flex-direction: row-reverse;
  gap: 4px;
}

.plate {
  background-color: #333;
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  min-width: 30px;
  text-align: center;
}

.bar {
  width: 120px;
  height: 8px;
  background-color: #aaa;
  border-radius: 4px;
}

#barbell-lbs p,
#barbell-kg p {
  text-align: center;
}

#barbell-lbs,
#barbell-kg {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#barbell-lbs button,
#barbell-kg button {
  margin: 5px;
}

#barbell-lbs .barbell-btn,
#barbell-kg .barbell-btn {
  display: inline-block;
}

#barbell-lbs p,
#barbell-kg p {
  margin-bottom: 10px;
}

/* NEW: group buttons horizontally */
#barbell-lbs .barbell-options,
#barbell-kg .barbell-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

