:root {
    --white: #ffffff;
    --light: whitesmoke;
    --light-grey: #e8e8e8;
    --pink: #ff176b;
    --medium-dark: #777;
    --dark: #242526;
    --border-rad-lg: 15px;
}

html, body {
    margin: 0;
    padding: 0;
    font-size: 16px;
}

body {
    font-family: 'Poppins';
    background-size: cover;
    background-repeat: repeat-y;
    /* background-image: url('images/moviepitchbg-dark.jpg'); */
    background: #f6a56d;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* =================
      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(--dark); */
    background: #d01d1e;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .3em;
}

header>img {
    height: 80px;
    margin: 15px 10px;
}

header>a {
    color: var(--light);
    font-size: 1.5em;
    text-decoration: none;
    padding: 1em 0;
}

header span {
    font-weight: 700;
}

main {
    padding: 0 1em;
    margin: auto;

}

section {
    margin: 2em auto;
    background-color: var(--light);
    border-radius: var(--border-rad-lg);
    padding: .25em 1em;
    /* box-shadow: 0px 1px 18px 3px var(--dark); */
    box-shadow:  0px 0px 21px 0px rgba(0, 0, 0, 0.25);
    max-width: 720px;
}

section:hover {
    box-shadow:  0px 0px 21px 0px rgba(0, 0, 0, 0.35);
}

/* =================
      Setup 
     ================= */

.setup-inner {
    display: flex;
    justify-content: space-around;
    padding: 1.5em .5em;
    min-height: 234px;
}

@media (max-width: 569px) {
    .setup-input-container {
        flex-direction: column;
        display: grid;
    }

    .setup-input-container select {
        width: 250px;
        max-width: 100%;
    }

    form select * {
        width: unset;
        width: 450px;
        max-width: 100%;
    }
}

.setup-inner>img {
    width: 35%;
    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%;
}



/* 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%;
    }
}

/* =================
      Buttons & SVG 
     ================= */

.button-div {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    margin-bottom: .9em;
}

button {
    border: none;
    background: var(--pink);
    cursor: pointer;
    color: var(--white);
}

button:hover {
    background-color: var(--dark);
}

.send-btn {
    /* border-radius: var(--border-rad-lg); */
    border-radius: 5px;
    min-width: 50px;
    padding: 10px;
}

@media (min-width:670px) {
    .send-btn {
        padding: 10px 25px;
    }
}

.send-btn>img {
    width: 1.6em;
    vertical-align: middle;
}

.btn-icon {
    font-size: 3em;
    margin: 0;
}

.view-pitch-btn {
    color: var(--light);
    border-radius: var(--border-rad-lg);
    padding: 1em;
    margin: .4em auto;
    display: block;
    font-size: 1.2em;
}

.view-pitch-btn:hover {
    box-shadow: 1px 1px 5px 1px var(--medium-dark);
}

img.loading {
    max-width: 120px;
    min-width: 80px;
    filter: none;
}

/* =================
      Form
     ================= */
    @media (min-width: 570px) {
        form {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 1em;
         }
    }

    form label {
        font-size: 15px;
        margin-top: 10px;
        margin-bottom: 4px;
    }
    form select {
        padding: 5px 10px;
        border-radius: 5px;
        margin-top: 4px;
        margin-bottom: 10px;
        width: 150px;
    }

/* =================
      Output 
     ================= */

.output-container {
    display: none;
    flex-direction: column;
    margin: 1em auto;
    color: var(--dark);
    padding: 1em;
}

.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(--dark);
    color: var(--light);
    padding: .8em;
    font-size: .7em;
    text-align: center
}