/* Base styles */
body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background-color: #81a097;
    padding: 20px;
    box-sizing: border-box;
}

.container {
    text-align: center;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    max-width: 90%;
    width: 400px;
}

/* QR Code styles */
#qr-code {
    margin: 4px auto 10px auto;
    max-width: 100%;
    /*height: auto;*/
}

canvas {
    max-width: 100%;
    height: auto;
    padding-bottom: 4px;
}

/* Form controls */
.controls {
    margin-top: 20px;
}

.controls label,
.controls input,
.controls select {
    margin: 7px 0;
    box-sizing: border-box;
    /*display: block;*/
    /*width: 100%;*/
}

#qr-text {
    text-transform: lowercase;
}

/* Slider styles */
.quality-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-top: 5px;
}

#pixel-size-value {
    font-weight: bold;
    align-self: flex-end;
}

/* Button styles */
#generate-btn,
#download-png,
#download-svg,
#download-pdf {
    background: linear-gradient(45deg, #81a097, #819c97);
    border: none;
    border-radius: 50px;
    color: white;
    cursor: pointer;
    font-weight: bold;
    padding: 10px 15px;
    text-align: center;
    text-decoration: none;
 /*   
    display: inline-block;
    margin: 5px;
    width: calc(100% - 10px);
    max-width: 200px;
    transition: background 0.3s ease, transform 0.3s ease;
*/
}

    .gen-qr {
        margin: 20px 0;
    }

#generate-btn:hover,
#download-png:hover,
#download-svg:hover,
#download-pdf:hover {
    background: linear-gradient(45deg, #819c97, #81a097);
    transform: scale(1.05);
}

#generate-btn:active,
#download-png:active,
#download-svg:active,
#download-pdf:active {
    transform: scale(0.95);
}

/* Advanced options styles */
#pixel-control,
#adv-options {
    box-shadow: 0 0 1px rgba(0,0,0,.1), 0 0 5px rgba(0,0,0,.1);
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 10px;
	font-size: 12px;
}

#adv-options {
    text-align: left;
}

/* Header image */
.header-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
}

/* Typography */
.container h1 {
    font-size: 24px;
    margin-bottom: 20px;
}

/* Placeholder styles */
::placeholder {
    color: #81a097;
    opacity: 1;
}

/* QR placeholder */
.qr-placeholder {
    width: 180px;
    height: 180px;
    border: 2px dashed #ccc;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: Arial, sans-serif;
    color: #888;
    font-size: 14px;
    margin: 0 auto;
}

.qr-placeholder::before {
    content: 'QR-placeholder';
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .container {
        padding: 15px;
    }

    .container h1 {
        font-size: 20px;
    }

    #generate-btn,
    #download-png,
    #download-svg,
    #download-pdf {
        padding: 8px 12px;
        font-size: 14px;
    }

    .qr-placeholder {
        width: 150px;
        height: 150px;
    }
}


/* Responsive adjustments */
@media (max-width: 480px) {
    .container {
        padding: 15px;
    }

    .container h1 {
        font-size: 20px;
    }

    #generate-btn,
    #download-png,
    #download-svg,
    #download-pdf {
        padding: 8px 12px;
        font-size: 14px;
    }

	.qr-placeholder {
    width: 100px;
    height: 100px;
}
.controls label, .controls input, .controls select {
  margin: 7px 0;
  box-sizing: border-box;
  /*display: block;*/
  /*width: 100%;*/
}

#generate-btn, #download-png, #download-svg, #download-pdf {
  background: linear-gradient(45deg, #81a097, #819c97);
  border: none;
  border-radius: 50px;
  color: white;
  cursor: pointer;
  font-weight: bold;
  padding: 10px 15px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  margin: 5px;
  width: calc(100% - 10px);
  max-width: 200px;
  transition: background 0.3s ease, transform 0.3s ease;
}
    .gen-qr {
        margin: 0;
    }

}