/* A CSS file defining the structure for all components */

body, html {
    height: 100%;
}

body {
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

br, .disable-selection, :placeholder-shown {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.selectable {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

.button {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

header {
    flex-shrink: 0;
    min-height: 60px;
    display: flex;
    align-items: center;
    padding: 0px;
    justify-content: center;
    flex-wrap: wrap;
    position: static;
    width: 100%;
    box-sizing: border-box;
}

header .title {
    /* Place to the left of bar */
    margin-left: 20px;
    margin-right: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding-top : 0.1em;
    padding-bottom: 0.05em;
    min-width: 320px;
}

header .title .inner {
    font-size: 1.8em;
    margin-top: -0.2em;
    margin-bottom: -0.25em;
}

header .title .inner::before {
    display: inline-block;
    align-self: first baseline;
    width: 2em;
    transform: translateY(0.7em);
    margin-right: 0.2em;
    margin-top: -0.7em;
    margin-bottom: -0.2em;
    content: url('/resource/icon.svg');
}

header .title .detail {
    font-size: 0.8em;
}

header .button-list {
    /* Place to the right of bar */
    margin-left: auto;
    margin-right: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

header .button-list .button {
    height: 40px;
    padding: 0 10px;
    margin: 10px 0px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1em;
    transition: 0.3s;
    border: 2px solid;
    min-width: 86px;
}

footer {
    flex-shrink: 0;
    text-align: center;
    padding: 0px;
    position: static;
    bottom: 0;
    width: 100%;
    font-size: 0.9em;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

footer .inner {
    margin-left: 20px;
    margin-right: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    height: 100%;
    padding-top : 0.1em;
    padding-bottom: 0.05em;
    min-width: 320px;
}

footer .button {
    height: 20px;
    padding: 0 5px;
    margin: 5px 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1em;
    transition: 0.3s;
    border: 2px solid;
    min-width: 160px;
}

content {
    flex: auto;
    overflow: auto;
    overflow-x: hidden;
    flex-grow: 1;
    flex-shrink: 1;
    text-align: center;
    padding: 10px;
    box-sizing: border-box;
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: column;
    background-size: 50px 50px;
}

.overlayable {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    position: absolute;
}

.overlayable > * {
    grid-area: 1 / 1;
    justify-self: center;
    align-self: center;
    pointer-events: none;
}

dialog {
    max-width : 400px;
    border-radius: 12px;
    padding: 20px;
    margin: auto;
}

dialog .button {
    margin-bottom: 4px;
    margin-top: 4px;
    border-radius: 8px;
    border: 2px solid;
}

.form {
    width : 300px;
    height : 300px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 10px;
}

.form-header {
    font-size: 1.5em;
    margin-bottom: 10px;
    text-align: center;
}

.form-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-hint-label {
    text-align: left;
    font-size: 0.9em;
    margin-bottom: -6px;
    margin-top: 4px;
}

.form-input-field {
    padding: 8px;
    font-size: 1em;
    border-radius: 8px;
    border: 2px solid;
    box-sizing: border-box;
}

.button-binary-row {
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    gap: 10px;
}

.button-binary-row .button {
    flex: auto;
    height: 40px;
    margin-bottom: 5%;
    margin-top: 5%;
    padding-left: 10px;
    padding-right: 10px;
    max-width: 100%;
    border-radius: 20px;
    border: 2px solid;
    font-weight:600;
    font-size: 16px;
    overflow-y: hidden;
    overflow-x: hidden;
    white-space: nowrap;
}

.input-code-container {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.input-code-container .input-code-character {
  width: 2rem;
  height: 2rem;
  font-size: 1.5rem;
  text-align: center;
  border-radius: 8px;
  border: 2px solid;
}

.input-code-container .input-code-character:focus {
  outline: none;
}