/* Reset basic styling */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: linear-gradient(to bottom, #f0f4f8, #d6e6f2);
  color: #333;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

h1 {
  color: #2c3e50;
  font-size: 2em;
  text-align: center;
  margin-bottom: 10px;
}

p {
  color: #34495e;
  text-align: center;
  font-size: 1em;
  margin-bottom: 20px;
  max-width: 800px;
}

/* Image and description container */
#image-description-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

#image-description-container img {
  width: 120px;
  height: 120px;
  border-radius: 10px;
  margin-bottom: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.description h3 {
  color: #2980b9;
  font-size: 1.2em;
  text-align: center;
}

.description p {
  color: #5d6d7e;
  text-align: center;
  font-size: 0.9em;
}

/* Flex row for form inputs */
.row {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 600px;
  margin-bottom: 20px;
}

.input-container {
  width: 100%;
  margin-bottom: 15px;
  text-align: center;
}

label {
  display: block;
  color: #1abc9c;
  font-weight: bold;
  font-size: 1em;
  margin-bottom: 5px;
}

input[type="text"],
input[type="file"] {
  width: 100%;
  padding: 10px;
  border: 2px solid #ddd;
  border-radius: 5px;
  font-size: 1em;
  background-color: #ffffff;
  color: #333;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Button styling with specified color gradients */
button {
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 1em;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  margin: 10px 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transition: background 0.3s;
}

button:hover {
  opacity: 0.9;
}

/* Color gradient classes */
.green-gradient {
  background: linear-gradient(to right, #27ae60, #2ecc71);
}

.gray-gradient {
  background: linear-gradient(to right, #95a5a6, #7f8c8d);
}

.blue-gradient {
  background: linear-gradient(to right, #3498db, #2980b9);
}

.orange-gradient {
  background: linear-gradient(to right, #f39c12, #e67e22);
}

.fixed-size-preview {
  width: 250px;
  height: 250px;
  margin-top: 20px;
  background: #ffffff;
  border: 2px solid #ddd;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Bottom buttons styling */
.bottom-buttons {
  display: flex;
  flex-direction: row;
  justify-content: center;
  margin-top: 20px;
}

/* Centered popup container with rounded shadow */
.popup-container {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 400px;
  background-color: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
  border-radius: 15px;
}

.popup-content {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 15px 20px rgba(0, 0, 0, 0.4); /* Rounded shadow */
  position: relative;
}

.close-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  font-size: 1.5em;
  color: #333;
  cursor: pointer;
  margin-Bottom: 20px;
}

.thank-you-image {
  width: 80px;
  margin-top: 15px;
  margin-bottom: 10px;
}

.download-btn {
  background: linear-gradient(to right, #8e44ad, #9b59b6);
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.download-btn:hover {
  background: linear-gradient(to right, #9b59b6, #8e44ad);
}

/* Responsive adjustments */
@media (min-width: 601px) {
  /* Desktop styling */
  body {
    padding: 40px;
  }

  .row {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }

  .input-container {
    width: 48%;
  }

  .fixed-size-preview {
    width: 300px;
    height: 300px;
  }

  #image-description-container img {
    width: 150px;
    height: 150px;
  }
}

@media (max-width: 600px) {
  /* Mobile styling */
  body {
    padding: 20px;
  }

  .row {
    flex-direction: column;
    align-items: center;
  }

  .input-container {
    width: 100%;
  }

  h1 {
    font-size: 1.8em;
  }

  p {
    font-size: 0.9em;
  }

  .popup-content {
    width: 90%;
    max-width: none;
  }
}
