/* General styles */
* {
  box-sizing: border-box; /* Ensures padding and border are included in width */
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f9f9f9;
  min-height: 100vh; /* Ensure the body takes full height if needed */
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column; /* Allow vertical stacking */
  padding: 20px; /* Adds padding to prevent content from touching screen edges */
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%; /* Ensure it spans the entire width */
}

.links-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px; /* Adds space between the boxes */
  flex-wrap: wrap; /* Allows the boxes to wrap if necessary */
  max-width: 100%; /* Prevent overflow */
}

.link-box {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  padding: 20px;
  text-align: center;
  min-width: 250px;
  max-width: 350px;
  width: 100%; /* Ensure boxes take full width in responsive */
}

.logo {
  width: 50px;
  height: 50px;
}

.box-header {
  display: flex;
  flex-direction: column;
  align-items: center;
}

h2 {
  margin: 10px 0;
}

p {
  color: #555;
}

/* Button styling for links */
a {
  display: inline-block;
  padding: 10px 20px;
  background-color: #0073b1; /* LinkedIn blue, can be customized for each platform */
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  width: 100%; /* Full width button */
  text-align: center;
  box-sizing: border-box;
  transition: background-color 0.3s ease;
}

a:hover {
  background-color: #005582; /* Darker shade on hover */
}

/* Media Queries for Mobile Devices */
@media (max-width: 768px) {
  body {
      padding: 20px;
      height: auto; /* Allow content to naturally fill the screen */
  }

  .links-container {
      flex-direction: column; /* Stack boxes vertically */
      align-items: center;
  }

  .link-box {
      width: 100%;
      margin: 10px 0;
      max-width: 90%; /* Avoid overflow */
  }

  a {
      width: 100%;
      text-align: center;
  }
}

@media (max-width: 480px) {
  .link-box {
      padding: 15px;
      margin: 10px 0;
  }

  .logo {
      width: 40px;
      height: 40px;
  }

  h2 {
      font-size: 1.5em;
  }

  p {
      font-size: 1em;
  }

  a {
      padding: 10px 15px; /* Adjust button padding for small screens */
      width: 100%; /* Ensure button is full width */
  }
}
