html {
    height: 100%;
    background-color: #444;
    position: relative;
}

body {
    margin: 0;
    padding: 0;
    height: 100%;
    display: flex;
    align-items: stretch;
}

.stat {
    display: none;
    min-width: 300px;
    flex-direction: column;
}

.aibot {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    box-sizing: border-box;
    background-color: #222;
    padding: 1em;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.aibot>* {
    margin: 0;
    /* height: 25px;
    width: 35px;
    padding-top: 8px;
    font-size: 11pt;
     */
    height: 43px;
    width: 60px;
    padding-top: 15px;
    font-size: 18pt;
    border-radius: 50%;
    background-color: #444;
    color: #fff;
    text-align: center;
    font-weight: bold;
    font-family: sans-serif;
}

hr {
    display: none;
    margin: 0;
}

.log {
    overflow-y: auto;
    width: 100%;
    flex-basis: 100%;
    box-sizing: border-box;
    background-color: #222;
    padding: 1em;
}

@media (max-width: 1300px) {
    body {
        display: block;
    }
    .stat {
        width: 100%;
        flex-direction: row;
    }
    hr {
        display: block;
    }
    .log {
        position: static;
        flex-basis: 100%;
        height: 200px;
    }
    .aibot>* {
        height: 43px;
        width: 60px;
        padding-top: 15px;
        font-size: 18pt;
    }
}

.log h2 {
    margin: 0;
    text-align: center;
}

.log * {
    color: #fff;
    font-family: 'Courier New', Courier, monospace;
}

#log {
    list-style: none;
    margin-left: 0;
    padding-left: 0;
    font-size: 11pt;
}

#log>li::before {
    content: "> ";
}

.container {
    position: relative;
    padding: 1em;
    flex-basis: 100%;
    text-align: center;
}

.title {
    margin: 0 auto;
    /* 336 x 103 */
    /* 546 x 99 */
    width: 546px;
    height: 99px;
    background-image: url(assets/logoname2.png);
    background-size: 100%;
    background-repeat: no-repeat;
}

.gameArea {
    position: relative;
}

canvas {
    background-image: url(assets/bg3.png);
    background-size: 100%;
}

.controller {
    position: absolute;
    padding: 1em;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.controller>* {
    width: 80px;
    height: 80px;
    font-size: 15pt;
    border: none;
    outline: none;
    transition-duration: 200ms;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0);
}

.controller>*:hover:enabled {
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
}

.controller>*:hover:disabled {
    cursor: default;
}

.player-1 {
    bottom: 11.8%;
}

.player-2 {
    top: 11%;
}

.gamecontrol {
    margin-top: 1em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gamecontrol>* {
    margin: 0 .5em 1em;
    color: white;
    border: none;
    outline: none;
    padding: 1em 1.5em;
    transition-duration: 200ms;
    border-radius: 10px;
    cursor: pointer;
}

.skipbtn {
    display: block;
    background-color: #021e55;
}

.skipbtn:hover {
    background-color: #1e4388;
}

.rulebtn {
    background-color: #021e55;
}

.rulebtn:hover {
    background-color: #1e4388;
}

.biji {
    color: #000;
    font-weight: bold;
    font-family: sans-serif;
    cursor: text;
    width: 4ch;
}

.logbtn {
    background-color: #021e55;
}

.logbtn:hover {
    background-color: #1e4388;
}

.clearbtn {
    display: block;
    background-color: #851212;
}

.clearbtn:hover {
    background-color: #a32f2f;
}

.pvpbtn {
    background-color: #353535;
}

.pvpbtn:hover {
    opacity: 0.8;
}

.restartbtn {
    background-color: #851212;
}

.restartbtn:hover {
    background-color: #a32f2f;
}

.modebtn {
    background-color: #005c02;
}

.modebtn:hover {
    opacity: 0.8;
}

@media (max-width: 1024px) {
    html {
        background-image: url(assets/grass.jpg);
        background-repeat: repeat;
    }
    canvas {
        background-image: url(assets/bg4.png);
        background-size: 100%;
    }
    .gameArea {
        position: absolute;
    }
    .title {
        display: none;
    }
    .gamecontrol {
        position: fixed;
        bottom: 10px;
        right: 10px;
    }
    .logbtn, .clearbtn {
        display: none;
    }
}

.modal-box {
    position: fixed;
    display: none;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.4);
    justify-content: center;
    align-items: center;
    font-family: sans-serif;
}

.modal-box>.content {
    background-color: #333;
    padding: 1em;
    width: 90ch;
    height: 500px;
    overflow-y: auto;
    border-radius: 5px;
}

.modal-box>button {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #fff;
    border: none;
    outline: none;
    padding: .25em .5em;
    font-size: 14pt;
    font-family: sans-serif;
}

.modal-box>button:hover {
    cursor: pointer;
    background-color: #ddd;
}

.content>h3 {
    margin: 0 0 0 1em;
    color: #fff;
    font-size: 20pt;
}

.content li {
    color: #fff;
    margin-right: 2em;
    font-size: 15pt;
}

.notif {
    position: absolute;
    top: 130px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.notif>* {
    margin: 0;
    font-size: 14pt;
    font-family: sans-serif;
    color: #fff;
}

@media (max-width: 1024px) {
    .modal-box>.content {
        height: 200px;
    }
    .notif {
        position: fixed;
        top: 20px;
    }
}

.gamecontrol button:disabled, .gamecontrol button:hover:disabled {
    background-color: #333;
    color: #000;
    cursor: initial;
}