@import url('base.css');
/*@import url('challenge.css');
@import url('choose_story.css');*/
@import url('graph.css');

html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

#story-text-container {
    width: 100%;
    height: 85vh;
    overflow-y: auto;
    padding: 2vw;
    display: fixed;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

#story-text {
    display: flex;
    flex-direction: column-reverse;
    font-size: var(--base-font-size);
    text-align: justify;
    line-height: 1.5;
}

#story-text strong {
    font-weight: 700; 
    font-style: normal; 
}

.message {
    margin-bottom: 0.6em; 
}

#story-text .old-msg {
    color: var(--gray-color);
}

#story-text .denied {
    color: var(--red-color);
}
#story-text .answer {
    color: var(--orange-color);
}
#story-text .conv {
    color: var(--text-color);
    font-weight: 500;
}

.who-class {
    font-weight: 700;
    text-transform: uppercase;
    color: var(--orange-color);
    font-size: 1.1em;
}

.you-class {
    font-weight: 700;
    text-transform: uppercase;
    color: var(--ligth-grey-color); 
    font-size: 1.1em;
}

#suggestions-container {
    display: fixed;
    width: 100vw;
    flex-direction: column;
    bottom: 12vh;
}

.suggestion {
    color: var(--orange-color);
    background-color: var(--background-color);
    border-radius: 10px;
    box-shadow: 0 2px 5px var(--orange-color);
    padding: 10px 5px;
    margin: 1vh 5px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.3s;
}


/* POPUP */
.popup-trigger {
    color: var(--highlight-color);
    cursor: pointer;
}

.popup-trigger-active {
    background-color: white;
    border-radius: 5px;
}

.popup {
    display: none;
    position: absolute;
    background-color: white;
    border: 1px solid #ccc;
    padding: 5px 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-width: 200px;
    font-size: 0.8rem;
}
  
.action-button:hover {
    background-color: var(--orange-color);
}

/* PROMPT */
#prompt {
    font-size: 1rem;
    color: transparent;
    display: fixed;
    align-items: center;
    position: fixed;
    top: 85vh;
    padding-bottom: 8vh;
    width: 100%;
    height: 15vh; 
    transition: opacity 0.3s ease;
}

#text-field {
    border: none;
    outline: none;
    background-color: transparent;
    color: var(--text-color);
    font-size: 1rem;
    border-bottom: 1px solid var(--text-color);
    margin-left: 10px;
    margin-right: 40px;
    width: 100%;
    appearance: none;
    -webkit-appearance: none; 
}

#prompt input:focus {
    outline: none; 
    box-shadow: none; 
}

#prompt-caret {
    display: inline-block;
    animation: blink-caret 1s step-end infinite;
}

@keyframes blink-caret {
    from, to { border-right: 2px solid #fff; }
    50% { border-right: 2px solid transparent; }
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    color: var(--text-color);
    border-top: 4px solid var(--text-color);;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: none;
}

.spinner.red {
    border: 4px solid rgba(255, 0, 0, 0.3);
    border-top: 4px solid red;
}

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



::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background-color: #555;
    border-radius: 6px;
    border: 3px solid #000;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #777;
}

@media (max-width: 600px) {
    :root {
        --base-font-size: 14px;
    }
}
