/* =========================
   1. TEXT PRESENTATION
========================= */

.TextPresentation {
  margin: 125px 30px 30px;
  text-align: center;
}

.TextPresentation h1 {
  text-align: center;
  max-width: 30ch;
  margin: 0 auto;
  font-size: 45px;
}

.TextPresentation p {
  color: #818080c7;
  padding: 15px;
  margin: 0 auto;
  max-width: 60ch;
  font-size: 20px;
}


/* =========================
   2. MAIN CONTAINER
========================= */

.MagnumMain {
  background-color: rgba(255, 255, 255, 0.744);
  margin: 0 auto;
  border: 1px solid rgba(24, 23, 23, 0.12);
  border-radius: 5px;
  width: calc(100% - 30px);
  max-width: 800px;
}


/* =========================
   3. CHAT AREA
========================= */

.MagnumChat {
  scrollbar-width: thin;
  padding-left: 20px;
  height: 300px;
  overflow-y: auto;
}


/* =========================
   4. RESPONSE COMPONENT
========================= */

.Response_Container {
  margin-top: 6px;
  display: flex;
  align-items: center;
  width: 100%;
}

.Response_Container img {
  width: 40px;
  height: 40px;
  margin-right: 17px;
  margin-bottom: 12px;
  border: 1px solid rgba(0, 0, 0, 0.176);
  border-radius: 6px;
  padding: 1px;
}

.Magnum_Response {
  position: relative;
  background-color: rgb(243, 240, 240);
  padding: 6px;
  border-radius: 10px;
  max-width: 50%;
  margin: 10px 0;
  border: 1px solid rgba(0, 0, 0, 0.076);
}


.MagnumButtom{
  border-top: 1px solid rgba(0, 0, 0, 0.154);
  margin: 18px 0 0 0;

  display: flex;
  justify-content: center;
  align-items: center;
}

.MagnumButtom a{
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  color: inherit;
  padding: 6px 10px;
}

.Magnum_Response::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 14px;
  width: 0;
  height: 0;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-right: 11px solid rgba(0, 0, 0, 0.158);
}

.Magnum_Response::after {
  content: "";
  position: absolute;
  left: -10px;
  top: 15px;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 10px solid rgb(243, 240, 240);
}

.Magnum_Response h1 {
  margin: 0px 2px;
  color: rgb(15, 67, 111);
  font-size: 18px;
}

.Magnum_Response p {
  margin: 3px 2px;
}

.Interact_button {
  display: flex;
  border-top: 1px solid rgba(0, 0, 0, 0.124);
  padding: 4px;
  margin-top: 18px;
}

.Interact_button a{
  height: 100%;
  width: 100%;
  text-align: center;
  color: rgb(158, 154, 154);
  text-decoration: none;
}

.Interact_button a:hover{
  color: rgb(78, 78, 251);
  text-decoration: none;
}


/* =========================
   4. QUESTION COMPONENT
========================= */
.Question_Container {
  margin-top: 6px;
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

.Question_Response {
  position: relative;
  background-color: rgb(15, 67, 111);
  color: white;
  padding: 8px 12px;
  border-radius: 10px;
  max-width: 70%;
  width: fit-content;
  word-wrap: break-word;
  overflow-wrap: break-word;
  margin: 10px 15px 10px 0;
  border: 1px solid rgba(0, 0, 0, 0.076);
}
.Question_Response::before {
  content: "";
  position: absolute;
  right: -12px;
  top: 14px;
  width: 0;
  height: 0;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 11px solid rgba(0, 0, 0, 0.158);
}

.Question_Response::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 15px;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 10px solid rgb(15, 67, 111);
}

/* =========================
   5. MESSAGE BAR
========================= */

.MsgBar {
  background-color: rgba(255, 255, 255, 0.744);
  border-top: 1px solid rgba(0, 0, 0, 0.137);
  border-radius: 5px;
  padding: 8px;
  display: flex;
  align-items: center;
}

.MsgBar #send_text {
  font-size: 18px;
  margin: 8px;
  padding: 15px;
  flex: 1;
  min-width: 0;
  height: 25px;
  min-height: 25px;
  border: 1px solid rgba(0, 0, 0, 0.115);
  border-radius: 5px;
  scrollbar-width: none;
  resize: vertical;
}

.MsgBar #send_text:focus {
  outline: none;
  box-shadow: none;
}


/* =========================
   6. SEND BUTTON
========================= */

.sendPrompt {
  background-color: rgb(5, 1, 203);
  color: white;
  border: none;
  height: 45px;
  width: 45px;
  border-radius: 50px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.sendPrompt:hover {
  box-shadow: 1px 1px 1px rgb(158, 154, 154);
  transition: 0.2s;
}

.sendPrompt svg {
  width: 18px;
  height: 18px;
}

button:disabled {
    background-color: rgb(5, 1, 203);
    cursor: not-allowed;
    opacity: 0.6;
}

/* =========================
   7. Categories
========================= */

.Category_List{
  text-align: center;
  margin: 70px 70px 140px;
}
.Category_Title h1 {
  margin: 50px 0 7px 0;
  font-size: 45px;
}
.Category_Title p {
  color: #818080c7;
  margin: 0 auto 50px auto;
  max-width: 60ch;
  font-size: 20px;
}
.Category_Grid{
  display: grid;
  margin: 0 auto;
  max-width: 800px;
  height: 140px;
  gap: 15px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.Category_Grid .item {
  margin: 10px;
  height: 70px;
  font-size: 18px;
  border: 1px solid rgba(0, 0, 0, 0.115);
  box-shadow: 1px 2px 2px rgba(0, 0, 0, 0.123);
  border-radius: 9px;
  transition: 0.3s ease;

  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.Category_Grid a{
  text-decoration: none;
  color: inherit;
  font-weight: 600;
  padding: 3px;
}

.Category_Grid .item:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 2px 8px 15px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

.tooltip {
  position: absolute;
  bottom: 120%;
  left: 100%;
  transform: translateX(-50%);

  background: rgba(249, 249, 249, 0.667);
  color: rgb(17, 16, 16);
  padding: 12px;
  border-radius: 8px;
  width: 220px;
  border: 1px solid rgba(0, 0, 0, 0.108);

  opacity: 0;
  transition: 0.3s ease;
  pointer-events: none;
}
.tooltip::after {
  content: "";
  position: absolute;
  left: 16px;
  bottom: -10px;
  width: 0;
  height: 0;
  border-top: 10px solid rgb(244, 241, 241);
  border-right: 10px solid transparent;
  border-left: 10px solid transparent;
}
.tooltip::before {
  content: "";
  position: absolute;
  left: 15px;
  bottom: -11px;
  width: 0;
  height: 0;
  border-top: 11px solid rgba(39, 39, 39, 0.220);
  border-right: 11px solid transparent;
  border-left: 11px solid transparent;
}
.item:hover .tooltip {
  opacity: 1;
}