
:root {
	--white: rgba(255, 255, 255, 1);
	--black: rgba(0, 0, 0, 1);
	--transparent: rgba(255, 255, 255, 0);
	--gray--50: rgba(249, 250, 251, 1);
	--gray--100: rgba(243, 244, 246, 1);
	--gray--200: rgba(229, 231, 235, 1);
	--gray--300: rgba(209, 213, 219, 1);
	--gray--400: rgba(156, 163, 175, 1);
	--gray--500: rgba(107, 114, 128, 1);
	--gray--600: rgba(75, 85, 99, 1);
	--gray--700: rgba(55, 65, 81, 1);
	--gray--800: rgba(31, 41, 55, 1);
	--gray--900: rgba(17, 24, 39, 1);
	--green--600: rgba(5, 150, 105, 1);
	--green--700: rgba(4, 120, 87, 1);
	--green--800: rgba(6, 95, 70, 1);
	--green--900: rgba(6, 78, 59, 1);
	--blue--50: rgba(232, 245, 255, 1);
	--blue--100: rgba(190, 227, 255, 1);
	--blue--200: rgba(148, 210, 255, 1);
	--blue--400: rgba(65, 174, 255, 1);
	--blue--500: rgba(22, 148, 240, 1);
	--blue--600: rgba(0, 115, 199, 1);
	--blue--700: rgba(0, 91, 158, 1);
	--blue--800: rgba(0, 68, 117, 1);
	--blue--900: rgba(0, 44, 77, 1);
}

.canvas-container {
	min-height: 600px;
}

.canvas-container > *, 
input.canvas-input-modern,
.search-btn.button,
.cvs-modal-container,
.figure-button,
.pp-button-holder,
.cvs-button.button,
.cvs-button.buttonCancel  {
	font-family: "Inter", "Lato", helvetica, arial, sans-serif;
	font-weight: 400;
	color: var(--gray--500);
	font-size: 1rem;
	transition: all 0.5s ease;
}

.canvas-content {
	padding: 1em;
	text-align: center;
}

.canvas-title {
	font-size: 2.5rem;
	margin-top: 3rem;
	font-weight: 700;
	color: var(--gray--900);
	display: inline-block;
}

.canvas-description {
	padding-top: 0.5rem;
}

.canvas-description > span {
	font-weight: 600;
	color: var(--gray--600);
	line-height: 1.75rem;
}

.canvas-description a {
	color: var(--blue--600);
	font-weight: 600;
}

.search-container {
	padding: 2rem 1rem 1rem 1rem;
	width: 47%;
	margin: 0 auto;
}

.search-field {
	display: flex;
	justify-content: center;
	width: 100%;
	margin: 0 auto;
	box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.05);
	border-radius: 0.375rem;

	border: 1px solid var(--gray--200);
	padding: 0 0 0 1rem;
	box-sizing: border-box;
}

.search-field .pexels-logo {
	display: flex;
	align-items: center;
	margin-right: 12px;
}

.search-field .pexels-logo img {
	width: 32px;
	height: 32px;
}

input.canvas-input-modern {
	color: var(--gray--700);
	line-height: 3.25rem;
	outline: none;
	width: 100%;
	box-sizing: border-box;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	border: none;
}

.videos-counter {
	display: flex;
	flex-direction: row;
	align-items: center;
	margin-left: 1rem;
	color: var(--gray--900);
}

.vertical-divider {
	height: 80%;
	border-left: 1px solid var(--gray--200);
	margin: 0 16px;
}

.total-videos-top {
	font-weight: 700;
	margin-right: 8px;
}

.videos-counter .pexels-logo img {
	width: 100px;
	margin-bottom: -4px;
}

.search-btn {
	display: flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
	padding: 12px 15px;
	border-radius: 0.375rem;
}

.search-btn:hover {
	background-color: var(--gray--50);
}

.pexels-line {
	margin-top: 8rem;
	text-align: center;
}

.pexels-line > a {
	color: var(--blue--600);
	font-weight: 500;
}

/* +++ keywords +++ */

.keywords-help-container {
	position: relative;
	margin-top: 0.75rem;
	max-width: 100%;
	display: flex;
	flex-direction: row;
	padding: 0.5rem 0.75rem 0.5rem 0.75rem;
	background: var(--blue--50);
	border-radius: 1.5rem;
	align-items: center;
}

.keywords-help {
	display: flex;
	justify-content: left;
	white-space: nowrap;
	font-size: 0.875rem;
	font-weight: 500;
	max-width: calc(100% - 40px);
	color: var(--blue--600);
	line-height: 1rem;
	width: 100%;
}

