:root {
    --color-a: rgba(82, 168, 236, 0.8);
    --color-b: rgba(82, 168, 236, 0.6);
}

html,
body {
    min-height: 100vh;
    max-height: 100vh;
    min-width: 100vw;
    max-width: 100vw;
    padding: 0;
    margin:0;
    flex-wrap: wrap;
    -webkit-tap-highlight-color: transparent;
    -ms-overflow-style: none;
    scrollbar-width: none;
    font-family: Arial;
    display: grid;
    grid-template-rows: 30% 15% 25% 30%;
    grid-template-areas:
            ". . ."
            ". main ."
            ". btn ."
            ". . .";
}
div {
    display:flex
}
main {
    width: 100%;
    padding:0;
    grid-area: main;
}
main > h1 {
    width: 100%;
    text-align: center;
}

#personal-id {
    text-align: center;
    font-family: arial;
}

input[type=text] {
    background-color: #ffffff;
    border: 1px solid #cccccc;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
    -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
    -webkit-transition: border linear 0.2s, box-shadow linear 0.2s;
    -moz-transition: border linear 0.2s, box-shadow linear 0.2s;
    -ms-transition: border linear 0.2s, box-shadow linear 0.2s;
    -o-transition: border linear 0.2s, box-shadow linear 0.2s;
    transition: border linear 0.2s, box-shadow linear 0.2s;
}

input[type=text]:focus {
    border-color: var(--color-a);
    outline: 0;
    outline: thin dotted \9;
    /* IE6-9 */

    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px var(--color-b);
    -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px var(--color-b);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px var(--color-b);
}

input[type=text]:invalid {
    border-color: var(--color-a);
    outline: 0;
    outline: thin dotted \9;
    /* IE6-9 */

    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px var(--color-b);
    -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px var(--color-b);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px var(--color-b);
}

#version-2:hover {
    cursor: pointer;
}

#version-2-label {
    font-size: 0.8rem;
    margin: auto;
}
/* input[type=text]:invalid:focus {
    border-color: rgba(192, 52, 52, 0.8);
    rgba(82, 168, 236, 0.8)
    outline: 0;
    outline: thin dotted \9;

    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(192, 52, 52, 0.8);
    -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(192, 52, 52, 0.8);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(192, 52, 52, 0.8);
} */

.btn-confirm {
    width: 100%;
    flex-direction: column;
    gap:10px;
    align-items: center;
    grid-area: btn;
}

#img-body {
    display:flex;
    height:100vh;
    margin:auto;
}

#generated-image {
    height: 97.5vh;
    max-height: 133vw;
    margin: auto;
}

/* width */
::-webkit-scrollbar {
    width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
    background: #f1f1f1;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: #888;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: #555;
}


@media (prefers-color-scheme: light) {
    html {
        color-scheme: white;
        -webkit-tap-highlight-color: transparent;
    }

    body {
        color: black;
        background: white;
    }
}