@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard-dynamic-subset.css');
@import url('https://cdnjs.cloudflare.com/ajax/libs/firacode/6.2.0/fira_code.min.css');

* {
    font-family: Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.material-symbols-rounded {
    font-size: 1.1rem !important;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
}

.header {
    position: fixed;
    border-bottom: 1px solid #eeeeee;
    background-color: #FFF;
    flex-direction: row;
    align-items: center;
    width: 100%;
    height: 40px;
    display: flex;
    justify-content: space-between;
    box-sizing: border-box;
    z-index: 99;
}

h1 {
    font-size: 1.3rem;
    margin: 0;
    margin: 0px 10px;
}

.menu {
    cursor: pointer;
    position: relative;
    height: 20px;
    width: 24px;
    padding: 0;
    margin: 0px 10px;
}

.m-div {
    position: absolute;
    width: 100%;
}

.m-l {
    top: 0;
    left: 0;
    transition: all 0.2s ease;
    /*border-top: 4px solid black; #808080;*/
    height: 3px;
    background-color: #000;
    border-radius: 5px;
}

.m-m {
    top: 8px;
    left: 0;
    transition: all 0.2s ease;
    /*border-top: 4px solid black;*/
    height: 3px;
    background-color: #000;
    border-radius: 5px;
}

.m-r {
    top: 16px;
    left: 0;
    transition: all 0.2s ease;
    /*border-top: 4px solid black;*/
    height: 3px;
    background-color: #000;
    border-radius: 5px;
}

.enabled .m-l {
    top: 8px;
    transform-origin: center;
    -webkit-transform-origin: center;
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
}

.enabled .m-m {
    top: 8px;
    left: 0;
    opacity: 0;
}

.enabled .m-r {
    top: 8px;
    transform-origin: center;
    -webkit-transform-origin: center;
    transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
}

.right-menu {
    position: fixed;
    display: flex;
    flex-direction: column;
    top: 40px;
    right: -450px;
    height: calc(100% - 100px);
    max-width: 390px;
    width: calc(100% - 60px);
    background-color: #f2f2f2;
    z-index: 99;
    padding: 30px;
    transition: all 1s ease;
}

.menu-show {
    right: 0;
}

.menu-title {
    font-size: 1.2rem;
    font-weight: bold;
}

.menu-text {
    margin-right: 10px;
}

.row {
    display: flex;
    flex-direction: row;
    margin: 5px 0;
    align-items: center;
    flex-wrap: wrap;
}

.board-color {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    background-color: #EBBA34;
    margin-right: 10px;
}

.board-color-input {
    border: none;
    font-size: 1.1rem;
    height: 30px;
    border-radius: 7px;
    width: 100%;
    max-width: 100px;
    padding-left: 10px;
    margin-right: 10px;
    outline: none;
    font-family: 'Fira Code', monospace;
}

.board-color-btn {
    border: none;
    background-color: rgb(20, 83, 255);
    color: #FFF;
    font-size: 1rem;
    border-radius: 7px;
    height: 30px;
    padding: 0px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-btn {
    display: flex;
    cursor: pointer;
    border-radius: 8px;
    padding: 3px;
    margin-right: 5px;
}

.toggle-btn.active {
    background-color: #5aff44;
}

.toggle.ball {
    display: flex;
    margin: 0;
    margin-right: 8px;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    cursor: pointer;
    overflow: hidden;
    font-variation-settings:
        'FILL' 0,
        'wght' 700,
        'GRAD' 0,
        'opsz' 24;
}

.toggle.ball .material-symbols-rounded {
    font-size: 1.35rem !important;
}

.toggle.ball.active{
    color: #4cd939;
}
.checkbox {
    display: flex;
    flex-direction: row;
    align-items: center;
    cursor: pointer;
}

.checkbox-inner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFF;
    background-color: #FFF;
    font-variation-settings:
        'FILL' 0,
        'wght' 600,
        'GRAD' 0,
        'opsz' 24;
}

.checkbox-text {
    padding: 0px 5px;
}

.checkbox.active > .checkbox-inner {
    background-color: #5aff44;
    color: #000;
}

.restart-force-btn {
    font-size: 1.1rem;
    padding: 10px 0px;
    margin-top: 10px;
    cursor: pointer;
    background-color: rgb(20, 83, 255);
    color: #fff;
    border-radius: 7px;
    border: none;
    transition: all 0.3s ease;
}

.history-table-wrapper-wrapper {
    height: 100%;
    overflow: hidden;
    border-radius: 10px;
    background-color: #FFF;
    margin-top: 10px;
}

.history-table-wrapper {
    height: 100%;
    overflow-y: auto;
}

.history-table-wrapper::-webkit-scrollbar {
    width: 8px;
}

.history-table-wrapper::-webkit-scrollbar-thumb {
    background-color: #cecece;
    border-radius: 5px;
    border: 2px solid #FFF;
}

.history-table-wrapper::-webkit-scrollbar-track {
    background: none;
}

.history-table {
    width: 100%;
    background-color: #FFF;
    text-align: center;
}

.history-table th,
td {
    padding: 10px 0 !important;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 40px;
}

#player-list {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin: 10px 0;
}

