: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/dreampitchbg-dark.jpg');
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: 1s all ease;
}

/* =================
      Typography 
     ================= */

h1 {
    font-family: 'Playfair Display SC', serif;
    text-align: center;
}

h2 {
    font-size: 1.3em;
}

p {
    line-height: 1.35em;
}

/* =================
      Sections 
     ================= */


.header {
    color: var(--white);
    animation: cursor-blink 3s;
    font-size: 1em;
}


header h1:hover {
    cursor: none;
}

header {
    background-color: var(--dark);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .3em;
}

header>img {
    height: 60px;
}

header>a {
    color: var(--light);
    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: .25em 1em;
    box-shadow: 0px 1px 18px 3px var(--dark);
    max-width: 600px;
}

select {
    padding: 1px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 20px;
}

select:active, select:focus, select:disabled {
    color: var(--pink);
    width: fit-content
}

select:hover {
    cursor: pointer;
    color: var(--pink);
    width: fit-content
}

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

.setup-inner>img {
    width: 40%;
    filter: drop-shadow(3px 2px 3px var(--medium-dark));
    align-self: center;
    transition: all ease-in-out 4s;
}

.setup-input-container {
    min-height: 74px;
    position: relative;
}

.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;
    cursor: none;
}

.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(--light-grey);
    padding: .8em 2.8em .8em .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.scroll::-webkit-scrollbar {
    display: none;
}

textarea::placeholder {
    color: var(--medium-dark);
    font-size: 88%;
    opacity: 0.8;
}

/* larger mobiles+ */

@media screen and (min-width: 600px){
    .header {
        font-size: 2em;
    }

    select {
        width:fit-content
    }
}

@media screen and (min-width: 480px) and (max-width: 600px){
    .header {
        font-size: 1.6em;
    }
  
}

@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(--pink);
    cursor: pointer;
}

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

.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;
}

.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: 40px;
    filter: none;
}

/* =================
      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;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
}

/* =================
      mix
     ================= */
.fa {
    color: white;
    background-color: var(--dark);
    border-radius: 50%;
    cursor: pointer;
    margin-top: 1rem;
    float: right;
    width: 2rem;
    height: 2rem;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.mic {
    position: absolute;
    right: 66px;
    bottom: 45px;
}

.fa:hover {
    background-color: var(--pink);
}

@keyframes blink {
    0% {
        opacity: 0;
        filter: blur(1px);
    }

    100% {
        opacity: 1;
        filter: blur(0);
    }
}

@keyframes cursor-blink {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}


@keyframes qs-blink {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@keyframes eye-blink {
    0% {
        background: radial-gradient(circle, rgb(255, 247, 247) 25%, transparent 50%);
    }

    25% {
        background: radial-gradient(circle, rgb(255, 249, 158) 25%, transparent 50%);
    }

    50% {
        background: radial-gradient(circle, rgb(255, 158, 158) 25%, transparent 50%);
    }

    75% {
        background: radial-gradient(circle, rgb(255, 158, 163) 25%, transparent 50%);
    }

    100% {
        background: radial-gradient(circle, rgb(158, 255, 190) 25%, transparent 50%);
    }
}

.dream-eye {
    display: inline-block;
    width: 50px;
    animation: blink 6s infinite ease-in-out;
}

.dream-eye:hover {
    cursor: pointer;
    transform: scale(180%);
    animation: eye-blink 1s infinite ease-in-out ;
}

#qs {
    animation: cursor-blink 3s infinite ease-in-out ;
    font-size: 1.5em;
}

.blinking-cursor::after {
    content: "|";
    font-weight: 700;
    display: inline-block;
    animation: cursor-blink .5s steps(2) infinite;
}

.come-closer {
    transform: scale(1.5);
    cursor: not-allowed;
}

/** payment **/
/* Example CSS styles for the input field */
input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
}

label {
    margin-top: 10px;
    display: block;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 10px;
}


#paypal-button-container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.custom-payment {
    position: relative;
    display: inline-block;
    width: 100%;
    min-height: 35px;
    min-width: 200px;
    margin-bottom: 16px;
}

.custom-payment input[type="number"]::-webkit-inner-spin-button,
.custom-payment input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
    display: none;
    overflow: hidden;
}

