/* GENERAL FORMATTING */
body {
  font-family: 'Courier', monospace;
  background-color: black;
  color: white;
  margin: 0;
  padding: 0;
}

footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 10px 0;
}

.greentitle {
  color: #00ff88;
}

.linkformat {
  color: #ffffff; 
  font-family: Arial, sans-serif; 
  font-size: 1.1rem; /* Slightly larger text */
  margin: 15px 0; /* Spacing around */
  padding: 10px; /* Inner spacing */
}

.linkformat a {
  color: #00ff88; /* Bright accent color for contrast */
  text-decoration: none; /* Remove default underline */
  border-bottom: 1px solid rgba(0, 255, 136, 0.3); /* Subtle underline */
  transition: all 0.3s ease; /* Smooth hover effect */
}

.linkformat a:hover {
  color: #ffffff; /* White on hover */
  border-bottom-color: #00ff88; /* Bright underline on hover */
}

.image-container {
  width: 80%;
  max-width: 400px;
  margin: 20px auto;
  text-align: center;
}

.responsive-image {
  width: 100%;
  height: auto;
  border: 3px solid white;
  border-radius: 8px;
}

/* Flexbox container */
.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.greeting-container {
  display: flex;
  flex-direction: column; /* Stack header items vertically on small screens */
  align-items: center;
  justify-content: space-between;
  padding: 15px;
}

/* NEW: Title-like container for greeting text */
.greeting-title-container {
  text-align: center;
  margin: 30px 0;
  padding: 20px;
  width: 100%;
  max-width: 1000px; /* Increased from 800px to allow more space */
}

.greeting-title {
  margin: 15px 0;
  font-weight: 700;
  color: #00ff88;
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
  letter-spacing: 1px;
  white-space: nowrap; /* Prevent text from wrapping */
}

/* Menu Formatting */
.menu {
  display: flex;
  flex-direction: column; /* Stack menu items vertically on small screens */
  gap: 10px;
  padding: 20px;
  margin: 0;
  list-style-type: none;
}

.menu li {
  text-align: center;
  background-color: #202020;
  border-radius: 4px;
}

.menu li a {
  display: block;
  padding: 30px;
  color: white;
  text-decoration: none;
  font-size: 18px; /* Smaller font size for mobile */
  font-weight: 800;
  transition: background-color 0.3s, color 0.3s;
}

.menu li a:hover {
  background-color: #0056b3;
}

section {
  padding: 2%;
}

/* Mobile view */
@media (max-width: 599px) {
  .greeting-container {
    margin: 15px;
  }
  
  .greeting-title-container {
    margin: 15px 0;
    padding: 15px;
  }
  
  .greeting-title {
    font-size: 1.5rem;
    white-space: normal; /* Allow wrapping on mobile */
  }
}

/* Tablet view */
@media (min-width: 600px) {
  .greeting-container {
    flex-direction: column; 
  }

  .menu {
    flex-direction: row;
    gap: 20px;
  }

  .menu li a {
    font-size: 20px; /* Slightly larger font size for tablets */
  }

  .contact {
    margin: 5%;
  }

  .greeting-container {
    margin-top: 8%;
    padding: 30px 0;
    flex-direction: column;
  }
  
  .greeting-title {
    font-size: 2rem;
    white-space: normal; /* Allow wrapping on tablet if needed */
  }
}

/* Desktop view */
@media (min-width: 1024px) {
  .greeting-container {
    margin-top: 5%;
    padding: 30px 5%; /* Reduced padding to allow more space */
    flex-direction: column;
  }

  .menu {
    justify-content: center;
  }

  .menu li a {
    font-size: 24px;
  }

  .image-container {
    flex: 1;
  }

  .contact {
    margin: 5% 15%;
  }
  
  .greeting-title-container {
    margin: 40px 0;
  }
  
  /* Adjusted title size for desktop to prevent wrapping */
  .greeting-title {
    font-size: 2.5rem; /* Reduced from 2.8rem to prevent wrapping */
    margin: 25px 0;
    letter-spacing: 1px; /* Reduced from 2px to save space */
    white-space: nowrap; /* Prevent text from wrapping */
  }
}