body {
  margin: 0;
  background: #f7f7f7;
  font-family: monospace;
}

.login {
  background-color: black;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login .center {
  position: relative;
}

.ai {
  display: none;
  height: 100vh;
}

.load {
  display: none;
  justify-content: center;
  align-items: center;
  background-color: black;
  height: 100vh;
}

.intro {
  color: beige;
  background-color: cadetblue;
  padding: 15px;
  display: flex;
}

.intro h1{
    width: 95%;
    align-self: center;
    text-align: center;
}

.chat {
  background-color: beige;
  height: 100%;
  overflow-y: auto;
  padding: 10px;
}

.form {
  height: 60px;
  background: cadetblue;
  padding: 10px;
  display: flex;
  gap: 10px;
  position: absolute;
  width: 97.8%;
  bottom: 0;
}

.form input {
  flex: 1;
  border-radius: 10px;
  border: none;
  padding: 10px;
  font-size: 18px;
  font-family: monospace;
  font-weight: bold;
}

.form button {
  width: 60px;
  border-radius: 10px;
  border: none;
  background-color: cadetblue;
  cursor: pointer;
}

.su, .sc {
  width: fit-content;
  max-width: 70%;
  padding: 8px 12px;
  border-radius: 10px;
  margin: 8px;
  font-weight: 700;
  word-wrap: break-word;
}

.su {
  color: cadetblue;
  border: 3px solid cadetblue;
  background-color: beige;
  margin-left: auto;
}

.sc {
  color: beige;
  background-color: cadetblue;
  margin-right: auto;
}

.loading {
  display: inline-block;
  color: cadetblue;
  font-style: italic;
  font-size: 14px;
  animation: blink 1.2s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 1; }
}

.st img{
    width: 5%;
    height: 100%;
    padding-top: 10px;
}
.st {
    display: contents;
    float: right;
}

.overlay-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(5px);
}

.centered-content {
  position: relative;
  background-color: black;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.cl-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  background-color: red;
  color: white;
  border: none;
  border-radius: 10px;
  width: 25px;
  height: 25px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cl-btn::after {
  content: "x";

}

/* --- Mobile Styling --- */
@media only screen and (max-width: 600px) {
  body {
    font-size: 16px;
  }

  .login {
    width: 100vw;
    height: 100vh;
    padding: 0;
    box-sizing: border-box;
  }
  .login .center {
    width: 90vw;
    max-width: 95vw;
    min-width: unset;
  }

  .intro {
    flex-direction: column;
    padding: 8px;
  }

  .intro h1 {
    font-size: 1.4em;
    width: 100%;
    margin: 0 0 6px 0;
  }

  .chat {
    padding: 6px;
    font-size: 1em;
  }

  .form {
    flex-direction: column;
    gap: 6px;
    height: auto;
    padding: 7px;
    position: fixed;
    width: 100vw;
    left: 0;
    bottom: 0;
    z-index: 10;
    box-sizing: border-box;
  }

  .form input {
    font-size: 16px;
    padding: 7px;
  }

  .form button {
    width: 100%;
    font-size: 1em;
    padding: 8px 0;
  }

  .su, .sc {
    max-width: 90%;
    font-size: 1em;
    padding: 6px 8px;
    margin: 7px;
  }

  .st img {
    width: 13vw;
    min-width: 32px;
    max-width: 50px;
    padding-top: 4px;
  }

  .overlay-container {
    padding: 10px;
  }

  .centered-content {
    padding: 10px;
    width: 90vw;
  }

  .cl-btn {
    width: 22px;
    height: 22px;
    font-size: 13px;
    top: 2px;
    right: 2px;
  }
}

