body {
	margin: 0;
	padding: 0;
  background-image: url('../images/canvas_tile.png');
	background-repeat: repeat;
	animation: scrollBackground 20s linear infinite;
	overflow: hidden;
}


@keyframes scrollBackground {
	0% {
		background-position: 0 0;
	}
	100% {
		background-position: 100% 100%;
	}
}

h1 {
	margin-top: 22px;
	text-align: center;
}

.center-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 80vh;
  width: 100vw; 
  box-sizing: border-box;
}

.carousel-wrapper {
	max-width: 90vw;
	position: relative;
}

.carousel {
	display: flex;
	scroll-behavior: smooth;
	gap: 30x;
	overflow-x: auto;
	position: relative;
}

.carousel::-webkit-scrollbar {
	display: none;
}

.drawing {
	flex: 0 0 auto;
	width: 300px;
	background: transparent;
	color: white;
	border-radius: 5px;
	text-align: center;
	perspective: 600px;
	cursor: pointer;
	transition: all 0.3s ease;
}


.drawing:hover {
	color: #0099db;
}
.drawing.flipped .card-inner {
	transform: rotateY(180deg);
}

.drawing-btn {
  width: 70px;       
  height: 70px;
  padding: 0;
  border: none;      
  background: transparent; 
  display: inline-flex;  
  align-items: center;
  justify-content: center;
  cursor: pointer;  
}

.drawing-btn img {
  max-width: 100%;
  max-height: 100%;
  display: block; 
}

.drawing-btn:hover {
	transform: scale(1.1);
}

.drawing img {
	width: 100%;
	height: 310px;
	object-fit: contain;
}

.like-btn, 
.dislike-btn {
  background-repeat: no-repeat;
  background-position: center;  
  background-size: contain;    
}

.like-btn.voted {
  background-image: url('../images/like_btn_voted.png');
}

.dislike-btn.voted {
  background-image: url('../images/dislike_btn_voted.png');
}

.meta {
	font-size: 1.4em;
}

.card-front {
	overflow: hidden;
}

.nav-btn {
	position: absolute;
	top: 40%;
	border: none;
	background: transparent;
	padding: 0;
	cursor: pointer;
	user-select: none;
	font-size: 0;
	z-index: 100;
}

.nav-btn img {
	width: 75px;
	height: auto;
	display: block;
	transition: all 0.2s ease-in-out;
}

.nav-btn:hover {
	transform: scale(1.1);
}

#prev-btn {
	left: -40px;
}

#next-btn {
	right: -40px;
}

.icon-small {
	font-size: 16px !important;
	vertical-align: middle;
}

img.pixelated {
	image-rendering: pixelated;
	image-rendering: crisp-edges;
	transition: transform 0.2s ease-in-out;
}

.card-inner {
	position: relative;
	width: 100%;
	height: 400px;
	transition: all 0.3s ease;
	transform-style: preserve-3d;
}

.card-front,
.card-back {
	position: absolute;
	width: 100%;
	height: 100%;
	backface-visibility: hidden;
	border-radius: 8px;
	box-sizing: border-box;
	overflow: auto;
	transition: all 0.3s ease;

}

.card-back {
	transform: rotateY(180deg);
	display: flex;
	flex-direction: column;
	justify-content: center;  
	text-align: left;     
	height: 100%;     
	padding: 20px;       
}


/*======mobile version UI======*/
@media (max-width: 600px) {
	body {
		padding: 8px;
	}

	h1 {
		font-size: 65px;
	  letter-spacing: 0.1em;
    margin-bottom: -3px;
    margin-top: -3px;
    text-shadow: 
      2px 2px 0 #ff4dbb,
      -2px -2px 0 #ff4dbb,
      2px -2px 0 #ff4dbb,
      -2px 2px 0 #ff4dbb;
	}

	.center-container {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		width: 100vw; 
		box-sizing: border-box;
		overflow: hidden;
	}

	.carousel-wrapper {
		width: 100%;
		height: 80vh;
		position: relative;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.carousel {
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: flex-start;
		scroll-behavior: smooth;
		gap: 5px;
		overflow-x: auto;
		width: 100%;
		padding: 10px;
		box-sizing: border-box;
		scroll-snap-type: x mandatory;
	}

	.drawing {
		flex: 0 0 85%;
		max-width: 85%;
		background: transparent;
		color: white;
		cursor: pointer;
		scroll-snap-align: center;
	}

	.nav-btn img {
		width: 45px;
	}

	#prev-btn {
		left: -4px;
	}

	#next-btn {
		right: -4px;
	}
}
