html {
	/* prevent pinch-zoom for Chrome 36+, Safari 13+ */
	touch-action: pan-x pan-y;
	min-height: 100%; /* prevent pinch-zoom at page bottom */
	
	//overscroll-behavior: 
	margin: 0;
	overscroll-behavior: none;
}



body {
	overflow: hidden;
}

.site {
	height: 100vh;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: none;
}

.xsmall {
	font-size: .5em;
}

/* prevent pull-to-refresh for Safari 16+ */
@media screen and (pointer: coarse) {
  @supports (-webkit-backdrop-filter: blur(1px)) and (overscroll-behavior-y: none)  {
	html {
	  min-height: 100.3%;
	  overscroll-behavior-y: none;
	}
  }
}
/* prevent pull-to-refresh for Safari 9~15 */
@media screen and (pointer: coarse) {
  @supports (-webkit-backdrop-filter: blur(1px)) and (not (overscroll-behavior-y: none))  {
	html {
	  height: 100%;
	  overflow: hidden;
	}
	body {
	  margin: 0px;
	  max-height: 100%; /* or `height: calc(100% - 16px);` if body has default margin */
	  overflow: auto;
	  -webkit-overflow-scrolling: touch;
	}
	/* in this case to disable pinch-zoom, set `touch-action: pan-x pan-y;` on `body` instead of `html` */
  }
}
/* prevent pull-to-refresh for Chrome 63+ */
body{
  overscroll-behavior-y: none;
}

/* .h-100 {
	height: 90% !important;
} */


@font-face {
	font-family: clockFont;
	src: url(/a/v4/wp-content/themes/deriveapp-app/fonts/CursedTimerUlil-Aznm.ttf);
}

/* .container-fluid {
	max-width: 996px;
} */

.rounded-circle {
	/* overflow: hidden; */
}

.img-fluid {
	width: 100%;
}

.android .hide-on-android {
	display: none;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
	font-family: 'Ubuntu Condensed',sans-serif;
}

.nav-adjust {
	width: 100vw;
}
@media (max-width: 767px) {
	#navbarNavOffcanvas li {
		font-family: 'Ubuntu Condensed',sans-serif;
		font-size: calc(1.325rem + .9vw);
	}
}

@media (min-width: 768px) {
	.nav-adjust {
		width: auto;
	}
}

.navbar-brand {
	display: none;
}


.entry-title {
	margin-top: 3rem;
}

.disabled {
	opacity: .5;
}

.opaque-black-background {
	transition: all ease-in-out .2s;
	background-color: rgba(0,0,0,.65);
}

.card:hover .opaque-black-background {
	background-color: rgba(0,0,0,.85);
}

.archive-wrap {
	max-width: 1200px;
	margin: auto;
}

.dropdown.no-after .dropdown-toggle:after {
	display: none;
}

.shadow-0 {
	box-shadow: 0 0 0 !important;	
}

/* fix for date in form */
#start_date {
	padding-top: 4px;
	padding-bottom: 0px;
}

/* spacing icons */
.spaced-icon-24 {
	min-width: 24px;
	text-align: center
}

.spaced-icon-32 {
	min-width: 32px;
	text-align: center
}

.spaced-icon-48 {
	min-width: 48px;
	text-align: center
}

/* placeholder stuff */
@keyframes fadeInx { 
  from { opacity: 0.5; } 
}

.animate-flicker {
	animation: fadeInx 1s infinite alternate;
}

.placeholder-100 {
	width: 100%;
	padding-top: 100%;
}

.placeholder-25 {
	width: 100%;
	padding-top: 25%;
}

/* images */
.img-18 {
	width: 18px;
	height: 18px;
}

.img-24 {
	width: 24px;
	height: 24px;
}

.img-36 {
	width: 36px;
	height: 36px;
}

.img-48 {
	width: 48px;
	height: 48px;
}

/* adding spacing before headings in tabs */
#appTabContent .tab-pane h2.sticky-top {
	padding-top: 72px;
}

/* loading */
#loading-indicator-alt {
	opacity: 0;
}
body.loading #loading-indicator-alt {
	opacity: 1;	
}

/* Cards */
.card {
	transition: all ease-in-out .2s;
}

.card:hover {
	/* transform: translateY(-3px); */
}

