/* Reset some default styles */
body, h1, p {
    margin: 0;
    padding: 0;
}

/* Background and overall styling */
body {
    font-family: default;
    background-color: #f4f4f4;
}

.card {
    max-width: 600px;
    margin: 0 auto;
    background-color: #fff;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    padding: 20px;
    text-align: center;
    position: relative;
}

/* Header styling */
.card h1 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
}

/* Form styling */
#businessCardForm label {
    display: block;
    margin-bottom: 5px;
    text-align: left;
    font-weight: bold;
    color: #555;
}

#businessCardForm input[type="text"],
#businessCardForm input[type="email"],
#businessCardForm input[type="tel"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#generateButton {
    width: 100%;
    padding: 10px;
    background-color: #007BFF;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#generateButton:hover {
    background-color: #0056b3;
}

/* Generated card styling with minimalist design */
.generated-card {
    display: none;
    margin-top: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    padding: 20px;
    text-align: left;
}

.card-header {
    background-color: #f0f0f0; /* Light grey background for the header */
    padding: 10px;
}

#logo {
    display: block;
    max-width: 50%; /* Adjust the logo size as needed */
    margin-top: 10px;
    margin-bottom: 10px;
    margin-left: auto;
    margin-right: auto;
}

.card-content {
    display: flex;
    justify-content: space-between;
    background-color: #fff; /* White background for the main content */
    padding: 20px;
}

.left-content {
    width: 65%; /* Adjust the width as needed */
}

.right-content {
    width: 35%; /* Adjust the width as needed */
    text-align: center;
}

.generated-card h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 15px;
}

.generated-card p {
    font-size: 16px; /* Normal font size for the rest of the content */
    color: #555;
    margin-bottom: 10px;
}

#name {
    font-size: 28px; /* Larger font size for the name */
}

/* Footer styling */
.card-footer {
    background-color: #f0f0f0; /* Light grey background for the footer */
    padding: 10px;
}

.card-footer p {
    font-size: 10px;
    text-align: center;
    margin-top: 10px;
}

/* Responsive design */
@media (max-width: 600px) {
    .card {
        max-width: 100%;
        margin: 10px;
        box-shadow: none;
    }
}


/* Form styling */
#businessCardForm .form-group {
    margin-bottom: 15px;
}

#businessCardForm label {
    display: block;
    font-weight: bold;
    color: #555;
}

#businessCardForm input[type="text"],
#businessCardForm input[type="email"],
#businessCardForm input[type="tel"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* QR code styling */
#qrcode {
    margin: 20px;
    display: flex; /* Use flexbox */
    align-items: center; /* Center vertically */
}

#qrcode img {
    display: block;
    width: 128px; /* Adjust the size of the QR code as needed */
    height: 128px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); /* Optional box shadow */
    margin-left: auto;
    margin-right: auto;
}

/* CSS for the download buttons */
.download-options {
    margin-top: 20px;
    text-align: center;
    display: none;
}

button {
    padding: 10px 20px;
    background-color: #007BFF;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #0056b3;
}

/* hide the results heading till after the result is generated */
#resultHeading {
    display: none;
}


/* Prevent form input background from turning white while typing */
#businessCardForm input[type="text"],
#businessCardForm input[type="email"],
#businessCardForm input[type="tel"] {
    background-color: #f4f4f4; /* Set the desired background color */
}
