.qr-result {
  display: none; 
  max-width: 600px;
  margin: 1rem auto; 
  text-align: center;
}

.qr-result h2 {
  font-size: 2.5rem;
  color: #0F2BC9;
  margin-bottom: 1rem;
  font-weight: 500;
}

#qr-box {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto; 
  max-width: 500px;
  width: 100%;
  background: #f9f9f9;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

#qr-preview img {
  width: 400px;  
  height: auto;  
  max-width: 100%; 
}

#download-qr {
  display: inline-block;
  margin-top: 1rem; 
  padding: 1rem 1.5rem;
  font-size: 1rem;
  background: linear-gradient(135deg, #0F2BC9 0%, #667eea 100%);
  color: #fff;
  font-family: "Roboto Slab", serif;
  font-weight: 500;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

#download-qr:hover {
  transform: translateY(1px);
}



/***** Media Query *****/
@media (max-width: 768px) {
 #qr-preview img {
  width: 450px;  
  height: auto;  
  max-width: 100%; 
}

.qr-result {
  display: none; 
  max-width: 480px;
}

#qr-box {
  max-width: 480px;
  padding: 2rem;
}
}

/***** Large smartphones & phablets (≤617px) ******/
@media (max-width: 617px) {
.qr-result {
  display: none; 
  max-width: 460px;
}

 #qr-preview img {
  width: 430px;  
  height: auto;  
  max-width: 100%; 
}

.qr-result h2 {
  font-size: 2.2rem;
}

#qr-box {
  max-width: 460px;
  padding: 2rem;
}


#download-qr {
  padding: 1rem 1.5rem;
  font-size: 0.9rem;
}
}

/***** Small smartphones (≤450px) ******/
@media (max-width: 450px) {
.qr-result {
  display: none; 
  max-width: 350px;
}

 #qr-preview img {
  width: 320px;  
  height: auto;  
  max-width: 100%; 
}

.qr-result h2 {
  font-size: 2rem;
}

#qr-box {
  max-width: 350px;
  padding: 2rem;
}


#download-qr {
  padding: 0.8rem 1.5rem;
  font-size: 0.8rem;
}
}

/***** Extra small phones & older devices (≤365px) ******/
@media (max-width: 365px) {
.qr-result {
  display: none; 
  max-width: 300px;
}

 #qr-preview img {
  width: 280px;  
  height: auto;  
  max-width: 100%; 
}

.qr-result h2 {
  font-size: 1.4rem;
}

#qr-box {
  max-width: 300px;
  padding: 2rem;
}


#download-qr {
  padding: 0.7rem 1.5rem;
  font-size: 0.7rem;
}
}

