:root {
    --primary-100: rgb(42, 129, 18);
    --primary-30: rgb(199, 240, 187);
    --secondary-100: rgb(158, 58, 0);
    --secondary-30: rgb(247, 203, 147);
}

html,
body,
#canvas_wrapper {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
    font-family: 'Meiryo', sans-serif;
}

body {
    display: flex;
    flex-direction: column;
}

canvas {
    display: block;
}

/* header */
header {
    display: flex;
    padding: 6px;
}

.btn-area-left {
    position: absolute;
    left: 6px;
}

.page-title {
    flex: 1;
    text-align: center;
    font-size: 32px;
    font-weight: bolder;
    color: var(--primary-100)
}

.btn-area-right {
    position: absolute;
    right: 6px;
}

#btn-export {
    cursor: pointer;
    background-color: var(--primary-100);
    color: white;
    font-size: 14px;
    padding: 6px 12px;
    border: none;
}

#btn-import {
    cursor: pointer;
    background-color: var(--primary-100);
    color: white;
    font-size: 14px;
    padding: 6px 9px;
}

#btn-all-delete {
    cursor: pointer;
    background-color: var(--primary-100);
    color: white;
    font-size: 14px;
    padding: 6px 12px;
    border: none;
}

input[type="file"] {
    display: none;
}

#btn-google-login {
    display: inline-block;
    cursor: pointer;
    background-color: white;
    color: black;
    font-size: 14px;
    padding: 6px 12px;
    border: black 1px solid;
    line-height: 24px;
    border-radius: 7px;
}

#btn-logout {
    display: inline-block;
    cursor: pointer;
    background-color: white;
    color: black;
    font-size: 14px;
    font-weight: 600;
    padding: 6px 12px;
    border: none;
    line-height: 24px;
    position: absolute;
    bottom: 0;
    z-index: 1000;
    border: 6px solid var(--primary-100);
}

.btn-primary {
    display: inline-block;
    cursor: pointer;
    background-color: var(--primary-100);
    color: white;
    font-size: 14px;
    padding: 6px 12px;
    border: none;
    line-height: 24px;
    border-radius: 7px;
}

.btn-primary-30 {
    display: inline-block;
    cursor: pointer;
    background-color: var(--primary-30);
    color: var(--primary-100);
    font-size: 14px;
    padding: 6px 12px;
    border: none;
    line-height: 24px;
    border-radius: 7px;
}

.btn-primary:hover,
#btn-import:hover,
#btn-export:hover,
#btn-all-delete:hover {
    background-color: var(--primary-30);
    color: var(--primary-100);
}

.btn-primary-30:hover {
    background-color: var(--primary-100);
    color: var(--primary-30);
}

/* menu */
.menu-bg {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.0);
    z-index: 100;
    color: transparent;
    transition: .2s;
}

.menu {
    position: absolute;
    display: flex;
    width: 0px;
    overflow: hidden;
    flex-direction: column;
    background-color: var(--primary-100);
    height: 100svh;
    z-index: 100;
    transition: .2s;
}

.menu-item {
    cursor: pointer;
    height: 50px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    overflow: hidden;
    width: 240px;
    background-color: var(--primary-100);
}

.menu-item>i {
    margin-right: 12px;
}

#btn-menu-close {
    border: none;
    background-color: var(--primary-100);
    font-size: 48px;
    color: var(--primary-30);
    justify-content: end;
}

/* button_next&prev */
.btn-secondary {
    display: inline-block;
    cursor: pointer;
    background-color: var(--secondary-100);
    color: white;
    font-size: 14px;
    padding: 6px 12px;
    border: none;
    line-height: 24px;
    border-radius: 7px;
}

.btn-secondary:hover {
    background-color: var(--secondary-30);
    color: white;
}

/* disabled時 */
.btn-primary:disabled,
.btn-secondary:disabled {
    cursor: auto;
    background-color: rgb(160, 160, 160);
    color: white;
}

/* main */
.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.login {
    line-height: 1.5;
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    color: rgba(0, 0, 0, 0.25);
    padding: 24px;
    width:300px;
    margin:0 auto;
}

