* {
  box-sizing: border-box;
  font-family: "Lexend", sans-serif;
  margin: 0;
  padding: 0;
}

body {
  background-color: rgba(245, 245, 245, 1);
  color: rgba(51, 51, 51, 1);
  padding: 2rem;
}

.mosaic__container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 0 auto;
  max-width: 36rem;
  text-align: left;
  width: 100%;
}

.mosaic__description {
  text-align: center;
}

.mosaic__title {
  color: rgba(34, 34, 34, 1);
  font-size: 2rem;
}

.mosaic__intro {
  font-size: 0.9rem;
  color: rgba(51, 51, 51, 1);
}

.mosaic__form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background-color: rgba(255, 255, 255, 1);
  padding: 2rem;
  border-radius: 0.5rem;
  border: 0.063rem solid rgba(221, 221, 221, 1);
}

.mosaic__config {
  display: flex;
  gap: 1rem;
}

.mosaic__field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.mosaic__label {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(33, 33, 33, 1);
}

.mosaic__input {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  border: 0.063rem solid rgba(221, 221, 221, 1);
  border-radius: 0.375rem;
  background-color: rgba(249, 249, 249, 1);
}

.mosaic__input:focus {
  outline: none;
  border-color: rgba(2, 117, 216, 1);
  box-shadow: 0 0 0 0.188rem rgba(2, 117, 216, 0.25);
}

.mosaic__upload {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mosaic__file {
  position: relative;
  width: 100%;
}

.mosaic__file-input {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
}

.mosaic__file-label {
  display: inline-block;
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  background-color: rgba(249, 249, 249, 1);
  border: 0.063rem solid rgba(221, 221, 221, 1);
  border-radius: 0.375rem;
  text-align: center;
  color: rgba(51, 51, 51, 1);
}

.mosaic__filename {
  font-size: 0.9rem;
  color: rgba(85, 85, 85, 1);
  margin-top: 0.5rem;
  display: none;
}

.mosaic__filename--visible {
  display: block;
  color: rgba(33, 33, 33, 1);
}

.mosaic__button {
  width: 100%;
  padding: 0.8rem 1.2rem;
  font-size: 1rem;
  background-color: rgba(24, 24, 27, 1);
  border: none;
  border-radius: 0.5rem;
  color: rgba(255, 255, 255, 1);
}

.mosaic__button:hover:not(:disabled) {
  background-color: rgba(47, 47, 49, 1);
}

.mosaic__button:disabled {
  background-color: rgba(204, 204, 204, 1);
}

.mosaic__output {
  background-color: rgba(255, 255, 255, 1);
  border-radius: 0.5rem;
  border: 0.063rem solid rgba(221, 221, 221, 1);
  display: none;
  font-size: 1.1rem;
  margin: 0 auto;
  max-width: 90vw;
  overflow: auto;
  padding: 1rem;
  width: fit-content;
}

.mosaic__output--visible {
  display: block;
}

.mosaic__error {
  color: rgba(255, 0, 0, 1);
}

footer {
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 0.5rem;
  border: 0.063rem solid rgba(221, 221, 221, 0.5);
  color: rgba(85, 85, 85, 1);
  font-size: 0.875rem;
  margin: 1.5rem auto;
  max-width: 36rem;
  padding: 1.5rem;
  text-align: center;
}

footer a {
  color: rgba(2, 117, 216, 1);
  text-decoration: none;
}

footer a:hover {
  color: rgba(0, 92, 181, 1);
  text-decoration: underline;
}
