body, html {
  background-color: #171717;
  font-family: verdana;
  color: white;
  overflow-x: hidden;
}

@keyframes fadeIn {
  from { 
      opacity: 0;
  }
  to { 
      opacity: 1;
  }
}

a {
  color: white;
}

.center {
  background-color: #171717;
  display: flex; /* Add flex display to center the chat-container */
  flex-direction: column; /* Stack children vertically */
  justify-content: center; /* Vertically center the chat-container */
  align-items: center; /* Horizontally center the chat-container */
  text-align: center;
}

.custom-button {
  border: 1px solid #333;
  border-radius: 48px;
  padding: 12px 16px;
  margin: 3px;
  text-align: center;
  color: white;
  cursor: pointer;
  text-decoration: none;
}

.custom-button:hover {
  background-color: rgba(255, 255, 255, 0.1); /* Subtle highlight on hover */
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  width: 100%;
  max-width: 180vh;
  margin: 0 auto;
  overflow-x: hidden;
  gap: 20px;
  opacity: 0; /* Start hidden */
  animation: fadeIn 1s ease-out forwards; /* 1s duration, ease-out timing, stays visible at end */
}

.grid-item {
  background-color: #171717;
  width: 100%;
  min-height: 300px;
  aspect-ratio: 1 / 1;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.text-content {
  padding: 20px;
  color: white;
  font-family: verdana;
  max-width: 80%;
}

.text-content p {
  line-height: 1.6;
  margin-bottom: 15px;
}

.text-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0));
}

.text-overlay h2 {
  margin: 0;
  color: white;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.image-content {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

/* For mobile devices */
@media (max-width: 768px) {
  .grid-container {
    grid-template-columns: 100%;
    max-width: 100%;
    gap: 15px; /* You can adjust this value for mobile */
  }
  
  .grid-item {
    width: 100%;
    min-height: 320px; /* Slightly larger minimum for mobile */
    aspect-ratio: 1 / 1;
  }
}

/* Menu Styling */
.menu {
  display: none; /* Hidden by default */
  width: 100%;
  max-width: 18.75rem;
  margin: 0 auto;
  text-align: center;
}

/* This class will be toggled via JavaScript */
.menu.visible {
  display: block;
}

/* Hamburger Menu Button Styling */
.hamburger-menu-button {
  background-color: transparent;
  border: 1px solid #333;
  border-radius: 2rem;
  padding: 0.75rem;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 3.5rem;
  height: 3.5rem;
  transition: background-color 0.2s;
}
.hamburger-menu-button svg {
  width: 1.5rem;
  height: 1.5rem;
}
.hamburger-menu-button:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Make the button container consistent with other elements */
.input-container {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 18.75rem;
  margin: 0.5rem auto;
}

/* Disable hover effects on touch devices */
@media (hover: none) {
  .hamburger-menu-button:hover {
    background-color: transparent !important;
  }
}
.menu a.custom-button {
  display: inline-block;
  width: auto;
  margin-top: 0.5rem;
}