.keywords-help-title {
	margin-right: 0.25rem;
	font-weight: 400;
}

.keywords-help-examples {
	overflow: hidden;
	text-overflow: ellipsis;
	width: 100%;
	text-align: left;
}

.keywords-more {
	position: absolute;
	right: 0;
	margin-right: 1rem;
	cursor: pointer;
	color: var(--blue--600);
}

.keywords-more:hover {
	color: var(--blue--700);
}

.key-item {
	cursor: pointer;
}

.keywords-help-examples {
	color: var(--blue--600);
}

.keywords-help-examples > .key-item:hover {
	text-decoration: underline;
}

/* --- keywords --- */

.btn-wrapper {
	display: flex;
	flex-direction: row;
	justify-content: center;
	margin: 1.5rem 0;
}

.btn-wrapper .btn {
	margin: 0.375rem;
    padding: 1rem 3rem;
    border-radius: 0.25rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 0.375rem;
    transition: ease-in-out 300ms;
}

.btn-primary {
	background-color: var(--blue--600);
	color: white;
	border: none;
}

.btn-secondary {
    background: white;
    border: 1px solid var(--gray--300);
    color: var(--gray--900);
}

.btn-primary:hover {
    background-color: var(--blue--700);
}

.btn-secondary:hover {
    background-color: var(--gray--200);
    border: 1px solid var(--gray--200);
}

.video-previews-container {
	width: 100%;
}

.empty-grid-placeholder {
	width: 1px;
	height: 1px;
}

.spotify-link {
	display: block;
	z-index: 1;
	margin-top: 2.25rem;
}

.spotify-link > a {
	text-decoration: underline;
	color: var(--gray--500);
	font-weight: 500;
	font-size: 0.875rem;
}

.modal-header {
	display: flex;
	justify-content: end;
}

.modal-header .close-button {
	padding: 0 8px;
	margin: 8px 8px;
	position: absolute;
	font-size: 26px;
	font-weight: 400;
	cursor: pointer;
}

.form-label {
	text-align: center;
	font-weight: 700;
	font-size: 1.25rem;
	color: var(--gray--900);
}

.form-description {
	font-size: 0.875rem;
	padding: 0.5rem 1.5rem 0 1.5rem;
	text-align: center;
}

.edit-description {
	font-size: 0.875rem;
	color: var(--gray--900);
}

.video-previews-container {
	/*display: flex;*/
	/*flex-wrap: wrap;*/
	/*flex-direction: row;*/
	/*justify-content: center;*/
}

.cvs-videos-spinner {
	margin: 1rem 0;
	display: none;
}

.cvs-videos-spinner object {
	width: 100%;
	height: 4rem;
}

.processing-container {
	display: none;
	width: 100%;
	height: 100%;
}

.processing-content {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	justify-content: center;
	align-items: center;
}

.processing-content .cvs-spinner {
	width: 150%;
}

.processing-content .cvs-spinner object {
	width: 100%;
	height: 5rem;
}

.processing-text {
	text-align: center;
	display: flex;
	flex-direction: column;
	justify-content: center;
	margin-top: 1.25rem;
	font-size: 0.75rem;
	color: var(--gray--400);
}

.preview-container {
	max-width: 30%;
	width: 30%;
	cursor: pointer;
	position: absolute;
}

.preview-video, .preview-image {
	width: 100%;
	height: 100%;
}

.preview-video {
	position: absolute;
	top: 0;
	bottom: 0;
	right: 0;
	left: 0;
}

.cvsStopScrolling {
	position: fixed;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
}

.cvs-crop-modal {
	display: none;
	align-items: center;
	justify-content: center;
	position: fixed;
	top: 0;
	left: 0;
	height: 100%;
	width: 100%;
	background: rgba(0, 0, 0, 0.6);
	z-index: 2001;
}

.swal2-container {
	z-index: 2002;
}

.cvs-issa-modal-inner {
	width: 100%;
	height:auto;
	max-width: 600px;
	max-height: 100%;
	margin:20px;
	background: #ffffff;
	border-radius: 5px;
	overflow-x: hidden;
	overflow-y: auto;
	position: relative;
}

.cvs-issa-modal-inner::-webkit-scrollbar {
	-webkit-appearance: none;
	width: 7px;
}

.cvs-issa-modal-inner::-webkit-scrollbar-thumb {
	border-radius: 4px;
	background-color: rgba(0, 0, 0, .5);
	box-shadow: 0 0 1px rgba(255, 255, 255, .5);
}

