/* FONTS */ 

@font-face {
 font-family: 'Neue Has Unica';
 src: url('../fonts/ttf/NeueHaasUnicaPro-Regular.ttf')  format('truetype'),
 	  url("../fonts/woff2/NeueHaasUnicaPro-Regular.woff2") format("woff2"),
      url("../fonts/woff/NeueHaasUnicaPro-Regular.woff") format("woff");
}

@font-face {
 font-family: 'Neue Has Unica Medium';
 src: url('../fonts/ttf/NeueHaasUnicaW1G-Medium.ttf')  format('truetype'),
 	  url("../fonts/woff2/NeueHaasUnicaW1G-Medium.woff2") format("woff2"),
		url("../fonts/woff/NeueHaasUnicaW1G-Medium.woff") format("woff");
}

/* GENERAL */

html {
	font-family: 'Neue Has Unica', sans-serif;
}

body {
	background: #FFF;
	margin: 0;
	width: 100%;
	height: 100%;
	cursor: auto;
	-webkit-font-smoothing: antialiased;
	font-family: 'Neue Has Unica', sans-serif;
	overflow-x: hidden;
}

/* LINKS */ 

a {
	color: #000;
}

a:link {
	color: #000;
}

a:active {
	color: #000;
}

a:visited {
	color: #000;
}

a:hover {
	color: #000;
}

/* LOADER */ 

#loader {
	position: fixed;
	width: 100%;
	height: 100%;
	display: flex;
	background-color: #FFF;
	justify-content: center;
	align-items: center;
	pointer-events: none;
	transition: opacity 0.2s;
	opacity: 0;
	z-index: 2000;
}

/* TYPOGRAPHY */

.small {
	letter-spacing: -0.2px;
}
.medium {
	letter-spacing: -0.9px;
}
.medium a:hover{
	text-decoration: underline;
}
.big {
	letter-spacing: -1.2px;
	line-height: 1.2;
}
.big.bold {
	font-family: 'Neue Has Unica Medium';
	letter-spacing: -1.2px;
}
.big a:hover {
	text-decoration: underline;
}

a { 
	text-decoration: none;
	cursor: pointer;
}

a:hover {
	text-decoration: underline;
}

#error {
	position: absolute;
	width: 100%;
	height: 100%;
	display: flex;
	justify-content: center;
	flex-flow: column;
}

#error img {
	width: 10rem;
	height: auto;
	margin-bottom: 2rem;
}
#error p {
	margin-left: 20%;
}

/* HEADER */

#header {
	width: 100%;
	height: 80px;
	background-color: #FFF;
	position: fixed;
	display: block;
	z-index: 10;
}

#inner-header {
	display: flex;
	justify-content: space-between;
	width: calc(100% - 40px);
	margin-left: 20px;
	margin-right: 20px;
	line-height: 1;
}

#filter {
}

/* #filter:hover {
	cursor: pointer;
} */

#tag-filter {
	position: relative;
	z-index: 100;
}

#select {
	position: relative;
	margin-right: -85px;
	width: 100%;
	opacity: 0;
	cursor: pointer;
	text-transform: capitalize;
	z-index: 101;
}

#filter-by, #edit-tag {
	text-decoration: none;
}

#filter-by:hover, #edit-tag:hover {
	text-decoration: underline;
}

#active-tag-editable {
	text-transform: capitalize;
}

#grid {
	right: 0;
	display: none;
}

select {
   -webkit-appearance: none;
   -moz-appearance: none;
   appearance: none;      
}

.down {
	margin-top: 100px;
	padding: 20px;
	opacity: 1;
}

#counter {
	float: right;
	right: 0;
}

/* MAIN */ 

.content {
	position: absolute;
	width: 100%;
	height: 100%;
	z-index: 0;
}

.container-fluid {
	position: relative;
	width: calc( 100% - 40px );
	height: 100%;
	margin-left: 20px;
	margin-right: 20px;
}