.player {
    display: flex;
    flex-direction: row;
    padding: 10px;
    border-radius: 7px;
    background-color: #FFF;
}

.player * {
    align-self: center;
}

.turn {
    background-color: #DDD !important;
}

.win {
    background-color: #9fc7ff !important;
}

.win-text {
    text-align: center;
    font-size: 25px;
    font-weight: bold;
    color: #ff5151;
}

.ball {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin: 5px;
    border: 1px solid black;
}

.black {
    background-color: #000;
    color: #000;
}

.white {
    background-color: #FFF;
    color: #FFF;
}

.name {
    font-size: 1rem;
    text-align: center;
}

.overlay {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    position: relative;
}

.overlay-wrapper {
    grid-row-start: 1;
    grid-column-start: 1;
}

#omok {
    width: 100%;
    max-width: 850px;
    max-height: 850px;
    /*border: 2px solid rgb(142, 142, 142);*/
    box-shadow: rgba(0, 0, 0, 0.3) 0px 0px 20px 0px;
    border-radius: 15px;
}

.name-input-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.name-input {
    background-color: #EEE;
    padding: 5px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    opacity: 1;
    transition: opacity 1s ease;
    width: min-content;
}

.name-input input {
    border: none;
    font-size: 20px;
    padding: 10px;
    margin: 5px;
    border-radius: 8px;
    max-width: 200px;
}

.name-input input:focus {
    outline: none;
}

.name-input button {
    margin: 5px;
    border: none;
    background-color: rgb(20, 83, 255);
    color: #FFF;
    font-size: 20px;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:active {
    transform: scale(0.8);
}

.transparent {
    opacity: 0 !important;
}

.message-box-wrapper {
    z-index: -99;
    display: flex;
    justify-content: center;
}

.message-box {
    background-color: #FFF;
    height: fit-content;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 15px;
    margin-top: 0px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 8px;
    box-shadow: rgba(0, 0, 0, 0.3) 0px 0px 30px 0px;
    transform: scale(0.6);
    opacity: 0;
    transition: all .3s ease;
}

.message-show {
    transform: scale(1);
    margin-top: 15px;
    opacity: 1;
}

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

.restart-btn {
    font-size: 1rem;
    font-weight: normal;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 2px;
    padding: 5px 10px;
    cursor: pointer;
    background-color: rgb(20, 83, 255);
    color: #fff;
    border-radius: 7px;
    margin-top: 5px;
    border: none;
    transition: all 0.3s ease;
}

.restart-btn > span.material-symbols-rounded {
    transform: rotateY(180deg);
    font-variation-settings:
        'FILL' 0,
        'wght' 500,
        'GRAD' 0,
        'opsz' 24
}

.monospace {
    font-family: 'Fira Code', monospace !important;
}


@media (hover: hover) and (pointer: fine) {
    .toggle-btn:hover {
        background-color: #c4c4c4;
    }

    .toggle-btn.active:hover {
        background-color: #4ad338;
    }
    
    .checkbox:hover > .checkbox-inner {
        background-color: #c0c0c0;
    }
    
    .checkbox.active:hover > .checkbox-inner {
        background-color: #4ad338 !important;
    }

    button:hover {
        background-color: rgb(18, 69, 209);
    }    
}