* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: Arial, sans-serif;
    background: #fff;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding:
        max(20px, env(safe-area-inset-top))
        20px
        max(20px, env(safe-area-inset-bottom));
}

h1 {
    margin: 30px 0 35px 0;
    font-size: 32px;
    line-height: 1;
    text-align: center;
}

#controls {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

#textInput_AMT,
#textInput_ZWECK {
    width: 100%;
    height: 70px;
    padding: 0 20px;
    border: 2px solid #222;
    border-radius: 14px;
    font-size: 32px;
    text-align: center;
    outline: none;
    -webkit-appearance: none;
    font-family: Arial, sans-serif;
}

#textInput_AMT:focus,
#textInput_ZWECK:focus {
    border-color: #000;
}

#textInput_AMT::placeholder,
#textInput_ZWECK::placeholder {
    color: #999;
    opacity: 1;
}

#goButton {
    width: 100%;
    height: 70px;
    border: none;
    border-radius: 14px;
    background: #007aff;
    color: #fff;
    font-size: 30px;
    font-weight: 600;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: background 0.1s, transform 0.1s;
}

#goButton:active {
    background: #006ee6;
    transform: scale(0.98);
}

#qrcode {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 20px 0;
}

#qrcode svg {
    max-width: 90vw;
    max-height: 55vh;
    width: auto !important;
    height: auto !important;
}
