*{
	margin:0px;
	padding:0px;
	box-sizing: border-box;
}

body{
	font-family: 'Schoolbell';
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	-o-user-select: none;
	user-select: none;
	background: #e7e7e7;
	font-weight: 600;
	font-size:22px;
}

body.no-scroll {
	overflow: hidden;
	position: fixed;
	width: 100%;
}


.container{
	text-align: center;
	max-width: 460px;
	margin: auto;
	background: #e7e7e7;
	padding:20px;
}

.header{
	position: sticky;
	top:0;
	background: #e7e7e7;
	padding-top: 10px;
	padding-bottom: 10px;
}


h1{
	font-size: 25px;
	margin-bottom: 10px;
}

h2{
	font-size: 25px;
	margin-bottom: 20px;
}

p{
	font-size: 22px;
	margin-bottom: 20px;
}

a{
	font-size: 22px;
	color: black;
	display:inline-block;
	text-decoration: none;
}

select, input, textarea{
	width: 48%;
	padding: 3px;
	font-size: 22px;
	font-family: 'Schoolbell';
	margin-bottom: 20px;
	border-radius: 10px;
	border:2px solid black;
	color: black;
	background: white;
}

.navigation{
    padding: 3px;
    margin:0px;
    margin-top: 0px;
    margin-bottom: 20px;
    display: inline-block;
    cursor: pointer;
    text-decoration: none;
    color: black;
    border-radius: 10px;
}

.navigation.active{
    background:black;
    color:white;
}

.button{
	border:none;
	font-family: 'Schoolbell';
    margin-bottom: 10px;
    font-weight: 700;
    background-color: black;
    color: white;
    display: inline-block;
    font-size: 22px;
    cursor: pointer;
    padding: 5px;
    width:49%;
    border-radius: 10px;
}

.button-group {
	display: flex;
	gap: 10px;
	justify-content: space-between;
}

.half-button {
	width: 48% !important;
	flex: 1;
}


#drawing{
	width: calc(100% - 4px);
	margin-bottom: 20px;
	margin-top: 20px;
	touch-action: none;
	-webkit-touch-callout: none;
	overflow: hidden;
	position: relative;
}

#drawing.submitted {
	margin-bottom: 5px;
	touch-action: pan-y;
	background: none!important;
	border: 0px!important;
}

.drawing-board-canvas-wrapper{
    border:none;
    transition: transform 0.1s ease-out;
    transform-origin: 0 0;
    -webkit-transform-origin: 0 0;
    will-change: transform;
    overflow: visible;
    position: relative;
    z-index: 10;
}

#drawing.submitted .drawing-board-canvas-wrapper {
	touch-action: pan-y;
}


.doodle img{
	width:100%;
	margin-bottom: 10px;
}

.doodle{
	border-bottom: 1px solid #dbdbdb;
	padding-bottom: 20px;
	margin-bottom: 30px;
}

.user{
	display: inline-block;
	width:70%;
	text-align: left;
}

.likes{
	font-weight: 300;
	display: inline-block;
	width: 30%;
	text-align: right;
}

.hidden{
	display: none;
}

.heart{
	width:25px!important;
	float:right;
	cursor:pointer;
}

.share{
	margin:auto; 
	margin-top:20px; 
	padding:5px; 
	background:#56bc56; 
	color:white; 
	width:fit-content; 
	border-radius: 10px;
	cursor:pointer;
}

.drawing-board-canvas{
	border:2px solid black;
	touch-action: none;
}

#drawing.submitted .drawing-board-canvas {
	touch-action: pan-y;
}

.drawing-board-control-colors-current::after {
  content: "";
  position: absolute;
  bottom: 2;
  right: 0;
  width: 97%; 
  height: 15px;
  background: linear-gradient(45deg, #ff0000, #ff8000, #ffff00, #80ff00, #00ff00, #00ff80, #00ffff, #0080ff, #0000ff, #8000ff, #ff00ff, #ff0080, #ff0000);
}

.response-container {
	display: none;
	font-size: 22px;
	padding: 10px;
	margin-bottom: 10px;
	text-align: center;
	margin-top: -30px;
}

.response-container.show {
	display: block;
}

#drawing.slide-up {
	animation: slideUp 1.2s ease-in-out forwards;
}

