/* Navigation Links */
.qr-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.qr-nav a {
  background-color: #b30b8e;
  color: white;
  padding: 10px 15px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.qr-nav a:hover {
  background-color: #d30f98;
}

/* QR Form Section */
.qr-section {
  display: none;
  background-color: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  margin-bottom: 30px;
}

.qr-section.active {
  display: block;
}

.qr-section h2 {
  color: #b30b8e;
  margin-bottom: 15px;
}

/* Form Styling */
.url-form-container {
  width: 100%;
  max-width: 500px;
  margin-top: 10px;
}

.url-form-container input,
.url-form-container textarea {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  margin-bottom: 12px;
  border: 2px solid #ff00f2;
  border-radius: 5px;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.url-form-container input:focus,
.url-form-container textarea:focus {
  border-color: darkgoldenrod;
  box-shadow: 0 0 5px rgb(255, 0, 106);
}

.url-form-container textarea {
  resize: vertical;
}

/* Button */
button {
  background-color: #b30b8e;
  color: white;
  padding: 12px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  width: 100%;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #d30f98;
}

/* QR Display Section */
.qr-display {
  margin-top: 30px;
  text-align: center;
}

.qr-display img {
  display: block;
  margin: 10px auto;
  width: 2.5in;
  height: 2.5in;
  
  /* New styling for border and rounding */
  padding: 15px;                 /* Creates white space around the QR code */
  background-color: #edbff7;     /* White background */
  border-radius: 12px;           /* Slight rounding of corners */
  box-shadow: 0 0 10px rgba(0,0,0,0.1);  /* Optional: soft shadow for nicer appearance */
}


.download-button {
  display: inline-block;
  background-color: #007bff;
  color: white;
  padding: 10px 15px;
  text-decoration: none;
  border-radius: 8px;
  margin-top: 15px;
  transition: background-color 0.3s ease;
}

.download-button:hover {
  background-color: #0056b3;
}

/* Responsive Flex Layout */
.container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.ads {
  width: 28%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 1in;
}

.ad img {
  width: 100%;
  max-width: 300px;
  height: auto;
  transition: transform 0.3s ease;
  transform-origin: center;
}

.ad img:hover {
  transform: scale(1.2);
}

/* Mobile Optimization */
@media (max-width: 768px) {
  .qr-nav {
    flex-direction: column;
  }

  .ads {
    width: 100%;
    margin-top: 20px;
  }

  .main-content {
    width: 100%;
  }

  .qr-display img {
    width: 80%;
    height: auto;
  }
}
