.flex {
  display: flex;
  gap: var(--gap, 1rem);
  flex-direction: var(--flex-direction, row);
  justify-content: var(--justify-content, center);
  align-items: var(--align-items, center);
}

.grid {
  display: grid;
  grid-template-columns: repeat(var(--columns, auto), var(--col-size, 1fr));
  grid-template-rows: repeat(var(--rows, auto), var(--rows-size, 1fr));
  gap: var(--gap, 1rem);
}

.flex-column {
  display: flex;
  gap: var(--gap, 1rem);
  flex-direction: var(--flex-direction, column);
  justify-content: var(--justify-content, center);
  align-items: var(--align-items, center);
}

/* Components */
.btn {
  width: var(--width, 6rem);
  height: var(--height, 2.5rem);
  color: var(--text-color-btn);
  background-color: var(--btn-background, #538af7);
  font-weight: var(--font-weight, 500);
  padding: var(--btn-padding);
  text-align: center !important;
  cursor: pointer !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
  border: 1px solid transparent !important;
  font-size: 1.15rem;
  border-radius: 0.625rem;
}

.input {
  width: 100%;
  padding: 0.825rem 1.1875rem;
  font-size: var(--font-size, 1.225rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text-color-input);
  background-color: transparent;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border-left: none;
  border: none;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  outline: none;
}

input::-webkit-input-placeholder {
  font-size: 1.3rem;
  /*  color: var(--text-color); */
  opacity: 0.6;
}

input::-moz-placeholder {
  font-size: 1.3rem;
  /*  color: var(--text-color); */
  opacity: 0.6;
}

input:-ms-input-placeholder {
  font-size: 1.3rem;
  /*  color: var(--text-color); */
  opacity: 0.6;
}

input::-ms-input-placeholder {
  font-size: 1.3rem;
  /*  color: var(--text-color); */
  opacity: 0.6;
}

input::placeholder {
  font-size: 1.3rem;
  /*  color: var(--text-color); */
  opacity: 0.6;
}

input:user-valid {
  border: 1px solid lightgreen;
}

input:user-invalid {
  border: 1px solid red;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}


.error-message {
  font-size: 1.5rem;
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: 10rem;
  margin: auto 10%;
  padding: 1rem;
  width: 25rem;
  height: 10rem;
  border-radius: 1rem;
  color: rgb(241, 22, 22);
  background-color: var(--card-bg-color);
  transition: all 200ms ease-in-out;
}

.log-out {
  display: none;
  background-color: transparent;
  color: var(--text-color);
  text-wrap: nowrap;
}

.log-out > svg {
  fill: var(--text-color);
}

.log-out:hover {
  opacity: 0.8;
}

.log-out:active {
  opacity: 1;
}

/* toggle button styles */

.toggle-box {
  margin-right: 10px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 38px;
  height: 20px;
  background: #c0c0c0;
  /* #EFEFEF */
  border-radius: 10px;
  transition: all 0.2s;
  bottom: -5px;
}

.toggle-box i {
  width: 15px;
  aspect-ratio: 1;
  border-radius: 50%;
  background-color: white;
  position: absolute;
  left: 15%;
  transition: all 0.2s ease;
}

h1,
h2,
h3,
h4,
h5,
p {
  color: var(--text-color);
}

.sr-only {
  width: 1px;
  height: 1px;
  position: absolute;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* Tooltips */

.tooltip,
.tooltip-logo {
  position: relative;
  cursor: pointer;
  z-index: 100;
}

.tooltip::before,
.tooltip-logo::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.75);
  color: white;
  padding: 0.5rem;
  border-radius: 0.3rem;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease-in-out;
}

.tooltip-logo::before {
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  bottom: -300%;
  transform: translateX(var(--translateX, -80px)) translateY(15px);
}
.tooltip:hover::before,
.tooltip-logo:hover:before {
  opacity: 1;
  visibility: visible;
}

/* user selection styles */

::-moz-selection {
  background-color: #ffa722;
  color: var(--text-color);
  opacity: 1;
}

::selection {
  background-color: #ffa722;
  color: var(--text-color);
  opacity: 1;
}

::-moz-selection {
  background-color: #fd7e14;
  color: var(--text-color);
}

/* scroll bars  */

::-webkit-scrollbar {
  width: 12px;
  background-color: color-mix(in srgb, var(--text-color), transparent 50%);
  opacity: 0.2;
  /* border-radius: 1rem; */
}

::-webkit-scrollbar-thumb {
  background-color: color-mix(in srgb, var(--primary-body-bg), transparent 60%);
  /* border-radius: 1rem; */
}

/* Don't change */

.poppins-thin {
  font-family: "Poppins", sans-serif;
  font-weight: 100;
  font-style: normal;
}

.poppins-extralight {
  font-family: "Poppins", sans-serif;
  font-weight: 200;
  font-style: normal;
}

.poppins-light {
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  font-style: normal;
}

.poppins-regular {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.poppins-medium {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-style: normal;
}

.poppins-semibold {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-style: normal;
}

.poppins-bold {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.poppins-extrabold {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-style: normal;
}

.poppins-black {
  font-family: "Poppins", sans-serif;
  font-weight: 900;
  font-style: normal;
}

.poppins-thin-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 100;
  font-style: italic;
}

.poppins-extralight-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 200;
  font-style: italic;
}

.poppins-light-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  font-style: italic;
}

.poppins-regular-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-style: italic;
}

.poppins-medium-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-style: italic;
}

.poppins-semibold-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-style: italic;
}

.poppins-bold-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-style: italic;
}

.poppins-extrabold-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-style: italic;
}

.poppins-black-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 900;
  font-style: italic;
}

/* Animations */

@-webkit-keyframes rotate {
  from {
    --angle: 0deg;
  }
  to {
    --angle: 360deg;
  }
}

@keyframes rotate {
  from {
    --angle: 0deg;
  }
  to {
    --angle: 360deg;
  }
}

@keyframes scale {
  to {
    scale: 1.039;
  }
}

@keyframes scale-rev {
  from {
    scale: 1.039;
  }
  to {
    scale: 1;
  }
}

@-webkit-keyframes animated-gradient {
  0% {
    background-position: 300% 300%;
  }
  50% {
    background-position: 200% 200%;
  }
  100% {
    background-position: 0% 0%;
  }
}

@keyframes animated-gradient {
  0% {
    background-position: 300% 300%;
  }
  50% {
    background-position: 200% 200%;
  }
  100% {
    background-position: 0% 0%;
  }
}

/* Custom properties */

@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@supports not ((@property)) {
  main .hero .stats .child-1::after {
    background: transparent;
  }

  .stats .child-1 {
    background-color: transparent;
  }
}

