@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;700;900&display=swap');

:root {
  --font-size: 16px;
}

body {
  margin: 0;
  padding: 10px;
}

#sub-goal-container {
  position: relative;
  display: flex;
  flex-direction: column;
  font-size: var(--font-size);
}

#goal-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: calc(100% - 30px);
  gap: 20px;
  padding: 0 10px;
  font-family: 'Noto Sans', sans-serif;
  font-weight: 900;
  font-size: 1em;
  color: #ffffff;
  text-shadow: -1px 1px 2px #000000, -1px 2px 1px #000000;
}

.goal-left {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

#subIcon, #giftIcon {
  display: none;
  margin-right: .25em;
  transition: opacity 0.75s ease;
}

.goal-right {
  white-space: nowrap;
}

#progress-outer {
  border:none;
  padding: 4px;
  margin: 5px 0;
  background: rgba(0, 0, 0, 0.15);
  width: calc(100% - 20px);
  min-width: 250px;
  height: 1em;
  border-radius: 1em;
  border: 3px solid #ffffff;
  
}

#progress-inner {
  width: 0%;
  height: 100%;
  background-image: var(--margo-white);
  border-radius: 1em;
  -webkit-transition: width 2.5s ease;
  -moz-transition: width 2.5s ease;
  -o-transition: width 2.5s ease;
  transition: width 2.5s ease;
}

#goal-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: opacity 0.75s ease; /* Faster fade-in effect (adjust the duration as needed) */
}

#goal-text.fade-out {
  opacity: 0;
  transition: opacity 0.75s ease; /* Faster fade-out effect (adjust the duration as needed) */
}

#subIcon.fade-out, #giftIcon.fade-out {
  opacity: 0;
  transition: opacity 0.75s ease; /* Faster fade-out effect (adjust the duration as needed) */
}

.textMiddle {
  position: absolute;
  margin: 5px 15px !important;
  padding: 8px 15px !important;
  width: calc(100% - 60px) !important;
  text-shadow: none !important;
  line-height: 1em;
  font-size: .85em !important;
  text-transform: uppercase;
}