:root {
    --bcg-color: linear-gradient(135deg, #0d0e0c, #220d19);
    --box-gradient: linear-gradient(135deg, #31dabb, #1d15b9);
    --border-radius: 20px;
    --secondary-color: #fff;
    --border-color: #7fb7c9;
    --hover-color: linear-gradient(135deg, #ec4545, #15265a);;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
}

body {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bcg-color);
}

.box {
    background: var(--box-gradient);
    padding: 30px;
    width: 400px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.qr-header h1 {
    font-size: 26px;
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 24px;
    text-transform: uppercase;
    position: relative;
}

.qr-header h1::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 4px;
    background-color: var(--hover-color);
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
}

.qr-header input {
    width: 100%;
    margin-block: 12px;
}

.qr-header input,
select {
    padding: 8px;
    border-radius: var(--border-radius);
    font-size: 18px;
    outline: none;
    border: 2px solid var(--border-color);
}

.qr-header input:focus,
.qr-header select:focus {
    border-color: var(--hover-color);
}

.qr-header label {
    color: var(--secondary-color);
    font-size: 20px;
}

.qr-header div {
    display: flex;
    justify-content: space-between;
}

.qr-footer {
    display: flex;
    justify-content: center;
}

.qr-footer a {
    /* background-color: var(--secondary-color); */
    background: linear-gradient(135deg, #9a26a5, #c91c41);;
    text-decoration: none;
    font-size: 20px;
    padding: 14px 36px;
    margin-inline: 2px;
    color: var(--box-gradient);
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: background-color 0.3s, transform 0.3s;
}

.qr-footer a:hover {
    background: var(--hover-color);
    transform: translateY(-3px);
}

.qr-body {
    display: grid;
    place-items: center;
    padding: 20px;
}

.qr-body img {
    max-width: 100%;
    max-height: 100%;
    margin-block: 10px;
    padding: 20px;
    border: 0.5px solid var(--border-color);
    border-radius: var(--border-radius);
}

@media screen and (max-width: 520px) {
    .box {
        width: 80%;
    }
    
    .qr-footer a {
        padding: 12px;
        font-size: 16px;
    }
}