:root {
  --bg-color: #121212;
  --text-color: #00ff99; /* Neon Green */
  --card-bg: #222;
  --card-border: #00ff99;
  --button-bg: #00ff99;
  --button-text: #121212;
}

body {
  font-family: 'Consolas', 'Courier New', monospace;
  background-color: var(--bg-color);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

header {
  text-align: center;
  padding: 40px 20px 20px;
  width: 100%;
  box-shadow: 0 4px 8px rgba(0, 255, 153, 0.2);
  margin-bottom: 20px;
}

h1 {
  font-size: 3em;
  text-shadow: 0 0 10px var(--text-color);
}

p {
  font-style: italic;
  color: #aaa;
}

#tips-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 90%;
  max-width: 700px;
  padding: 20px;
}

.tip-card {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 5px;
  padding: 15px;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  box-shadow: 0 0 5px rgba(0, 255, 153, 0.4);
}

.tip-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 15px var(--card-border);
}

.tip-text {
  display: block;
  font-size: 1.1em;
}

/* Remove the existing margin from the button and center the main content */
main {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Add padding to the bottom of main to prevent the content 
     from hiding underneath the fixed button */
  padding-bottom: 100px; /* Give enough space for the button height + margin */
}

/* --- Pin the Button to the Bottom of the Viewport --- */
#add-tip-btn {
  /* 1. Set the fixed position */
  position: fixed; 
  
  /* 2. Pin it to the bottom and center it horizontally */
  bottom: 20px; /* 20px up from the very bottom */
  left: 50%; /* Start positioning from the center */
  transform: translateX(-50%); /* Shift it left by half its own width to center it */

  /* 3. Keep existing styles */
  background-color: var(--button-bg);
  color: var(--button-text);
  border: none;
  padding: 15px 30px;
  margin: 0; /* Important: Clear old margins */
  border-radius: 50px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.1s;
  box-shadow: 0 0 10px var(--button-bg);
  
  /* Ensure it sits above other content */
  z-index: 1000; 
}

#add-tip-btn:hover {
  background-color: #66ffc2;
  transform: translateX(-50%) scale(1.05); /* Maintain center alignment */
}

#add-tip-btn:active {
  transform: translateX(-50%) scale(0.98); /* Maintain center alignment */
}