/* ========================
   RESET
========================= */

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


/* =========================
   BODY / BACKGROUND
========================= */

body {
    min-height: 100vh;

    background:
        radial-gradient(
            ellipse 50% 60% at 78% 32%,
            rgba(255, 35, 95, 0.60),
            transparent 68%
        ),

        radial-gradient(
            ellipse 45% 55% at 45% 105%,
            rgba(190, 0, 255, 0.50),
            transparent 70%
        ),

        radial-gradient(
            ellipse 45% 50% at 22% 8%,
            rgba(255, 80, 20, 0.30),
            transparent 70%
        ),

        #030303;

    color: white;
    font-family: Arial, sans-serif;

    overflow: hidden;
}


/* =======================
   CENTER ALIGN
======================= */

.center {
    min-height: 100vh;

    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;
}


/* =========================
   MAIN CONTENT
========================= */

.content {
    min-height: 100vh;

    display: flex;
    flex-direction: column;

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

    text-align: center;
}


/* =========================
   SCREEN SYSTEM
========================= */

.screen {
    display: none;

    width: 100%;

    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;
}

.screen.active {
    display: flex;
}


/* =========================
   HEADING
========================= */

h1,h2 {
    font-size: 60px;

    color: #ff3b81;

    margin-bottom: 30px;
}


/* =========================
   INPUT BOX
========================= */

.box {
    width: 450px;

    padding: 10px;

    display: flex;
    gap: 10px;

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

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

    border-radius: 16px;

    backdrop-filter: blur(15px);
}


/* =========================
   TEXT INPUT
========================= */

.box input {
    flex: 1;

    padding: 14px;

    background: transparent;

    border: none;
    outline: none;

    color: white;

    font-size: 16px;
}


/* Placeholder text */

.box input::placeholder {
    color: #888888;
}


/* =========================
   BUTTON
========================= */

.box button {
    padding: 14px 22px;

    border: none;

    border-radius: 12px;

    background: linear-gradient(
        135deg,
        #ff3b81,
        #8b5cf6
    );

    color: white;

    font-size: 15px;

    font-weight: bold;

    cursor: pointer;

    transition: transform 0.2s;
}


/* Button hover */

.box button:hover {
    transform: scale(1.05);
}


/* =========================
   QR RESULT BOX
========================= */

.qr-result-box {
    display: none;
    margin-top: 25px;
    padding: 25px;
    background: white;
    border-radius: 15px;
    text-align: center;
}

.qr-result-box h3 {
    margin-bottom: 20px;
}

#qrcode {
    display: flex;
    justify-content: center;
}


/* =========================
   QR SCREEN
========================= */

.qr-box {
    padding: 25px;

    background: white;

    border-radius: 18px;

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

    margin-bottom: 25px;

    box-shadow: 0 0 30px rgba(255, 59, 129, 0.25);
}


/* =========================
   GENERATE NEW QR BUTTON
========================= */

#screen-qr > button {
    padding: 14px 24px;

    border: none;

    border-radius: 12px;

    background: linear-gradient(
        135deg,
        #ff3b81,
        #8b5cf6
    );

    color: white;

    font-size: 15px;

    font-weight: bold;

    cursor: pointer;

    transition: transform 0.2s;
}

#screen-qr > button:hover {
    transform: scale(1.05);
}


/* =========================
   MOBILE
========================= */

@media (max-width: 600px) {

    h1,h2 {
        font-size: 45px;
    }

    .box {
        width: 90%;
    }

    .qr-box {
        max-width: 90%;
        padding: 18px;
    }

    #qrcode img {
        max-width: 100%;
        height: auto;
    }

}