/* @import url("https://fonts.googleapis.com/css?family=Open+Sans:400,700"); */

.d3-funnel-js-tooltip {
  pointer-events: none;
  display: none;
  align-items: center;
  justify-content: center;
  position: absolute;
  white-space: wrap;
  min-width: 140px;
  width: auto;
  height: 30px;
  transition: opacity 0.2s;
  font-family: iransans, sans-serif;
  font-size: 1em;
  font-weight: normal;
  line-height: 1em;
  text-align: left;
  padding: 4px;
  border-radius: 5px;
  border: 1px solid #000000;
  background-color: #333333;
  color: #f0f0f0;
  z-index: 1000;
}

.d3-funnel-js {
  font-family: iransans, sans-serif;
  font-size: 1em;
  font-weight: normal;
  line-height: 1em;
  text-align: left;
  display: block;
  margin: auto;
}

.d3-funnel-js .label__group .label__value {
  font-family: iransans, sans-serif;
  font-size: 1.5em;
  font-weight: normal;
  line-height: 18px;
  text-align: left;
  fill: #fff;
}

.d3-funnel-js .label__group .label__title {
  font-family: iransans, sans-serif;
  font-size: 1em;
  font-weight: bold;
  line-height: 1em;
  text-align: left;
  fill: #05df9d;
}

.d3-funnel-js .label__group .label__percentage {
  font-family: iransans, sans-serif;
  font-size: 1em;
  font-weight: normal;
  line-height: 1em;
  text-align: left;
  fill: #9896dc;
}

.d3-funnel-js .divider {
  stroke: #9896dc;
  stroke-width: 0.1em;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  background: #393862;
  font-family: iransans, sans-serif;
  font-weight: 400;
  font-variant-numeric: normal;
}

/* IRANSans FaNum cuts (fontiran.css) shape Persian digits in text */
body {
  font-feature-settings: "kern" 1;
}

.funnel {
  height: 100%;
  padding: 0;
}

.flex {
  display: flex;
}

.row {
  flex-direction: row;
}

.col {
  flex-direction: column;
}

select {
  font-family: iransans, sans-serif;
  padding: 10px;
  margin: 5px;
  font-size: 11px;
  font-weight: 500;
  background-color: #4a90e2;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, transform 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: 180px;
}

button {
  font-family: iransans, sans-serif;
  padding: 10px;
  margin: 5px;
  font-size: 11px;
  font-weight: 500;
  background-color: #4a90e2;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, transform 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: 180px;
  height: 28px;
}

button:hover {
  background-color: #357abd;
  transform: translateY(-2px);
}

button:active {
  background-color: #2c6ea3;
  transform: translateY(0);
}

button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.5);
}

#button-container {
  width: auto;
  display: flex;
  align-items: start;
  justify-content: start;
  padding: 8px;
}

.funnel-graph,
.funnel-wrapper {
  width: 400px;
}

.page-logo {
  position: fixed;
  right: 24px;
  bottom: 44px;
  width: clamp(330px, 12vw, 180px);
  height: auto;
  z-index: 20;
  pointer-events: none;
}
