/* Variables */
:root {
    --board-width: 84;
    --board-height: 28;
}
/* *{
    pointer-events: none;
} */

@font-face {
    font-family: neueMontrealLight;
    src: url(./fonts/NeueMontreal-Light.otf);
}
@font-face {
    font-family: neueMontrealMedium;
    src: url(./fonts/NeueMontreal-Regular.otf);
}

body {
    background-color: #0d0d0d;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: neueMontrealLight, sans-serif;
}

h2 {
    color: white;
    font-family: neueMontrealMedium, sans-serif;
    font-weight: 100;
    font-size: 3rem;
    margin: .5rem;
}

.gray {
    color: gray;
}

/* The flipdotboard that contains all flipdots */
.grid {
    margin-top: 2rem;
    padding: 1rem;
    background-color: #0d0d0d;
    display: grid;
    width: calc(var(--board-width) * 0.5vw);
    height: calc(var(--board-height) * 0.5vw);
    grid-template-columns: repeat(var(--board-width), 1fr);
    grid-template-rows: repeat(var(--board-height), 1fr);
    border: 2px solid #262626;
    border-radius: .5rem;
    /* gap: 1px; */
}
.grid *{
pointer-events: all;
}

/* The flipdots */
.grid div {
    border-radius: 50%;
    transform-style: preserve-3d;
    transition: transform 0.6s ease, background 0.6s ease;
}

.flipboard {
    background-color: #352f36;
}

/* Animating the flipdots */
.active {
    animation: flip 0.3s forwards;
}
.inactive {
    animation: flip-back 0.3s forwards;
}

    @keyframes flip {
        0% {
            transform: rotateY(0deg);
            background: #352f36;
        }
        100% {
            transform: rotateY(180deg);
            background: white;
        }
    }
    @keyframes flip-back {
        0% {
            transform: rotateY(0deg);
            background: white;
        }
        100% {
            transform: rotateY(180deg);
            background: #352f36;
        }
}

/* The canvas */
.canvas {
    border: 2px solid #262626;
    border-radius: 0.3rem;
}

/* The Interface */
.interface_container {
    display: flex;
    flex-direction: row;
    position: absolute;
    margin-top: 100vh;
}

.inputs {
    display: flex;
    flex-direction: column;
    color: white;
    margin-top: 1rem;
}
.inputs-scaling {
    display: flex;
    flex-direction: column;
    margin-top: 3rem;
    margin-right: 1rem;
    padding: 1.25rem;
    border: 1px solid #262626;
    border-radius: .5rem;
}
.inputs-scaling input {
    background-color: #0d0d0d;
    border: 1px solid #262626;
    color: white;
    margin: .25rem;
}

.button {
    margin-top: 3rem;
    margin-left: 1rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    border: 1px solid #262626;
    border-radius: .5rem;
    height: 2.5rem;
    width: 8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.button:hover {
    background-color: #262626;
    cursor: pointer;
}

.arrow {
    width: 1rem;
    height: 1rem;
}