html {
  box-sizing: border-box;

  font-family: 'Varela Round', sans-serif;
  font-size: 20px;
  font-weight: 400;
}

body {
  margin: 0;
}

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

.panels {
 height: 650px;
  overflow: hidden;
  display: flex;
	background: #000;
}

.panel {
  background: #6b0f9c;
  color: #000;
  text-align: center;
  align-items: center;
  /* Safari transitionend event.propertyName === flex */
  /* Chrome + FF transitionend event.propertyName === flex-grow */
  transition:
    font-size 0.7s cubic-bezier(0.61,-0.19, 0.7,-0.11),
    flex 0.7s cubic-bezier(0.61,-0.19, 0.7,-0.11),
    background 0.2s;
  font-size: 20px;
  background-size: cover;
  background-position: center;
  flex: 1;
  justify-content: center;
  display: flex;
  flex-direction: column;
}

.panel1{
  background: url(../images/fw1.png) center;
	opacity: 0.6;transition:0.3s;
	
}
.panel1:hover{
opacity: 1;
}
.panel2 {
  background: url(../images/fw2.png)  center;opacity: 0.6;transition:0.3s;
}
.panel2:hover{
opacity: 1;
}
.panel3 {
   background: url(../images/fw3.png)  center;opacity: 0.6;transition:0.3s;
}
.panel3:hover{
opacity: 1;
}


.panel > * {
  margin: 0;
  width: 100%;
  transition: transform 0.5s;
  flex: 1 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}
.panel .fwx{
	width: 125px;
	height: 8px;
}
.panel > *:first-child {
  transform: translateY(-100%);
}

.panel.open-active > *:first-child {
  transform: translateY(0);
}

.panel > *:nth-child(3){
  transform: translateY(300%);
}

.panel.open-active > *:nth-child(3) {
  transform: translateY(0px);
}
.panel > *:nth-child(4){
  transform: translateY(300%);
}

.panel.open-active > *:nth-child(4) {
  transform: translateY(-110px);
}
.panel > *:nth-child(5){
  transform: translateY(300%);
}

.panel.open-active > *:nth-child(5) {
  transform: translateY(-190px);
}
.panel> *:nth-child(2){
	
	transform: translateY(150%);
	
	
}
.panel.open-active > *:nth-child(2){
  transform: translateY(10px);
}
.panel p {
  font-size:24px;
	line-height: 35px;
  opacity: 1;color: #fff;
}
.panel p img {
margin: 0 auto;
	display: block;
}
.panel p:nth-child(2) {
  font-size:50px;
	color: #fff;
	opacity: 1;
}

.panel.open {
  flex: 2.5;
  font-size: 40px;
}

@media screen and (max-width: 1600px) {
	.panel> *:nth-child(2) {
    transform: translateY(200%);
}
	
	
}
@media screen and (max-width: 1150px) {
	.panel> *:nth-child(2) {
    transform: translateY(280%);
}.panel p:nth-child(2) {
	font-size: 40px;}
	
	
}
@media screen and (max-width: 850px) {
	.panel> *:nth-child(2) {
    transform: translateY(320%);
}.panel p:nth-child(2) {
	font-size: 32px;}
	
	
}
@media screen and (max-width: 700px) {
	.panels{
		display: none;
	}
	
	
}