/* Alignment of block elements
 ========================================================================== */
/*
 * Float blocks
 * 1. Prevent content overflow on small devices
 */
.cd-float-left {
  float: left;
}
.cd-float-right {
  float: right;
}
/* 1 */
[class*='cd-float-'] {
  max-width: 100%;
}
/* Alignment of images and objects
 ========================================================================== */
/*
 * Alignment
 */
[class*='cd-align-'] {
  display: block;
  margin-bottom: 20px;
}
.cd-align-left {
  margin-right: 20px;
  float: left;
}
.cd-align-right {
  margin-left: 20px;
  float: right;
}
/* Tablet and bigger */
@media (min-width: 768px) {
  .cd-align-medium-left {
    margin-right: 20px;
    margin-bottom: 20px;
    float: left;
  }
  .cd-align-medium-right {
    margin-left: 20px;
    margin-bottom: 20px;
    float: right;
  }
}
.cd-align-center {
  margin-left: auto;
  margin-right: auto;
}

/* Alignment modifiers
 ========================================================================== */
.cd-text-left {
  text-align: left !important;
}
.cd-text-right {
  text-align: right !important;
}
.cd-text-center {
  text-align: center !important;
}
.cd-text-justify {
  text-align: justify !important;
}
.cd-text-top {
  vertical-align: top !important;
}
.cd-text-middle {
  vertical-align: middle !important;
}
.cd-text-bottom {
  vertical-align: bottom !important;
}
.cd-text-upper {
    text-transform: uppercase;
}

/* Only tablets portrait */
@media (max-width: 959px) {
  .cd-text-center-medium {
    text-align: center !important;
  }
}
/* Phone landscape and smaller */
@media (max-width: 767px) {
  .cd-text-center-small {
    text-align: center !important;
  }
}

/* Clearix
 ========================================================================== */

.cd-clearfix {
  *zoom: 1;
}
.cd-clearfix:before,
.cd-clearfix:after {
  display: table;
  content: "";
  line-height: 0;
}
.cd-clearfix:after {
  clear: both;
}

/* Margin
 ========================================================================== */

.cd-margin {
  margin-bottom: 20px;
  margin-top: 20px;
}
.cd-margin-top {
  margin-top: 20px !important;
}
.cd-margin-bottom {
  margin-bottom: 20px !important;
}
.cd-margin-left {
  margin-left: 20px !important;
}
.cd-margin-right {
  margin-right: 20px !important;
}
/*
 * Larger margins
 */
.cd-margin-large {
  margin-bottom: 40px;
  margin-top: 40px;
}
.cd-margin-large-top {
  margin-top: 40px !important;
}
.cd-margin-large-bottom {
  margin-bottom: 40px !important;
}
.cd-margin-large-left {
  margin-left: 40px !important;
}
.cd-margin-large-right {
  margin-right: 40px !important;
}
/*
 * Smaller margins
 */
.cd-margin-small {
  margin-bottom: 5px;
}
* + .cd-margin-small {
  margin-top: 5px;
}
.cd-margin-small-top {
  margin-top: 5px !important;
}
.cd-margin-small-bottom {
  margin-bottom: 5px !important;
}
.cd-margin-small-left {
  margin-left: 5px !important;
}
.cd-margin-small-right {
  margin-right: 5px !important;
}

/*
 * Remove margins
 */
.cd-margin-remove {
  margin: 0 !important;
}
.cd-margin-top-remove {
  margin-top: 0 !important;
}
.cd-margin-bottom-remove {
  margin-bottom: 0 !important;
}

/* Box Sizing
 ========================================================================== */
.cd-box-sizing {
    -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
    -moz-box-sizing: border-box;    /* Firefox, other Gecko */
    box-sizing: border-box;         /* Opera/IE 8+ */
}


/*
 * Fixed widths
 * Different widths for mini sized `input` and `select` elements
 */
input.cd-form-width-mini {
  width: 40px;
}
select.cd-form-width-mini {
  width: 65px;
}
.cd-form-width-small {
  width: 130px;
}
.cd-form-width-medium {
  width: 200px;
}
.cd-form-width-large {
  width: 500px;
}

@media (max-width: 768px) {
  .cd-form-width-large {
    width: 100%;
  }
}

/*
 * Widths
 */
/* Whole */
.cd-width-1-1 {
  width: 100%;
}
/* Halves */
.cd-width-1-2,
.cd-width-2-4,
.cd-width-3-6,
.cd-width-5-10 {
  width: 50%;
}

.cd-padding {
    padding: 10px;
}

.cd-padding-small {
    padding: 5px;
}

.cd-padding-large {
    padding: 15px;
}

/* Position 
 ========================================================================== */

.cd-position-absolute {
    position: absolute;
}

.cd-position-relative {
    position: relative;
}

.cd-position-static {
    position: static;
}

/*
 * Display
 */
.cd-display-block {
  display: block !important;
}
.cd-display-inline {
  display: inline !important;
}
.cd-display-inline-block {
  display: inline-block !important;
}