#posts {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	margin-top: -35px;
	margin-right: -15px;
    margin-left: -15px;
}

.post {
	position: relative;
	flex-grow: 0;
	flex-shrink: 0;
	flex-basis: calc( 20% - 20px );
	max-width: calc( 20% - 20px );
	padding: 10px;
	opacity: 0;
	transition: opacity 0.4s;
	visibility: hidden;
}

.row {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	margin-top: -35px;
	margin-right: -15px;
    margin-left: -15px;
}

.post.faded {
	opacity: 1;
	visibility: visible
}

/* HOME PAGE */

/* POST GALLERY */ 

.post-item {
	position: relative;
	padding-top: 30px;
	background-color: #F2F2F2;
	border:1px solid #D8D8D8;
	border-radius: 12px;
	cursor: pointer;
	transition: transform 0.17s;
}

.post-item:hover, .post-item.hover {
	cursor: pointer;
	transform: scale(0.98);
}

.post-item.hover.release {
	transform: scale(1) !important;
}

.post-item.hide {
	padding-top: 10px;
}

.post-link {
	position: absolute;
	width: 100%;
	height: 30px;
	top: 0;
	margin-top: -2px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}

div.url {
	margin: 0;
	white-space: nowrap;
	overflow: hidden;
}

div.url.hide {
	display: none;
}

div.mask {
	position: absolute;
	width: 16px;
	height: 12px;
	border-radius: 2px;
}

div.mask.left {
	left: 0;
	background-image: -webkit-linear-gradient(left, rgba(255, 255, 255, 0), #F2F2F2); /* For Chrome 25 and Safari 6, iOS 6.1, Android 4.3 */
	background-image:    -moz-linear-gradient(left, rgba(255, 255, 255, 0), #F2F2F2); /* For Firefox (3.6 to 15) */
	background-image:      -o-linear-gradient(left, rgba(255, 255, 255, 0), #F2F2F2); /* For old Opera (11.1 to 12.0) */ 
	background-image:         linear-gradient(to left, rgba(255, 255, 255, 0), #F2F2F2); /* Standard syntax; must be last */
}

div.mask.right {
	right: 0;
	background-image: -webkit-linear-gradient(right, rgba(255, 255, 255, 0), #F2F2F2); /* For Chrome 25 and Safari 6, iOS 6.1, Android 4.3 */
	background-image:    -moz-linear-gradient(right, rgba(255, 255, 255, 0), #F2F2F2); /* For Firefox (3.6 to 15) */
	background-image:      -o-linear-gradient(right, rgba(255, 255, 255, 0), #F2F2F2); /* For old Opera (11.1 to 12.0) */ 
	background-image:         linear-gradient(to right, rgba(255, 255, 255, 0), #F2F2F2); /* Standard syntax; must be last */
}

.post-poster {
	border-radius: 0 0 12px 12px;
	width: 100%;
	height: 0;
	padding-top: 168.4%;
}

.post-video { 
	position: relative;
	display: flex;
	margin-top: -168.5%;
	border-radius: 0 0 12px 12px;
	width: 100%;
	pointer-events: none;
}

/* PAGINATION */ 

#pagination {
	display: flex;
	justify-content: center;
	align-items: center;
}

#pagination ul {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-block-start: 0;
	margin-block-end: 0;
	margin-inline-start: 0;
	margin-inline-end: 0;
	padding-inline-start: 0;
}
#pagination li {
	list-style: none;
}

.button a {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 100px;
	width: 100px;
	background-repeat: no-repeat;
	background-position: center;
}

a#previous {
	background-image: url(../pictos/LOADMORE-DESKTOP-ICON-Nav-Left.svg);
}


a#next {
	background-image: url(../pictos/LOADMORE-DESKTOP-ICON-Nav-Right.svg);
}

a.pagination-item {
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 40px;
}

.pagination-item.active {
	text-decoration: none !important;
}

.active {
	opacity: 0.15 !important;
}

a.active:hover {
	border: 0;
	cursor: auto;
}

/* SUBMIT */

#submit {
	position: relative;
	margin-top: 160px;
}

.submit-step {
	width: 100%;
	display: flex;
	align-items: flex-end;
	margin: 0;
	height: 90px;
	margin-bottom: 20px;
}

.submit-step.textarea {
	border-bottom: 3px solid #000;
}

.submit-step.end {
	display: block;
	border-bottom: 3px solid #FFF;
}

.form-error {
	display: none;
	margin-bottom: 2rem;
}

form {
	width: 100%;
	padding-bottom: 5px;
}

input {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	outline: none;
	outline-color: transparent;
	outline-style: none;
	padding: 0;
}

input:focus, input:focus-within, text:focus, select:focus {
	outline: none;
	outline-color: transparent;
	outline-style: none;
	background: transparent;
}

input::placeholder {
  font-family: 'Neue Has Unica' !important;
  opacity: 0.2;
}

input[type=text] {
  width: 100%;
  margin: 0;
  border: 0;
  justify-content: center;
  align-items: flex-start;
  opacity: 1;
}

input[type=submit], input[type=button] {
  border: 0;
  margin-bottom: 10px;
  align-items: flex-end;
  text-align: right;
  background-color: #FFF;
  background-image: url(../pictos/LOADMORE-DESKTOP-ICON-Arrow-Right.svg);
  background-size: contain;
  background-position: center right;
  background-repeat: no-repeat;
  text-transform: uppercase;
  cursor: pointer;
}

input[type=submit].skip, input[type=button].skip {
	background-image: none;
}

input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active  {
    -webkit-box-shadow: 0 0 0 0 transparent inset !important;
		box-shadow: 0 0 0 0 transparent inset !important;
    background: transparent;
}

/* ABOUT */ 

#about {
	position: relative;
	margin-top: 80px;
}

#readmore-button {
	display: block;
}
#readless-button {
	display: none;
}
#readmore {
	display: none;
}

