/* FONTS 

Trade Gothic Next LT Pro Light
font-family: "trade-gothic-next", sans-serif;
font-weight: 300;
font-style: normal;

Trade Gothic Next LT Pro Regular
font-family: "trade-gothic-next", sans-serif;
font-weight: 400;
font-style: normal;

Trade Gothic Next LT Pro Italic
font-family: "trade-gothic-next", sans-serif;
font-weight: 400;
font-style: italic;

Trade Gothic Next LT Pro Bold
font-family: "trade-gothic-next", sans-serif;
font-weight: 700;
font-style: normal;

Trade Gothic Next LT Pro Bold Italic
font-family: "trade-gothic-next", sans-serif;
font-weight: 700;
font-style: italic;


Span Light Italic
font-family: "span", serif;
font-weight: 300;
font-style: italic;

Span Regular
font-family: "span", serif;
font-weight: 400;
font-style: normal;

Span Italic
font-family: "span", serif;
font-weight: 400;
font-style: italic;

Span Bold
font-family: "span", serif;
font-weight: 700;
font-style: normal;

Span Bold Italic
font-family: "span", serif;
font-weight: 700;
font-style: italic;

*/

body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: "trade-gothic-next", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 1000;


  height: 100px;
  background-color: #B0CC5D;
  display: flex;
  align-items: center;
  padding-left: 30px;
  gap: 30px;
}

.nav-btn {
  background-color: #E091CA;
  color: #FFF9EB;
  border: none;
  border-radius: 30px;
  padding: 12px 24px;
  font-size: 1em;
  cursor: pointer;
  font-family: "trade-gothic-next", sans-serif;
  font-weight: 400;
  font-style: normal;
  text-align: center;
  width: 187px; /* default width for the smaller buttons */
  transition: background-color 0.3s;
}

.nav-btn:hover {
  background-color: #c577b1;
}

.wide-btn {
  width: 488px;
}


/* LOADER */ 

#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #FFF9EB;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 1s ease;
}

#loader.fade-out {
  opacity: 0;
  pointer-events: none;
}

.icon-container {
  position: relative;
  width: 1500px;
  height: 830px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #FFF9EB;
}

.loader-icon {
  width: 100%;
  height: auto;
  z-index: 2;
}

.pulsating-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 750px;
  height: 750px;
  background: #B0CC5D;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  animation: pulse-ring 2s infinite ease-in-out;
  opacity: 2;
}

@keyframes pulse-ring {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.4);  /* Bigger pulse */
    opacity: 0.2;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
  }
}


/*
body {
  font-family: "trade-gothic-next", sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  height: 100vh;
  background: #434040;
  padding: 20px;
} */

.container {
  display: flex;
  height: calc(100vh - 100px); /* account for the sticky top nav height */
  overflow: hidden; /* prevent scrolling of the container */
}

.left {
  width: 546px;
  background-color: #E091CA;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 0;
  height: 100%; /* fill vertical space */
  position: sticky; /* keeps it visible */
  top: 100px; /* stick below navbar */
  overflow: hidden; /* prevent inner scrolling */
}


/*
#output span {
  display: inline-block;
  margin: 4px;
  transition: all 0.3s ease;
} */

#startBtn {
  padding: 16px 32px;
  font-size: 1.5em;
  border: none;
  background-color: #B0CC5D;
  color: #FFF9EB;
  border-radius: 30px;
  cursor: pointer;
  transition: background-color 0.3s;
}

#startBtn:hover {
  background-color: #8EBE47;
}

/* Right panel: scrollable word display */
.right {
  flex: 1;
  padding: 40px;
  background-color: #FFF9EB;
  overflow-y: auto;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 8px;
}

/* Style the words */
.right span {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 4px;
  background-color: #eee;
  font-size: 16px;

  transition: opacity 1s ease-out; /* transition for fade "ghost" */
}

/* Box behind the word stays visibile while the word fades */
.right span.faded {
  opacity: 0;
}

.pulsating-gradient {
  background: radial-gradient(circle, #E092CA, #FFF9EB, #C2108F);
  animation: pulse 2.5s infinite ease-in-out;
}

@keyframes pulse {
  0% {
    background-size: 100% 100%;
    filter: brightness(1);
  }
  50% {
    background-size: 110% 110%;
    filter: brightness(1.1);
  }
  100% {
    background-size: 100% 100%;
    filter: brightness(1);
  }
}

/* json styles */ 

.sentiment-positive {
  font-family: "span", serif;
  font-weight: 400;
  font-style: italic;

  color: #E091CA;
}

.sentiment-negative {
  font-family: "trade-gothic-next", sans-serif;
  font-weight: 700;
  font-style: normal; 

  color: #375297;
}

.sentiment-neutral {
  font-family: "span", serif;
  font-weight: 400;
  font-style: normal;

  text-decoration: underline;
  
  color: #B0CC5B;
}

/* dynamic ellipsis */

.dynamic-ellipsis {
  opacity: 0.5;
  margin-right: 12px;
  color: #2B2B2B;
  font-family: "span", serif;
  font-weight: 400;
  font-style: italic;
}


/* toggles for switch */ 
.toggles {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-bottom: 70px;
}

.switch-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 300px;
  font-size: 1.5em;
  color: #FFF9EB;
  font-weight: 400;
  position: relative;

  background-color: #B0CC5D; 
  border-radius: 30px;          
  padding: 12px 20px; 
}

.switch-label input[type="checkbox"] {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  background-color: #FFF9EB;
  border-radius: 34px;
  margin-left: 10px;
  transition: background-color 0.3s;
  cursor: pointer;
}

.slider::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  background-color: #B0CC5D;
  border-radius: 50%;
  transition: transform 0.3s, background-color 0.3s;
}

.switch-label input:checked + .slider {
  background-color: #E091CA;
}

.switch-label input:checked + .slider::before {
  transform: translateX(20px);
  background-color: #FFF9EB;
}



/* used for style based on pauses but I'm not using it anymore (might tho) 
.short-pause {
  font-weight: bold;
  color: #d7263d;
}

.medium-pause {
  font-style: italic;
  color: #3f88c5;
}

.long-pause {
  opacity: 0.6;
  letter-spacing: 5px;
  font-family: serif;
  color: #04b31b;
}
*/