@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;700;900&display=swap');

:root {
  --weight: 900;
  --family: Noto Sans;
  --color-progress-container: rgba(0, 0, 0, 0.15);
  --color-progress-bar: #f2f2f2;
  --color-text: #ffffff;
  --color-border: #f2f2f2;
  --widget-size: 12px;
}

.previewWidget {
  box-sizing: border-box;
  background-image: url("/assets/bokeh.jpg");
  padding: 10px;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: .25em;
}

#widget-container {
  box-sizing: border-box;
  position: relative;
  display: flex;
  flex-direction: column;
  font-family: var(--family), Arial, Helvetica, sans-serif;
  font-weight: var(--weight);
  font-size: var(--widget-size);
  color: var(--color-text);
  user-select: none;
}

.goal-container {
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
  gap: 2em;
  padding: 0 15px;
  text-shadow: -1px 1px 2px #000000, -1px 2px 1px #000000;
}

.goal-left {
  display: flex;
  gap: .25em;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  padding-right: 5px;
}

.icons {
  display: flex;

}

#subIcon, #giftIcon {
  display: none;
}

#subIcon svg, #giftIcon svg {
  height: .8em;
  margin: auto 0;
  margin-right: .25em;
  fill: var(--color-font);
  filter: drop-shadow(-1px 2px 1px #000000);
  transform: translateY(.5px);
  transition: opacity 0.75s ease;
}

.goal-right {
  white-space: nowrap;
}

.progress-bar-container {
  box-sizing: border-box;
  border:none;
  padding: 4px;
  margin: 5px 0;
  background-color: var(--color-progress-container);
  width: 100%;
  min-width: 250px;
  height: 2em;
  border-radius: 1em; 
  border: 3px solid var(--color-border);
  
}

.progress-bar {
  width: 100%;
  height: 100%;
  background-color: var(--color-progress-bar);
  background-image: none;
  border-radius: 1em;
  transition: width 1.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 {
  display: flex;
  box-sizing: border-box;
  position: absolute;
  height: 100%;
  width: 100% !important;
  padding: 0 .95em;
  text-shadow: none !important;
  line-height: .85em;
  font-size: .85em !important;
  text-transform: uppercase;
}

.textMiddle div {
  display: inline-block;
  align-content: center;
}

@keyframes flash {
  0%, 25%, 50%, 100% {
    filter: invert(0);
  }
  12.5%, 37.5% {
    filter: invert(1);
  }
}

.flash {
  animation: flash 2.5s ease-in-out 1; /* 2.5 seconds, single sequence */
}


.flex-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 50px;
  margin: 0;
}

.arrows {
  display: flex;
}

.arrows span {
  display: flex;
}

.arrows img {
  cursor: pointer;
  height: 2.5em;
  filter: invert(1);
  margin-top: .6em;
}

.arrows img:hover {
  filter: invert(76%) sepia(94%) saturate(993%) hue-rotate(140deg) brightness(101%) contrast(90%);
}

.theme-names {
  display: flex;
  gap: .35em;
  margin: 1em auto;
  text-align: center;
  text-transform: capitalize;
}

@media (max-width: 769px) {
  .widget-container {
      min-width: 0px;
  }

  .two,
  .four,
  .five {
      display: none;
  }
}

@media (max-width: 550px) {

  .theme-names {
      flex-direction: column;
  }

  .three {
      display: none;
  }
}