/* Page */
h2 {
	font-size: 2rem;
}

body.toplevel_page_stoked_orders {
	background-color: #F3F3EE;
}

body.toplevel_page_stoked_orders #adminmenuback,
body.toplevel_page_stoked_orders #adminmenuwrap,
body.toplevel_page_stoked_orders #wpfooter {
	display: none;
	visibility: hidden;
}

body.toplevel_page_stoked_orders #wpcontent, 
body.toplevel_page_stoked_orders #wpfooter {
	margin-left: 0;
}

	/* Buttons */
table .button {
	padding: 0.5rem 1rem !important;
	font-size: 1.25rem !important;
}

.button.stoked-change-status,
.button.green,
.button.orange,
.button.red,
.button.stoked-change-status {
	padding: 0.5rem 1rem;
	font-size: 1.25rem;
	font-weight: bold;
	border: 0 none;
	transition: all 500ms;
}

.button.stoked-change-status:hover,
.button.green:hover,
.button.orange:hover,
.button.red:hover {
	background-color: #5b841b;
	color: white;
}

.button.green,
.button[data-status="processing"] {
	background: #97e597;
	color: #5b841b;
}
.button.orange,
.button[data-status="completed"] {
	border: 1px solid #fcc694;
	color: #fe644a;
}
.button.red {
	background: red;
	color: white;
}

.button.stop {
	font-size: 1.5rem;
	display: flex;
	align-items: center;
}

.button.hide {
	display: none;
}

/* Collapse */
a[data-toggle="collapse"].hide {
	display: none;
}

.collapse {
	width: 0;
	height: 0;
	overflow: hidden;
	opacity: 0;
	transition: width 500ms, height 500ms, opacity 500ms;
}

.collapse.show {
	width: 100%;
	height: auto;
	opacity: 1;
}

/* Header */
.stoked-orders-header {
	display: flex;
	flex-wrap: nowrap;
	justify-content: space-between;
	align-items: center;
}

/* Emergency */
#emergency-form a {
	margin-right: 2rem;
}

/* Table */
table.stoked-orders td {
	padding: 1rem;
	vertical-align: middle;
}

table.stoked-orders th {
	font-size: 1.15rem;
	font-weight: bold;
}

.stoked-status,
.stoked-order-info,
.stoked-pickup-time {
	font-weight: bold;
	font-size: 1.25rem !important;
}

.widefat th:not(.stoked-items),
.widefat td:not(.stoked-items) {
	width: 17% !important;
}

.widefat .stoked-items {
	width: 32% !important;
}

.stoked-items h3 {
	font-size: 1.5rem;
	line-height: 1.75rem;
}

.stoked-items li {
	margin-bottom: 0.5rem;
}

td.stoked-items p,
td.stoked-items li p {
	font-size: 1.15rem !important;
	margin-bottom: 0;
}

hr {
	border-color: black;
	border-top: 0 none;
}

tr.hide {
	display: none;
	visibility: hidden;
}

tr[data-status="processing"] td:first-child {
	border-left: 1px solid orange;
}
tr[data-status="processing"] td:last-child {
	border-right: 1px solid orange;
}

tr[data-status="processing"] td {
	/*background-color: #eddfd3;*/
	border-bottom: 1px solid orange;
}

tr[data-status="processing"] .order-status {
	color: #fe644a;
}

tr[data-status="completed"] td:first-child{
	border-left: 1px solid #5b841b;
}
tr[data-status="completed"] td:last-child{
	border-right: 1px solid #5b841b;
}

tr[data-status="completed"] td {
	background-color: #edffed;
	border-bottom: 1px solid #5b841b;
}

tr[data-status="completed"] .order-status {
	color: #97e597;
}

tr td.stoked-button a {
	opacity: 1;
	transition: opacity 500ms;
}

tr.animate td:not(.stoked-button) {
	opacity: 0.7;
}

tr.animate td.stoked-button a {
	opacity: 0;
}

tr td.stoked-button {
	position: relative;
}

tr.animate td.stoked-button::before {
	content: "";
	position: absolute;
	display: block;
	top: calc(50% - 37px);
	left: calc(50% - 100px);
	background: transparent url(../images/truck.svg) no-repeat 0 0 scroll;
	background-size: contain;
	height: 75px;
	width: 200px;

	animation-name: truck-roll;
	animation-delay: 0s;
	animation-duration: 2s;
	animation-iteration-count: infinite;
}

@keyframes truck-roll {

	0% {
		transform: translate(0, 0);
	}

	25% {
		transform: translate(-1px, 2px);
	}

	50% {
		transform: translate(2px, 0);
	}

	750% {
		transform: translate(-1px, 1px);
	}

	100% {
		transform: translate(1px, 0);
	}
}

div[style="border-bottom: 1px solid black; margin-bottom: 2rem; padding-bottom: 1rem;"] {
	border-bottom: 0 none !important;
}

#giffy-time {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100vw;
	height: 100vh;
	background-color: rgba(16,59,62,0.7);
	opacity: 0;
	z-index: -1;
	transition: opacity 500ms;
}

#giffy-time svg,
#giffy-time i {
	position: absolute;
	top: 10%;
	right: 10%;
	z-index: 9999;
	width: 100px !important;
	height: 100px !important;
	color: red;
}

.giffy-time #giffy-time {
	opacity: 1;
	z-index: 9999;
}

.giffy-time #giffy-time .pizza {
	position: absolute;
  top: 20%;
  left: 10%;
  width: 180px;
  z-index: 9999;
	transform: rotate(-13deg);

	animation-name: rotate;
	animation-iteration-count: infinite;
	animation-delay: 0;
	animation-duration: 2s;
	animation-timing-function: linear;
}

@keyframes rotate {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}

.giffy-time #giffy-time .pizza:nth-child(2) {
	top: 70%;
	left: 8%;
	width: 130px;
	transform: rotate(30deg);
}

.giffy-time #giffy-time .pizza:nth-child(3) {
	top: 35%;
	left: unset;
	right: 9%;
	width: 190px;
	transform: rotate(2deg);
}

.giffy-time #giffy-time .pizza:nth-child(4) {
	top: 76%;
	left: unset;
	right: 9%;
	width: 60px;
	transform: rotate(2deg);
}

#giffy-time .gif {
	position: absolute;
	top: 10vh;
	bottom: 0;
	left: 0;
	right: 0;
	width: 40%;
	margin: 0 auto;
	transform: translateY(-50vh);
	transition: transform 500ms;
}

.giffy-time #giffy-time .gif.active {
	transform: translateY(0);
	border: 40px solid #D58135;
}


/* Menu Item */
li.toplevel_page_stoked_orders {
	background-color: white;
}

li.toplevel_page_stoked_orders a .wp-menu-name {
	color: #D58135;
	opacity: 1;
	font-size: 1.15rem;
}

#adminmenu li.toplevel_page_stoked_orders a .wp-menu-image img {
	width: 25px;
	height: auto;
	opacity: 1;
}