@import url('./neue-machina/stylesheet.css');

* {
  margin: 0px;
  padding: 0px;
  font-family: 'pp_neue_machinaregular';
}

body {
  background-color: #000;
  font-family: 'pp_neue_machinaregular';
  font-weight: normal;
  display: flex;
  flex-direction: column;
}

.header {
  display: flex;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid #222222;
}

.text-m {
  font-size: 16px;
  line-height: 18px;
  color: #fff;
}

.text-p {
  font-size: 16px;
  line-height: 150%;
  color: #fff;
}

a {
  color: #818387;
  text-decoration: none;
  transition: color 0.4s;
  cursor: pointer;
}


a:hover {
  transition: color 0.4s; 
  color: #fff;
}

a:visited {
  text-decoration: none;
}

.name:hover {
  color: #fff;
}

h1 {
  font-size: 36px;
  line-height: 150%;
  color: #fff;
  font-weight: 400;
  margin-bottom: 16px;
}

.sub-heading {
  margin-bottom: 64px;
}

.main-wrapper {
  margin: 85px auto 0px auto;
  max-width: 640px;
}

textarea {
  width: 100%;
  font-size: 16px;
  line-height: 150%;
  background-color: transparent;
  color: #fff;
  border: none;
  resize: vertical;
  /* border: 1px solid red; */
  resize: vertical;
  /* height: 100%; */
  overflow: scroll;
  outline: none;
}

input {
  width: 100%;
  font-size: 16px;
  line-height: 150%;
  background-color: transparent;
  color: #fff;
  border: none;
  outline: none;
  overflow-wrap: break-word;
  margin-right: 16px;
  word-wrap: break-word;
}

input::placeholder {
  color: #818387;
}

.input-output-wrapper {
  max-width: 640px;
  border-radius: 8px;
  background-color: transparent;
  border: 1px solid #222;
  padding: 16px;
  display: flex;
  align-items: center ;
  margin-bottom: 24px;
}

.input-border, .output-border {
  border: 1px solid #222;
}

.input-border.focused {
  border: 1px solid #444;
}


textarea > * {
  margin: 0px;
  padding: 0px;
}


p:empty:not(:focus)::before {
  content: attr(data-placeholder);
  color: #818387;
}

/* .mobile-input {
  display: none;
}

.desktop-input {
  display: block;
} */

button {
  font-size: 16px;
  line-height: 18px;
  border: 1px solid #222;
  padding: 8px 12px;
  border-radius: 6px;
  background-color: #222;
  color: #fff;
  transition: all 0.4s; 
  cursor: pointer;
  margin-left: auto;
  margin-bottom: auto;
  display: flex;

}
button:disabled {
  transition: all 0.4s; 
  background-color: transparent;
  margin-bottom: auto;
  opacity: 50%;
  cursor: default;
}

.button-icon {
  height: 16px;
  width: 16px;
  margin-right: 8px;
}


#output-field {
  color: #fff;
  margin-right: 16px;
}


/* Alert wrapper */
.alert-wrapper {
  position: fixed;
  z-index: 9999;
  top: 24px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.alert {
  position: absolute;
  transition: all .3s ease-in-out;
  border-radius: 300px;
  background-color: #222;
  color: #818387;
  pointer-events: none;
  text-align: center;
  padding: 16px 24px;
  font-size: 16px;
  line-height: 18px;
  justify-self: center;
}

.show { 
  display: flex;
  animation: fadeIn 0.2s ease-in both;
}

.hide {
  /* display: none; */
  animation: fadeOut 0.2s ease-in both;
}

.hidden {
  display: none;
}


@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translate3d(0, -56px, 0);
	}
	to {
		opacity: 1;
		transform: translate3d(0, 16px, 0);
	}
}


@keyframes fadeOut {
	from {
		opacity: 1;
		transform: translate3d(0, 16px, 0);
	}
	to {
		opacity: 0;
		transform: translate3d(0, -56px, 0);
	}
}


.product-hunt {
  z-index: 999;
  position: absolute;
  top: 101px;
  right: 32px;
}


@media screen and (max-width: 704px) {
  .header {
    flex-direction: column;
    padding: 16px 16px 24px 16px;
  }

  .name {
    margin-bottom: 24px;
  }

  .main-wrapper {
    padding: 0px 16px;
    margin: 64px auto 0px auto;
  }

  h1 {
    font-size: 28px;
  }

  .sub-heading {
    margin-bottom: 32px;
  }

  .product-hunt {
    top: 133px;
    left: 16px;
    right: 0px;
  }
}

@media screen and (max-width: 450px) {
  .header {
    flex-direction: column;
  }

  .input-output-wrapper {
    padding: 12px;
  }

}