﻿/* Global styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #b3b1b1;
  /* Background color */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  /* Full screen height */
  box-sizing: border-box;
}

/* First image container */
.image-container {
  width: 96px;
  height: 96px;
  overflow: hidden;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  /* Spacing between image and next content */
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* First text section */
.text-container {
  text-align: center;
  /* Center alignment */
  margin-bottom: 20px;
  /* Spacing between text and next content */
  padding: 0 15px;
  max-width: 600px;
  /* Maximum width limitation */
  width: 90%;
  /* Responsive width */
  word-wrap: break-word;
  /* Automatic line wrapping */
  word-break: break-all;
  /* Prevent words from exceeding container */
  overflow-wrap: break-word;
  /* Ensure word wrapping */
}

.text-container h1 {
  font-size: 24px;
  margin-bottom: 10px;
  color: #2c2c2c;
  font-weight: bold;
}

.text-container p {
  font-size: 16px;
  color: #2c2c2c;
  line-height: 1.8;
  font-weight: bold;
  text-align: justify;
  /* Set text justified alignment */
}

/* Button styles */
.button,
.second-button {
  width: 90%;
  /* Button width adapts to screen */
  max-width: 600px;
  margin-top: 20px;
  padding: 16px;
  font-size: 18px;
  font-weight: bold;
  background-color: white;
  color: #333;
  border: 2px solid #b3b1b1;
  border-radius: 30px;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.button:hover,
.second-button:hover {
  background-color: #b3b1b1;
  color: white;
  border-color: white;
}

.button:active,
.second-button:active {
  background-color: #b3b1b1;
  color: white;
  border-color: white;
}

/* Second image container */
.second-image-container {
  margin-top: 30px;
  position: relative;
  width: 90%;
  /* Responsive width */
  max-width: 600px;
}

.second-image-container img {
  width: 100%;
  height: auto;
  cursor: pointer;
  border-radius: 10px;
}

.second-text-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  font-size: 16px;
  font-weight: bold;
  text-align: left;
  padding: 10px;
  box-sizing: border-box;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

/* Second button style (with icon, text centered) */
.second-button {
  display: flex;
  align-items: center;
  justify-content: center;
  /* Center align icon and text */
  gap: 10px;
  /* Spacing between icon and text */
  animation: pulse 2s infinite;
}

.second-button img {
  width: 50px;
  /* Larger image, suitable for small screens */
  height: 50px;
  border-radius: 50%;
  /* Circular image */
  object-fit: cover;
}

/* Breathing animation */
@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

/* Responsive layout optimization */
@media (max-width: 768px) {
  .text-container h1 {
    font-size: 20px;
  }

  .text-container p {
    font-size: 14px;
  }

  .button,
  .second-button {
    font-size: 16px;
    padding: 14px;
  }

  .second-button img {
    width: 40px;
    height: 40px;
  }
}