/*Buttons*/

.cd-button {
    /* 1 */
   -moz-user-select: none;
    background-image: none;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    cursor: pointer;
    display: inline-block;
    font-size: 14px;
    font-weight: normal;
    line-height: 1.57143;
    margin-bottom: 0;
    padding: 5px 15px;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
    background-color: #ffffff;
    color: #464646;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: all 0.2s ease 0s;
}


.cd-button:hover,
.cd-button:focus {
  /* 3 */
  text-decoration: none;
  background-image: none;
  box-shadow: inset 1px 3px 2px rgba(0, 0, 0, 0.025), inset 0 -1px 1px rgba(0, 0, 0, 0.07);
}
/* Active */
.cd-button:active,
.cd-button.cd-active {
  background-image: none;
  box-shadow: inset 1px 3px 2px rgba(0, 0, 0, 0.025), inset 0 -1px 1px rgba(0, 0, 0, 0.07);
}


/* Color modifiers
 ========================================================================== */
/*
 * Modifier: `cd-button-primary`
 */
.cd-button-primary {
    background-color: #2196f3;
    border-color: #1c94f3;
    color: #ffffff;
}
/* Hover */
.cd-button-primary:hover,
.cd-button-primary:focus {
    background-color: #007399;
    color: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
    background-image: none;
}
/* Active */
.cd-button-primary:active,
.cd-button-primary.cd-active {
  background-color: #007399;
  color: #ffffff;
  background-image: none;
}
/*
 * Modifier: `cd-button-success`
 */
.cd-button-success {
    background-color: #4caf50;
    border-color: #25a25a;
    color: #ffffff;
}
/* Hover */
.cd-button-success:hover,
.cd-button-success:focus {
    background-color: #25a25a;
    border-color: rgba(0, 0, 0, 0.1);
    color: #ffffff;
    background-image: none;
}
/* Active */
.cd-button-success:active,
.cd-button-success.cd-active {
    background-color: #25a25a;
    color: #ffffff;
    background-image: none;
}
/*
 * Modifier: `cd-button-danger`
 */
.cd-button-danger {
    background-color: #ee413c;
    border-color: #ff4800;
    color: #ffffff;
}
/* Hover */
.cd-button-danger:hover,
.cd-button-danger:focus {
  background-color: #ce402f;
  color: #ffffff;
  background-image: none;
  border-color: #d96557;
}
/* Active */
.cd-button-danger:active,
.cd-button-danger.cd-active {
  background-color: #ce402f;
  color: #ffffff;
  background-image: none;
}

/*
 * Modifier: `cd-button-white`
 */
.cd-button-white {
   box-shadow: none!important;
}


.cd-button-mini {
  min-height: 20px;
  padding: 0 6px;
  line-height: 20px;
  font-size: 12px;
}
.cd-button-small {
  min-height: 25px;
  padding: 0 10px;
  line-height: 25px;
  font-size: 12px;
}
.cd-button-large {
    font-size: 20px;
    line-height: 50px;
    min-height: 50px;
    padding: 0 20px;
}

/* UL LI Grid
 ========================================================================== */

ul.cd-ugrid {
    list-style: none;
    margin-left: -2.5%; /* should match li left margin */
    padding: 0;
}
ul.cd-ugrid li {
    display: inline-block;
    margin: 0 0 2.0% 2.0%;
    vertical-align: top;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
}
ul.cd-ugrid li img {
    max-width: 100%;
    height: auto;
}

/* class for1 columns */
ul.cd-ugrid.columns-1 li {
    width: 97.5%; /* this value + 2.5 should = 50% */
}

/* class for 2 columns */
ul.cd-ugrid.columns-2 li {
    width: 47.5%; /* this value + 2.5 should = 50% */
}
/* class for 3 columns */
ul.cd-ugrid.columns-3 li {
    width: 30.83%; /* this value + 2.5 should = 33% */
}
/* class for 4 columns */
ul.cd-ugrid.columns-4 li {
    width: 22.5%; /* this value + 2.5 should = 25% */
}

@media (max-width: 480px) {
    ul.cd-ugrid-nav li {
            display: block;
            margin: 0 0 5px;
    }
    ul.cd-ugrid-nav li a {
            display: block;
    }
    ul.cd-ugrid {
            margin-left: 0;
    }
    ul.cd-ugrid  li {
            width: 100% !important; /* over-ride all li styles */
            margin: 0 0 20px;
    }
}

input[type="radio"], input[type="checkbox"] {
    margin: 0!important;
}

.cd-select-style {
    overflow: hidden;
    position: relative
}

.cd-select-style select {
    background-color: transparent;
    background-image: none;
    -webkit-appearance: none;
       -moz-appearance: none;
            appearance: none;
}

.cd-select-style .fa-caret-down {
    height: 36px;
    line-height: 36px;
    right: 10px;
    top: 0;
}

.uk-form-icon select {
    -moz-appearance: none;
    background-color: transparent;
    background-image: none;
}
