/* weired error correction*/
a [class^="mdi-"], a [class*=" mdi-"] {   line-height: unset; }

/*style overwrite*/
.content-wrapper-inner {
    max-width: 800px; position: relative;
}
.bg-primary {background: #CF0A2C;}
a.bg-primary:hover {background: #AD080A;}

.lorem h1, .lorem h3,.lorem h4,.lorem h2 { font-size: 1.1em !important;}
.lorem p {
    max-height: 50px;
    overflow: hidden;
    display: block;
    margin-left: 15px;
    position: relative;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%,rgb(255, 255, 255) 100%);
}
.lorem p:before {content:' ';}
.lorem p:after {content:' '; position: absolute; height: 18px; left: 0; bottom:0; width: 100%; background: linear-gradient(to bottom, rgba(255,255,255,0) 0%,rgb(255, 255, 255) 100%);}
#emo-modal {transform: scale(0, 0);}
#bottommenu {
	position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 35px;
    background: rgba(0,0,0,0.9);
    border-top: 1px solid #ddd;
    width: 100%;
    box-sizing: border-box;
    z-index: 15;
}
#bottommenu-inner {position: absolute; bottom: 6px; left:0; right:0; height: 1px;}
#bottommenu-inner > button { margin: 0px; position: absolute; bottom: 0;}
#bottommenu button.first { left : 6px;}
#bottommenu button.last {right: 6px;}
#bottommenu div.dynamic {position: absolute; left: 60px; right: 60px; bottom:0; height: auto; text-align: center; border: 0px solid red;}
#bottommenu div.dynamic > button { margin: 0px 2px; position: relative; }
/*dynamic menu $task*/
#bottommenu div.dynamic { display: none;} /* disable by defalt */
.style_drag #bottommenu div.dynamic.team { display: block; }
.style_default #bottommenu div.dynamic.default { display: block; }
.style_players #bottommenu div.dynamic.players { display: block; }

/* special team classes */
#content.activateLineup #emoTeam .draggable .playerfigure {animation: shiver 0.82s cubic-bezier(0.36, 0.07, 0.19, 0.97)  infinite alternate;}
#content.activateLineup ~ #bottommenu .activateLineup {background: #666;}
#content.squadSelect #emoTeam .draggable .playerfigure {animation: shiver 0.82s cubic-bezier(0.36, 0.07, 0.19, 0.97)  infinite alternate;}
#content.squadSelect ~ #bottommenu .squadSelect {background: #666;}
#content.squadInfo #emoTeam .draggable .playerfigure {animation: shiver 0.82s cubic-bezier(0.36, 0.07, 0.19, 0.97)  infinite alternate;}
#content.squadInfo ~ #bottommenu .squadInfo {background: #666;}
/* handle over content*/
.draggable .handle {position: absolute; width: 100%; height: 100%; z-index: -1;}
#content.squadSelect .handle, #content.activateLineup .handle, #content.squadInfo .handle  {z-index: 11;}

/* some functions */
@-webkit-keyframes shiver {
  10%, 90% {
            transform: translate3d(-0.3px, 0, 0) rotate(2deg);
  }
  20%, 80% {
            transform: translate3d(0.3px, 0, 0) rotate(-2deg);;
  }
  30%, 50%, 70% {
            transform: translate3d(-0.3px, 0, 0) rotate(0deg);
  }
  40%, 60% {
            transform: translate3d(0.3px, 0, 0) rotate(0deg);
  }
}

/* aspect ration */
[style*="--aspect-ratio"] > :first-child {
  width: 100%;
}
[style*="--aspect-ratio"] > img {  
  height: auto;
} 
@supports (--custom:property) {
  [style*="--aspect-ratio"] {
    position: relative;
  }
  [style*="--aspect-ratio"]::before {
    content: "";
    display: block;
    padding-bottom: calc(100% / (var(--aspect-ratio)));
  }  
  [style*="--aspect-ratio"] > :first-child {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
  }  
}

@media screen and (max-device-width: 580px) {
	#emoTeam svg[id^=emoMatrix].verticalzoom.open {
		transform: translateX(-16.25%) scale(1.8) !important;
	}
	#emoTeam .draggable[rel='left'] svg[id^=emoMatrix].verticalzoom.open {
		margin-left: 75%;
	}
	#emoTeam .draggable[rel='right'] svg[id^=emoMatrix].verticalzoom.open {
		margin-left: -75%;
	}
	#emoTeam .draggable[top='top0'] svg[id^=emoMatrix].verticalzoom.open {
		margin-top: 175%;
	}
	#emoTeam .draggable[top='top1'] svg[id^=emoMatrix].verticalzoom.open {
		margin-top: 125%;
	}
	#emoTeam .draggable[top='top2'] svg[id^=emoMatrix].verticalzoom.open {
		margin-top: 75%;
	}
}