/* FOOTER */ 

#footer {
	margin-top: 80px;
	margin-bottom: 20px;
}

#inner-footer p {
	margin: 0;
}

#inner-footer {
	width: 100%;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: flex-end;
}

#social {
	width: 50%;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: flex-end;
}

#social a:hover {
	cursor: pointer;
}

#contact-inner {
	cursor: pointer;
}

#contact-copied {
	display: none;
	cursor: default;
}

#copyright {
	width: 50%;
	align-items: flex-end;
	text-align: right;
}

/* COOKIES */

#cookies {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: #FFF;
	z-index: 999;
}

#cookies.hide {
	display: none;
}

#cookies-inner {
	height: 94px;
	padding: 10px;
	display: flex;
	align-items: center;
}

#cookies img {
	height: 100%;
	width: auto;
	margin-right: 10px;
}

/* RESPONSIVE MOBILE */

.url.hide {
	display: none;
}

/* FADE-IN AND FADE-OUT */

#fader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    pointer-events: none;
    background: white;
}

#fader:before {
	content: 'fade'
}

@keyframes fade-out {
	from { opacity: 1 }
	to { opacity: 0 }
}

@keyframes fade-in {
	from { opacity: 0 }
	to { opacity: 1 }
}

#fader.fade-out {
	opacity: 0;
	animation-duration: 0.2s;
	animation-name: fade-out;
}

#fader.fade-in {
	opacity: 1;
	animation-duration: 0.15s;
	animation-name: fade-in;
}

.post.fade-in {
	animation: fade-in;
	animation-duration: 1s;
}

.moebill {
	width: 90px;
	margin: 0;
}

.about-main p {
	margin-top: 30px;
}

/* 2023 New Styles */
#filter-by:hover {
	text-decoration: underline;
}

.edit-tag, .general-tag {
	position: relative;
	width: auto;
}

#select {
	position: absolute;
	margin-right: 0;
	opacity: 0;
	cursor: pointer;
	text-transform: capitalize;
	z-index: 101;
	top: 0 !important;
	left: 0;
	height: 100% !important;
	width: 100%;
}

