
// --- Imports
@import "fallbacks";
@import "reset";

::-webkit-scrollbar{
    width: 0px;
}

::-webkit-scrollbar-track-piece{
    background-color: transparent;
    -webkit-border-radius: 6px;
}

form {
    max-width: 1000px;
    margin: 0 auto;
    @include display-flex();
    @include flex-flow();
    @include justify-content(space-between);

    .form-divider {
        width: 100%;
        height: 1px;
        background: gray;
    }
}

label, button, input, textarea, select {
    @include appearance(none);
}

input, select {
    width: 100%;
    padding: 5px;
    border: 1px solid black;
}

input[type=time] {
    padding: 2.8px;
}

textarea {
    width: 100%;
    padding: 5px;
    min-height: 100px;
    resize: vertical;
}

@import "fallbacks";

.flex {
    @include display-flex();
}

.flex-container {
    @include display-flex();
    width: 100%;
    @include flex-wrap(wrap);
    @include justify-content(center);
}

.flex-default {
    @include display-flex();
    @include flex-flow();
    @include justify-content(space-between);
}

.flex-grow-1 {
    @include display-flex();
    @include flex-grow(1);
}

.flex-grow-2 {
    @include display-flex();
    @include flex-grow(2);
}

/** --- SLIDER --- */
/* The switch - the box around the slider */
.switch-toggle-primary {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 25px;
}

/* Hide default HTML checkbox */
.switch-toggle-primary input {display:none;}

/* The slider */
.slider-toggle-primary {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider-toggle-primary:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 2px;
    bottom: 1.65px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked + .slider-toggle-primary {
    background-image: url("/assets/images/switch-toggle-checked.png");
    background-color: #3842B1;
}

input:focus + .slider-toggle-primary {
    box-shadow: 0 0 1px #EEEEEE;
}

input:checked + .slider-toggle-primary:before {
    @include transform(translateX(14px));
}

/* Rounded slider-toggle-primarys */
.slider-toggle-primary.round {
    border-radius: 34px;
}

.slider-toggle-primary.round:before {
    border-radius: 50%;
}
/** --- */

// --- GENERATED
@for $i from 1 through 25 {
    $size: $i * 5;
    .w-#{$size} {
        width: percentage($size) / 100!important;
    }

    .pd-#{$size} {
        padding: $size + px;
    }

    .pd-lr-#{$size} {
        padding-left: $size + px;
        padding-right: $size + px;
    }

    .mg-#{$size} {
        margin: $size + px $size + px 0;
    }

    .mg-lr-#{$size} {
        margin-left: $size + px;
        margin-right: $size + px;
    }

    .mg-l-#{$size} {
        margin-left: $size + px;
    }

    .mg-r-#{$size} {
        margin-right: $size + px;
    }

    .op-#{$size} {
        opacity: "0." + $size;
    }
}

@for $i from 1 through 40 {
    $size: $i * 5;

    .mg-t-#{$size} {
        margin-top: $size + px;
    }

    .pd-t-#{$size} {
        padding-top: $size + px;
    }

    .pd-b-#{$size} {
        padding-bottom: $size + px;
    }
}

.mg-c {
    margin-left: auto;
    margin-right: auto;
}

.mg-t-8 {
    margin-top: 8px;
}

// --- END GENERATED

.w-48 {
    width: 48%!important;
}

.w-99 {
    width: 99%!important;
}

.pd-7 {
    padding: 7px;
}


.columns-1.form-group, .columns-1 .form-group {
    width: 100%;
}

.columns-2.form-group, .columns-2 .form-group {
    width: 48%;
}

.columns-1.form-group-1-1, .columns-1 .form-group-1-1 {
    width: 100%;
}

.columns-1.form-group-1-2, .columns-1 .form-group-1-2 {
    width: 48%;
}

.columns-1.form-group-1-3, .columns-1 .form-group-1-3 {
    width: 33%;
}

.columns-1.form-group-2-5, .columns-1 .form-group-2-5 {
    width: 39%;
}

.columns-1.form-group-1-5, .columns-1 .form-group-1-5 {
    width: 19%;
}

.columns-1.form-group-2-6, .columns-1 .form-group-2-6 {
    width: 32%;
}

.columns-1.form-group-1-6, .columns-1 .form-group-1-6 {
    width: 16%;
}

.columns-1.form-group-2-7, .columns-1 .form-group-2-7 {
    width: 28%;
}



label.label-top, .label-top label {
    display: block;
}

label.label-left, .label-left label {
    display: inline;
}

.small {
    font-size: 10px;
}

.fixed-bottom {
    position: fixed;
    bottom: 0;
}

.fixed-bottom-center {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
}

.inline-right {
    display: inline;
    float: right;
}

.disabled {
    cursor: not-allowed!important;
}

.inactive {
    display: none!important;
}

.float-right {
    float: right;
}

.float-left {
    float: left;
}

.button-container-small {
    width: 150px;
}
