:root {
  --primary-color: #7c98b3;
  --secondary-color: #a4c2d8;
  --accent-color: #f0a868;
  --background-color: #f0f5f9;
  --text-color: #5a5a5a;
  --card-bg-color: #ffffff;
  --talk-color: #e8dff5;
  --train-color: #ddedea;
  --breath-color: #daeaf6;
  --meditate-color: #fcf4dd;
  --affi-color: #fce1e4;
}
body {
  font-family: "Mukata", sans-serif !important;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
  margin: 0;
  padding: 0;
  color: #333;
}

/* body {
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background: #f4f4f4;
} */
#buttons {
  display: flex;
  flex-direction: column;
  width: 300px;
  /* gap: 20px; */
  margin: auto;
  margin-top: 40px;
}
.btn {
  color: black;
  min-width: 150px;
  height: 40px;
  border-radius: 15px;
  margin-bottom: 20px;
  font-size: 1em;
}

.frame {
  display: none;
  flex-direction: column;
  gap: 20px;
  margin: auto;
  margin-top: 40px;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 15px;
  background: #fff;
}

#btn_startSession {
  background-color: rgb(201, 234, 243);
}
#btn_loadSession {
  background-color: rgb(204, 201, 243);
}
#btn_loadVoice {
  background-color: rgb(212 255 236);
}

.fullScreen {
  height: 100vh;
}

main {
  position: relative;
  top: 80px;
  padding-top: 20px !important;
  /* padding-top: 100px !important; */
  text-align: center;
}

.test {
  display: flex;
  flex-direction: column;
  height: 60%;
}

#welcomeWrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.loginForm {
  display: flex;
  flex-direction: column;
  padding: 20px;
}
.signInBtn {
  background-color: var(--primary-color);
  color: white;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  text-align: center;
  margin: 10px 0;
}
.loginBtn {
  width: 40%;
}
/* .user-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
}

.user-icon img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
} */

#user-icon img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
}
.logoHeader {
  height: 80px;
  object-fit: contain;
  flex-grow: 1;
  text-align: center;
  cursor: pointer;
}
.menu-toggle {
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.container {
  width: 95%;
  max-width: 1200px;
  margin: 0 auto;
}
/* header {
  background-color: var(--primary-color);
  text-align: center;
  color: white;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 10;
} */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px; /* Adjust this value to your header height */
  background-color: #e6e9ff;
  z-index: 1000; /* Ensures the header stays on top */
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header .container {
  max-width: 100%;
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
}

#headerContainer {
  padding: 10px;
}

#menu-back {
  border-radius: 100px;
  height: 30px;
  width: 30px;
  border: solid 1px;
}

.side-nav {
  height: 100%;
  width: 200px;
  position: fixed;
  top: 0;
  left: -200px; /* Hidden by default */
  background-color: #879bdf;
  overflow-x: hidden;
  transition: left 0.3s;
  z-index: 999; /* Below the header */
  padding-top: 60px; /* Adjust this value to the height of your header */
}

.side-nav ul {
  list-style-type: none;
  padding: 0;
}

.side-nav ul li {
  margin: 0;
}

.side-nav ul li a {
  padding: 10px 20px;
  text-decoration: none;
  color: white;
  display: block;
}

.side-nav ul li a:hover {
  background-color: #575757;
}

/* Show the side-nav when active */
.side-nav.active {
  left: 0;
}

/* Shift body content when side-nav is active */
body.nav-active {
  margin-left: 0px; /* Adjust to match side-nav width */
}

#closeMenu {
  position: absolute;
  top: 10px;
  left: 10px;
  cursor: pointer;
  color: white;
}

h1,
h2,
h3 {
  margin: 0;
}
nav {
  background-color: var(--secondary-color);
  padding: 10px 0;
}
nav ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: left;
  flex-wrap: wrap;
}
nav ul li {
  margin: 10px 15px;
}
nav ul li a {
  text-decoration: none;
  color: white;
  font-weight: bold;
  transition: opacity 0.3s ease;
}
nav ul li a:hover {
  opacity: 0.8;
}
.hero {
  background-color: cadetblue;
  /* background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="400" height="200" viewBox="0 0 400 200"><rect width="100%" height="100%" fill="%237c98b3"/><path d="M0 100 Q 100 50 200 100 T 400 100" fill="none" stroke="%23ffffff" stroke-width="2"/></svg>'); */
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  padding: 10px 0;
}

.cta-button {
  font-size: 1em;
  font-weight: 100;
  display: inline-block;
  background-color: var(--accent-color);
  color: black;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 10px;
  transition: background-color 0.3s ease;
}
.cta-button:hover {
  background-color: #e89b57;
}
.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 50px;
}
.feature-card {
  flex-basis: calc(33.333% - 20px);
  background-color: var(--card-bg-color);
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-bottom: 30px;
  text-align: center;
}
.feature-icon {
  font-size: 48px;
  color: var(--primary-color);
  margin-bottom: 15px;
}
footer {
  background-color: var(--primary-color);
  color: white;
  padding: 0px 0;
  text-align: center;
  position: fixed;
  bottom: 0;
  width: 100%;
}

