html,
body {
    overscroll-behavior-y: none;
}
header {
    position: absolute;
    height: 56px;
    max-width: 500px;
    margin: 0 auto;
    padding: 16px;
    display: flex;
}
.header-back_button {
    padding: 6px;
    aspect-ratio: 1/1;
    border-radius: 100%;
    background-color: #271f29;
    border: 1px solid #342737;
    display: flex;
}
.header-back_button svg {
    width: 24px;
    height: 24px;
    aspect-ratio: 1/1;
    fill: white;
}
.header-back_button:disabled {
    display: none;
}
.screen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 16px 0 16px 16px;
}
.screen h1 {
    font-size: 26px;
}
.text-description {
    margin-top: 24px;
    text-align: justify;
    font-size: 14px;
}
.page-content {
    display: grid;
    grid-template-columns: 3fr 2fr;
    padding: 16px;
    height: 100vh;
}
.page-main {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;

    position: relative;
}
.page-backgrounds {
    position: relative;
    border-radius: 16px;
}
.page-backgrounds > img {
    filter: brightness(1);
}
.fields {
    margin-top: 24px;

    display: flex;
    flex-direction: column;
    gap: 8px;
}
.fields.row {
    flex-direction: row;
}
.input-title {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    font-weight: 500;
    margin: 6px 0 2px 0;
}
input {
    display: block;
    background-color: rgba(255,255,255,0);
    padding: 14px 16px;
    width: 100%;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.15);
    outline: none;
    font-size: 14px;
    font-family: monospace;
}
.screen-buttons {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.submit-button {
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    padding: 12px 24px;
    display: block;
    border-radius: 8px;
    border: none;
    width: 100%;
    background-color: #8b5cf6;
    border: 1px solid rgba(0,0,0,0);
    position: relative;
    text-decoration: none;
}

.submit-button .spinner {
    height: 32px;
    width: 32px;
}
.submit-button .button-spinner {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    opacity: 0;
    height: 100%;
    left: 0;
    top: 0;
}
.submit-button:hover {
    background-color: #a78bfa;
}
.submit-button.no-background {
    background: none;
    border-color: rgba(255,255,255,0.15);
}
.submit-button:disabled {
    background: none;
    border-color: rgba(255,255,255,0.15);
    cursor: not-allowed;
    box-sizing: border-box;
}
.submit-button:disabled .button-spinner {
    opacity: 1;
}
.submit-button:disabled span {
    opacity: 0;
}
.alternate-option {
    margin-top: 24px;
    padding: 0;
}
a.alternate-option {
    font-weight: 400;
    font-size: 14px;
    cursor: pointer;
    color: white;
    text-decoration: underline;
}
a.alternate-option:hover {
    color: #c084fc;
}
.big-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}
button.big {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgba(0,0,0,0);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 16px 0 0 16px;
    position: relative;
}
button.big:last-child {
    border-radius: 0 16px 16px 0;
}
button.big svg {
    width: 50%;
    aspect-ratio: 1/1;
    fill: rgba(255,255,255,0.5);
}
button.big:hover svg {
    scale: 1.2;
    fill: rgba(255,255,255,0.75);
}
button.big span {
    position: absolute;
    bottom: 24px;
    font-size: 12px;
    text-align: center;
    color: rgba(255,255,255,0.5)
}
button.big:hover span {
    color: rgba(255,255,255,0.75)
}
.skin_options-title {
    margin: 32px 0 12px 0;
}
.skin-provider {
    display: none;
}
.skin-provider.shown {
    display: contents;
}
.background-skin-preview {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: end;
    justify-content: center;
    background-color: rgba(0,0,0,0.3);
    opacity: 0;
    transition: .3s opacity;
}
.background-skin-preview img {
    margin-bottom: 10vh;
    width: auto;
    height: auto;
    animation: none;
    filter: none;
}
.background-skin-preview.shown {
    opacity: 1;
}
.skin-preview {
    display: none;
    height: 200px;
    width: 86px;
    flex-shrink: 0;
    margin-right: 16px;
}
.state-picker {
    display: flex;
    position: relative;
    width: fit-content;
    margin: 0 auto;

    align-items: center;
}
.state-picker .dots {
    display: flex;
    flex-direction: column;
    gap: 5px;
    position: absolute;
    right: -12px;
}
.state-picker .dots div {
    width: 5px;
    aspect-ratio: 1/1;
    background-color: rgba(255,255,255,0.25);
}
.state-picker .dots div.active {
    background-color: rgba(255,255,255,0.75);
}
.state-picker .list {
    width: 250px;
    aspect-ratio: 1/1;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 16px;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
}
.state-picker .list::-webkit-scrollbar { 
    display: none;
}
.state-picker .state {
    --color: green;
    width: 100%;
    height: 100%;
    scroll-snap-align: start;
    padding: 32px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}
