/* styles.css */
@font-face {
  font-family: "ColfaxAI";
  src: url(https://cdn.openai.com/API/fonts/ColfaxAIRegular.woff2)
      format("woff2"),
    url(https://cdn.openai.com/API/fonts/ColfaxAIRegular.woff) format("woff");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "ColfaxAI";
  src: url(https://cdn.openai.com/API/fonts/ColfaxAIBold.woff2) format("woff2"),
    url(https://cdn.openai.com/API/fonts/ColfaxAIBold.woff) format("woff");
  font-weight: bold;
  font-style: normal;
}

body,
input {
  font-size: 16px;
  line-height: 24px;
  color: #353740;
  font-family: "ColfaxAI", Helvetica, sans-serif;
}
body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 60px;
}
.icon {
  width: 100px;
}
h3 {
  font-size: 32px;
  line-height: 40px;
  font-weight: bold;
  color: #202123;
  margin: 16px 0 40px;
}
form {
  display: flex;
  flex-direction: column;
  width: 320px;
}
input[type="text"] {
  padding: 12px 16px;
  border: 1px solid #10a37f;
  border-radius: 4px;
  margin-bottom: 24px;
}
::placeholder {
  color: #8e8ea0;
  opacity: 1;
}
input[type="submit"] {
  padding: 12px 0;
  color: #fff;
  background-color: #10a37f;
  border: none;
  border-radius: 4px;
  text-align: center;
  cursor: pointer;
}
.result {
  font-weight: bold;
  margin-top: 40px;
}

.original-input {
    font-size: 2em;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 0px;
    background-color: #f4c783;
    padding: 5px;
    border-radius: 5px;
    text-align: center;
  }
  
  .result {
    font-size: 1.2em;
    background-color: #d0d0d0;
    padding: 5px;
    border-radius: 5px;
    text-align: center;
  }
  
  .container {
    padding: 20px;
    border: 1px solid black;
    border-radius: 10px;
}

.app-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px; /* Adjust the space between the two divs */
}

.center-flexbox {
  display: flex;
  justify-content: center;
  align-items: flex-start; /* Change to flex-start to align the containers at the top */
  gap: 20px; /* Add gap to create space between the containers */
}

.settings-container,
.input-container,
.info-container {
  position: relative;
  flex-grow: 1;
  flex-shrink: 0;
  min-width: 400px; /* Set a minimum width for each container */
  max-width: 400px; 
  border: 1px solid black;
  border-radius: 5px;
  padding: 20px;
  margin-bottom: 20px;
  box-sizing: border-box;
  text-align: center;
}

.settings-container{
  display: flex;
  flex-direction: column;
  align-items:center;
}

.info-container h3 {
  margin-bottom: 0.5em;
}

.info-container {
  display: flex;
  flex-direction: column;
  align-items:center;
  line-height: 1.5;
  white-space: pre-wrap;  /* Preserves newlines and spaces, while allowing wrapping */
  word-wrap: break-word;  /* Breaks words to wrap if necessary */
  overflow-wrap: break-word;  /* Breaks long words if needed to prevent overflow */
  overflow-y: auto; /* Adds a scrollbar if the content height exceeds max-height */
}

  #response-content {
    border: 1px solid #ccc;
    padding: 10px;
    margin-bottom: 3px;
    margin-top: 25px;
    /* min-height: 100px; */
    max-width: 100%;
    overflow-wrap: break-word;
    white-space: pre-wrap;
  }
  
  .dropdown-item {
    cursor: pointer;
  }
  
  .dropdown-item:hover {
    background-color: #f1f1f1;
  }
  
  .sliding-panel-closed,
  .sliding-panel-open {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 100%;
    background-color: #f4f4f4;
    overflow-x: hidden;
    transition: all 0.3s;
    z-index: 1000;
    padding: 20px;
    box-shadow: 2px 0px 5px rgba(0, 0, 0, 0.2);
    padding-top: 40px;
  }
  
  .sliding-panel-closed {
    transform: translateX(-100%);
  }
  
  .sliding-panel-open {
    transform: translateX(0);
  }

  .settings-container {
    position: relative
  }

  .favorites-btn {
    display: inline-block;
    background-color: #4CAF50;
    color: white;
    text-align: center;
    padding: 10px 20px;
    margin: 10px 0;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-size: 16px;
    position: absolute;
    top: 10px;
    right: 10px;
  }
  
  .favorites-btn:hover {
    background-color: #45a049;
  }

  
.original-input-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.original-input-button {
  background-color: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
}

.original-input-button img {
  width: 30px;
  height: 30px;
}

.tooltip {
  visibility: hidden;
  background-color: #555;
  color: #fff;
  text-align: center;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 14px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -60px;
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #555 transparent transparent transparent;
}

.original-input-container:hover .tooltip {
  visibility: visible;
  opacity: 1;
}

[data-tooltip] {
  position: relative;
  cursor: pointer;
}

[data-tooltip]:before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #f9ed69;
  color: #222;
  font-weight: bold;
  padding: 5px;
  border-radius: 5px;
  white-space: nowrap;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s linear 0.3s, opacity 0.3s linear;
}

[data-tooltip]:hover:before {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}

.folder-content {
  background-color: #f1f1f1;
  padding: 10px;
  overflow: auto;
  max-height: 150px;
}

.display-none {
  display: none;
}

.favorite-item {
  border-bottom: 1px solid #ccc;
  padding: 5px 0;
  margin: 0 10px;
}

.favorite-item:not(:last-child) {
  border-bottom: 1px solid #ccc;
}

#favorites-tab {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  background-color: #f1f1f1;
  padding: 10px;
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
  cursor: pointer;
  z-index: 9999;
}

.close-favorites {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: transparent;
  border: none;
  cursor: pointer;
  font-size: 24px;
  font-weight: bold;
  color: #999;
}

.horizontal-line {
  height: 1px;
  background-color: #ccc;
  margin: 5px 0;
}

.star:before {
  content: "\2605"; /* Unicode character for a star */
  color: rgb(0, 0, 0); /* Change the color of the star */
  font-size: 50px; /* Increase the font size to make the star bigger */
  transition: color 0.2s; /* Add a transition effect to the color change */
}

.star:hover:before {
  color: blue; /* Change the color to blue on hover */
}

@media only screen and (max-width: 767px) {
  #favorites-tab {
    display: none;
  }
}


.settings-btn {
  display: inline-block;
  background-color: #f0f0f0;
  padding: 5px 10px;
  margin: 5px;
  cursor: pointer;
}

.settings-btn.clicked {
  background-color: #aac9ff;
}


/* Default styles for desktop and larger screens */
.hide-on-mobile {
  display: block;
}

/* Styles for mobile devices */
@media screen and (max-width: 480px) {
  .hide-on-mobile {
    display: none;
  }
}

/* Default styles for desktop and larger screens */
.show-on-mobile {
  display: none;
}

/* Styles for mobile devices */
@media screen and (max-width: 480px) {
  .show-on-mobile {
    display: block;
  }
}

@keyframes spin {
  from {
      transform:rotate(0deg);
  }
  to {
      transform:rotate(360deg);
  }
}

.spin {
  animation-name: spin;
  animation-duration: 2000ms;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}
