/* Gradient Background */
.gradient-background {
    background: linear-gradient(135deg, #ffe0f7, #e4ffed, #ffdd59);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-sizing: border-box;
    flex-direction: column;
}

/* Header and Footer Styling */
.main-header, .main-footer {
    background: #34ace0;
    color: #fff;
    padding: 20px 0;
    width: 100%;
    text-align: center;
}

.main-header h1, .main-footer p {
    margin: 0;
    font-weight: bold;
}

/* Title Styling */
.tool-title {
    font-size: 2.2em;
    color: #333;
    font-weight: bold;
    margin-bottom: 20px;
    animation: fadeIn 1.5s ease-in-out;
    text-align: center;
}

/* Card Styling */
.main-card, .result-card {
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    padding: 20px;
    border: 2px solid #34ace0;
    max-width: 500px;
    margin: auto;
}

#result {
    margin-top: 30px;
}

.fade-in {
    animation: fadeIn 1.5s ease-in forwards;
    opacity: 0;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Button Styles */
.generate-btn, .copy-btn {
    background-color: #34ace0;
    color: #ffffff;
    font-weight: bold;
    border-radius: 8px;
    padding: 15px 20px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 200px;
    margin: 10px auto;
    text-transform: uppercase;
    font-size: 1em;
    border: none;
    transition: background-color 0.3s, transform 0.3s;
    cursor: pointer;
}

.generate-btn:hover, .copy-btn:hover {
    background-color: #227093;
    transform: scale(1.05);
}

.copy-btn {
    background-color: #ffdd59;
    color: #333;
    border: 2px solid #227093;
    margin-top: 20px;
}

/* Centered styling for QR and copy button container */
.centered-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

/* QR Code outline */
.qr-outline {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    width: 130px;
    height: 130px;
    box-sizing: border-box;
    border: 3px solid #70a1ff;
}

.numbers-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.number {
    padding: 10px;
    font-size: 1.3em;
    font-weight: bold;
    border-radius: 8px;
    text-align: center;
    min-width: 50px;
    min-height: 50px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.6);
    color: #ffffff;
    animation: fadeInNumbers 1s ease-in-out;
    position: relative;
}

@keyframes fadeInNumbers {
    0% { opacity: 0; transform: scale(0.5); }
    100% { opacity: 1; transform: scale(1); }
}

.number:nth-child(odd) {
    background-color: #ff6b81;
}

.number:nth-child(even) {
    background-color: #70a1ff;
}

/* Responsive adjustments */
@media screen and (max-width: 600px) {
    .tool-title {
        font-size: 1.8em;
    }

    .main-card, .result-card {
        padding: 15px;
    }

    .number {
        font-size: 1em;
        min-width: 40px;
        min-height: 40px;
    }

    .qr-outline {
        width: 120px;
        height: 120px;
        margin: 10px auto;
    }

    .generate-btn, .copy-btn {
        font-size: 0.9em;
        padding: 10px;
    }
}
