/* end css for nav bar */

.hidden {
	display: none !important;
}

@keyframes fadeInAnim {
	0% {
		opacity: 0;
	}
	
	100% {
		opacity: 1;
	}
}

@keyframes fadeOutAnim {
	0% {
		opacity: 1;
	}
	
	100% {
		opacity: 0;
	}
}

/* End base CSS */

/* Begin css for popups */
#supportUsPopup {
	z-index: 9000;
	pointer-events: auto;
}

#popupClose {
	position: absolute;
	top: 12px;
	right: 12px;
	cursor: pointer;
}

#supportUsPopupContainer {
	z-index: 10;
	pointer-events: none;
	z-index: 9000;
}

/* Code for bottom right circle */

/* Bottom right circle, consider changing name */
#supportUsBubble {
	font-size: 11.5px;
	position: fixed;
	cursor: pointer;
	bottom: 72px;
	right: 16px;
	background-color: yellow;
	color: black;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	flex-direction: column;
	box-shadow: 0 1px 25px rgba(0, 0, 0, .3);
	transition: background-color .1s;
	z-index: 6000;
}

@media (min-width: 600px) {
	#supportUsBubble {
		bottom: 24px;
	}
}

.supportUsBubbleOpen {
	background-color: #d0d0d0 !important;
}

#supportUsText {
	position: absolute;
}

/* For handles the cross when the bubble is selected */
#supportUsClose {
	position: absolute;
	display: none;
}

.supportUsBubbleOpen #supportUsText {
	display: none;
}

.supportUsBubbleOpen #supportUsClose {
	display: block;
}

#supportUsPopup.bottomRightPopup {
	width: 280px;
	position: fixed;
	background-color: yellow;
	color: black;
	border-radius: 20px;
	bottom: 152px;
	right: 16px;
	display: flex;
	flex-direction: column;
	align-items: center;
	box-sizing: border-box;
	padding: 24px;
	box-shadow: 0 1px 5px #333;
}

.mixcloud-footer-widget-container {
	bottom: 56px !important;
}

@media (min-width: 600px) {
	#supportUsPopup.bottomRightPopup {
		bottom: 133px;
	}
	
	.mixcloud-footer-widget-container {
		bottom: 0 !important;
	}
}

.fadeIn {
	animation: fadeInAnim .3s;
}

.fadeOut {
	animation: fadeOutAnim .3s;
	opacity: 0;
}

#supportUsPopup.bottomRightPopup #popupImage {
	display: none;
}

#supportUsPopup.bottomRightPopup #popupTitle {
	font-size: 26px;
	line-height: 1;
}

#supportUsPopup.bottomRightPopup #popupBody {
	font-size: 15px;
	margin-top: 24px;
}

#supportUsPopup.bottomRightPopup #popupButton {
	margin-top: 24px;
	font-size: 14px;
	color: white;
	background-color: black;
	width: 118px;
	height: 35px;
	line-height: 35px;
	text-align: center;
	border-radius: 35px;
}

#supportUsPopup.bottomRightPopup #popupClose {
	display: none;
}

/* End CSS for bottom right circle */

/* Start CSS for footer CTA */
#supportUsPopupContainer.footerCTA {
	width: 100vw;
	position: fixed;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	left: 0;
}

#supportUsPopup.footerCTA {
	position: fixed;
	bottom: 56px;
	background-color: yellow;
	color: black;
	box-sizing: border-box;
	border-radius: 24px 24px 0 0;
	padding-top: 24px;
	padding-bottom: 16px;
	padding-left: 40px;
	padding-right: 40px;
	font-size: 14.5px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	box-shadow: 0 0 4px #555;
}

@media (min-width: 600px) {
	#supportUsPopup.footerCTA {
		bottom: 0;
	}
}

#supportUsPopup.footerCTA #popupBody {
	display: none;
}

#supportUsPopup.footerCTA #popupButton {
	font-size: 11px;
	color: white;
	background-color: black;
	width: 92px;
	height: 27px;
	line-height: 27px;
	text-align: center;
	border-radius: 27px;
	margin-top: 8px;
	margin-left: 0;
}

@media (min-width: 600px) {
	#supportUsPopup.footerCTA {
		flex-direction: row;
	}
	
	#supportUsPopup.footerCTA #popupButton {
		margin-left: 8px;
		margin-top: 0;
	}
}

/* END CSS for footer CTA */

/* start css for mid scrol lwindow */
#supportUsPopupContainer.midScrollWindow {
	width: 100vw;
	position: fixed;
	height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	top: 0;
	left: 0;
	z-index: 9;
}

#supportUsPopup.midScrollWindow {
	background-color: yellow;
	color: black;
	box-sizing: border-box;
	border-radius: 24px;
	padding-top: 16px;
	padding-bottom: 16px;
	padding-left: 40px;
	padding-right: 40px;
	width: 320px;
	font-size: 14.5px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	box-shadow: 0 0 4px #555;
}

