:root {
  --white: #ffffff;
  --light: whitesmoke;
  --green: #11ff00;
  --pink: #ff176b;
  --medium-dark: #777;
  --dark: #242526;
  --border-rad-lg: 15px;
  --light-green: #d4e2d4;
}

html,
body {
  margin: 0;
  padding: 0;
  font-size: 16px;
  background-color: var(--light-green);
}
body {
  font-family: "Poppins";
  background-size: cover;
  background-repeat: repeat-y;
  /*background-image: url('./images/moviepitchbg-dark.jpg');*/
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* =================
      Typography 
     ================= */

h1 {
  font-family: "Playfair Display SC", serif;
  text-align: center;
}

h2 {
  font-size: 1.3em;
}

p {
  line-height: 1.35em;
}

/* =================
      Sections 
     ================= */

header {
  background-color: var(--green);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.3em;
}

header > img {
  height: 26px;
}

header > a {
  color: var(--dark);
  font-size: 1.5em;
  text-decoration: none;
  padding: 1em 0;
}

header span {
  font-weight: 700;
}

main {
  padding: 0 1em;
}

section {
  margin: 0 auto;
  background-color: var(--light);
  border-radius: var(--border-rad-lg);
  padding: 0.25em 1em;
  box-shadow: 0px 1px 18px 3px var(--dark);
  max-width: 420px;
}

/* =================
      Setup 
     ================= */

.setup-inner {
  display: flex;
  justify-content: space-around;
  padding: 1.5em 0.5em;
  min-height: 200px;
}

.setup-inner > img {
  width: 40%;
  filter: drop-shadow(3px 2px 3px var(--medium-dark));
  align-self: center;
}

.setup-input-container {
  min-height: 74px;
}

.speech-bubble-ai {
  max-width: 55%;
  min-height: 124px;
  border-radius: var(--border-rad-lg);
  position: relative;
  margin: 0;
  border: 3px solid var(--medium-dark);
  background-color: var(--white);
  align-self: flex-start;
  display: flex;
  align-items: center;
}

.speech-bubble-ai:before {
  content: "";
  position: absolute;
  border-left: 9px solid transparent;
  border-right: 9px solid var(--medium-dark);
  border-top: 9px solid var(--medium-dark);
  border-bottom: 9px solid transparent;
  left: -21px;
  top: 64px;
}

.speech-bubble-ai:after {
  content: "";
  position: absolute;
  border-left: 7px solid transparent;
  border-right: 7px solid var(--white);
  border-top: 7px solid var(--white);
  border-bottom: 7px solid transparent;
  left: -11px;
  top: 68px;
}

.speech-bubble-ai > p {
  padding: 0 1.3em;
  color: var(--dark);
  font-size: 85%;
}

textarea {
  background-color: var(--green);
  padding: 0.8em;
  border: none;
  border-top-right-radius: 0;
  border-top-left-radius: var(--border-rad-lg);
  border-bottom-right-radius: 0;
  border-bottom-left-radius: var(--border-rad-lg);
  width: 100%;
  resize: none;
  min-height: 40px;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

textarea::placeholder {
  color: var(--medium-dark);
  font-size: 88%;
  opacity: 0.8;
}

/* larger mobiles+ */

@media (min-width: 380px) {
  .setup-input-container {
    padding-top: 0;
  }

  .speech-bubble-ai:before {
    top: 92px;
  }

  .speech-bubble-ai:after {
    top: 96px;
  }

  .speech-bubble-ai > p {
    font-size: 100%;
  }

  textarea::placeholder {
    font-size: 100%;
    opacity: 0.8;
  }
}

/* =================
      Buttons & SVG 
     ================= */

button {
  border: none;
  background: var(--light-green);
  cursor: pointer;
}

button:hover {
  background-color: var(--green);
}

.send-btn {
  border-top-right-radius: var(--border-rad-lg);
  border-bottom-right-radius: var(--border-rad-lg);
  min-width: 50px;
}

.send-btn > img {
  width: 1.6em;
  vertical-align: middle;
}

img.loading {
  max-width: 40px;
  filter: none;
}

/* =================
      Output 
     ================= */

.output-container {
  /* display: none;*/
  flex-direction: row;
  margin: 100px;
  color: var(--dark);
  padding: 1em;
  width: 50%;
  height: 20rem;
  overflow: scroll;
}

.output-img-container > img {
  max-width: 100%;
  border-radius: var(--border-rad-lg);
  box-shadow: 1px 1px 5px 1px var(--dark);
}

/* =================
      Footer 
     ================= */

footer {
  background-color: var(--green);
  color: var(--dark);
  padding: 0.8em;
  font-size: 0.7em;
  text-align: center;
}

main {
  display: flex;
  width: 100%;
  height: 100%;
  justify-content: space-around;
}

#setup-container {
  height: 400px;
  margin-top: 100px;
}
