/* General Body Styling */ 
body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  color: #333;
  margin: 0;
  padding: 0;
  background-color: #f9f9f9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
}

/* Header Section Styling */
.header-container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  max-width: 1200px;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
}

.header-box {
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 10px;
  flex: 9;
  padding: 20px 30px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: left;
  display: flex;
  justify-content: space-between; /* Ensures space between content and buttons */
  align-items: center;
}

.header-box h1 {
  color: #4CAF50;
  font-size: 24px;
  margin-bottom: 10px;
}

.header-box .instructions {
  font-size: 14px;
  margin-top: 10px;
}

.header-box .instructions ol {
  padding-left: 20px;
}

.header-box .instructions li {
  margin: 6px 0;
}

/* Button Container */
.button-container {
  display: flex;
  justify-content: flex-end; /* Align buttons to the right */
  gap: 10px; /* Space between buttons */
}

button {
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 14px;
  padding: 10px 20px;
  margin: 10px 0;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #45a049;
}

/* Response Section Styling */
#response {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 20px;
  max-width: 100%;
  margin: 0 auto;
}

/* Styling for Each Contact Card */
.vcard {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #ddd;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vcard:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.vcard h3 {
  margin-top: 0;
  color: #4CAF50;
  font-size: 18px;
  margin-bottom: 10px;
}

.label {
  font-weight: bold;
  color: #333;
  margin-right: 5px;
}

.vcard p {
  margin: 5px 0;
  font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
  }

  .button-container {
    flex-direction: row;
    justify-content: space-evenly;
    margin-top: 10px;
    width: 100%;
  }

  button {
    margin: 5px;
    width: auto;
  }

  #response {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 10px;
  }
}
