@font-face {
    font-family: 'Caveat';
    src: url('fonts/Caveat-Regular.ttf') format('truetype');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Caveat', cursive;

    display: flex;
    justify-content: center;
    align-items: center;

    min-height: 100vh;
    padding: 2rem;

    /* background: linear-gradient(
        to bottom right,
        #ffb2e0,
        #df74a1,
        #8ee1ec,
        #df74a1
    ); */

    background: linear-gradient(to bottom right, #ffb2e0 , #df74a1,  #df74a1);
}

.card {
    width: 100%;
    max-width: 500px;

    padding: 2rem 3rem;

    border-radius: 20px;

    background: rgba(255, 255, 255, 0.18);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    border: 1px solid rgba(255, 255, 255, 0.3);

    box-shadow:
        0 10px 30px rgba(0,0,0,0.15),
        0 0 40px rgba(255,178,224,0.15);

    animation: fadeIn 1.2s ease-in-out;

    text-align: center;
}

h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.qr-input {
    width: 100%;

    padding: 0.9rem 1rem;

    border: none;
    border-radius: 9999px;

    font-family: inherit;
    font-size: 1.25rem;

    background: rgba(255,255,255,0.85);

    outline: none;

    /* line-height: 1.5;
    min-height: 52px; */
}

.btn {
    font-family: inherit;
    /* font-family: "Segoe UI", sans-serif; */
    font-size: 1.2rem;

    padding: 0.9rem 1.8rem;

    border: none;
    border-radius: 9999px;

    cursor: pointer;

    color: white;

    /* background: rgba(255,255,255,0.15); */
    background: #2196f3;

    border: 1px solid rgba(255,255,255,0.25);

    backdrop-filter: blur(1.5px);

    transition: all 0.25s ease;
}

.btn:hover {
    transform: translateY(-2px);

    background: rgba(255,255,255,0.25);
}

.qr-result {
    margin-top: 2rem;
}

.qr-result img {
    /* display: block; */

    margin: 0 auto;

    max-width: 250px;
    width: 100%;

    /* background: #4a90e2;

    padding: 12px;

    border-radius: 16px;

    box-shadow: 0 8px 24px rgba(0,0,0,0.15); */
}


/* select.qr-input {
    width: 100%;
    min-height: 50px;

    padding: 0.9rem 2.5rem 0.9rem 1rem;

    font-size: 1rem;

    overflow: visible;
} */

select.qr-input {
    font-family: "Segoe UI", sans-serif;

}


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

select.qr-input {
    width: 100%;
}


.color-picker {
    margin-top: 10px;
    text-align: left;
    color: white;
    font-size: 1.1rem;
}

.color-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
}

#border-color {
    width: 60px;
    height: 45px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

#icon-color {
    width: 60px;
    height: 45px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

/* #color-preview {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #4a90e2;
    border: 2px solid rgba(255,255,255,0.4);
} */

.color-row-group {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    margin-top: 10px;
}

.color-picker {
    flex: 1;
    text-align: left;
    color: white;
    font-size: 1.1rem;
}

.color-row {
    margin-top: 6px;
}

#border-color,
#icon-color {
    width: 100%;
    height: 45px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

@media (max-width: 500px) {
    .color-row-group {
        flex-direction: column;
    }
}