.state-picker .state svg {
    fill: var(--color);
    /* stroke: var(--color); */
    width: 60%;
    aspect-ratio: 1/1;
}
.state-picker .state span {
    position: absolute;
    bottom: 32px;
    color: rgba(255,255,255,0.5);
}
.state.ohio { --color: #84cc16; }
.state.shanghai { --color: #e11d48; }
.state.newyork { --color: #1f6cf2; }
.state.california { --color: #facc15; }
.state.georgia { --color: #f97316; }
.state.initial { --color: rgba(255,255,255,0.5); }

.new-passport {
    height: 450px;
    aspect-ratio: 1.6 / 2.25;
    width: fit-content;
    margin: 0 auto;
    border-radius: 0 16px 16px 0;
    background: linear-gradient(35deg, #082f49cc, #05283f90), 
    url(https://grainy-gradients.vercel.app/noise.svg), #082f49;
    border: 2px solid rgba(0,0,0,0.2);
    box-shadow: 0px 0 30px 0px rgba(0,0,0,0.6);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    padding: 32px 0;
    margin-top: 32px;
}
.new-passport img {
    width: 136px;
    aspect-ratio: 1 / 1;
}
.new-passport h2, .new-passport span {
    background: linear-gradient(to bottom, #cfc09f 27%, #ffecb3 40%, #e5d092b0 78%); 
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Times New Roman', Times, serif;
    font-size: 32px;
}
.new-passport span {
    font-size: 24px;
    opacity: 1;
    font-style: italic;
    text-align: center;
}

.warn_password {
    font-size: 14px;
    color: #ef4444;
    padding: 0 8px;
}
.warn_password.hidden {
    display: none;
}
.sending_request {
    width: 48px;
    aspect-ratio: 1/1;
    margin-top: 16px;
}
.options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.option-button {
    width: 100%;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    padding: 18px;
    display: flex;
    gap: 12px;
    font-size: 14px;
    color: rgba(255,255,255,0.75);
    align-items: center;
}
.pronouns-options .option-button:last-child {
    grid-column: 1/3;
}
.option-button div {
    border: inherit;
    width: 16px;
    aspect-ratio: 1/1;
    border-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.option-button.selected {
    border-color: #8b5cf6;
    background-color: #8a5cf613;
    color: #9f79f7;
    font-weight: 600;
}
.option-button.selected span {
    width: 8px;
    height: 8px;
    aspect-ratio: 1/1;
    background-color: #8b5cf6;
    border-radius: 100%;
}
.input-pronouns {
    margin-top: 16px;
    opacity: 0;
    pointer-events: none;
    transition: 2s border-color ease-out, .3s opacity ease-out;
    border-color: #8b5cf6;
}
.input-pronouns.shown {
    opacity: 1;
    pointer-events: all;
    border-color: rgba(255,255,255,0.15);
}
.progress {
    --value: 0%;
    height: 4px;
    border-radius: 10px;
    margin-top: 8px;
    display: flex;
    overflow: clip;
    background-color: rgba(255,255,255,0.1);
    opacity: 1;
    transition: .3s opacity ease-out;
    
    position: absolute;
    right: 0;
    top: 16px;
    width: 30%;
}
.progress.hidden {
    opacity: 0;
}
.progress span {
    width: var(--value);
    height: 100%;
    background-color: #8b5cf6;
    transition: .3s width ease-out;
    border-right: 4px solid #181419;
}
#picture__input {
    display: none;
}
  
.picture {
    max-width: 200px;
    width: 100%;
    margin-top: 16px;
    aspect-ratio: 3/2;
    background-color: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    border: 2px dashed rgba(255,255,255,0.25);
    cursor: pointer;
    transition: color 300ms ease-in-out, background-color 300ms ease-in-out;
    outline: none;
    overflow: hidden;
    margin: 0 auto;
    margin-top: 16px;
}
.picture:hover {
    color: rgba(255,255,255,0.75);
    background-color: rgba(255,255,255,0.1);
}
.picture:active {
    border-color: #8b5cf6;
    color: #8b5cf6;
    background-color: rgba(255,255,255,0.15);
}
.picture__img {
    max-width: 100%;
    scale: 1.5;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

@media screen and (max-width: 1000px) {
    .page-content {
        grid-template-columns: 1fr 1fr;
    }
}
