:root {
    --font-family: "Comic Sans MS", "Comic Sans", Arial, serif;
    /* --font-family: Arial; */
    --a-color: #69acff;
}

html, body {
    background-color: black;
    color: white;
}

* {
    font-family: var(--font-family);
    box-sizing: border-box;
}

button {
    cursor: pointer;
    padding: 1rem 2rem
}

.landing {
    display: flex;
    justify-content: center;
}

.landing main {
    max-width: 40rem;
}

@keyframes coolButton {
    0% {
        transform: rotate(0) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(1.2);
    }

    100% {
        transform: rotate(360deg) scale(1);
    }
}

#makeGame {
    animation-name: coolButton;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
    background-color: greenyellow;
    border: 1px solid blue
}

#makeGame:hover {
    color: blue;
    background-color: lightblue;
}

nav {
    border-bottom: 1px dashed greenyellow;
}

nav h1 {
    margin: 0 1rem
}

nav a:has(h1) {
    color: white;
    text-decoration: none;
}

a {
    color: var(--a-color);
    text-decoration: dashed underline;
}

.square {
    aspect-ratio: 1/1;
    flex-grow: 1;
    border: 1px solid black;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.white.square {
    background-color: white;
}

.black.square {
   background-color: #2a95ff; 
}

.board {
    aspect-ratio: 1/1;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    flex-grow: 1;
}

.row {
    display: flex;
    flex-grow: 1;
    flex-direction: row;
    flex-wrap: nowrap;
}

.square.highlight {
    /* box-shadow: inset 0 0 10px #ff86f1; */
    background-color: #ff86f1 !important;
    cursor: pointer;
}

.square.selected {
    filter: invert(1)
}

#statuslight {
    height: 8px;
    width: 8px;
    border-radius: 8px;
    background-color: #717278;
    margin-right: 0.25rem;
}

.statusbar {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.spacer {
    flex-grow: 1;
}

.piece {
    font-size: 4rem;
    color: black;
    position: absolute;
    cursor: pointer;
    user-select: none;
    font-family: "Arial Unicode MS";
}

/* the piece of a highlighted square cannot be selected */
.square.highlight > .piece {
    pointer-events: none;
}

.promo {
    display: flex;
    flex-direction: row;
    max-width: 20rem;
    width: 80%
}

#promoptions {
    display: flex;
    flex-direction: row;
}

.promo div.square {
    aspect-ratio: 1/1;
    background-color: #fff;
    min-width: 5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: black;
    border: 1px solid black;
}

.promo > div.square {
    background-color: #ff8181 !important;
}

.promo div.square.black {
    background-color: #ca3aba;
}

.promo > .arrow::after {
    content: ">";
    font-size: 3.5rem;
}

.promo > .arrow {
    text-align: center;
    margin: 0 0.5rem
}