:root {
    --white: #ffffff;
    --gray-light: #f3f6fa;
    --gray-key: #d3d6da;
    --gray: #939495;
    --gray-dark: #434445;
}
* {
    font-family: Arial, sans-serif;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}
body {
    margin: 0;
    padding: 0;
}

#alert {
    display: none;
    z-index: 9999;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 400px;
    background-color: rgba(0,0,0,0.7);
    color: white;
    border-radius: 8px;
    padding: 10px;
    margin: 0 auto;
    cursor: pointer;
}

#container {
    margin: 0 auto;
    height: 100%;
}
.window {
    display: none;
    width: 100%;
    height: 100%;
}
#wordle-header {
    padding: 5px 8px;
    background-color: var(--gray-light);
    border-radius: 3px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#wordle-pad {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 10px 10px 10px;
}
#wordle-keyboard {
    text-align: center;
    padding: 10px 0;
}
#new-wordle div {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 50px;
    color: var(--gray);
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    padding: 0;
    color: var(--gray-dark);
}

a,
a:link,
a:visited,
a:active {
    color: inherit;
    text-decoration: inherit;
}
a:hover {
    text-decoration: underline;
}

.keyrow {
    padding: 0;
    overflow: hidden;
}
.key-box {
    display: inline-block;
    padding: 2px;
    overflow: hidden;
}
.key-box-action {
    display: inline-block;
    padding: 3px;
    overflow: hidden;
}
.key {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 3px;
    width: 100%;
    height: 100%;
    padding: 2px 0;
    font-size: 80%;
    font-weight: bold;
    cursor: pointer;
    touch-action: none;
    user-select: none;
    outline: none;
}
.key,
.key:link,
.key:visited,
.key:hover,
.key:active,
.key:focus {
    outline: none;
    background-color: var(--gray-key);
    text-decoration: none;
}

.pad-box {
    display: inline-block;
    padding: 3px;
    line-height: 1px;
    vertical-align: top;
}
.pad-box-char {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    background-color: var(--gray-light);
    font-size: 2rem;
    /* font-weight: 600; */
    color: var(--gray-dark);
    box-shadow: inset 0 0 1px rgba(0, 0, 0, 0.3);
}

.pad-box-example {
    display: inline-block;
    padding: 3px;
    line-height: 1px;
    vertical-align: top;
    width: 40px;
    height: 40px;
    vertical-align: middle;
}
.pad-box-example>.pad-box-char {
    font-size: 26px;
}
.pad-box-example-mini {
    display: inline-block;
    padding: 3px;
    line-height: 1px;
    vertical-align: top;
    width: 30px;
    height: 30px;
    vertical-align: middle;
}
.pad-box-example-mini>.pad-box-char {
    font-size: 14px;
}

.char-b {
    background-color: #0f6bab;
    color: white;
}
.char-g {
    background-color: #5aa753;
    color: white;
}
.char-y {
    background-color: #c7aa43;
    color: white;
}
.char-w {
    background-color: #72797c;
    color: white;
}

.flashing {
    animation: blinker 1s linear infinite;
}

@keyframes blinker {
    50% {
        opacity: 0;
    }
}

#modal-box {
    position: fixed;
    display: none;
    justify-content: center;
    align-items: center;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.7);
    padding: 10px;
}
.modal-close {
    padding: 10px 20px;
    float: right;
    background-color: var(--gray-light);
    cursor: pointer;
}
.modal-close:hover {
    background-color: red;
    color: white;
}
.modal {
    display: none;
    background-color: white;
    box-shadow: 3px 3px 150px rgba(0,0,0,0.8);
    max-width: 500px;
    min-width: 300px;
    max-height: 100%;
    border-radius: 8px;
    overflow-y: auto;
    overflow-x: hidden;
}
.modal-content {
    padding: 15px;
}

.bg-white {
    background-color: white;
}
.bg-gray-light {
    background-color: var(--gray-light);
}
.bg-gray-key {
    background-color: var(--gray-key);
}

#modal-show-pad {
    text-align: center;
    margin-top: 10px;
}
#modal-show-pad-word {
    text-align: center;
    font-weight: bold;
    margin-top: 10px;
}

.mt-15 {
    margin-top: 15px;
}

.align-center {
    text-align: center;
}

.header-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    background-color: rgba(0, 0, 0, 0.1);
    width: 30px;
    height: 30px;
    border-radius: 3px;
    text-align: center;
    cursor: pointer;
}

.button {
    display: inline-block;
    font-size: 16px;
    text-align: center;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
}

.text-right {
    text-align: right;
}