@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue",
    sans-serif;
  color: rgb(255, 255, 255);
}
:root {
  --primary-color: #222831;
  --secondary-color: #00adb5;
  --tertiary-color: #393e46;
}
.navbar {
  padding: 20px;
  background-color: var(--primary-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.imagexlogo {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}
.navbar img {
  height: 3.2rem;
}
.logo {
  filter: invert();
}
.navbar > h1 {
  font-size: 3.8rem;
  text-shadow: 1px 1px 3px black;
}
.navbar > div > h1 {
  font-size: 2.5rem;
}

.input-output {
  padding: 20px;
  background-color: var(--secondary-color);
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
}

.apiKeyBox{
  margin: 25px 0;
  display: flex;
}
#apiKeyInput{
  padding: 5px 10px;
  border-radius: 10px;
  outline: none;
  border: 1px soild black;
  border-color: #000000;
  width: 35vw;
  color: #000000;
  font-size: 12px;
}
.apiKeyBox>button{
  margin: 0 15px;
  border-radius: 10px;
  padding: 5px 10px;
  border: 2px solid rgb(107, 201, 200);
  background-color: #060047;
}
.apiKeyBox>button>a{
  text-decoration: none;
  color: rgb(255, 255, 255);
}

.msgbox {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  gap: 15px;
}
textarea {
  margin: 0 auto;
  background-color: rgb(235, 235, 235);
  padding: 10px 15px;
  font-size: 14px;
  color: black;
  border-radius: 10px;
  border-color: #060047;
  border-width: 2px;
  width: 100%;
  height: 500px;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}
textarea:focus {
  outline-style: none;
}

.btn {
  margin: 10px;
  font-size: 1.3rem;
  padding: 3px 8px;
  background-color: #002789;
  color: white;
  font-weight: 600;
  border-radius: 10px;
  border-color: #000000;
  box-shadow: 1px 1px black;
}
.btn:hover {
  cursor: pointer;
  background-color: rgb(0, 61, 183);
}
.btn:disabled{
  background-color: #5885b3;
  cursor: not-allowed;
}
.word-count {
  border: 2px;
  padding: 5px 10px;
  margin-top: 15px;
  margin-bottom: 5px;
  border-radius: 10px;
  background-color: #060047;
  box-shadow: 1px 1px 3px black, -1px -1px 3px black;
}

.information{
  height: 180px;
  padding: 25px;
  margin: 0 auto;
  background-color: var(--secondary-color);
}
.information h3,li{
  color: black;
}
hr{
  border-color: black;
}

.footer {
  position: relative;
  bottom: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--tertiary-color);
}

.footer > h2 {
  text-shadow: 1px 1px 3px black;
  margin: 5px auto;
  padding: 10px;
}

@media screen and (min-width: 425px) and (max-width: 767px) {
  /* CSS code for screens with a width between 425px and 768px */
  .msgbox{
    display: flex;
    flex-direction: column;
  }
  textarea {
    width: 100%;
    margin: 5px auto;
  }
  .btn {
    overflow: hidden;
    margin: 2px;
    font-size: 1.1rem;
  }
}

@media screen and (max-width: 480px) {
  /* CSS code for screens with a width of 480 pixels or less */

  .navbar {
    padding: 10px;
    gap: 5px;
  }

  .navbar > h1 {
    font-size: 2.65rem;
  }

  .navbar img {
    height: 2.2rem;
  }
  .msgbox{
    display: flex;
    flex-direction: column;
  }

  textarea {
    height: 300px;
  }

  .btn {
    font-size: 1.1rem;
  }
  .buttons {
    gap: 10px;
    display: flex;
    justify-content: center;
    flex-direction: column;
  }

  .word-count {
    font-size: small;
  }
  .information{
    padding: 10px;
    height: 120px;
    font-size: 10px;
  }

  .footer {
    position: relative;
    bottom: 0;
    width: 100%;
  }

  .footer > h2 {
    font-size: 1.1rem;
  }
}