#supportUsPopup.midScrollWindow #popupButton {
	font-size: 14px;
	color: white;
	background-color: black;
	width: 120px;
	height: 35px;
	line-height: 35px;
	text-align: center;
	border-radius: 35px;
	margin-top: 12px;
	margin-bottom: 12px;
}

#supportUsPopup.midScrollWindow popupImage {
	display: none;
}

#supportUsPopup.midScrollWindow #popupTitle {
	font-size: 26px;
	margin-top: 12px;
	margin-bottom: 12px;
	line-height: 1;
}

#supportUsPopup.midScrollWindow #popupBody {
	font-size: 15px;
	margin-top: 12px;
	margin-bottom: 12px;
}

@media (min-width: 600px) {
	#supportUsPopupContainer.midScrollWindow {
		width: 0;
		height: 0;
	}
	
	#supportUsPopup.midScrollWindow {
		position: fixed;
		bottom: 32px;
		left: 32px;
	}
	
	#supportUsPopup.midScrollWindow #popupImage {
		display: block;
		width: 100%;
		background-color: grey;
		height: 96px;
		margin-top: 12px;
		margin-bottom: 12px;
	}
}

/* end css for mid scroll window */

/* end css for popups */

/* begin css for nav bar */
#navBarBgTop {
	top: 0;
	position: fixed;
	background-color: white;
	opacity: 1;
	width: 100vw;
	height: 56px;
	box-shadow: 0 2px 10px #999;
	color: black;
	z-index: 7500;
}

body:not(.home) #navBarBgTop {
	opacity: 1 !important;
}

#navBarBgTopSpacer {
	bottom: 0;
	position: fixed;
	background-color: black;
	width: 100vw;
	height: 56px;
	color: white;
	z-index: 8;
}

#navContent {
	color: white;
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 56px;
	z-index: 9999;
}

.navLogo {
	width: 140px;
	position: absolute;
	margin: auto;
	height: 56px;
}

#navGroupA svg {
	fill: #000;
	stroke: #000;
}

#navGroupB svg {
	fill: #fff;
	stroke: #fff;
}

#navGroupC svg, #navGroupC svg line {
	fill: #000;
	stroke: #000;
}

#navGroupD svg {
	fill: #000;
	stroke: #000;
}

/* Holds crack logo */
#navGroupA {
	position: absolute;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
}

/* Holds top left icons. Desktop: just search. Mobile search and back button */
#navGroupC {
	position: absolute;
	left: 8px;
	height: 100%;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	color: #000;
}

/* Holds main set of icons. Top right on desktop. Full width bottom on mobile */
#navGroupB {
	bottom: 0;
	left: 0;
	width: 100vw;
	position: fixed;
	height: 56px;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-evenly;
	color: #fff;
	background: black;
}

#navGroupB a {
	color: #fff;
}

/* Contains the shop icon in top right, should be hidden on desktop since it's in normal nav */
#navGroupD {
	right: 8px;
	position: absolute;
	height: 100%;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	color: #000;
}

#shopIconDesktop {
	display: none;
}

#shopIconMobile {
	display: flex;
}

.navIcon {
	position: relative;
	cursor: pointer;
	height: 56px;
	width: 32px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	margin-right: 8px;
	margin-left: 8px;
}

#navGroupB .navIcon {
	flex-grow: 1;
	box-sizing: border-box;
	/* border-left: 1px solid white; */
	
	/* border-right: 1px solid white; */
	border-top: 2px solid white;
	margin: 0;
}

#navGroupB .navIcon:not(:first-child) {
	border-left: 1px solid white;
}

#navGroupB .navIcon:not(:last-child) {
	border-right: 1px solid white;
}

#navBarBgTopSpacer {
	height: 56px;
	width: 100vw;
}

.navbar-scrollable {
	height: calc(100vh - 58px);
}

@media (min-width: 600px) {
	/* Contains the shop icon in top right, should be hidden on desktop since it's in normal nav */
	#navGroupD {
		display: none;
	}
	
	#navBackIcon {
		display: none;
	}
	
	#navBarBgTopSpacer {
		display: none;
	}
	
	#navGroupB {
		top: 0;
		right: 8px;
		width: auto;
		left: auto;
		background: transparent;
	}
	
	#xrIcon {
		display: none;
	}
	
	#shopIconDesktop {
		display: flex;
	}
	
	#shopIconMobile {
		display: none;
	}
	
	#navGroupB .navIcon {
		flex-grow: 0;
		border: none !important;
		margin-right: 4px;
		margin-left: 4px;
	}
	
	#navBarBgTop {
		background-color: black;
		box-shadow: none;
		opacity: 0;
		transition: opacity .25s ease;
	}
	
	#navBarBgTopSpacer {
		display: none;
	}
	
	.navLogo {
		fill: #fff;
		stroke: #fff;
	}
	
	#navGroupA svg {
		fill: #fff;
		stroke: #fff;
	}
	
	#navGroupC svg, #navGroupC svg line {
		fill: #fff;
		stroke: #fff;
	}
	
	#navGroupC {
		color: #fff;
	}
	
	.navIconLabel {
		display: none;
	}
	
	.navIcon {
		color: white !important;
	}
	
	.navbar-nav-main {
		z-index: 999999 !important;
	}
	
	.navbar-scrollable {
		height: calc(100vh - 58px);
	}
}

