body {
    font-family: Arial, sans-serif;
    background-color: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.chat-container {
    width: 100%;
    max-width: 60vw;
    height: 85vh;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.date{
  margin-top: 2vh;
  margin-bottom: 2vh;
  font-family: "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-weight: 600;
  font-size: smaller;
  color: #898989;
  justify-content: center;
  display: flex;
}

.message-area {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.message {
    flex-basis: auto;
    padding: 10px 15px;
    margin-bottom: 10px;
    border-radius: 20px;
    max-width: 80%;
    word-wrap: break-word;
}

.sent {
    background-color: #e2e6ea; /* #8adafd; */
    color: #000000;
    align-self: flex-end;
    margin-left: auto;
}

.received {
    background-color: #e2e6ea;
    color: #333;
    align-self: flex-start;
    margin-right: auto;
}

.typing-bubble-received {
  background-color: #e5e5ea;
  border-radius: 18px;
  padding: 6px 20px;
  display: inline-flex;
  gap: 4px;
  align-items: center;
  height: 5vh;
  width: fit-content;
}

.typing-bubble-sent {
  background-color: #e2e6ea; /* #8adafd; */
  border-radius: 18px;
  padding: 6px 20px;
  display: inline-flex;
  gap: 4px;
  align-items: center;
  height: 5vh;
  width: fit-content;
  align-self: flex-end;
  margin-left: 91%;
}

.dot {
  width: 6px;
  background-color: #555;
  height: 6px;
  border-radius: 50%;
  animation: blink 1.4s infinite both;
}

.dot:nth-child(2) {
  animation-delay: 0.2s;
}
.dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes blink {
  0%, 80%, 100% { opacity: 0.2; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-2px); }
}

    .center {
      height: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      margin-top:5vh; 
      margin-bottom:5vh;
    }

    .answer-row {
      display: flex;
      border: 4px solid #000;
      border-radius: 10px;
      overflow: hidden;
      background: white;
    }

    .letter-box {
      width: 40px;
      height: 40px;
      border: none;
      border-right: 2px solid #000;
      text-align: center;
      font: italic 800 24px/1 "Georgia", "Times New Roman", serif;
      outline: none;
      text-transform: lowercase;
      box-sizing: border-box;
      background: white;
    }

    .letter-box:last-child {
      border-right: none;
    }

    .letter-box:focus {
      background: #f0e4ff;
    }

.hintBtn, .checkBtn {
  font: italic 800 18px/1 "Georgia", "Times New Roman", serif;
  padding: 6px 16px;
  border-radius: 16px;
  border: 2px solid #000;
  cursor: pointer;
  background: #fff;
}

.defBtn, .fodderBtn, .indBtn {
  font: italic 800 10px/1 "Georgia", "Times New Roman", serif;
  padding: 4px 10px;
  border-radius: 16px;
  border: 2px solid #000;
  cursor: pointer;
  background: #fff;
}

/* Hint = yellow */
.hintBtn {
  background: #fde68a;
}

/* Check = pink */
.checkBtn {
  background: #f9a8d4;
}

.defBtn {
  background: #8adafd;
}

.fodderBtn {
  background: #fde68a;
}

.indBtn {
  background: #f9a8d4;
}

/* Disabled state for Check */
.checkBtn:disabled {
  opacity: 0.5;
  cursor: default;
}

.defBtn:disabled {
  opacity: 0.5;
  cursor: default;
}

.fodderBtn:disabled {
  opacity: 0.5;
  cursor: default;
}

.indBtn:disabled {
 opacity: 0.5;
  cursor: default;
}

.prompt{
    font: italic 800 18px/1 "Georgia", "Times New Roman", serif;
    margin-bottom: 2vh;
    max-width: 28vw;
    text-align: justify;
}

.hidden{
    display: none;
    visibility: hidden;
}

.mainButtonRow{
  display:flex; 
  justify-content:center; 
  gap:1vw;
}

.buttonRow{
  margin-top: 10px; 
  display: flex; 
  flex-direction: column; 
  justify-content: center; 
  gap: 10px;
}

@keyframes shake {
  0%   { transform: translateX(0); }
  20%  { transform: translateX(-4px); }
  40%  { transform: translateX(4px); }
  60%  { transform: translateX(-4px); }
  80%  { transform: translateX(4px); }
  100% { transform: translateX(0); }
}

.shake {
  animation: shake 0.25s ease-in-out;
}