html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/** end reset css**/

@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(5px); }
  50% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
  100% { transform: translateX(0); }
}

.shake-red {
  animation: shake 0.25s ease-in-out;
  background-color: crimson !important;
}

/** end animation css**/

header {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 50px;

  background-color: #007bff;
  color: #fff;
}

canvas {
  -webkit-box-shadow:inset 0px 0px 0px 1px #ccc;
  -moz-box-shadow:inset 0px 0px 0px 1px #ccc;
  box-shadow:inset 0px 0px 0px 1px #ccc;
}

button {
  padding: 10px 10px;

  cursor: pointer;
  border: none;
  color: #fff;
  border-radius: 5px;
}

#title {
  font-size: 18px;
}

#gameContainer {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#controls {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 5px;
}

#randomButton {
  background-color: #007bff;
}

#randomButton:active {
  background-color: #006aee;
}

#startButton {
  background-color: green;
}

#changePixelTypeButton {
  background-color: black;
  -webkit-box-shadow:inset 0px 0px 0px 1px black;
  -moz-box-shadow:inset 0px 0px 0px 1px black;
  box-shadow:inset 0px 0px 0px 1px black;
}

#changeLoopButton {
  background-color: orange;
}

#clearButton {
  background-color: crimson;
}

#clearButton:active {
  background-color: #990000;
}

#inputs-container {
  display: flex;
  gap: 10px;
}

#timeStepNumber, #cellSizeNumber {
  text-align: center;
}

#game {
  display: flex;
  gap: 20px;
}

#schemasList {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 200px;

  background-color: #888;
  border-radius: 10px;
}

.schema {
  display: flex;
  justify-content: center;
  align-items: center;
  width: calc(100% - 20px);
  height: 50px;
  margin-top: 10px;

  background-color: #555;
  font-weight: 800;
}

.schema:hover {
  background-color: #444;
}

.selected {
  background-color: #111;
}