/* .group-summary-wrap {
	width: 300px;
}

@media (min-width: 480px) {
	.group-summary-wrap {
		width: 364px;
	}
} */

.group-card .card-img-top {
	background-position: center center;
	background-size: cover;
	width: 100%;
	height: 240px;
}

.group-card .location-line {
	margin: 0 !important;
}

.group-button {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
}

.task-card-wrap {
	max-width: 420px;
}

.taskcard-img-wrap {
	background-position: center center;
	background-size: cover;
	width: 64px;
	height: 64px;
}

.taskcard-img-wrap-alt {
	background-position: center center;
	background-size: cover;
	aspect-ratio: 1/1;
}

.taskcard-badges {
	top: .25rem;
	right: .4rem;
}

.step-card {
	position: relative;
	width: 100%;
	padding-top: 100%;
}

.step-card .contents {
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	z-index: 0;
}

.step-card .featured-image {
	background-position: center center;
	background-size: cover;
}

.step-card .step-author {
	z-index: 1;
	top: 0;
	left: 0;
	right: 0;
}

.step-card h6 {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	width: calc(100% - 2rem);
}

/* ellipses */
.one-line {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.three-lines {
	min-height: 72px;
}
.three-lines p {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  height: var(--bs-body-line-height);
}

/* singles */
.single-featured-image {
	width: 100%;
	padding-top: 67%;
	background-size: cover;
	background-position: center center;
}

/* toggles (hearts, membership) */
.toggle-object:not(.toggled-on) .toggle-on {
	display: none;
}
.toggle-object.toggled-on .toggle-off {
	display: none;
}

/* decks */
.deck-card,
.score-card {
	background-position: center center;
	background-size: cover;
	min-height: 420px;
}

.deck-card .location-line:last-of-type,
.score-card .location-line:last-of-type {
	border-bottom-left-radius: var(--bs-border-radius) !important;
	border-bottom-right-radius: var(--bs-border-radius) !important;
}

/* following */
.follow-status .following-out,
.follow-status .following-in,
.follow-status .following-self,
.follow-status .following-reciprocal {
	display: none;
}

.follow-status.follow-self .following-self {
	display: inline-block;
}

.follow-status.follow-out:not(.follow-in) .following-out {
	display: inline-block;
}

.follow-status.follow-in:not(.follow-out) .following-in {
	display: inline-block;
}

.follow-status.follow-in.follow-out .following-reciprocal {
	display: inline-block;
}

/* copy to clipboard */
.copy-to-clipboard:not(.active) .has-copied {
	display: none;
}
.copy-to-clipboard.active .can-copy {
	display: none;
}

/* locations */
.location-line {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* google places lookup */
.pac-container {
	z-index: 1100;
}

/* backgrounds */
.bg-white-transparent {
	background-color: rgba(255,255,255,0.825) !important;
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
}

/* acf form */
.acf-true-false {
	display: inline-block;
	margin-right: .5rem;
}

.acf-field p.description {
	display: inline-block !important;
}

/* voting */

.vote:not(.voted) .voted {
	display: none;
}

.vote.voted .not-voted {
	display: none;
}

/* task */
@media (orientation: landscape) {
	.task {
		flex-direction: row;
	}
	
	.task .card-thumbnail {
		width: calc(50vw - 24px - 2rem);
		max-height: 95%;
	}
	
	@media (min-width: 768px) {
		.task .card-thumbnail {
			width: calc(50vw - 24px - 6rem);
		}
	}
}

@media (orientation: portrait) {
	.task {
		flex-direction: column;
	}

	.task .card-thumbnail {
		height: calc(50vh - 2.5rem);
	}
	
	@media (min-width: 768px) {
		.task .card-thumbnail {
			height: calc(50vh - 2.5rem - 4rem);
		}
	}
	
}

.task .card-thumbnail {
	background-size: cover;
	background-position: center center;
	aspect-ratio: 1 / 1;
}

.task {
	padding-top: 4rem;
	padding-bottom: 4rem;
	left: 0;
	top: 0;
}

.task .ratings {
	left: 0;
	top: 5rem;
}

.task .info {
	right: 0;
	top: 5rem;
}

.task .actions {
	left: 0;
	bottom: 0;
}

.task .timer-wrap {
	right: 0;
	bottom: 0;
}

.timer {
	font-family: clockFont;
}

#offcanvasRating .results-wrap {
	overflow: auto;
}

/* offcanvas */
.offcanvas {
	z-index: 1065;
}
.offcanvas.offcanvas-top {
	height: revert;
	max-height: 75vh;
}

.offcanvas.offcanvas-bottom {
	height: revert;
	max-height: 90vh;
}

#offcanvasSingle .offcanvas-body {
	-webkit-overflow-scrolling: touch; /* for smooth iOS scrolling */
	overscroll-behavior: contain;
}

