body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: #333;
  background: #fff;
  font-size: 1rem;
}

html {
  font-size: 16px;
}

a {
  font-size: 1rem;
  color: #007BFF;
  text-decoration: none;
}

nav {
  background-color: #f2f2f2;
  padding: 1rem;
  text-align: center;
}

nav ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

nav ul li {
  display: inline;
  margin: 0;
}

nav ul li a,
nav a {
  text-decoration: none;
  color: #333;
  display: inline-block;
  padding: 0.5em 1em;
}

main {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

img {
  max-width: 200px;
  width: auto;
  max-height: 300px;
  height: auto;
  float: right;
}

footer {
  text-align: center;
  padding: 1rem;
  background-color: #f2f2f2;
  margin-top: 2rem;
}

h1, h2, h3 {
  font-size: 1.2em;
}

.social-media ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-media li {
  display: inline-block;
}

.social-media img {
  width: 40px;
  height: auto;
  transition: transform 0.2s ease;
}

.social-media img:hover {
  transform: scale(1.1);
}

.HHLogo img {
  float: left; 
  margin-left: 2px; 
  max-height: 40px;
}

.HHLogo img:hover {
  transform: scale(1.05);
}

.content-block {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem;
}

footer a,
footer p {
  font-size: 1.1rem;
}

@media (max-width: 480px) {
  body {
    font-size: 1.05rem;
  }

  a {
    font-size: 1.1rem;
  }

  .social-media img {
    width: 36px;
  }
}


/* Product links styling */
.product-links {
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 1.5rem;
}

.product-links a {
  color: #007BFF;
  text-decoration: none;
  margin: 0 0.3em;
}

/* Enhance product-links font size on small screens */
@media (max-width: 480px) {
  .product-links {
    font-size: 1.3rem;
  }
}


/* Final override to ensure product links render correctly */
.product-links {
  text-align: center;
  margin-bottom: 1.5rem;
}

.product-links a {
  font-size: 1.3rem !important;
  font-weight: bold;
  color: #007BFF !important;
  text-decoration: none;
  margin: 0 0.3em;
}


/* Remove float on small screens for better layout */
@media (max-width: 350px) {
  .youtube-thumbnail {
    float: none;
    display: block;
    margin: 1rem auto;
  }
}

/* YouTube thumbnail styling with play button and tooltip */
.youtube-thumbnail {
  position: relative;
  display: inline-block;
  float: right;
}

.youtube-thumbnail img {
  display: block;
}

.youtube-thumbnail::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  background: url('https://img.icons8.com/ios-filled/100/play-button-circled.png') no-repeat center center;
  background-size: contain;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.youtube-thumbnail:hover::before {
  content: 'Watch on YouTube';
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.85rem;
  white-space: nowrap;
  z-index: 10;
}

/* Mobile override: remove float and center the thumbnail */
@media (max-width: 350px) {
  .youtube-thumbnail {
    float: none;
    display: block;
    margin: 1rem auto;
  }
}

@media (max-width: 350px) {
  .youtube-thumbnail {
    float: none;
    display: flex;
    justify-content: center;
    margin: 1rem 0;
  }

  .youtube-thumbnail img {
    display: block;
    margin: 0;
  }
}


/* Flexbox layout for product section with consistent image alignment */
.product-block {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2em;
  margin: 2em 0;
  flex-wrap: wrap;
}

.product-text {
  flex: 1 1 60%;
  min-width: 280px;
}

.product-image {
  flex: 0 0 300px;
  text-align: center;
}

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

.buttons {
  margin-top: 10px;
}

.buttons img {
  display: inline-block;
  margin: 5px;
}

/* Responsive fallback */
@media (max-width: 768px) {
  .product-block {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-image {
    align-self: center;
    margin-bottom: 1rem;
  }
}

/* Ensure image and buttons are vertically stacked and centered */
.product-image > div {
  display: flex;
  flex-direction: column;
  align-items: center;
}
