.tab {
  overflow: hidden;
  background-color: #f1f1f1;
  border-radius:6px;
}

/* Style the buttons inside the tab */
.tab button {
  background-color: inherit;
  float: left;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 14px 16px;
  transition: 0.3s;
  width: 33%;
  text-align:center;
  font-size:20px;
  position:relative;
}
.tab button:nth-child(2){
  width:34%;
}

/* Change background color of buttons on hover */
.tab button:hover {
  background-color: #ddd;
}

/* Create an active/current tablink class */
.tab button.active {
  background-color: #a50070;
  color:#fff;
}

.tab button.active:not(:last-child):after {
	left: 100%;
  z-index:9999;
	top: 40px;
	border: solid transparent;
	content: " ";
	height: 15px;
	width: 0;
	position: absolute;
	pointer-events: none;
	border-left-color: #a50070;
	border-width: 15px;
	margin-top: -30px;
}

/* Style the tab content */
.tabcontent {
  display: none;
  padding: 30px 12px;
  -webkit-animation: fadeEffect 1s;
  animation: fadeEffect 1s;
}
.tabcontent img{
  max-width:170px;
  margin-right: 60px;
  margin-left: 20px;
}
.tabcontent .tabcontent-wrapper{
  display:flex;
}
.tabcontent .tabcontent-wrapper .tab-image{
  display:inline-block;
  float:left;
}
.tabcontent .tabcontent-wrapper .tab-text{
  align-self:center;
}

/* Fade in tabs */
@-webkit-keyframes fadeEffect {
  from {opacity: 0;}
  to {opacity: 1;}
}

@keyframes fadeEffect {
  from {opacity: 0;}
  to {opacity: 1;}
}

@media (max-width:650px){
  .tabcontent img{
    max-width:170px;
    margin-right: 15px;
    margin-left: 0px;
  }
)