@import url("https://fonts.googleapis.com/css2?family=Kaushan+Script&display=swap");
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.5.0/font/bootstrap-icons.css");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  letter-spacing: 0.1rem;
  font-family: "Kaushan Script", cursive;
}

:root {
  --primary-color: #ef4444;
  --black: #000;
  --white: #fff;
}

body {
  color: var(--white);
  background-color: var(--black);
}

a {
  color: var(--black);
  text-decoration: none;
}

.navbar {
  padding: 1rem 0;
  background-color: var(--primary-color);
  text-align: center;
  font-size: 1.4rem;
  color: var(--black);
}

.wrapper {
  display: flex;
  flex-direction: column;
}

.hero-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: calc(100vh - 3.8rem);
}

.hero-image {
  width: 100%;
  border-radius: 1rem;
}

.hero-heading {
  margin: 1rem 0rem;
  text-align: center;
  font-size: 1.5rem;
  text-align: center;
  color: var(--white);
}

.button {
  padding: 0.5rem 0.95rem;
  margin: 1rem;
  font-size: 1.2rem;
  background-color: var(--primary-color);
  border: none;
  border-radius: 0.2rem;
  cursor: pointer;
}

.button-small {
  padding: 0.3rem 0.7rem;
  font-size: 1rem;
  margin: 0;
}

.button:hover {
  transition: 0.5s;
  background-color: rgb(239, 68, 68, 0.9);
}

.input,
.output {
  width: 100%;
  text-align: center;
}

.input-heading,
.output-heading {
  padding: 1rem 0;
  font-size: 1.2rem;
  font-weight: bold;
}

.output-heading {
  padding: 1rem 2.3rem;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#text-input {
  display: block;
  width: 80%;
  margin: 0 auto 1rem auto;
  padding: 1rem;
  font-size: 1.2rem;
  background-color: inherit;
  color: var(--white);
}

#output-text {
  width: 80%;
  height: 20vh;
  text-align: left;
  font-size: 1.2rem;
  overflow-y: auto;
  padding: 1rem;
  margin: 0 auto 2rem auto;
  border: 1px solid var(--white);
  border-radius: 0.2rem;
}

footer {
  padding: 1rem 2rem;
  color: var(--black);
  background-color: var(--primary-color);
}

.footer-heading {
  text-align: center;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.footer-text {
  font-size: 1.1rem;
}

.social-icons-container {
  display: flex;
  list-style: none;
  justify-content: space-evenly;
  margin: 0.8rem auto;
  font-size: 1.4rem;
}

.credits {
  text-align: center;
}

.site-color {
  color: var(--white);
}

.site-color:hover {
  text-decoration: underline;
}

.icon:hover {
  transition: 0.5s;
  color: var(--white);
}

@media screen and (min-width: 768px) {
  .container {
    max-width: 80%;
    margin: auto;
  }

  .navbar {
    font-size: 2rem;
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
  }

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

  .hero-header {
    width: 50%;
  }

  .text-container {
    width: 50%;
  }

  .hero-heading {
    font-size: 2.5rem;
  }

  .output-heading {
    padding: 1rem 3.4rem;
    font-size: 1.2rem;
  }

  .footer {
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
  }
}
