/* Overall layout resets and body styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: #fff;
  text-align: center;
  background: #000; /* fallback background color */
  background-size: cover;
  background-position: center;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Updated Quote container styling */
.quote-container {
  position: relative; /* to allow absolute positioning inside */
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.7); /* semi-transparent dark overlay */
  padding: 20px;
  border-radius: 10px;
  max-width: 90%;
  width: 600px;
  margin: 0 auto; /* Centers the container */
  text-align: center;
}

/* Style for the dynamically inserted background image */
.quote-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.7; /* Adjust opacity so text is legible */
}

/* The content container sits above the background image */
#quote-content {
  position: relative;
  z-index: 2;
}

/* Quote text styling */
.quote-text {
  font-size: 1.8em;
  margin-bottom: 10px;
  font-weight: bold;
  text-shadow: 3px 3px 4px rgba(0, 0, 0, 0.7);
}

/* Quote author styling */
.quote-author {
  font-size: 1.2em;
  font-style: italic;
  text-shadow: 3px 3px 4px rgba(0, 0, 0, 0.7);
}

/* Social share container styles */
.share-container {
  display: flex;
  flex-direction: column; /* Ensures children stack vertically */
  align-items: center;    /* Centers content horizontally */
  background: rgba(0, 0, 0, 0.7);
  padding: 20px;
  border-radius: 10px;
  max-width: 90%;
  width: 600px;
  margin: 2% auto; /* Centers the container */
  text-align: center;
}

.share-text {
  font-size: 1em;
  color: #fff;
  margin-bottom: 5px;
  display: block;
}

.share-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  justify-content: center;
}

.share-buttons a {
  background-color: #444;  /* default color; we'll override per button */
  padding: 10px;
  border-radius: 50%;
  color: #fff;
  font-size: 20px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
  text-decoration: none;
}

.share-buttons a:hover {
  opacity: 0.8;
}

/* Individual branding colors for each social button */
#facebook-share { background-color: #1877f2; }
#twitter-share { background-color: #1da1f2; }
#linkedin-share { background-color: #0077b5; }
#whatsapp-share { background-color: #25D366; }

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .quote-text {
    font-size: 1.5em;
  }

  .quote-author {
    font-size: 1em;
  }
}

@media screen and (max-width: 480px) {
  .quote-text {
    font-size: 1.2em;
  }

  .quote-author {
    font-size: 0.9em;
  }
}
