@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,opsz,wght@0,18..144,300..900;1,18..144,300..900&display=swap');

* {
    box-sizing: border-box;
}

body {
    font-family: "Merriweather", Arial, sans-serif;
    height: 100vh;
    margin: 0;
    background: linear-gradient(135deg, #ac1ac3, #1a22bc);
    margin: 0;
    padding: 0;
    color: white;
}

h1 {
    font-size: 2.5em;
}

h1,
h2,
h3 {
    margin-top: 0;
}

main {
    display: flex;
    justify-content: space-between;
    gap: 5px;
    align-items: stretch;
    /* border:2px solid white; */
    margin: 0;
    height: 100vh;
    width: 100vw;
    flex-direction: row;
}



#intro {
    padding: 2vw;
    flex: 1;

    p {
        line-height: 1.7;
    }
}

#avatar {
    background-color: white;
    overflow: hidden;
    border-radius: 20px;
    width: 26vw;
    aspect-ratio: 3/4;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.35);
    position: relative;
}

#aiwarning {
    font-size: 0.6rem;
    font-style: italic;
    color: rgba(124, 124, 124, 0.5);
    position: absolute;
    bottom: 2px;
    left: 4px;
    /* height: 40px; */
    /* display: flex; */
    /* align-items: flex-end; */
    padding: 6px;
}

#log {
    opacity: 0.7;
    font-size: 0.7em;
    padding-top: 8px;
    padding-left: 5px;
}

#chat {
    flex: 3;
    border-radius: 20px;
    overflow: hidden;
    /* margin:20px; */
    align-self: center;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.35);
}

#progress {
    flex: 1;
    color: white;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
}

#progtop {
    padding: 4px;

    div {
        padding: 10px;
    }

}

#progbottom {
    padding: 18px;
}

#resetbutton {
    border-radius: 18px;
    font-size: 0.9rem;
    padding: 8px;
    text-align: center;
    cursor: pointer;
    color: rgb(48, 7, 106);
    background-color: white;
    opacity: 0.8;
}

#resetbutton:hover {
    opacity: 1;
}

#milestones {
    span {
        font-style: italic;
        opacity: 0.8;
        padding-left: 20px;
    }
}

#explanation {
    margin-top: 3vh;

    span {
        opacity: 0.8;
        font-size: 0.8rem;
    }
}

/* flowise-fullchatbot {
    height: 100% !important;
} */

img,
video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

footer {
    padding: 4vw;
    font-size: 0.8rem;
    min-height: 10vh;
    color: rgba(250, 244, 255, 0.761);

    a {
        color: white;
    }
}


/* phone */

@media (max-width: 600px) {
    main {
        flex-direction: column;
        height: auto;
        width: 100vw;
        gap: 16px;
        padding: 8px;
    }

    #intro,
    #progress,
    #chat,
    #avatar {
        width: 100%;
        flex: unset;
        margin: 0;
        border-radius: 14px;
        box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.18);
    }

    #avatar {
        aspect-ratio: 1/1;
        margin-bottom: 12px;
    }

    #chat {
        margin-bottom: 12px;
    }

    #progtop,
    #progbottom {
        padding: 8px;
    }

    h1 {
        font-size: 2em;
    }
}