
#canvas {
    aspect-ratio: 1 / 1 !important;
    height: calc(100vh - 2em);
	width: calc(100vh - 2em);
    overflow: hidden;

    margin: 1em;

    background-color: var(--color-3);

    outline: var(--color-1) 2px solid;
    outline-offset: 5px;

    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;

    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    grid-template-areas:
        "one a two"
        "poke1 b poke2"
        "c c c";

    justify-items: center;
    align-items: center;

    grid-gap: 1em;
}

#turn { grid-area: a; text-align: center; }
#poke1 { grid-area: poke1; transform: scaleX(-1); }
#poke2 { grid-area: poke2; }
#poke1, #poke2 {
    height: 100%;
    justify-self: center;
}

#stats1 {
    grid-area: one;
    padding-left: 10px;
}
#stats2 {
    grid-area: two;
    padding-right: 10px;
}

#stats1, #stats2 {
}

.name {
    font-family: 'Pokemon Solid', cursive;
    letter-spacing: 5px;
    color: var(--color-1)
}

#footer {
    grid-area: c;
    width: calc(100% - 10px);
    height: calc(100% - 10px);
    background: var(--color-5);

    display: grid;
    grid-template-columns: 30% 1fr;
    grid-template-rows: 1fr;
    grid-template-areas: "actions moves";

    overflow-y: auto;
}

#moves {
    display: none;
    grid-area: moves;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto auto;

    padding: 5px;
    overflow-y: auto;
}

#actions {
    display: none;
    grid-area: actions;
    padding: 5px;
}

#flavor {
    grid-area: actions / moves;
}

/**/

progress {
  border-radius: 15px;
  width: 80%;
  height: 22px;
  padding: 5px;
}

progress::-webkit-progress-value, progress::-moz-progress-bar {
  background-color: var(--color-4);
  border-radius: 15px;
}
