
/* Alignment modifiers
 ========================================================================== */

.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;
}

/* 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;
}

/* 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%;
  }
}

.cd-padding {
    padding: 10px;
}

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

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


/*Buttons*/

.cd-button,
.uk-form .input-append 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;
    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);
}


/* Color modifiers
 ========================================================================== */
/*
 * Modifier: `cd-button-primary`
 */
.cd-button-primary {
    background-color: #2196f3;
    border-color: #1c94f3;
    color: #ffffff;
}
/* Hover */
.cd-button-primary:hover {
    background-color: #007399;
    color: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
    background-image: none;
}

/*
 * Modifier: `cd-button-success`
 */
.cd-button-success {
    background-color: #4caf50;
    border-color: #25a25a;
    color: #ffffff;
}
/* Hover */
.cd-button-success:hover {
    background-color: #25a25a;
    border-color: rgba(0, 0, 0, 0.1);
    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;
}

/*
 * 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: 768px) {

    /* class for 4 columns */
    ul.cd-ugrid.columns-4 li {
        width: 30.83%; /* 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;
}

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