@font-face {
    font-family: "NeueMontreal";
    src: url("fonts/NeueMontreal-Regular.woff2") format("woff2");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "NeueMontreal";
    src: url("fonts/NeueMontreal-Bold.woff2") format("woff2");
    font-weight: bold;
    font-style: normal;
}

::-webkit-scrollbar {
    display: none;
}


#header {
    position: fixed;
    padding: 1rem;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    z-index: 10;
}

#header button {
    position: absolute;
    right: 1rem;
    top: .5rem;
    letter-spacing: 0.02rem;
}

#header::before {
    content: '';
    position: absolute;
    inset: 0;
    backdrop-filter: blur(10px);
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    pointer-events: none;
}


body {
    letter-spacing: .025rem;
    line-height: 2rem;
}

.userInput {
    letter-spacing: .01rem;
}

#error_message {
    text-align: center;
    color: #e16c6c;
}

/*
  -------------------------------------------------------------------
  PAGE 
  -------------------------------------------------------------------
  */

#t99site {
    z-index: 99;
    border: none;
}

#t99-ai-dynamic-page {
    background-image: linear-gradient(110deg,
            #0e0a12 0px,
            #27222c 30%,
            #27222c 50%,
            #0e0a12 100%);
    position: relative;
    color: white;
    font-family: "NeueMontreal", sans-serif;
}

#t99-ai-dynamic-page .bottom-gradient {
    background: linear-gradient(180deg, #201b2e00 0%, #1e192a 100%);
    height: 40vh;
}

/*
  -------------------------------------------------------------------
  FORM 
  -------------------------------------------------------------------
  */

#t99-ai-page-creator-form input {
    background: #ffffff26;
    border: none;
    outline: none;
    backdrop-filter: blur(10px);
}

#t99-ai-page-creator-form input:focus {
    box-shadow: none;
}

#t99-ai-page-creator-form input:-webkit-autofill,
#t99-ai-page-creator-form input:-webkit-autofill:hover,
#t99-ai-page-creator-form input:-webkit-autofill:focus,
#t99-ai-page-creator-form input:-webkit-autofill:active {
    box-shadow: none;
    -webkit-box-shadow: none;
    -webkit-text-fill-color: inherit;
}

#t99-ai-page-creator-form button {
    top: 50%;
    right: 0;
    transform: translate(-150%, -50%);
}

#t99-ai-page-creator-form button::before {
    content: "";
    position: absolute;
    width: 2.4em;
    height: 2.4em;
    background-color: white;
    border-radius: 100%;
    z-index: -1;
}

/*
  -------------------------------------------------------------------
  RESPONSE CONTAINER 
  -------------------------------------------------------------------
  */

#t99-ai-page-creator-response {
    padding-top: 15vh;
    padding-bottom: 125vh;
}

#t99-ai-page-creator-response a {
    color: #d6cbf8;
    text-decoration: underline;
}

#t99-ai-page-creator-response * {
    background-color: transparent;
    max-width: 100%;
}

#t99-ai-page-creator-response .chat-message.assistant>* {
    margin-top: 2vh;
    margin-bottom: 4vh;
}

#t99-ai-page-creator-response .chat-message.assistant .md\:flex-row:nth-child(odd) {
    flex-direction: row-reverse;
}

#t99-ai-page-creator-response .chat-message {
    padding: 1rem;
    border-radius: 1rem;
    margin: 0.5rem 0;
}

#t99-ai-page-creator-response .chat-message.user {
    max-width: 80%;
    background: rgba(255, 255, 255, 0.01);
    margin-left: auto;
    border-bottom-right-radius: 0;
}

#t99-ai-page-creator-response .chat-message.assistant {
    width: 100%;
    font-size: 1.125rem;
    min-height: 10vh;
}

#t99-ai-page-creator-response .chat-message.assistant .suggestions {
    display: none !important;
    visibility: hidden !important;
}

@media screen and (max-width: 768px) {
    #t99-ai-page-creator-response .w-1\/2 {
        width: 100% !important;
    }

    #t99-ai-page-creator-response .flex {
        flex-wrap: wrap;
    }
}

/* altro */
#thinking {
    font-style: italic;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    font-size: 1.2rem 19.2px;
    margin-left: 1rem;
}

.loader {
    border: 3px solid #cecece;
    border-top: 3px solid #555;
    border-radius: 50%;
    width: 1.2rem;
    height: 1.2rem;
    animation: spin 1.2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.suggerimenti span {
    background: #1e1b27;
}

/* tailwind mi fa schifo */

.container {
    max-width: 768px;
}

.chat-message p {
    margin-block: .5rem;
}

.chat-message ul {
    list-style: disc;
    margin-block: 1rem;
}

.chat-message ul li,
.chat-message ol li {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    #t99site {
        padding: 0.25rem 0.75rem !important;
    }
}

#curtain {
    pointer-events: all;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    background: #000;
    z-index: 99999;
    transition: opacity .4s ease;
}

#curtain.hide {
    opacity: 0;
    pointer-events: none;
    ;
}


#userInput[disabled],
#sendButton[disabled] {
    pointer-events: none;
    opacity: .2;
}


.cta-list {
    margin-top: 5rem !important;
}


/* ANIMS */
.anim {
    transition: opacity .4s ease, transform .4s ease
}

.fading_in {
    opacity: 0;
    transform: translateY(2rem)
}