body {
    padding: 0;
    margin: 0;
}

#content-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Application Header */
#application-header {
    background: #f1b0b7;
    padding: .5em 1em;
}

#application-header h1 {
    margin: 0;
}

#application-header h1 a {
    color: white;
    text-decoration: none;
}

a.header-action-button {
    background: white;
    border: .25em solid #f1b0b7;
    border-radius: .5em;
    color: #f1b0b7;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    transition: 150ms ease;
    padding: .25em .5em;
}

button.header-action-button {
    background: white;
    border: .25em solid #f1b0b7;
    border-radius: .5em;
    color: #f1b0b7;
    cursor: pointer;
    display: inline-block;
    font-family: "Hiragino Mincho ProN", sans-serif;
    font-size: 16px;
    transition: 150ms ease;
    padding: .25em .5em;
}

a.header-action-button:hover,
button.header-action-button:hover {
    background: #f1b0b7;
    border-color: white;
    color: white;
}


/* Application Footer */
#application-footer {
    background: #f1b0b7;
    color: white;

    padding: .25em 1em;
    width: calc(100% - 2em);
}
#application-footer #footer-menus {
    display: flex;
    gap: 1em;
}
#application-footer #footer-menus a {
    color: white;
    text-decoration: none;
    white-space: nowrap;
}
#application-footer #copyright {
    text-align: center;
    width: 100%;
}

/* Main */
main#main {
    flex-grow: 1;
    width: 100vw;
}
#main-in {
    padding: 1em;
    max-width: 800px;
}

/* User Info */
#user-info {
    display: flex;
    height: max-content;
}

#user-icon-wrapper {
    display: flex;
    align-items: center;
}
#user-icon {
    width: 5em;
    height: 5em;
    border: 1px solid transparent;
    border-radius: 50%;
}
#user-icon.jdenticon {
    border: 1px solid silver;
}

#user-name {
    font-size: 1.5em;
}

#user-id {
    color: gray;
    font-size: .8em;
}
#user-id::before {
    content: '@';
}

#summary-table tr {
    line-height: 1.2;
}

#summary-table th {
    text-align: left;
    font-weight: normal;
    padding-right: 1em;
}

.etocoin-with-unit::after {
    content: 'EC';
    margin-left: .25em;
}

/* Menus */
#menus {
    display: flex;
    flex-wrap: wrap;
    gap: .25em;
    margin: 1em 0;
}
.menu {
    align-items: center;
    background: #f1b0b7;
    border: .25em solid #f1b0b7;
    border-radius: .5em;
    color: white;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-decoration: none;
    transition: 150ms ease;
    width: 80px;
}
.menu:hover {
    background: white;
    color: #f1b0b7;
}
.menu-text {
    font-size: 12px;
}

/* Friends Header */
#friends-header {
    background: #f9ecec;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1em;
    padding: .25rem 1rem;
}

#friends-header h2 {
    margin: 0;
    width: max-content;
}

#add-friends-button {
    background: white;
    border: .25em solid #f9ecec;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5em;
    transition: 150ms ease;
}

#add-friends-button:hover {
    border-color: #f1b0b7;
}

/* Bank List */
#bank-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid #f9ecec;
}

.bank-desc {
    cursor: pointer;
    color: black;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.5em;
    text-decoration: none;
    transition: 150ms ease;
    padding: .25rem 1rem;
}

.bank-desc:hover {
    background: #f9ecec;
}

.bank-header {
    display: flex;
    width: max-content;
    justify-content: start;
    align-items: center;
}

.bank-icon {
    width: 1.5em;
    height: 1.5em;
    border: 1px solid transparent;
    border-radius: 50%;
    margin-right: .5em;
}

.bank-icon.jdenticon {
    border: 1px solid silver;
}

/* Transfer Panel */
#transfer-panel {
    border: 1px solid #f9ecec;
    margin-top: 1em;
}

#transfer-panel-header {
    background: #f9ecec;
    padding: .25em 0;
}

#transfer-panel-header h2 {
    margin: 0;
}

#transfer-panel form {
    padding: 1em 0;
}

#transfer-etocoin-input-container {
    align-items: center;
    background: #f1b0b7;
    color: white;
    display: flex;
    margin-bottom: .5em;
    padding: .25em .5em;
    width: calc(100% - 1em);
}

#transfer-etocoin-input {
    background: transparent;
    border: none;
    color: white;
    font-size: 2rem;
    flex-grow: 1;
    outline: none;
}
#transfer-etocoin-input::placeholder {
    color: white;
}
#transfer-etocoin-unit {
    font-size: 2rem;
    margin-left: .5em;
}

