/* weired error correction */
.share-item {position: relative;}
.fa-2x {
    vertical-align: middle;
}
#bottommenu .btn {vertical-align: bottom;}

/* full screen */
.card.fullscreen {    min-height: calc(100vh - 70px);}

/*style overwrite*/
.content-wrapper-inner { 
    max-width: 800px; position: relative;
}
.content-wrapper-inner > h3, .content-wrapper-inner > .article {
	margin-top: 50px;
}
.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: 25;
}
#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 default */
#bottommenu.drag div.dynamic.team { display: block; }
#bottommenu.default div.dynamic.default { display: block; }
#bottommenu.players div.dynamic.players { display: block; }
#bottommenu.home div.dynamic.home { 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%;
	}
}

/** snackbar **/
#snackbar {
    visibility: hidden;
    max-width: 300px;
    margin-left: -150px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 2px;
    padding: 16px;
    position: absolute;
    z-index: 1;
    left: 50%;
    bottom: -45px;
    font-size: 17px;
    border-radius: 10px;
}
#snackbar.fixed {
	position: fixed;
	bottom: 85px;
	width: 300px;
}
#snackbar.arrow_box.arrow_top.fixed {
	bottom: unset;
	top: 100px;
}

#snackbar.arrow_box.arrow_left.fixed {
	bottom: 50%;
	left: 25%;
	right: unset
}

#snackbar.arrow_box.arrow_right.fixed {
	bottom: 50%;
	right: 25%;
	left: unset;
}

#snackbar.show {
    visibility: visible;
    -webkit-animation: fadein 0.5s, fadeout 0.5s 4.5s;
    animation: fadein 0.5s, fadeout 0.5s 4.5s;
}

@-webkit-keyframes fadein {
    from {opacity: 0;} 
    to {opacity: 1;}
}

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

@-webkit-keyframes fadeout {
    from {opacity: 1;} 
    to {opacity: 0;}
}

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

/* http://www.cssarrowplease.com/ */
.arrow_box {
	position: relative;
	background: #159;
}
.arrow_box:after {
	border: solid transparent;
	content: " ";
	height: 0;
	width: 0;
	position: absolute;
	pointer-events: none;
	border-color: rgba(136, 183, 213, 0);
	border-width: 10px;
} 

.arrow_box.arrow_left:after {
	right: 100%;
	top: 50%;
	margin-top: -10px;
	border-right-color: #333;
}
.arrow_box.arrow_right:after { 
	left: 100%;
	top: 50%;
	margin-top: -10px;
	border-left-color: #333;
}
.arrow_top:after {
	bottom: 100%;
	left: 50%;
	margin-left: -10px;
	border-bottom-color: #333;
}
.arrow_bottom:after {
	top: 100%;
	left: 50%;
	margin-left: -10px;
	border-top-color: #333;
}