.cvs-modal-container {
	padding: 3rem;
	box-sizing: border-box;
}

.current-video-size-holder {
	margin-top: 1.75rem;
	margin-bottom: 0.25rem;
	position: relative;
	display: flex;
	justify-content: center;
	background: linear-gradient(180deg, var(--gray--100) 0%, white 100%);
}

.current-video-size-holder > div {
	position: relative;
	min-width: 200px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.video-crop-coordinates {
	width: 100%;
}

.edit-holder {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.cvs-options {
	background: white;
    padding: 1.5rem 1rem 1.5rem 1rem;
    border: 1px solid var(--gray--200);
    border-radius: 0.375rem;
}

.download-repeat {
	display: none;
	font-size: 12px;
	text-align: center;
	margin-top: 0.5rem;
}

.pexels-credits {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1.5rem;
}

.pexels-credits .pexels-logo img {
	width: 76px;
	margin-bottom: -4px;
}

.pexels-creator {
	font-size: 12px;
	margin-right: 4px;
}

.cvs-player-holder {
	display: flex;
	flex-direction: row-reverse;
    align-items: center;
    margin-top: 1.25rem;
    background: var(--blue--50);
    padding: 0.5rem 1rem 0.5rem 0.5rem;
    border-radius: 0.375rem;
}

.pp-button-holder {
	display: flex;
	align-items: center;
	padding: 0.75rem;
	background-color: white;
	border-radius: 6px;
	cursor: pointer;
	margin-right: 1rem;
	box-shadow: 0 0.25rem 0.5rem rgb(0 0 0 / 6%);
	box-sizing: border-box;
}

.pp-button-icon {
	background: transparent;
	box-sizing: border-box;
	width: 0;
	height: 0.875rem;
	border-color: transparent transparent transparent var(--blue--600);
	transition: 100ms all ease, opacity 0.1ms;
	border-style: solid;
	border-width: 0.438rem 0 0.438rem 0.875rem;
}

.pp-button-icon.paused {
	 border-style: double;
	 border-width: 0 0 0 0.875rem;
 }

 .pp-button-text {
	display: none;
}

.cvs-options-slider {
	width: 100%;
}

.cvs-options-slider .slider-styled {
	padding: 0 8px;
}

.cvs-button-container {
	margin-top: 2.5rem;
	display: flex;
	flex-direction: row-reverse;
	justify-content: space-evenly;
	align-items: center;
}

.cvs-button-holder {
	width: 100%;
}

.cvs-button-holder:first-child {
	margin-left: 0.5rem;
}

.imgareaselect-handle {
	width: 0.5rem !important;
	height: 0.5rem !important;
    border: solid 1px var(--gray--300) !important;
    opacity: 1 !important;
	box-shadow: 0 0 0.25rem rgba(0, 0, 0, 0.25);
}

.cvs-button {
	width: 100%;
	text-transform: none;
	box-sizing: border-box;
}

.cvs-button.button,
.cvs-button.buttonCancel {
	padding: 0.75rem;
	text-transform: initial;
	border-radius: 0.375rem;
    font-size: 1rem;
	font-weight: 500;
}

.cvs-button.button {
    background-color: var(--blue--600);
    border: none;
}

.cvs-button.button:hover {
	background-color: var(--blue--700);
}

.cvs-button.buttonCancel {
    background-color:white;
    border: 1px solid var(--gray--300);
	color: var(--gray--700);
}

.cvs-button.buttonCancel:hover {
	background-color: var(--gray--100);
}

.cvs-button-container .cvsDownloadButton {
	display: none;
	background-color: var(--green--600);
}

.cvs-button-container .cvsDownloadButton:hover {
	background-color: var(--green--700);
}

.buttonCancel[disabled], .cvsDoneButton[disabled], .cvsDownloadButton[disabled], .close-button[disabled] {
	cursor: not-allowed;
	opacity: 0.6;
}

/* +++++ range-input +++++ */
.slider-styled,
.slider-styled .noUi-handle {
	box-shadow: none;
	border: 2px solid var(--blue--600);
}

.slider-styled.noUi-horizontal .noUi-handle.noUi-handle-lower {
	right: -2px;
}
.slider-styled.noUi-horizontal .noUi-handle.noUi-handle-upper {
	right: -18px;
}
.slider-styled.noUi-horizontal .noUi-handle.noUi-handle-lower,
.slider-styled.noUi-horizontal .noUi-handle.noUi-handle-upper {
	top: -0.5625rem;
}

/* Hide markers on slider handles */
.slider-styled .noUi-handle::before,
.slider-styled .noUi-handle::after {
	display: none;
}

.slider-styled.slider-round {
	height: 10px;
	background: var(--blue--100);
    border-radius: 0.25rem;
    border: none;
}

.slider-styled.slider-round .noUi-connect {
	background: var(--blue--600);
}

.slider-styled.slider-round .noUi-handle {
	height: 1.75rem;
	width: 1.25rem;
	border-radius: 1.25rem;
}

.slider-styled.slider-round .noUi-origin .noUi-handle .noUi-tooltip {
    border: 1px solid var(--gray--50);
    background: var(--gray--50);
    color: var(--gray--500);
    box-shadow: 0 0.5rem 0.75rem rgb(0 0 0 / 10%);
    font-size: 12px;
	font-weight: 500;
}

/* ----- --range-input ----- */

.imgareaselect-outer {
	opacity: 0.8;
}

.what-next {
	margin-top: 1.25rem;
	text-align: center;
	display: none;
}

.what-next a {
	font-weight: 500;
	color: var(--blue--600);
}

.aspect-ratio-holder {
	display: flex;
	justify-content: center;
	margin-right: 1rem;
}

.figure-button {
	display: flex;
	justify-content: center;
	align-items: center;
	border: solid 1px var(--gray--200);
	width: 52px;
	height: 40px;
	margin-left: -1px;
	cursor: pointer;
}

.figure-button:first-of-type {
	border-top-left-radius: 0.375rem;
	border-bottom-left-radius: 0.375rem;
}

.figure-button:last-of-type {
	border-top-right-radius: 0.375rem;
	border-bottom-right-radius: 0.375rem;
}

.figure-button.active {
	border-color: var(--blue--600);
	z-index: 1;
}

.figure-button:hover {
	background-color: var(--gray--100);
}

.figure-icon {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	box-sizing: border-box;
	width: 20px;
	height: 20px;
	padding: 0;
}

.css-figure {
	border: solid 2px var(--gray--400);
	border-radius: 2px;
	box-sizing: border-box;
}

.figure-button.active .css-figure  {
	border-color: var(--blue--600);
}

.rectangle-horizontal {
	width: 100%;
	height: 70%;
}

.rectangle-vertical {
	width: 70%;
	height: 100%;
}

.rectangle-square {
	width: 75%;
	height: 75%;
}

.search-options {
	display: flex;
	justify-content: space-between;
	border-bottom: solid 1px var(--gray--200);
	padding: 0.75rem 0 0.75rem 0;
	margin: 0 1rem 1.25rem 1rem;
}

.bottom-counter {
	text-align: left;
	padding: 1.5rem 36px 0.5rem;
}

.cvs-inited {
	display: none;
}

.cvs-empty-state {
	display: none;
	margin-top: 4rem;
}

.cvs-empty-image {
	width: 360px;
}

.cvs-empty-text {
	margin-top: 2.5rem;
	font-weight: 500;
}


.cvs-empty-text > .cvs-subtext {
	font-weight: 400;
	font-size: 0.875rem;
	margin-top: 0.25rem;
}

.sign-in-container {
	min-height: 600px;
}

.sign-in-content {
	padding: 1em;
	text-align: center;
}

.sign-in-content .webviewHide {
	font-size: 18pt;
	font-weight: 700;
}

.artwork-holder {
	position: relative;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 4.25rem;
	z-index: -1;
}

.artwork-background {
	position: absolute;
	width: 60%;
	aspect-ratio: 1/0.75;
	display: flex;
	justify-content: center;
	top: -1.5rem;
	pointer-events: none;
	margin: 0 auto;
	left: 0;
	right: 0;
}

.artwork-background-image {
	position: relative;
	display: flex;
	width: 100%;
	height: 100%;
	background-image: url('/images/canvas/background-blob.svg');
	background-repeat: no-repeat;
	background-size: contain;
	background-position: center top;
}

/***artwork container****/

.artwork-container {
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	width: 40%;
	aspect-ratio: 1.15 / 1;
	object-fit: cover;
	opacity: 0;
	transition: opacity 1000ms;
}

@supports not (aspect-ratio: auto) {
	.artwork-container {
		display: none;
	}
}

/***video container****/

.video-container {
	width: auto;
	height: 100%;
	aspect-ratio: 1/2;
	position: absolute;
	left: 0;
	animation: video 8s infinite;
	animation-direction: alternate;
	transition: linear;
	overflow: hidden;
}

.video-container .animate-image,
.video-container .spotify-overlay {
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	right: 0;
 }

.video-container .animate-image {
	border-radius: 3rem;
	z-index: -1;
	background-color: white;
	opacity: 0;
	animation-duration: 8s;
	animation-iteration-count: infinite;
	animation-direction: alternate;
	transition: linear;
}

.video-container img:first-child {
	animation-name: animate1;
}

.video-container img:nth-child(2n) {
	animation-name: animate2;
}

.video-container img:nth-child(3n) {
	animation-name: animate3;
}


/***image container****/

.image-container {
	display: flex;
	width: 100%;
	height: 75%;
}

.image {
	width: 100%;
	background-size: cover;
	margin-right: 1em;
	border-radius: 0.3750em;
	overflow: hidden;
}

.image img {
	width: 100%;
	height: 100%;
}

.image:nth-child(3n) {
	margin-right: 0;
}

/***video animation****/

@keyframes video {
	0%,	20% {
		left: 0;
		transform: translateX(0);
	}
	40%, 60% {
		left: 50%;
		transform: translateX(-50%);
	}
	80%, 100% {
		left: 100%; 
		transform: translateX(-100%);
	}
}

@keyframes animate1 {
	0%,	20% {
		opacity: 1;
	}
	40%, 60% {
		opacity: 0;
	}
	80%, 100% {
		opacity: 0;
	}
}
@keyframes animate2 {
	0%,	20% {
		opacity: 0;
	}
	40%, 60% {
		opacity: 1;
	}
	80%, 100% {
		opacity: 0;
	}
}
@keyframes animate3 {
	0%,	20% {
		opacity: 0;
	}
	40%, 60% {
		opacity: 0;
	}
	80%, 100% {
		opacity: 1;
	}
}

@media only screen and (max-width: 62rem) {


	.search-container,
	.artwork-container {
		width: 55%;
	}

	.artwork-background {
		width: 75%;
	}
}

@media only screen and (max-width: 48rem) {


	.search-container,
	.artwork-container {
		width: 75%;
	}

	.artwork-background {
		width: 100%;
	}

	.preview-container {
		max-width: 100%;
		width: 100%;
	}
}

@media only screen and (max-width: 36rem) {

	.canvas-title {
		font-size: 1.75rem;
	}

	.btn-wrapper {
		flex-direction: column;
	}

	.search-container {
		padding: 2rem 0 2rem 0;
		width: 100%;
	}

	.search-options {
		flex-direction: column-reverse;
		padding: 0;
	}

	.videos-counter {
		justify-content: space-between;
	}

	.videos-counter .vertical-divider {
		flex-grow: 1;
		visibility: hidden;
	}

	.artwork-container {
		width: 90%;
	}

	.artwork-background {
		aspect-ratio: 1;
	}

	.search-options {
		margin: 0 0 1.25rem 0;
	}

	.videos-counter {
		margin: 0;
	}

	.aspect-ratio-holder {
		margin: 0;
		position: fixed;
		z-index: 1;
		background-color: white;
		right: 0.5rem;
		bottom: 1rem;
		box-shadow: 2px 2px 5px var(--gray--400);
		border-radius: 0.375rem;
	}

	.cvs-crop-modal {
		min-height: 90vh;
	}

	.cvsIssaModalInner {
		margin: 0;
	}

	.cvs-modal-container {
		padding: 3rem 1rem 3rem 1rem;
	}

	.pexels-creator {
		text-align: right;
	}

	.pexels-creator-link {
		display: inline-block;
	}

	.form-description {
		padding: 0.5rem 0 0 0;
	}

	.cvs-options {
		padding: 1rem 0 0 0;
		border: none;
	}

	.cvs-player-holder {
		flex-direction: column;
		align-items: stretch;
		padding: 1rem 0.5rem 1rem 0.5rem;
	}

	.cvs-options-slider {
		margin-top: 0.5rem;
		margin-bottom: 0.75rem;
	}
	
	.pp-button-holder {
		margin: 1rem auto 0 auto;
		width: 100%;
	}

	.pp-button-icon {
		float: left;
	}

	.pp-button-text {
		display: block;
		margin-left: auto;
		margin-right: auto;
		color: var(--blue--600);
	}

	.current-video-size-holder > div {
		min-height: initial;
	}

	.processing-content .cvs-spinner {
		margin-top: 2.5rem;
	}

	.processing-text {
		margin-top: 1rem;
	}

	.cvs-button-container {
		flex-direction: column;
	}

	.cvs-button-holder:first-child {
		margin-left: 0;
		margin-bottom: 0.5rem;
	}
}