#filter {
	display: flex;
	/* width: 100%; */
	justify-content: space-between;
	align-items: center;
}

.sound-button {
	margin-top: 24px;
}

.sound-button span span {
	cursor: pointer;
	color: #B2B2B2;
}

.sound-button .s-active {
	color: #000;
	opacity: 1 !important;
}

.s-button:hover {
	text-decoration: underline !important;
}

.tagtitle {
	text-transform: capitalize !important;
}

.linkswrap {
	display: inline-block;
}

#filter .medium {
	line-height: 120%;
}


/* RESPONSIVE */

@media (max-width: 380px) {
	#active-tag-editable {
		display: inline-block;
		margin-bottom: -6px;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		max-width: 9ch;
	}
}

@media (max-width: 360px) {
	#active-tag-editable {
		display: inline-block;
		margin-bottom: -2px;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		max-width: 7ch;
	}
}

@media (max-width: 330px) {
	#active-tag-editable {
		display: inline-block;
		max-width: 0ch;
	}
}

/* Small devices (landscape phones, 600px and up) */
@media (max-width: 600px) {
	img#loader-gif {
		width: 80%;
		height: auto;
	}

	.small {
		font-size: 11px;
	}
	.medium {
		font-size: 24px;
	}
	.big {
		font-size: 32px;
	}

	#header {
		/* height: 68px; */
		height: auto;
    padding: 25px;
    box-sizing: border-box;
	}

	#inner-header {
		/* margin-top: 25px; */
		width: 100%;
		margin-left: 0;
		margin-right: 0;
	}

	#select {
		/* top: -25px; */
		top: 0;
		height: 25px;
	}

	#counter {
		display: none;
	}

	#filter {
		margin-top: -3px;
	}

	#grid {
		display: block;
	}
	#grid ul {
		margin: 0;
		height: 22px;
		list-style: none;
		display: inline-flex;
	}
	#grid img {
		height: 22px;
		width: 22px;
		opacity: 0.15;
		cursor: pointer;
	}

	.grid-active {
		opacity: 1 !important;
	}

	#grid-2x {
		margin-right: 15px;
	}

	.container-fluid.home {
		/* top: 54px; */
		top: 108px;
	}

	#active-tag {
		margin-top: 10px;
		margin-bottom: 40px;
	}

	#posts {
		margin-left: -10px;
		margin-right: -10px;
	}

	.post {
		flex-basis: calc( 50% - 20px );
		max-width: calc( 50% - 20px );
		padding: 10px;
	}

	.row {
		margin-left: -10px;
		margin-right: -10px;
	}

	a.pagination-item {
		margin: 15px;
	}
	.button a {
		height: 50px;
		width: 50px;
	}

	a#previous {
		background-image: url(../pictos/LOADMORE-MOBILE-ICON-Nav-Left.svg);
	}
	a#next {
		background-image: url(../pictos/LOADMORE-MOBILE-ICON-Nav-Right.svg);
	}
	input[type=submit], input[type=button] {
		width: 25%;
		height: 35px;
		background-image: url('../pictos/LOADMORE-MOBILE-ICON-Arrow-Right.svg');
		margin-bottom: 7px;
	}

	#about {
		/* margin-top: 65px; */
		margin-top: 0;
	}
	#readmore-button, #readless-button {
		margin-bottom: 65px;
	}
	#submit {
		margin-top: 0;
	}
	#subscribe-newsletter{
		margin-top: -50px;
	}

	#footer {
		margin-top: 30px;
		padding-bottom: 20px;
	}
	#inner-footer {
		font-size: 22px;
	}

	#social {
		width: 100%;
		display: flex;
		justify-content: space-around;
		flex-direction: row;
	}

	#social a {
		margin: 0;
	}

	#copyright {
		width: 100%;
		text-align: center;
	}

	#cookies-inner {
		padding: 5px 20px;
		font-size: 18px
	}

	.post-item.reduced {
		padding-top: 10px;
	}
	
	.post.grid-big {
		flex-basis: calc( 50% - 20px ) !important;
		max-width: calc( 50% - 20px ) !important;
		padding: 10px !important;
	}
	
	.post.grid-min {
		flex-basis: calc( 25% - 10px ) !important;
		max-width: calc( 25% - 10px ) !important;
		padding: 5px !important;
	}
	
	#posts.grid-min {
		padding-top: 5px;
		margin-left: -5px;
		margin-right: -5px;
	}
	
	#posts.grid-big {
		padding-top: 0;
		margin-left: -10px;
		margin-right: -10px;
	}
}

