* {
  padding: 0;
  margin: 0;
  font-family: monospace;
  color: rgb(206, 206, 206);
}
html,
body {
  background-color: black;
  height: 100%;
  overflow: hidden;
}
canvas {
  display: block;
}
.specs {
  user-select: none;
  color: white;
  position: absolute;
  z-index: 1;
  bottom: 2px;
  left: 10px;
  font-family: monospace;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.generation,
.fps,
.liveCells,
.zoom {
  background-color: black;
  padding: 5px 10px;
  border-radius: 10px;
}
.madeBy {
  right: 7px;
  z-index: 2;
  bottom: 2px;
  position: absolute;
  color: white;
  text-decoration: underline;
  font-family: monospace;
  background-color: black;
  padding: 5px 10px;
  border-radius: 10px;
}
.controls {
  color: rgb(148, 255, 182);
  background-color: rgb(1, 52, 52);
  border: 1px solid white;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 5px;
  border-radius: 10px;
  position: absolute;
  left: 50%;
  bottom: 2px;
  transform: translate(-50%);
  z-index: 1;
}
svg {
  height: 27px;
}
.hide {
  display: none;
}
svg {
  cursor: pointer;
}
.topRightOptions {
  position: absolute;
  z-index: 1;
  top: 5px;
  left: 5px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.templates,
.contributeBtn,
.rulesBtn,
.helpBtn,
.closeHelp {
  color: rgb(148, 255, 182);
  background-color: rgb(1, 52, 52);
  border-radius: 10px;
  padding: 7px 10px;
  border: white solid 1px;
  font-family: monospace;
  cursor: pointer;
  width: 110px;
}
.blur {
  position: absolute;
  top: 0px;
  bottom: 0px;
  left: 0;
  right: 0;
  z-index: 3;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(6px);
  display: none;
}
.frontend {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  overflow-y: scroll;
  flex-direction: column;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  z-index: -1;
}
.templatePage {
  z-index: 4;
  height: 100%;
  border-radius: 5px;

  overflow: hidden;
  width: 100%;
  max-width: 500px;

  display: none;

  justify-content: center;
}
.template-head {
  font-family: monospace;
  font-size: 25px;
  text-align: center;
  margin-top: 50px;
}
.templatePageWrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px;
  width: 100%;
}
.card {
  display: flex;
  border: 1px solid white;
  flex-direction: column;
  padding: 10px;
  gap: 10px;
  border-radius: 10px;
  background: linear-gradient(rgb(14, 22, 29), rgb(21, 35, 48));
  cursor: pointer;
  /* width: 100%; */
}
.nameAndContri {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.patternName {
  font-size: 20px;
  color: rgb(255, 145, 0);
}
.contributor {
  color: rgb(0, 255, 255);
}
.content {
  width: 100%;
  overflow-y: scroll;
  display: flex;
  gap: 10px;
  flex-direction: column;
  flex-grow: 1;
}
.loader,
.signupFirst,
.nothingFound,
.signupFirstToContribute {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin-top: 50px;
}
.loaderVideo {
  height: 150px;
  width: 150px;
}
.loadText {
  font-size: 20px;
}
.tabAndSearch {
  max-width: 500px;
  width: 100%;
  justify-content: space-between;
  display: flex;
  width: 100%;
  background-color: rgb(1, 52, 52);
  padding: 12px;
  width: 100%;
  max-width: 500px;
  border-radius: 5px;
  margin-top: 20px;
}
.tab-selector {
  display: flex;
  gap: 20px;
  font-size: 13px;
}
.tab {
  cursor: pointer;
}
.tab-selector div {
  padding: 3px;
  padding-bottom: 0;
}
.selected {
  color: rgb(148, 255, 182);
  border-bottom: solid 1px rgb(148, 255, 182);
}
.loaderFullScreen {
  z-index: 5;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding-top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(6px);
}
.searchBox {
  border: none;
  outline: none;
  color: black;
  padding: 3px;
  border-radius: 4px;
  background-color: rgb(218, 218, 218);
}
.fetchedContent {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.signupFirstBtn,
.close,
.signupFirstBtnToContribute,
.publishPattern,
.closeContributeDialogueBox {
  color: rgb(148, 255, 182);
  background-color: rgb(1, 52, 52);
  text-align: center;
  font-size: 20px;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  padding: 6px 3px;
  margin-top: 10px;
}
.signupFirst,
.nothingFound {
  gap: 20px;
}
.notRegistered,
.notFound {
  text-align: center;
}
.signupLoginForm {
  z-index: 4;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
}
.form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}
.inp {
  border: none;
  outline: none;
  color: black;
  padding: 5px;
  height: 25px;
  border-radius: 5px;
  width: 100%;
  margin: 5px 0;
  width: 300px;
}
.signInUpBtn {
  color: rgb(148, 255, 182);
  background-color: rgb(1, 52, 52);
  text-align: center;
  font-size: 20px;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  padding: 5px;
  border: none;
  width: 310px;
}
.signUpInMode {
  text-decoration: underline;
  cursor: pointer;
}
.err {
  color: red;
  align-self: flex-start;
  display: none;
}
.loadingInSignUp {
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(6px);
  text-align: center;
  display: none;
}
.close,
.closeContributeDialogueBox {
  width: 100px;
}
.closeContributeDialogueBox {
  width: 200px;
  margin-top: 30px;
}
.contributeDialogueBox {
  z-index: 5;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  display: none;
}
.instructions {
  margin-top: 20px;
}
.contributionMessage {
  margin-top: 10px;
  text-align: center;
}
.contributionForm {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 20px;
}
#description {
  height: 100px;
  width: 300px;
  border-radius: 5px;
  padding: 5px;
  color: black;
}
.rules {
  display: none;
}
.help {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  display: flex;
  z-index: 3;
  gap: 20px;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  display: none;
}

li {
  padding: 5px;
}
.helpWrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 400px;
}
.help-content {
  margin-top: 30px;
}
.closeHelp {
  text-align: center;
}
.published {
  z-index: 3;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  backdrop-filter: blur(4px);
  display: none;
}
.success {
  margin: 30px;
  font-size: 20px;
}
.obstructed {
  z-index: 5;
  top: 50%;
  left: 50%;
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  display: none;
}
