.title{
    text-align: center;
    color: #333333;
}

body {
    margin: 0;  
    padding: 0;
  
    background-color: #E3E2F4;
  
    /* Modern browsers */
    background: linear-gradient(
      135deg,    /* Gradient direction: 135 degrees (diagonal) */
      #F7F7FC 0%,   /* Very light start */
      #E5E5F0 50%,  /* Subtle middle transition */
      #7F8AFF 100%  /* Gentle purple-blue at the end */
    );

    

    font-family: 'IBM Plex Sans Thai Looped', sans-serif !important;
    
  }

.contain {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: calc(100vh - 68.5px);
}

.contain2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: calc(100vh - 68.5px);
}

.start {
    font-size: 8rem;
    margin-top: 20px;
    color:#7F8AFF;
}

h1.title {
    font-size:120px !important;
}

.start {
    display: inline-block;
    color:#7F8AFF;
    font-size: 8rem; /* Base icon size */
    transition: transform 0.3s ease, text-shadow 0.3s ease;
  }
  .start:hover {
    transform: scale(1.2); /* Grow on hover */
  }

.title-div {
    display: flex;
    flex-direction: row;
}

@media only screen and (max-width: 600px) {
    .title-div {
        flex-direction: column;
    }
}

    /* Basic button style */
    #recordButton {
        width: 120px;
        height: 120px;
        border: none;
        border-radius: 50%;
        background-color: #7F8AFF;
        color: white;
        font-size: 18px;
        outline: none;
        cursor: pointer;
        transition: transform 0.2s, box-shadow 0.2s;
      }
      /* Animation when listening (mic mode active) */
      .listening {
        animation: pulse 0.6s ease-in-out infinite;
      }
      @keyframes pulse {
        0% { transform: scale(1); box-shadow: 0 0 5px rgba(127, 138, 255, 0.6); }
        50% { transform: scale(1.1); box-shadow: 0 0 15px rgba(127, 138, 255, 1); }
        100% { transform: scale(1); box-shadow: 0 0 5px rgba(127, 138, 255, 0.6); }
      }
      /* Animation for speaking wave mode */
      .speaking-wave {
        animation: waveAnimation 1s infinite;
      }
      @keyframes waveAnimation {
        0% { box-shadow: 0 0 5px #7F8AFF; }
        50% { box-shadow: 0 0 20px #7F8AFF; }
        100% { box-shadow: 0 0 5px #7F8AFF; }
      }

.text-box {
    height: 25vh;
    background-color: whitesmoke;
    width: 80vw;
    margin-top: 20px;
    border-radius: 25px;
    padding: 20px;
    overflow: scroll;
}

/* Fade in animation */
@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 1s ease forwards;
}
.fade-in-delayed {
  opacity: 0;
  animation: fadeIn 1s ease forwards;
  animation-delay: 0.5s;
}

/* Pulsing play button animation */
.pulse {
  animation: pulsePlay 2s infinite;
}
@keyframes pulsePlay {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}

/* Subtle hover glow */
.start:hover {
  text-shadow: 0 0 15px #7F8AFF;
  cursor: pointer;
}

/* Optional background floating animation */
@keyframes floatBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
body {
  background-size: 400% 400%;
  animation: floatBG 20s ease infinite;
}

/* Subtitle style */
.subtitle {
  font-size: 1.2rem;
  color: #444;
  margin-top: 10px;
}

/* Text coloring for APP */
.color-text {
  color: #7F8AFF;
}

/* Responsive image */
.responsive-img {
  max-width: 300px;
  max-height: 200px;
  border-radius: 15px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}
.responsive-img:hover {
  transform: scale(1.05);
}

/* Transcript box styling */
.transcript-box {
  margin-top: 10px;
  color: #333;
  font-size: 1rem;
  max-width: 80vw;
  text-align: center;
  padding: 10px;
  animation: fadeInUp 1s ease;
}

/* Typing effect styling */
.typing {
  white-space: pre-wrap;
  overflow-wrap: break-word;
  min-height: 4rem;
  font-size: 1rem;
  line-height: 1.5;
}

/* Floating hover ripple (optional) */
#recordButton:active::after {
  content: '';
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  top: 0;
  left: 0;
  box-shadow: 0 0 20px rgba(127, 138, 255, 0.5);
  animation: ripple 0.4s ease-out;
}
@keyframes ripple {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* Fancy fade-in from below */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

#micAnimation {
  margin-bottom: 10px;
  opacity: 0;
  transition: opacity 0.5s ease;
}
#micAnimation.active {
  opacity: 1;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #33333300;
  padding: 0.5rem 1rem;
  color: #fff;
  padding-left: 20px !important;
  padding-right: 20px !important;
}
.navbar .profile {
  display: flex;
  align-items: center;
}
.navbar .profile span {
  margin-right: 1rem;
}
.navbar button {
  background-color: rgba(138, 138, 138, 0.4);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  color: #fff;
  border: solid rgb(255, 255, 255) 1.5px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 20px;
  transition-duration: 0.5s;
}
.navbar button:hover {
  background-color: #e7e7e7;
}

header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}
header button {
  padding: 0.5rem 1rem;
  background-color: #7F8AFF;
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 12px;
}
header button:hover {
  background-color: #484e90;
}
#entryList {
  list-style: none;
  padding: 0;
  margin-left:15px;
  margin-right:15px;
}
#entryList li {
  background: #fff;
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.edit-btn {
  margin-top: 0.5rem;
  padding: 0.3rem 0.6rem;
  background-color: #7F8AFF;
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 10px;
}
.edit-btn:hover {
  background-color: #484e90;
}
.delete-btn {
  margin-top: 0.5rem;
  padding: 0.3rem 0.6rem;
  background-color: #a72828;
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 10px;
}
.delete-btn:hover {
  background-color: #5a1515;
}
/* Modal form styling */
#entryFormContainer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
}
#entryForm {
  background: #fff;
  padding: 1rem;
  border-radius: 4px;
  max-width: 500px;
  width: 100%;
}
#entryForm input, #entryForm textarea {
  width: 100%;
  padding: 0.5rem;
  margin: 0.5rem 0;
  border: 1px solid #ccc;
  border-radius: 4px;
}
#entryForm button {
  padding: 0.5rem 1rem;
  border: none;
  cursor: pointer;
}
#entryForm .actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

/* NEW ENTRY CARD ANIMATION */
@keyframes fadeInUpCard {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.fade-in-up {
  animation: fadeInUpCard 0.6s ease-in-out;
}

/* ENTRY CARD STYLING */
.entry-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* BUTTON HOVER EFFECTS */
button:hover {
  transform: scale(1.05);
  transition: all 0.3s ease;
}

/* MODAL ENTRY FORM ANIMATION */
#entryFormContainer {
  animation: fadeInModal 0.3s ease;
}
@keyframes fadeInModal {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* BUTTON CLICK FEEDBACK */
button:active {
  transform: scale(0.97);
  transition: transform 0.1s;
}

.powered-by {
      position: fixed;  /* stays in place on scroll */
      bottom: 10px;
      right: 10px;
      font-size: 14px;
      color: #888;
      font-family: sans-serif;
      z-index: 9999;
    }