/* Overriding bootstrap defaults */
$primary-100: hsl(213, 100%, 96%);
$primary-200: hsl(217, 97%, 88%);
$primary-300: hsl(221, 90%, 81%);
$primary-400: hsl(225, 86%, 73%);
$primary: hsl(229, 76%, 66%);
$primary-600: hsl(234, 62%, 60%);
$primary-700: hsl(237, 47%, 52%);
$primary-800: hsl(242, 38%, 41%);
$primary-900: hsl(247, 33%, 32%);

$gray-50: hsl(204, 47%, 97%) !default;
$gray-100: hsl(204, 43%, 91%) !default;
$gray-200: hsl(211, 38%, 84%) !default;
$gray-300: hsl(214, 32%, 79%) !default;
$gray-400: hsl(211, 25%, 72%) !default;
$gray-500: hsl(214, 20%, 61%) !default;
$gray-600: hsl(216, 15%, 34%) !default;
$gray-700: hsl(218, 17%, 25%) !default;
$gray-800: hsl(218, 23%, 19%) !default;
$gray-900: hsl(220, 26%, 10%) !default;

/* :) */

$theme-colors: (
    "gray-50": $gray-50,
    "gray-100": $gray-100,
    "gray-200": $gray-200,
    "gray-300": $gray-300,
    "gray-400": $gray-400,
    "gray-500": $gray-500,
    "gray-600": $gray-600,
    "gray-700": $gray-700,
    "gray-800": $gray-800,
    "gray-900": $gray-900,

    "primary-100": $primary-100,
    "primary-200": $primary-200,
    "primary-300": $primary-300,
    "primary-400": $primary-400,
    "primary-600": $primary-600,
    "primary-700": $primary-700,
    "primary-800": $primary-800,
    "primary-900": $primary-900
);

$spacer: 1rem;
$spacers: (
    0: 0,
    1: ($spacer * .25),
    2: ($spacer * .5),
    3: $spacer,
    4: ($spacer * 1.5),
    5: ($spacer * 3),
    6: ($spacer * 4),
    7: ($spacer * 5),
    8: ($spacer * 6),
    9: ($spacer * 8),
    10: ($spacer * 10)
);

/* Overriding */
$body-bg: hsla(255, 100%, 100%, 1);
$body-color: $gray-800;
$black: hsl(220, 3%, 4%);

$nav-pills-link-active-bg: $gray-900;
$list-group-border-color: $gray-100;

/* Code */
$code-color: $primary;

/* Border */
$border-radius: .3rem;

/* Dropdown */
$dropdown-padding-x: .5rem;
$dropdown-padding-y: .5rem;
$dropdown-item-padding-y: .5rem;
$dropdown-border-color: $gray-100;
$dropdown-divider-bg: $gray-100;

/* Card */
$card-border-color: $gray-100;

/* Pagination */
$pagination-border-color: $gray-100;
$pagination-disabled-border-color: $gray-100;
$pagination-hover-bg: $gray-50;
$pagination-hover-border-color: $gray-100;

/* Inputs */
$input-border-color: $gray-100;
$input-color: $gray-600;
$input-placeholder-color: $gray-500;
$form-group-margin-bottom: 1.5rem;

/* Blockquote footer */
$blockquote-small-color: $gray-800;

/* Small font size */
$small-font-size: 80%;

@import "./bootstrap/bootstrap";

/* a */
a:not(.dropdown-item):not(.btn):not(.nav-link) {
    transition: color .3s linear !important;
}

/* Dropdown */
.dropdown-toggle-simple::after {
    display:none;
}

.dropdown-item > svg {
    color: $gray-700;
}

.dropdown-item:focus > svg {
    color: inherit;
}

/* Animate dropdown menu */
.dropdown .dropdown-menu{
    animation-name: opacityIn;
    animation-duration: .15s;
}

@keyframes opacityIn {
    from { opacity: .3; }
    to { opacity: 1; }
}

/* Nav pills */
.nav-pills {
    .nav-link {
        color: $gray-800;
    }
}

/* Code */
code {
    background: $primary-100;
    border-radius: $border-radius;
    padding: .15rem;
}

/* Buttons */
.btn {
    border-style: solid;
}

/* Tooltip fix */
.tooltip { top: 0; }

/* Extra variables */
:root {
    --black: #{$black};
    --body-bg: #{$body-bg};
    --body-color: #{$body-color};
    --border-radius: #{$border-radius};
    --input-border-color: #{$input-border-color};
    --input-color: #{$input-color};
    --input-placeholder-color: #{$input-placeholder-color};
    --input-padding-y: #{$input-btn-padding-y};
    --input-padding-x: #{$input-btn-padding-x};
    --input-font-size: #{$input-font-size};
    --card-padding: #{$card-spacer-x};
}