.add-etocoin-button::before {
    content: '+';
    margin-right: .1em;
}
.add-etocoin-button, .clear-etocoin-button {
    background: #f9ecec;
    border: none;
    border-radius: 1em;
    cursor: pointer;
    font-size: 1.5em;
    padding: .25em .75em;
}
.add-etocoin-button::after {
    content: 'EC';
    margin-left: .1em;
}


#use-acquisition-input {
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

#use-acquisition-input {
    cursor: pointer;
    padding-left: 30px;/*label手前にチェックボックス用の余白を開ける*/
    vertical-align: middle;
    position: relative;
}
#use-acquisition-input::before,
#use-acquisition-input::after {
    content: "";
    display: block;
    position: absolute;
}
#use-acquisition-input::before {
    background-color: #fff;
    border-radius: 0;
    border: 1px solid #f1b0b7;
    width: 20px;/*チェックボックスの横幅*/
    height: 20px;/*チェックボックスの縦幅*/
    transform: translateY(-50%);
    top: 50%;
    left: 5px;
}
#use-acquisition-input::after {
    border-bottom: 3px solid #f1b0b7;
    border-left: 3px solid #f1b0b7;
    opacity: 0;
    height: 6px;
    width: 11px;
    transform: rotate(-45deg);
    top: -7px;
    left: 10px;
}
#use-acquisition-input:checked::after {
    opacity: 1;
}

#submit-transfer-button {
    background: #f1b0b7;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.5em;
    margin-top: 2.5em;
    width: 100%
}

/* Login & Register Form */
#login-form label:not(#remember-label),
#register-form label,
#friend-request-form label {
    cursor: pointer;
    display: block;
    font-size: 1.25em;
    width: 100%;
}
#login-form #show-button,
#login-form #hide-button,
#register-form #show-button,
#register-form #hide-button {
    background: #f1b0b7;
    border: none;
    color: white;
    cursor: pointer;
}
#login-form #email,
#login-form #password,
#register-form #name,
#register-form #email,
#register-form #password,
#register-form #password-confirm,
#friend-request-form #request-for {
    background: #f1b0b7;
    border: none;
    display: block;
    color: white;
    font-size: 1.5em;
    outline: none;
    padding: .25em .5em;
}
#login-form input::placeholder,
#register-form input::placeholder,
#friend-request-form #request-for::placeholder {
    color: white;
}
#login-form #email,
#register-form #name,
#register-form #email,
#friend-request-form #request-for{
    width: calc(100% - 1em);
}
#login-form #password,
#register-form #password,
#register-form #password-confirm {
    flex-grow: 1;
}
#login-form #submit-login-button,
#register-form #submit-register-button,
#friend-request-form #submit-friend-request-button {
    background: #f1b0b7;
    border: none;
    border-radius: .25em;
    color: white;
    cursor: pointer;
    font-size: 1.5em;
    padding: .25em .5em;
}

/* Config Form */
#config-form {
    border: 1px solid #f1b0b7;
}
#config-form-header {
    align-items: center;
    background: #f1b0b7;
    color: white;
    display: flex;
    justify-content: space-between;
    padding: .25em 1em;
}
#form-title {
    display: inline-block;
    margin: 0;
}
#config-form-header #save-button {
    background: white;
    border: none;
    border-radius: .25em;
    color: #f1b0b7;
    cursor: pointer;
    display: inline-block;
    font-size: 16px;
    padding: .25em 1em;
}
#config-form-body {
    display: grid;
    grid-template-columns: 80px 1fr;
    padding: 1em;
    row-gap: 1em;
}
#config-form label {
    cursor: pointer;
}
#config-form input:not(#icon) {
    border: none;
    border-bottom: 1px solid #f1b0b7;
    font-size: 16px;
    outline: none;
}
#config-form #icon {
    border-radius: 50%;
    position: relative;
    width: 80px;
    height: 80px;
}
#config-form #icon img,
#config-form #icon svg {
    border: 1px solid white;
    border-radius: 50%;
}
#config-form #icon svg {
    border-color: silver;
}
#config-form #icon #image-cover {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid silver;
    border-radius: 50%;
    display: inline-block;

    position: absolute;
    text-align: center;
    transition: 150ms ease;
    top: 0;
    left: 0;
    width: 5em;
    height: 5em;
}
#config-form #icon:hover #image-cover {
    background: rgba(255, 255, 255, 0.8);
}
#config-form #icon #image-cover i {
    color: #333;
    display: inline-block;
    font-size: 2em;
    width: max-content;
    height: max-content;
    margin-top: 25px;
}
#config-form .trash-button {
    background: #f1b0b7;
    border: .25em solid white;
    border-radius: .5em;
    color: white;
    cursor: pointer;
    font-size: 16px;
    padding: .5em 1em;
}

/* Utilities */
.clear {
    clear: both;
}
