html {
  block-size: 100%;
  inline-size: 100%;
}

body {
  min-block-size: 100%;
  min-inline-size: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 5vw 5vw 5vw 5vw; /* Equal padding on all sides */
  font-family: system-ui, sans-serif;
  background-image: url('/meltemi.dca93355.jpg');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover; /* Full-page background */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

.card {
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.3); /* Transparent background */
  padding: 20px; /* Slightly reduced padding */
  max-width: 90vw; /* Adjusts based on viewport width */
  width: 80%; /* Allows text to extend left and right */
  box-shadow: 0 5px 24px 0 hsla(0, 0%, 0%, 0.2);
  overflow-y: auto;
  max-height: 80vh; /* Reduced max-height to give space above and below */
  backdrop-filter: blur(8px); /* Slight blur for readability */
-webkit-backdrop-filter: blur(10px);  /* Safari support */
}

.card__image {
  display: block;
  margin: 20px auto;
  max-width: 128px;
}

.card__title {
  font-weight: bold;
  text-align: center;
  font-size: 20px; /* Reduced font size */
  margin-bottom: 14px;
}

.card p {
  font-size: 16px; /* Reduced font size for less scrolling */
  line-height: 1.4; /* Adjusted line spacing */
  text-align: center; /* Centered text for a cleaner look */
}

.social {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.social > * + * {
  margin-left: 8px;
}

.social-item {
  flex: 1;
  height: 40px;
  max-width: 40px;
  background-color: hsl(0, 0%, 94%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

.social-item:hover img {
  opacity: 0.5;
}

.social-item img {
  width: auto;
  height: 20px;
  transition: opacity 0.3s ease-in-out;
}
