* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  height: 100vh;
  width: 100vw;
  min-width: 1024px;
  display: flex;
  flex-direction: column;
  color: rgb(238, 225, 225);
  font-family: 'Poppins', sans-serif;
}

header {
  height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  background-color: rgb(37, 37, 37);
}

#version {
  font-size: 0.5em;
  font-weight: 300;
  padding-left: 10px;
}

aside {
  width: 300px;
  background-color: rgb(53, 53, 53);
  padding: 10px 20px;
  display: flex;
  flex-direction: column;
}

main {
  flex-grow: 1;
  display: flex;
  height: calc(100vh - 60px);
}

#content {
  flex-grow: 1;
}

canvas {
  width: 100%;
  height: 100%;
}


/* Styles for forms and inputs - START */
.form-header {
  font-weight: 300;
  font-size: 1.2em;
  padding-bottom: 7px;
}

.controls-section:not(:last-child) {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 2px solid grey;
}

.controls-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cell-label {
  flex: 1;
  font-weight: 300;
  font-size: 1em;
  display: flex;
  gap: 5px;
  flex-direction: column;
  align-items: center;
}

.cell-label:not(:last-child) {
  border-right: 1px solid grey;
}

input[name="seed"] {
  display: block;
  float: right;
  padding: 3px;
  border-radius: 5px;
  font-size: 1em;
  text-align: right;
  width: 140px;
}

.range-label {
  display: block;
  font-weight: 300;
  font-size: 1em;
}

.range-label:not(:last-child) {
  margin-bottom: 7px;
}

input[type=range] {
  -webkit-appearance: none;
  border-radius: 5px;
  margin: 8px 0 8px 0;
  width: 100%;
}

input[type=range]:focus {
  outline: none;
}

input[type=range]::-webkit-slider-runnable-track {
  width: 100%;
  height: 10px;
  cursor: pointer;
  box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;
  background: #e3e6e9;
  border-radius: 5px;
  border: 0.2px solid #010101;
}

input[type=range]::-webkit-slider-thumb {
  box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;
  border: 3px solid teal;
  height: 22px;
  width: 22px;
  border-radius: 50%;
  background: #f3efef;
  cursor: pointer;
  -webkit-appearance: none;
  margin-top: -7px;
}

input[type=range]:focus::-webkit-slider-runnable-track {
  background: #367ebd;
}

input[type=range]::-moz-range-track {
  width: 100%;
  height: 10px;
  cursor: pointer;
  box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;
  background: #3071a9;
  border-radius: 5px;
  border: 0.2px solid #010101;
}

input[type=range]::-moz-range-thumb {
  box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;
  border: 1px solid #000000;
  height: 36px;
  width: 16px;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
}

input[type=range]::-ms-track {
  width: 100%;
  height: 10px;
  cursor: pointer;
  border-color: transparent;
  border-radius: 5px;
  border-width: 16px 0;
}

input[type=range]::-ms-fill-lower {
  background: #2a6495;
  border: 0.2px solid #010101;
  border-radius: 5px;
  box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;
}

input[type=range]::-ms-fill-upper {
  background: #3071a9;
  border: 0.2px solid #010101;
  border-radius: 5px;
  box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;
}

input[type=range]::-ms-thumb {
  box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;
  border: 1px solid #000000;
  height: 36px;
  width: 16px;
  border-radius: 5px;
  background: #ffffff;
  cursor: pointer;
}

input[type=range]:focus::-ms-fill-lower {
  background: #3071a9;
}

input[type=range]:focus::-ms-fill-upper {
  background: #367ebd;
}

input[type="color"]::-webkit-color-swatch-wrapper {
	padding: 0;
}

input[type="color"]::-webkit-color-swatch {
	border: none;
}
/* Styles for forms and inputs - END */


/* UI Buttons - START */
#toggle-info-btn {
  width: 30px;
  height: 30px;
  display: block;
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
}

#toggle-info-btn:hover {
  transform: scale(1.1) rotate(3deg);
}

#download-btn {
  position: fixed;
  display: flex;
  justify-content: start;
  align-items: center;
  right: 20px;
  bottom: 20px;
  width: 60px;
  height: 60px;
  margin-top: auto;
  padding: 8px;
  border-radius: 30px;
  outline: none;
  font-size: 1.1em;
  color: white;
  background-color: teal;
  border: none;
  padding: 0 10px;
  cursor: pointer;
  transition: width 0.4s ease-in-out;
}

#download-btn img {
  width: 30px;
  height: 30px;
  margin: 0 5px;
  transition: transform 0.4s ease-in;
}

#download-btn span {
  position: absolute;
  left: 45px;
  text-align: center;
  width: 150px;
}

#download-btn:hover {
  width: 200px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#download-btn:hover img {
  transform: rotate(-360deg);
}

#download-btn:hover span {
  display: block;
}

#grow-btn {
  padding: 7px 10px;
  margin-bottom: 10px;
  font-size: 1.1em;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 17px;
  margin-top: auto;
  color: white;
  background-color: teal;
  outline: none;
  border: none;
  cursor: pointer;
}

.disabled {
  cursor: default !important;
  opacity: 0.5;
}

/* UI Buttons - END*/



/* Modal - START */

@keyframes slideIn {
  0% {
    transform: translateY(-100%) scale(0.8);
  }
  100% {
    transform: translateY(0) scale(1.0);
  }
}

@keyframes slideOut {
  0% {
    transform: translateY(0) scale(1.0);
  }
  100% {
    transform: translateY(-100%) scale(0.8);
  }
}


#modal {
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  position: fixed;
  display: none;
  background-color: #0000006e;
  z-index: 100;

  flex-direction: column;
  align-items: center;
}

#modal-content {
  width: 1024px;
  min-height: 100vh;
  /* display: flex; */
  /* flex-direction: column; */
  position: relative;
  overflow-y: scroll;
  /* left: 50%;
  transform: translate(-50%); */
  padding: 40px;
  background-color: #535353;
  
  font-weight: 300;
  /* animation: showUp 0.3s ease-in-out; */
}

#modal figure {
  margin: 10px 0 20px 0;
}


#modal figcaption {
  padding: 5px 5px 5px 10px;
}

#modal img {
  display: block;
  width: 100%;
  /* height: 100%; */
}

#modal h2 {
  margin: 30px 0 20px 0;
  padding: 10px 20px;
  font-size: 1.8em;
  font-weight: 500;
  border-bottom: 2px solid grey;
}

#modal p {
  font-size: 1.2em;
  padding: 10px 0;
}

.open-modal {
  display: flex !important;
}

#close-modal-btn {
  position: absolute;
  top: 0;
  right: 0;

  color: white;
  font-size: 2em;
  background-color: transparent;

  outline: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  width: 40px;
  height: 40px;
}

#sources {
  list-style-type: none;
}

#sources li a {
  font-size: 1.2em;
  color:rgb(238, 225, 225);
  padding: 5px;
}

#docs-link {
  color:rgb(238, 225, 225);
  font-size: 1.2em;
}

/* Modal - END */