
         /* CSS code for mobile devices */
@media only screen and (max-width: 860px) {
    
    /* Add the following CSS code at the end of your existing CSS code */
    

.katja-label {
  display: flex;
  align-items: center;
  margin-top: 5px;
  margin-bottom: 5px;
  
}

.katja-label img {
  width: 25px;
  height: 25px;
  margin-right: 5px;
}

.ai-header {
  width: 95%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 5px;
  margin-bottom: 5px;
}

.user-name {
  font-weight: bold;
}


.user-img {
  width: 25px;
  height: 25px;
  margin-right: 5px;
}



    
  #chatbox {
    width: 95%;
    margin: 20px auto;
  }
  
  a {
            color:blue;
            
        }

  #chat-messages {
    max-height: 95%;
    overflow-y: auto;
  }

  #chat-form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
  }

  #prompt {
    flex: 1 1 70%;
    max-width: 70%;
    margin-right: 10px;
    padding: 10px;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 5px;
  }

  #submit-button {
    flex: 0 1 auto;
    max-width: calc(30% - 10px);
    padding: 10px;
    border: none;
    border-radius: 5px;
    background-color: #4CAF50;
    color: white;
    cursor: pointer;
  }
  
   #submit-button-disabled {
    flex: 0 1 auto;
    max-width: calc(30% - 10px);
    padding: 10px;
    border: none;
    border-radius: 5px;
    background-color: grey;
    color: white;
    cursor: pointer;
  }

  .loading-icon {
    display: none;
  }

  .show-loading .loading-icon {
    display: inline-block;
  }

  .user-message,
  .ai-message {
    width: 95%;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 5px;
  }

  .user-message {
    background-color: #ddd;
    align-self: flex-start;
    text-align: right;
  }

  .ai-message  {
    background-color: #4CAF50;
    color:white;
    align-self: flex-end;
    }
    
      .ai-message *  {
    color:white!important;
    }
  
  
  #overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Fondo oscurecido */
  z-index: 9999;
  display: none; /* Ocultar inicialmente */
}

.loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
}

.loader img {
  width: 50px; /* Ajusta el tamaño de la imagen según necesites */
  height: 50px;
}

.loader p {
  margin-top: 10px; /* Espacio entre la imagen y el texto */
}


}
@media only screen and (min-width: 860px) {
        body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 0;
            background-color: #f9f9f9;
        }
        
        a {
            color:blue;
            
        }
    
         
        #chatbox {
            width: 600px;
            margin: 50px auto;
            background-color: white;
            border: 1px solid #ddd;
            border-radius: 10px;
            padding: 20px;
            position: relative;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
            display: flex;
            flex-direction: column;
            height: 600px;
        }

        #chat-messages {
            overflow-y: auto;
            flex-grow: 1;
            padding-bottom: 10px;
        }

        #chat-form {
            display: flex;
            justify-content: space-between;
            margin-top: 10px;
        }

        #prompt {
            width: 70%;
            padding: 10px;
            box-sizing: border-box;
            border: 1px solid #ddd;
            border-radius: 5px;
        }

        #submit-button {
            background-color: #4CAF50;
            color: white;
            padding: 10px 20px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            margin-left: 10px;
        }
        

        #submit-button:hover {
            background-color: #45a049;
        }
        
        #submit-button-disabled {
            background-color: grey;
            color: white;
            padding: 10px 20px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            margin-left: 10px;
        }
        

        
        .user-message, .ai-message {
            margin-bottom: 10px;
            padding: 10px;
            border-radius: 5px;
            width: 85%;
        }

        .user-message {
            background-color: #ddd;
            align-self: flex-start;
            text-align: right;
        }

        .ai-message {
            background-color: #4CAF50;
            color:white;
            align-self: flex-end;
            
        }
        .ai-message * {
    color:white;
    }
        
        
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Fondo oscurecido */
  z-index: 9999;
  display: none; /* Ocultar inicialmente */
}

.loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
}

.loader img {
  width: 70px; /* Ajusta el tamaño de la imagen según necesites */
  height: 70px;
}

.loader p {
  margin-top: 10px; /* Espacio entre la imagen y el texto */
}

/* Add the following CSS code at the end of your existing CSS code */

.katja-label {
  display: flex;
  align-items: center;
  margin-top: 5px;
  margin-bottom: 5px;
  
}

.katja-label img {
  width: 25px;
  height: 25px;
  margin-right: 5px;
}

.ai-header {
  width: 85%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 5px;
  margin-bottom: 5px;
}

.user-img {
  width: 25px;
  height: 25px;
  margin-right: 5px;
}

.user-name {
  font-weight: bold;
}

        
}