/* Medium devices (tablets, 1100px and up) */
@media (min-width: 601px) and (max-width: 1100px) {
	img#loader-gif {
		width: 40%;
		height: auto;
	}

	.small {
		font-size: 11px;
	}
	.medium {
		font-size: 24px;
	}
	.big {
		font-size: 35px;
	}

	#header {
		height: 76px;
	}
	#inner-header {
		margin-top: 25px;
		margin-left: 16px;
		margin-right: 16px;
	}
	#select {
		/* top: -24px; */
		top: 0;
		height: 24px;
	}

	.container-fluid.home {
		width: calc( 100% - 32px );
		margin-left: 16px;
		margin-right: 16px;
		top: 38px;
	}

	#active-tag {
		margin-top: 32px;
		margin-bottom: 65px;
	}

	.post {
		flex-basis: calc( 25% - 22px );
		max-width: calc( 25% - 22px );
		padding: 11px;
	}

	#submit {
		margin-top: 95px;
	}
	.submit-step {
		height: 55px;
	}

	input[type=submit], input[type=button] {
		width: 18%;
		height: 35px;
	}

	#about {
		margin-top: 70px;
	}

	#social a {
		margin-right: 20px;
	}

	#cookies-inner {
		padding: 5px 10px;
		font-size: 20px;
	}
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 1101px) and (max-width: 1440px) {
	img#loader-gif {
		width: 25%;
		height: auto;
	}

	.small {
		font-size: 13px;
	}
	.medium {
		font-size: 25px;
	}
	.big {
		font-size: 50px;
	}

	#header {
		height: 90px;
	}
	#inner-header {
		margin-top: 31px;
	}
	#select {
		/* top: -25px; */
		top: 0;
		height: 25px;
	}

	.post {
		flex-basis: calc( 20% - 20px );
		max-width: calc( 20% - 20px );
	}

	.container-fluid.home {
		top: 50px;
	}

	#active-tag {
		margin-top: 32px;
		margin-bottom: 65px;
	}

	input[type=submit], input[type=button] {
		width: 15%;
  		height: 50px;
  	}

	#submit {
		margin-top: 120px;
	}

	#social a {
		margin-right: 30px;
	}

	#cookies-inner {
		padding: 5px 10px;
	}
}

/* HD devices (large desktops, 1440px and up) */
@media (min-width: 1441px) {
	img#loader-gif {
		width: 22%;
		height: auto;
	}

	.small {
		font-size: 12px;
	}
	.medium {
		font-size: 35px;
	}
	.big {
		font-size: 60px;
	}

	#header {
		height: 113px;
	}
	#inner-header {
		margin-top: 40px;
	}
	#select {
		/* top: -38px; */
		top: 0;
		height: 35px;
	}

	.container-fluid.home {
		top: 78px;
	}

	#active-tag {
		margin-top: 25px;
		margin-bottom: 60px;
	}

	.post {
		flex-basis: calc( 16.66% - 20px );
		max-width: calc( 16.66% - 20px );
	}

	input[type=submit], input[type=button] {
		width: 10%;
  		height: 60px;
  	}

	#social a {
		margin-right: 40px;
	}

	#cookies-inner {
		padding: 10px 15px;
		font-size: 25px;
	}
}