@charset "utf-8";
/* CSS Document */

 html  
 
  {
  box-sizing: border-box;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

h1,
h2 {
  text-align: center;
}
body > h2,
h1.gutter {
  margin: 2em 0 0;
  padding: 1em 0 1em;
  border-top: 1px dotted #000;
  text-align:center;
}

/* example 1 */

.append {
  padding: 10px;
  background: #f9f9f9;
  display: flex;
 /* max-width: 960px; */
  max-width: 991px;
  margin: auto;
}

.append input {
  flex: 1 0 auto;
  padding: 10px;
  border: 1px solid #dfdfdf;
}

.append button,
.append span {
  padding: 5px 10px;
  margin: 0;
  background: #ccc;
  border: 1px solid #dfdfdf;
  display: flex;
  align-items: center;
}

.append button,
.append span,
.append input:first-child {
  border-radius: 3px 0 0 3px;
}

.append button:last-child,
.append span:last-child,
.append input:last-child {
  border-radius: 0 3px 3px 0;
}

/* example 2 - last item to bottom */

.wrap {
  margin: 0 auto;
  padding: 0;
  max-width: 1140px;
  padding: 10px;
  border: 1px solid #000;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}

h3,
p {
	text-align:center;
  margin: 0 0 1em;
}

.image {
	height: 123px;
	background: red;
	border: 1px solid #000;
	border-radius: 4px;
	margin-top: 10px;
	margin-right: 0;
	margin-bottom: 10px;
	margin-left: 0;
	color: #CC0;
}

.wrap li {
  margin: 10px 1%;
  padding: 10px;
  border: 1px solid #000;
   border-radius: 4px;
  display: inline-block;
  /* fallback */
  width: 15%;
  /* fallback*/
  vertical-align: top;
  /* fallback*/
  display: flex;
  flex-direction: column;
  flex: 1 0 23%;
  min-width: 130px;
  /* doesn't work in ios so use media queries to go to one column */
}

.footer {
  margin-top: auto;
  padding: 10px;
  background: #FF9F35;
  color: #FFF;
}

.footer b {
  float: right;
}

.footer a {
  color: #fff;
}

/* example 3 full height nested blocks */

ul.full-height {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  max-width: 980px;
  margin: auto;
  width: 100%;
}

.full-height li {
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
  border: 1px solid #000;
}

.full-height a {
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
  justify-content: center;
  text-decoration: none;
  color: #000;
  background: red;
  padding: 5px;
}

.full-height a:hover {
  background: orange;
}

/* example 4 last ime to the right */

.last-item-right {
  display: flex;
  max-width: 980px;
  margin: auto;
  padding: 10px;
  background: yellow;
  list-style: none;
}

.last-item-right a {
  margin: 0 10px;
  display: inline-block;
}
/* the magic*/
.last-item-right li:last-child {
  margin-left: auto;
}

/* 2 items to right*/
.last2 li:last-child {
  margin-left: 0; /* cancel auto */
}
.last2 li:nth-last-child(2) {
  margin-left: auto;
} /* the magic*/

/* example 5 left right and centered in space between left and right */
.left-right-center {
  display: flex;
  max-width: 980px;
  margin: auto;
  padding: 10px;
  background: yellow;
  list-style: none;
}
.left-right-center a {
  margin: 0 10px;
  display: inline-block;
}
/* the magic*/
.left-right-center li:nth-child(2) {
  margin: auto;
}

/* example 6 - another way to align to bottom */
.wrap {
  display: flex;
  width: 100%;
  max-width: 1140px;
  margin: auto;
  border-radius: 4px;
  justify-content: space-between;
}
.col {
  display: flex;
  flex-direction: column;
  background: #f9f9f9;
  border-bottom: 1px solid red;
  justify-content: space-between;
  flex: 1;
  margin: 0 10px;
}
.box {
  background: red;
}
.box2 {
  background: yellow;
}

/* example 7 - 3 column responsive layout (Holy Grail) */
/* make sure to check ie11 as there are various bugs (which are squashed in this layout)*/
html,
body {
  margin: 0;
  padding: 0;
