:root {
  
  --primary-color: rgba(103, 137, 184, 0.5); /* poem container */
  --secondary-color:#a0b1b1; /* headings */
  --tertiary-color: #183685;
  --accent-color: #FFF166;
  --containers: #a0b1b159; /* generation container and footer container */
}
body {
  font-family: "Tomorrow", sans-serif;
  font-weight: 400;
  background-image: url("https://i.pinimg.com/originals/e5/87/3f/e5873f8b86ef7f91c7690fce588b7694.gif");
  background-repeat: no-repeat;
  background-size: cover;
}
.content {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.app-container {
  display: block;
  width: 540px;
  margin: auto;
  padding: 80px;
  background-color: var(--primary-color);
  border-radius: 20px;
  border-style: outset;
  border-color: #031728;
  box-shadow: 5px 10px #031728;
}
header {
  font-size: 48px;
  font-weight: 500;
  text-align: center;
  color: var(--secondary-color);
}
h3 {
  font-weight: 300;
  font-size: 22px;
  text-align: center;
  line-height: 1.5;
  margin: 10px;
  color: var(--secondary-color);
  }
form {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}
#form-input {
  width: 320px;
  height: 25px;
  color: black;
  background-color: white;
}
#form-submit {
  width: 100px;
  margin-left: 15px;
  color: var(--primary-color);
  font-size: 22px;
  background-color: var(--accent-color);
  border-radius: 15px;
}
#form-submit:hover {
  color: white;
  background-color: var(--tertiary-color);
}
.poem-container {
  text-align: center;
  font-size: 22px;
  line-height: 1.5;
  padding: 15px;
  background-color: var(--containers);
  border-left: 4px solid var(--accent-color);
  border-radius: 10px;
  box-shadow: 5px 5px #031728;
}

.hidden {
  display: none;
}
.examples {
    display: block;
    margin-top: 15px;
    text-align: center;
    color: var(--secondary-color)
}

.generating-container {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.loader-container {
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 300px;
}

.loader-wrap {
  width: 100px;
  height: 100px;
  display: grid;
  place-content: center;
}
.loader {
  display: inline-block;
  align-items: center;
  justify-content: space-around;
  width: 80px;
  height: 20px;
}

.loader div {
  margin-left: 5px;
  width: 15px;
  height: 15px;
  background-color:var(--accent-color);
  border-radius: 50%;
  display: inline-block;
  animation: loader-bounce 1.4s infinite ease-in-out both;
}

.loader div:nth-child(1) { animation-delay: -0.32s; }
.loader div:nth-child(2) { animation-delay: -0.16s; }

@keyframes loader-bounce {
  0%, 80%, 100% {
    transform: scale(0);
  }
  40% {
    transform: scale(1.0);
  }
}

footer {
  display: block;
  margin: auto;
  margin-top: 15px;
  padding: 5px;
  width:fit-content;
  font-size: 22px;
  text-align: center;
  color: black;
  background-color: var(--containers);
  border-radius: 10px;
}

@media (max-width: 800px) {
  body {
    background-image: url("https://wallpapercave.com/wp/wp14636567.gif");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 720px;
    margin: 0 auto;
    
  }
  .app-container {
    padding: 5px;
    width: 320px;
    border-radius: 10px ;
  }

  header {
    font-size: 36px;
    font-weight: 500;
    text-align: center;
    color: var(--secondary-color);
}
  h3 {
    font-weight: 300;
    font-size: 16px;
    text-align: center;
    line-height: 1.5;
    margin: 10px;
    color: var(--secondary-color);
  }
  #form-submit:hover {
    color: white;
    background-color: var(--tertiary-color);
  }
  .poem-container {
    font-size: 16px;
  }
  footer {
    display: block;
    margin: auto;
    margin-top: 8px;
    padding: 5px;
    width:fit-content;
    font-size: 16px;
    text-align: center;
    color: black;
    background-color: var(--containers);
    border-radius: 5px;
}
}