@keyframes slideUp {
	0% {
		transform: translateY(0);
		opacity: 1;
	}
	100% {
		transform: translateY(-20px);
		opacity: 0.95;
	}
}

.drawing-board-controls {
	transition: opacity 0.4s ease-in-out;
	position: relative;
	z-index: 100;
}

.drawing-board-controls.hidden {
	display: none !important;
}

.response-container.loading {
	animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
	0%, 100% {
		opacity: 1;
	}
	50% {
		opacity: 0.5;
	}
}

.response-container.error {
	color: #d32f2f;
	font-weight: 700;
}

.prompt-link {
	cursor: pointer;
}

.prompt-link:hover {
	opacity: 0.8;
}

/* Modal styles */
.modal {
	display: none;
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
	background-color: #e7e7e7;
	margin: 5% auto;
	border: 2px solid black;
	border-radius: 10px;
	width: 90%;
	max-width: 500px;
	max-height: 80vh;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	text-align: center;
}

.modal-header {
	position: sticky;
	top: 0;
	background-color: #e7e7e7;
	padding: 20px;
	padding-bottom: 10px;
	z-index: 10;
}

.modal-content h2 {
	margin-bottom: 10px;
}

.modal-subtitle {
	font-size: 22px;
	margin-bottom: 10px;
	color: #666;
}

#promptList {
	padding: 20px;
	padding-top: 0px;
	overflow-y: auto;
	flex: 1;
}

.close {
	color: black;
	float: right;
	font-size: 35px;
	font-weight: bold;
	cursor: pointer;
	line-height: 20px;
}

.close:hover {
	opacity: 0.7;
}

.prompt-item {
	background: white;
	border: 2px solid black;
	border-radius: 10px;
	padding: 15px;
	margin-bottom: 10px;
	cursor: pointer;
}

.prompt-item.active-prompt {
	background: #6AAA64;
	color: white;
	cursor: default;
}

.prompt-day {
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 5px;
}

.prompt-name {
	font-size: 20px;
	margin-bottom: 5px;
}

.prompt-score {
	font-size: 18px;
}

.prompt-score.completed {
	color: #6AAA64;
}

.prompt-item.active-prompt .prompt-score.completed {
	color: white;
}

.prompt-score.incomplete {
	color: #999;
}

.prompt-item.active-prompt .prompt-score.incomplete {
	color: rgba(255, 255, 255, 0.7);
}

/* Star rating styles */
.star-rating {
	display: flex;
	justify-content: center;
	gap: 5px;
	margin-bottom: 20px;
	opacity: 0;
	animation: fadeInStars 0.8s ease-in-out forwards;
}

@keyframes fadeInStars {
	0% {
		opacity: 0;
		transform: scale(0.5);
	}
	100% {
		opacity: 1;
		transform: scale(1);
	}
}

.star {
	width: 40px;
	height: 40px;
	display: inline-block;
	object-fit: contain;
	animation: starPop 0.4s ease-out forwards;
}

@keyframes starPop {
	0% {
		transform: scale(0);
	}
	50% {
		transform: scale(1.2);
	}
	100% {
		transform: scale(1);
	}
}

/* Modal stars */
.modal-stars {
	display: inline-block;
	margin-left: 5px;
	white-space: nowrap;
}

.modal-stars .star {
	width: 18px;
	height: 18px;
	display: inline-block;
	object-fit: contain;
	animation: none;
	margin: 0 1px;
	vertical-align: middle;
}


#drawing{
	border: 2px solid black!important;
	background-color: white;
	box-sizing: content-box;
}

.drawing-board-controls{
	margin-top: -2px;
    margin-left: -2px;
	width: calc(100% + 4px);
}

.drawing-board-canvas{
	border: none;
	width: calc(100% + 4px);
}