.submitBtn {
  background-color: yellowgreen;
  padding: 10px 20px;
  margin: 10px 0;
  border-radius: 10px;
}
.icon {
  cursor: pointer;
  width: 30px;
  height: 30px;
  border: none;
  display: inline-block;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-color: transparent;
}

.librayIcon {
  position: absolute;
  right: 20px;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='black' d='M3 5a2 2 0 0 1 2-2h8.379a2 2 0 0 1 1.414.586l1.621 1.621A2 2 0 0 1 17 6.621V15a2 2 0 0 1-2 2h-2.879l-1-1H14v-4.5a.5.5 0 0 0-.5-.5h-3.257a4.5 4.5 0 0 0-.914-1H13.5a1.5 1.5 0 0 1 1.5 1.5V16a1 1 0 0 0 1-1V6.621a1 1 0 0 0-.293-.707l-1.621-1.621A1 1 0 0 0 13.379 4H13v2.5A1.5 1.5 0 0 1 11.5 8h-4A1.5 1.5 0 0 1 6 6.5V4H5a1 1 0 0 0-1 1v4.757a4.5 4.5 0 0 0-1 .914zm4-1v2.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5V4zm3 9.5c0 .786-.26 1.512-.697 2.096l2.55 2.55a.5.5 0 0 1-.707.708l-2.55-2.55A3.5 3.5 0 1 1 10 13.5m-6 0a2.5 2.5 0 1 0 5 0a2.5 2.5 0 0 0-5 0'/%3E%3C/svg%3E");
}
.plusIcon {
  position: absolute;
  left: 20px;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' fill-rule='evenodd' d='M3.5 1.5v13h5.75a.75.75 0 0 1 0 1.5H3a1 1 0 0 1-1-1V1a1 1 0 0 1 1-1h6.644a1 1 0 0 1 .72.305l3.355 3.476a1 1 0 0 1 .281.695V6.25a.75.75 0 0 1-1.5 0V6H9.75A1.75 1.75 0 0 1 8 4.25V1.5zm6 .07l2.828 2.93H9.75a.25.25 0 0 1-.25-.25zM13 15a.75.75 0 0 1-.75-.75v-1.5h-1.5a.75.75 0 0 1 0-1.5h1.5v-1.5a.75.75 0 0 1 1.5 0v1.5h1.5a.75.75 0 0 1 0 1.5h-1.5v1.5A.75.75 0 0 1 13 15' clip-rule='evenodd'/%3E%3C/svg%3E");
}
.lutosIcon {
  position: absolute;
  right: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='black' d='M244.1 122.63a13.56 13.56 0 0 0-8.3-6.4a72.6 72.6 0 0 0-24.17-2c4.67-20.63 1.62-36.91-1.45-46.4a14.16 14.16 0 0 0-16.48-9.53a84.2 84.2 0 0 0-29.76 13.11a92.6 92.6 0 0 0-27.52-34.6a14 14 0 0 0-16.85 0a92.7 92.7 0 0 0-27.51 34.6A84.2 84.2 0 0 0 62.29 58.3a14.15 14.15 0 0 0-16.47 9.54c-3.07 9.49-6.12 25.77-1.45 46.4a72.6 72.6 0 0 0-24.17 2a13.56 13.56 0 0 0-8.3 6.4a14 14 0 0 0-1.4 10.74C13.81 145.66 24 169 54.92 187.51S113.29 206 128 206s42.12 0 73.06-18.49s41.11-41.85 44.42-54.14a14 14 0 0 0-1.38-10.74M168.48 82.9A73.1 73.1 0 0 1 196.22 70a2.2 2.2 0 0 1 2.54 1.5c3.94 12.22 7.81 37.5-10.59 69.5a129.8 129.8 0 0 1-28 33.37C167.85 161 174 142.93 174 119.17a116.1 116.1 0 0 0-5.52-36.27M57.24 71.53A2.2 2.2 0 0 1 59.78 70a73.1 73.1 0 0 1 27.74 12.9A116.1 116.1 0 0 0 82 119.17c0 23.76 6.15 41.85 13.81 55.17a129.6 129.6 0 0 1-28-33.37C49.43 109 53.3 83.72 57.24 71.53m3.84 105.67c-27.3-16.31-36.15-36.42-39-47a2.08 2.08 0 0 1 .21-1.61a1.7 1.7 0 0 1 1-.8A62.2 62.2 0 0 1 48 126.72A126 126 0 0 0 57.43 147a141 141 0 0 0 41 44.72a114.8 114.8 0 0 1-37.35-14.52M128 192.86c-8.68-6.2-34-28.2-34-73.69c0-43.36 22.94-65.34 32.8-72.78a2 2 0 0 1 2.4 0c9.86 7.44 32.8 29.42 32.8 72.78c0 45.77-25.19 67.5-34 73.69m105.9-62.62c-2.85 10.54-11.7 30.65-39 47a114.8 114.8 0 0 1-37.38 14.47a141 141 0 0 0 41-44.72a126 126 0 0 0 9.48-20.27a62.2 62.2 0 0 1 24.73 1.11a1.7 1.7 0 0 1 1 .8a2.08 2.08 0 0 1 .19 1.61Z'/%3E%3C/svg%3E");
}
#topic {
  flex: 2;
}

