html {
    color: white;
    background-color: rgb(29, 29, 40);
}

body {
    margin: 0;
    min-width: 300px;
    padding: 8px;
    min-height: calc(100dvh - 16px);
    display: flex;
    flex-direction: column;
}

nav,
footer {
    background: transparent;
}

footer {
    text-align: center;
    padding: 10px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

nav > div > button {
    font-size: 20px;
    margin: 10px 10px;
}

main {
    flex: 1;
}

.good-input {
    background-color: lightgreen;
}

.bad-input {
    background-color: lightcoral;
}

input {
    border: 1px solid white;
    border-radius: 4px;
}

.card {
    text-align: center;
    margin: 10px 10px;
    padding: 5px;
    background: rgba(130, 130, 130, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.notification {
    font-size: 1.5rem;
    position: absolute;
    margin: 0px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(20, 20, 31, 0.85);
    border-radius: 5px;
}

button {
    border-radius: 5px;
    padding: 3px 7px;
    cursor: pointer;
    color: deepskyblue;
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
}
button:active {
    transform: scale(0.95);
}
.g-cell-act:active {
    transform: scale(0.95);
}

button:disabled {
    color: gray;
    cursor: default;
}

.card > div > header {
    font-size: 20px;
}

#h-actions > * {
    margin: 10px;
}

#h-actions {
    display: flex;
    justify-content: center;
}

@media(max-width: 500px) {
    #h-actions {
        flex-direction: column;
    }
}

/* Gobblers Styles */
#gobblers {
    margin: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#g-board.win {
    box-shadow: 0 0 1.5rem rgba(226, 266, 74, 1), 0 0 3rem rgb(226, 226, 74, 0.8);
}

#g-board {
    border-radius: 3%;
    margin: 0 1%;
    width: 54vmin;
    height: 54vmin;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
}

#g-new-0.move {
    box-shadow: 0 0 1rem rgba(74, 226, 74, 0.7), 0 0 2rem rgba(74, 226, 74, 0.5);
}

#g-new-1.move {
    box-shadow: 0 0 1rem rgba(226, 74, 74, 0.7), 0 0 2rem rgba(226, 74, 74, 0.5);
}

#g-new-0,
#g-new-1 {
    width: 18vmin;
    height: 54vmin;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr 1fr;
}

.g-cell {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 5%;
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 0.1rem solid rgba(255, 255, 255, 0.4);
}

.g-cell-act {
    cursor: pointer;
    border: 0.1rem solid cadetblue;
}

.g-cell-sel {
    border: 0.1rem solid wheat;
}

.g-sign-0,
.g-sign-1 {
    position: absolute;
    border: 1px solid black;
    border-radius: 50%;
    display: inline-block;
    transform: transform 0.5s ease;
}

.g-sign-0 {
    background-color: green;
}

.g-sign-1 {
    background-color: red;
}

.g-piece-double {
    transform: translate(10%, 10%);
}

.g-piece-0 {
    height: 35%;
    width: 35%;
}

.g-piece-1 {
    height: 65%;
    width: 65%;
}

.g-piece-2 {
    height: 80%;
    width: 80%;
}

#g-new-o-0,
#g-new-x-0 {
    border-radius: 10% 10% 0 0;
}

#g-new-o-2,
#g-new-x-2 {
    border-radius: 0 0 10% 10%;
}

#g-board-0 {
    border-radius: 10% 0 0 0;
}

#g-board-2 {
    border-radius: 0 10% 0 0;
}

#g-board-6 {
    border-radius: 0 0 0 10%;
}

#g-board-8 {
    border-radius: 0 0 10% 0;
}
