// @import url("https://fonts.googleapis.com/css2?family=Raleway:wght@400&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@700&display=swap");

// ==================== VARIABLES ================== //

// Colors
$lightOrange: #ffc371;
$orange: #f49956;
$red: #ff696d;
$primaryBlue: #41a0ef;
$darkText: #545454;
$green: #31d644;
$lightDark: #8B8B8B;
$darkWhite: #c6c6c6;
$purple: #8732E8;
$primaryBG: transparent linear-gradient(215deg, #8732e8 0%, #0ca0ef 100%) 0% 0%
  no-repeat padding-box;
$redGradientBG: transparent linear-gradient(244deg, #ff696d 0%, #ffc371 100%) 0%
  0% no-repeat padding-box;
$contentBG: #f3f3f3 0% 0% no-repeat padding-box;

// Breakpoints
$breakpointDesktop: 961px;

// Font
$primaryFont: "Nunito Sans", sans-serif;

// ===================== MIXINS ====================== //

// Text Styling
@mixin textStyle(
  $font,
  $height,
  $color: white,
  $weight: normal,
  $bgColor: transparent
) {
  background-color: $bgColor;
  height: #{$height}px;
  font-family: $primaryFont;
  font-style: normal;
  font-weight: $weight;
  font-size: #{$font}px;
  line-height: #{$height}px;
  color: $color;
  margin: 0;
  padding: 0;
}

// Button Styling
@mixin btnStyle(
  $font,
  $height,
  $px,
  $py,
  $color,
  $bgColor,
  $borderRadius: 8,
  $marginTop: 0) {
  display: block;
  margin: #{$marginTop}px auto 0 auto;
  font-family: $primaryFont !important;
  font-style: normal !important;
  font-weight: 900 !important;
  font-size: #{$font}px !important;
  line-height: #{$height}px !important;
  padding: #{$py}px #{$px}px !important;
  text-align: center;
  letter-spacing: 2px;
  box-sizing: border-box;
  border-radius: #{$borderRadius}px;
  color: $color;
  background-color: $bgColor;
}

@mixin btnStyleNew(
  $font,
  $height,
  $px,
  $py,
  $color,
  $bgColor,
  $borderRadius,
  $borderColor,
  $hoverColor,
  $hoverBg
) {
  font-family: $primaryFont !important;
  font-style: normal !important;
  font-weight: 900 !important;
  font-size: #{$font}px !important;
  line-height: #{$height}px !important;
  padding: #{$py}px #{$px}px !important;
  text-align: center;
  letter-spacing: 0.96px !important;
  border: solid 1px $borderColor !important;
  box-sizing: border-box;
  border-radius: #{$borderRadius}px !important;
  color: $color !important;
  background-color: $bgColor !important;
  &:hover {
    color: $hoverColor !important;
    border: 1px solid $hoverBg !important;
    background-color: $hoverBg !important;
  }
}

@mixin matFigure($id, $itemPosition, $contentPosition) {
  ##{$id} {
    .mat-figure {
      align-items: $itemPosition !important;
      justify-content: $contentPosition !important;
    }
  }
}

// TODO: REMOVE THIS

//textfield styling
.mat-form-field {
  width: 75%;
  text-align: center !important;
  max-width: 300px;
  font-family: $primaryFont;

  .mat-form-field-label {
    color: white;
    font-size: 12px;
    opacity: 0.5;
  }
}
.mat-form-field-appearance-standard .mat-form-field-underline {
  background-color: white;
  opacity: 0.7;
}
.mat-form-field-subscript-wrapper {
  text-align: left;
}

.mat-form-field-infix {
  padding: 0.8em 0;
  padding-top: 0;
  border-top: none;
  /* border-top: .84375em solid transparent; */
}
.mat-input-element {
  opacity: 0.7;
}

.mat-form-field.mat-focused {
  .mat-form-field-label {
    color: white;
    letter-spacing: 1px;
  }
  .mat-form-field-ripple {
    background-color: rgba($color: white, $alpha: 0.99);
  }
  .mat-form-field-required-marker {
    color: red;
  }
  .mat-input-element {
    color: white;
    font-style: normal;
    font-weight: 500;
  }
}
.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label,
.mat-form-field-can-float
  .mat-input-server:focus
  + .mat-form-field-label-wrapper
  .mat-form-field-label {
  letter-spacing: 2px;
}

.mat-h5,
.mat-typography h5 {
  font-family: $primaryFont;
  color: white;
}

.mat-tab-labels {
  .mat-tab-label {
    color: $darkWhite;
    font-family: $primaryFont;
    font-size: 1rem;
    opacity: 1;

    &.mat-tab-label-active {
      color: $purple;
    }
  }
}

.mat-tab-group.mat-primary .mat-ink-bar {
  background-color: $purple;
  height: 3px;
}

.mat-dialog-container {
  margin: 0 20px;
  border-radius: 15px;
}
