@import url('https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css');

*,
*:after,
*:before {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

.clearfix:before,
.clearfix:after {
	content: " ";
	display: table;
}

.clearfix:after {
	clear: both;
}

body {
	font-family: sans-serif;
	background: #f6f9fa;
	background:url(citys.jpg);-moz-background-size:40% 100%; /* 老版本的 Firefox */
	background-size:100% 100%;
	background-repeat:no-repeat;
}
.CenterMe {
	color: #ebebeb;
	font-family: 'Oswald', sans-serif;
	font-size: 2rem;
	text-transform: uppercase;
	height: 200px auto;
	display: flex;
	align-items: center;
	justify-content: center;
}

h1 {
	color: #ccc;
	text-align: center;
}

a {
  color: #ccc;
  text-decoration: none;
  outline: none;
}

/*Fun begins*/
.tab_container {
	width: 90%;
	margin: 0 auto;
	padding-top: 70px;
	position: relative;
  display: flex;
  flex-wrap: wrap;
}

.tab_label_flex_container {
	width: 100%;
  display: -webkit-flex;
  display:         flex;
  flex-direction: column;
  align-items: center;
  padding: 0 0rem;
}

@media (min-width: 31.25em) {
  .tab_label_flex_container {
      flex-direction: row;
  }
  label[for=tab7] {
      margin-left: auto;
  }
}

input, section {
  clear: both;
  padding-top: 10px;
  display: none;
}

label {
  font-weight: 700;
  font-size: 18px;
  display: -webkit-flex;
  display: flex;
  float: left;
  width: auto;
  padding: 1.5em;
  color: #757575;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  background: #f0f0f0;
}
label:hover{
  background-color: #fff;
}



#tab1:checked ~ #content1,
#tab2:checked ~ #content2,
#tab3:checked ~ #content3,
#tab4:checked ~ #content4,
#tab5:checked ~ #content5,
#tab6:checked ~ #content6,
#tab7:checked ~ #content7{
  display: block;
  clear: both;
  padding: 20px;
  background: #fff;
  color: #999;
  border-bottom: 2px solid #f0f0f0;
}

.tab_container .tab-content p,
.tab_container .tab-content h3 {
  -webkit-animation: fadeInScale 0.7s ease-in-out;
  -moz-animation: fadeInScale 0.7s ease-in-out;
  animation: fadeInScale 0.7s ease-in-out;
}
.tab_container .tab-content h3  {
  text-align: center;
}

#tab1:checked ~ .tab_label_flex_container #tab1, 
#tab2:checked ~ .tab_label_flex_container #tab2,
#tab3:checked ~ .tab_label_flex_container #tab3,
#tab4:checked ~ .tab_label_flex_container #tab4,
#tab5:checked ~ .tab_label_flex_container #tab5,
#tab6:checked ~ .tab_label_flex_container #tab6,
#tab7:checked ~ .tab_label_flex_container #tab7
{
  background: #fff;
  box-shadow: inset 0 3px #0CE;
}

  
.tab_container [id^="tab"]:checked + .tab_label_flex_container label .fa {
  color: #0CE;
}

label .fa {
  font-size: 1.3em;
  margin: 0 0.4em 0 0;
}

/*Media query*/
@media only screen and (max-width: 900px) {
  /*
  label span {
    display: none;
  }
  */
  .tab_container {
    width: 98%;
  }
}

/*Content Animation*/
@keyframes fadeInScale {
  0% {
  	transform: scale(0.9);
  	opacity: 0;
  }
  
  100% {
  	transform: scale(1);
  	opacity: 1;
  }
}

.no_wrap {
  text-align:center;
  color: #0ce;
}
.link {
  text-align:center;
}
