html {
    background-color: #eee;
    padding: 0 calc(50% - 18rem);
    user-select: none;
    -ms-user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
}

body {
    background-color: #fff;
    min-height: 100vh;
    padding: 0 1rem;
}

a {
    color: black;
    font-weight: bold;
    text-decoration: underline;
    padding: 0.2rem 0.5rem;
    padding-right: 0;
}

a:hover {
    color: orangered;
    /* background-color: #eee;
    border-radius: 0.2rem; */
}

[v-cloak] {
    display: none;
}

main {
    display: flex;
    flex-flow: column nowrap;
    /* height: 100vh; */
    /* height: calc(var(--vh) * 100); */
    margin: 0 auto;
}

main>* {
    margin: 0;
    margin-bottom: 0.5rem;
}

.title {
    text-align: center;
    font-size: 1.5rem;
    letter-spacing: 0.2rem;
    font-weight: 400;
    margin: 0.5rem 0;
}

.title-reward {
    font-size: 1.25rem;
    text-align: center;
}

.textbox {
    font-size: 2rem;
    text-align: center;
}

.masu3x3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
}

.masu-frame {
    border: solid 2px #000;
}

.masu-block {
    border: solid 1px #000;
}

.masu-cell {
    position: relative;
    border: solid 1px #000;
}

.masu-cell-number {
    position: absolute;
    font-size: 2.5rem;
    width: 100%;
    height: 100%;
}

.masu-cell-koho {
    font-size: 0.3rem;
    opacity: 0.5;
    aspect-ratio: 1;
}

.center-middle {
    display: flex;
    justify-content: center;
    align-items: center;
}

.bottom-container {
    display: flex;
    justify-content: right;
    align-items: center;
    width: 100%;
}

.status-text {
    margin: 0 auto;
}

.stepcount-text {
    margin: 0 0.5rem;
}

.bottom-button {
    padding: 0.2rem 0.5rem;
}

.keypad-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr 1fr;
    column-gap: 0.5rem;
}

.keypad-button-number {
    font-size: 1.25rem;
    margin: 0.25rem auto;
    /* aspect-ratio: 1;
    margin: 0.5rem;
    font-size: 2rem; */
    width: 100%;
}

.keypad-button-delete {
    font-size: 1.25rem;
    margin: 0.5rem auto;
    /* padding: 0.25rem auto; */
    width: 100%;
}

.color-koho {
    background-color: silver;
}

.color-reached-cell {
    background-color: pink;
}

.color-reached-koho {
    background-color: black;
    color: white;
    opacity: 1;
}

.color-selected {
    background-color: tomato;
}

.color-hint-no {
    background-color: black;
    color: white;
    opacity: 1;
}

.color-hint-cell {
    background-color: pink;
}

.hidden {
    visibility: hidden;
}

/* ポップアップ */

.popup-fill {
    position: fixed;
    display: flex;
    justify-content: center;
    overflow: auto;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 1;
}

.popup-enter-active {
    transition: opacity 1.0s;
}
.popup-leave-active {
    transition: opacity 0.1s;
}

.popup-enter,
.popup-leave-to {
    opacity: 0;
}

.popup-window {
    position: relative;
    align-self: center;
    width: 100%;
    height: auto;
    margin: 0 calc(50% - 10rem);
    padding: 2.5rem 0.5rem 1.0rem;
    background-color: white;
    border-radius: 0.2rem;
    outline: none;
    text-align: center;
}

.popup-text {
    /* position: absolute; */
    font-size: 1.5rem;
}

.popup-close-box {
    position: absolute;
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    top: 0;
    right: 0;
    width: 2.5rem;
    height: 2.5rem;
    background-color: transparent;
    transition: background-color 0.1s;
    border-top-right-radius: 0.2rem;
}

.popup-close {
    font-size: 1.5rem;
    text-align: center;
    user-select: none;
}

.popup-close-box:hover,
.popup-prev:hover,
.popup-next:hover {
    background-color: orangered;
}