.offcanvas-bottom {
	border-top-left-radius: var(--bs-border-radius-2xl) !important;
	border-top-right-radius: var(--bs-border-radius-2xl) !important;
}

.offcanvas-bottom .btn-back {
	top: -48px;
	left: 0;
	background-color: #fff;
	border-radius: 100%;
	opacity: 1;
	width: 40px;
	height: 40px;
	border: 0;
	text-decoration: none;
}

.offcanvas-bottom .btn-close {
	top: -40px;
	right: 0;
	background-color: white;
	border-radius: 100%;
	opacity: 1;
	padding: .75rem;
}

/* audio */
audio {
	width: 100%;
}

/* big play button */
#big-play-button {
	right: 0;
	bottom: 0;
	z-index: 1065;
}

/* circular buttons */
.btn-circle {
	width: 38px;
	height: 38px;
	padding-left: 0;
	padding-right: 0;
	text-align: center;
	border-radius: 100%;
}
.btn-circle.btn-lg {
	width: 50px;
	height: 50px;
}
.btn-circle.btn-xl {
	width: 70px;
	height: 70px;
}

/* comments */
#offcanvasComments .offcanvas-body {
	margin-top: -62px;
}

.comment .content p {
	margin-bottom: 0;
}

#comments {
	max-height: 50vh; 
	overflow-y: auto;
}

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

a.collapsed[data-bs-toggle="collapse"] .opened {
	display: inline-block;
}

a.collapsed[data-bs-toggle="collapse"] .closed {
	display: none;
}

.card-menu .user-meta .list-group-item:last-of-type,
.card-menu {
	border-bottom-left-radius: var(--bs-border-radius) !important;
	border-bottom-right-radius: var(--bs-border-radius) !important;
}


/* photowalk */
.photowalk-navigation {
	white-space: nowrap;
	overflow: auto;
}

/* roles */
.role-admin .object-template:not([data-role='admin']) {
	display: none;
}

.role-mod .object-template:not([data-role='mod']) {
	display: none;
}

.role-member .object-template:not([data-role='member']) {
	display: none;
}

/* Login form */
.wplf-lostpassword {
	display: none;     
}

#loginform label {
	display: none;
}

#logo-wrap img {
	max-width: 180px;
	height: auto;
}

/* horizontal line in middle of div */
.hl-wrap {
  text-align: center;
  margin: 20px;
  position: relative;
}
.hl-links {
  padding: 0 10px;
  display: flex;
  justify-content: space-between;
  position: relative;
}
.hl-wrap:before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  border-top: 1px solid rgba(0,0,0,.25);
  background: rgba(0,0,0,.25);
  width: 100%;
  transform: translateY(-50%);
}

/* playable or unplayable, based on active derive */
.bucket-unplayable {
	display: none;
}
body[data-active_derive] .bucket-playable{
	display: none;
}
body[data-active_derive] .bucket-unplayable{
	display: inline-block;
}
body[data-active_derive] .js-play_hosted_derive {
	display: none !important;
}

/* rights-based stuff */
/* problem when object templates are nested. Below handles one level deep of nesting */
.object-template .can_delete-show,
.object-template.can_not_delete .can_delete-show
.object-template .object-template.can_not_delete .can_delete-show {
	display: none !important;
}
.object-template.can_delete .can_delete-show {
	display: block !important;
}
.object-template .can_edit-show,
.object-template.can_not_edit .can_edit-show,
.object-template .object-template.can_not_edit .can_edit-show {
	display: none !important;
}
.object-template.can_edit .can_edit-show {
	display: block !important;
}
.object-template.can_edit .can_edit-hide {
	display: none !important;
}
.object-template.can_edit .can_not_edit .can_edit-hide {
	display: flex !important;
}
#offcanvasTask .hide-with-task {
	display: none !important;
}