#customTopicFrame {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

.clear-button {
  position: absolute;
  top: 55%;
  right: 8px;
  background: transparent;
  border: none;
  font-size: 16px;
  cursor: pointer;
  font-size: 14px;
  line-height: 20px;
  border: 1px solid #ccc;
  border-radius: 50%;
  width: 20px;
}

#topic {
  width: 100%;
  padding: 5px;
  box-sizing: border-box;
  font-size: 16px;
  margin-bottom: 5px;
}

.textarea-footer {
  font-size: 12px;
  color: gray;
  margin-top: -30px;
  margin-left: 5px;
  /* margin-bottom: 10px; */
  text-align: left;
}

.button-container {
  display: flex;
  justify-content: space-between;
}

#mic1 {
  width: 30px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
}

.submitBtn {
  background-color: #4caf50;
  color: white;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  margin: 0px;
}

.submitBtn:hover {
  background-color: #45a049;
}

.mdi--microphone-outline {
  display: inline-block;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M17.3 11c0 3-2.54 5.1-5.3 5.1S6.7 14 6.7 11H5c0 3.41 2.72 6.23 6 6.72V21h2v-3.28c3.28-.49 6-3.31 6-6.72m-8.2-6.1c0-.66.54-1.2 1.2-1.2s1.2.54 1.2 1.2l-.01 6.2c0 .66-.53 1.2-1.19 1.2s-1.2-.54-1.2-1.2M12 14a3 3 0 0 0 3-3V5a3 3 0 0 0-3-3a3 3 0 0 0-3 3v6a3 3 0 0 0 3 3'/%3E%3C/svg%3E");
}

.micOn {
  display: inline-block;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%235aeb3d' d='M17.3 11c0 3-2.54 5.1-5.3 5.1S6.7 14 6.7 11H5c0 3.41 2.72 6.23 6 6.72V21h2v-3.28c3.28-.49 6-3.31 6-6.72m-8.2-6.1c0-.66.54-1.2 1.2-1.2s1.2.54 1.2 1.2l-.01 6.2c0 .66-.53 1.2-1.19 1.2s-1.2-.54-1.2-1.2M12 14a3 3 0 0 0 3-3V5a3 3 0 0 0-3-3a3 3 0 0 0-3 3v6a3 3 0 0 0 3 3'/%3E%3C/svg%3E");
}

.message {
  font-size: 1 rem;
  text-align: left;
  margin: 10px;
  border-radius: 10px;
  padding: 10px;
  white-space: pre-line; /* Preserve whitespace and line breaks */
}
.userM {
  background-color: antiquewhite;
}
.systemM {
  background-color: aquamarine;
}

.instructionsFrame {
  margin: 0;
  padding: 20px;
  position: absolute;
  background: #f7e6e6;
  border: solid;
  border-radius: 10px;
  /* border: wheat; */
  top: 50%;
  left: 50%;
  width: 80%;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  transform: translate(-50%, -50%);
}

.resultsFrame {
  display: none;
  position: relative;
  top: 80px;
}

#conversationFrame {
  height: 50%;
  overflow-y: scroll;
  border: solid 1px gray;
  border-radius: 10px;
}

#loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

#AudioCtrl {
  text-align: center;
  border: solid 1px gray;
  border-radius: 10px;
  padding: 10px;
  margin-top: 10px;
}

.audio-player {
  flex-direction: column;
}

/* styles.css */
#musicToggleDiv {
  flex: 4;
}

.music-toggle-container {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 10px; /* Space between label and toggle switch */
}

.music-toggle {
  position: relative;
  display: inline-block;
  width: 40px; /* Smaller width */
  height: 24px; /* Smaller height */
}

.music-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.music-toggle label {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 24px; /* Smaller radius */
}

.music-toggle label:before {
  position: absolute;
  content: "";
  height: 20px; /* Smaller height */
  width: 20px; /* Smaller width */
  border-radius: 50%;
  left: 2px; /* Adjusted for smaller slider */
  bottom: 2px; /* Adjusted for smaller slider */
  background-color: white;
  transition: 0.4s;
}

.music-toggle input:checked + label {
  background-color: #cc88f2;
}

.music-toggle input:checked + label:before {
  transform: translateX(16px); /* Adjusted for smaller slider */
}

.music-toggle-container label {
  font-size: 16px; /* Adjust font size if needed */
}

#ttsAudio {
  display: none;
}

@media (max-width: 768px) {
  main {
    padding-top: 20px !important;
  }
  .feature-card {
    flex-basis: 100%;
  }
  h1,
  h2,
  h3 {
    margin: 0;
  }

  .logoHeader {
    width: 20%;
    object-fit: contain;
  }
  .loginBtn {
    width: 80%;
  }

  footer {
    display: none;
  }

  .instructionsFrame {
    top: 80%;
  }
}