.no-data {
    line-height: 1.5;
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    color: rgba(0, 0, 0, 0.25);
    padding: 24px;
}

.no-data-supplement {
    font-size: 18px;
}

.data {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex: 1;
}

.current-pattern-num {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: rgba(0, 0, 0, 0.25);
    padding: 12px;
    box-shadow: 0px 0px 6px 0px rgb(0 0 0 / 15%);
    z-index: 2;
}

.current-pattern-num .num {
    color: green;
    font-size: 24px;
    padding: 0px 4px;
}

.answer-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 24px;
    overflow: auto;
    flex: 1;
    padding: 12px;
    padding-top: 24px;
}

.answer {
    box-shadow: 0px 0px 6px 0px rgb(0 0 0 / 15%);
    border-radius: 7px;
    padding: 3px;
}

.answer-header {
    display: flex;
}

.num-text {
    padding: 0px 12px;
    padding-top: 12px;
    color: var(--primary-100);
    font-weight: bolder;
    flex: 1
}

.canvas_wrapper {
    width: 200px;
    height: 180px;
}

/* pager */
.pager {
    text-align: center;
    padding: 24px;
    box-shadow: 0px 0px 6px 0px rgb(0 0 0 / 15%);
    display: flex;
    justify-content: center;
    gap: 8px;
}

.pager input[type="number"] {
    height: 30px;
    width: 120px;
    border-radius: 7px;
}

/* modal */
.modal-bg {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 100;
}

.modal-content {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    border-radius: 6px;
    background-color: white;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    z-index: 101;
}

.modal-header {
    display: flex;
    border-bottom: 1px solid rgba(0, 0, 0, 0.25);
}

.modal-title {
    padding: 12px 12px;
    font-size: 18px;
    color: rgba(27, 121, 0, 0.561);
    font-weight: bolder;
    flex: 1;
}

.modal-btn {
    margin: 4px;
}

.modal-footer {
    padding: 12px 12px;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.25);
}

#btn-register {
    padding-left: 100px;
    padding-right: 100px;
}

/* scrollbar */
*::-webkit-scrollbar {
    width: 24px;
}

*::-webkit-scrollbar-track {
    background-color: transparent;
    border: 5px solid transparent;
    border-radius: 100px;
}

*::-webkit-scrollbar-thumb {
    border: 5px solid transparent;
    box-sizing: border-box;
    background-clip: content-box;
    background-color: #bbb8b8;
    border-radius: 100px;
}

/* loading */
.loading-bg {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.4);
    z-index: 100;
    color: transparent;
    backdrop-filter: blur(6px);
    transition: .2s;
    opacity: 0;
}

.loading-content {
    width: 420px;
    height: 120px;
    animation: .3s infinite hurueru;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    position: absolute;
    color: rgb(21, 138, 21);
    font-size: 36px;
    display: flex;
    align-items: center;
    font-weight: 600;
    padding: 36px;
    z-index: 101;
    box-sizing: border-box;
}

.loading-content::after {
    content: 'NOW LOADING \A' attr(data-progress);
    animation: .8s infinite content;
    text-align: center;
}

@keyframes hurueru {
    0% {
        transform: translate(calc(0px - 50%), calc(0px - 50%)) rotateZ(0deg)
    }

    25% {
        transform: translate(calc(3px - 50%), calc(0px - 50%)) rotateZ(1deg)
    }

    50% {
        transform: translate(calc(0px - 50%), calc(0px - 50%)) rotateZ(0deg)
    }

    75% {
        transform: translate(calc(3px - 50%), calc(0px - 50%)) rotateZ(-1deg)
    }

    100% {
        transform: translate(calc(0px - 50%), calc(0px - 50%)) rotateZ(0deg)
    }
}

@keyframes content {
    0% {
        content: "NOW LOADING \A" attr(data-progress);
    }

    33% {
        content: "NOW LOADING .\A" attr(data-progress);
        ;
    }

    66% {
        content: "NOW LOADING ..\A" attr(data-progress);
    }

    99% {
        content: "NOW LOADING ...\A" attr(data-progress);
    }
}