@media (min-width: 700px) {
	#navGroupB .navIcon {
		flex-grow: 0;
		border: none;
		margin-right: 8px;
		margin-left: 8px;
	}
	
	.navIconLabel {
		display: block;
	}
}

.navIconImg {
	height: 21px;
}

.navIconLabel {
	padding-top: 3.2px;
	font-size: 9.6px;
}

#magazineContainer {
	position: relative;
	height: 20px;
}

#newIssueNotification {
	position: absolute;
	top: -4.8px;
	right: -9.6px;
	content: "1";
	background-color: #c00;
	font-size: 6.4px;
	border-radius: 50%;
	height: 11.2px;
	width: 11.2px;
	line-height: 11.2px;
	text-align: center;
	color: #fff;
}

#notifBubble {
	position: fixed;
	top: 56px;
	bottom: 56px;
	width: 100vw;
	background-color: #fcfcfc;
	z-index: 6000;
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
}

#bubbleClose {
	position: absolute;
	right: 24px;
	top: 24px;
	font-family: Arial, sans-serif;
	font-size: 11.2px;
	color: #000;
	font-weight: 100;
	cursor: pointer;
}

#bubbleTitle {
	padding-left: 48px;
	padding-right: 48px;
	font-size: 32px;
	line-height: 1;
}

#issueCover {
	padding-top: 48px;
	max-height: 50vh;
	max-width: 50vw;
}

#bubbleBottom {
	width: 90%;
	display: flex;
	flex-direction: row;
	padding-top: 32px;
	padding-bottom: 8px;
}

#bubbleBottomHalf {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 50%;
	text-align: center;
	padding: 1.6px;
}

#bubbleLinkText {
	font-size: 16px;
}

#bubbleLink {
	padding-top: 4.8px;
	padding-bottom: 4.8px;
	padding-left: 9.6px;
	padding-right: 9.6px;
	margin-top: 16px;
	font-size: 16px;
	font-weight: lighter;
	border-radius: 16px;
	border-style: none;
	background-color: #000;
	color: #fff;
	word-wrap: normal;
	line-height: 1;
}

@media (min-width: 600px) {
	#notifBubble {
		position: fixed;
		top: 60.8px;
		right: 16px;
		bottom: auto;
		height: auto;
		background-color: yellow;
		width: 260px;
		border-radius: 20px;
		padding-top: 10px;
		padding-bottom: 10px;
		display: flex;
		flex-direction: column;
		align-items: center;
		color: black;
		box-shadow: 0 0 4px #999;
		z-index: 9500;
	}
	
	#notifBubble::before {
		content: "";
		position: absolute;
		/* Make sure top is equal to avoid a tiny clipping line */
		top: -9px;
		left: 160px;
		width: 0px;
		height: 0px;
		border-left: 10px solid transparent;
		border-right: 10px solid transparent;
		border-bottom: 10px solid yellow;
	}
	
	#bubbleClose {
		top: 10px;
		right: 10px;
	}
	
	#bubbleTitle {
		padding-left: 20px;
		padding-right: 20px;
		padding-top: 16px;
		font-size: 16px;
		line-height: 1;
	}
	
	#issueCover {
		padding-top: 10px;
		width: 100px;
		height: auto;
	}
	
	#bubbleBottom {
		width: 90%;
		display: flex;
		flex-direction: row;
		padding-top: 10px;
		padding-bottom: 8px;
	}
	
	#bubbleBottomHalf {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		width: 50%;
		text-align: center;
		padding: 1.6px;
	}
	
	#bubbleLinkText {
		font-size: 9.6px;
	}
	
	#bubbleLink {
		padding-top: 4.8px;
		padding-bottom: 4.8px;
		padding-left: 9.6px;
		padding-right: 9.6px;
		margin-top: 8px;
		font-size: 9.6px;
		font-weight: lighter;
		border-radius: 10px;
		border-style: none;
		background-color: #000;
		color: #fff;
		word-wrap: normal;
	}
}

@media (min-width: 700px) {
	#notifBubble::before {
		left: 138px;
	}
}

.navbar-default {
	z-index: 18000 !important;
	position: fixed;
}

.navba .bubbleShow {
	animation: fadeIn ease-out .75s;
}

.bubbleHide {
	animation: fadeOut ease-out .75s;
	opacity: 0;
}

#navBackIcon {
	display: none;
}

body.single.mixprofile #supportUsBubble {
	display: none;
}
