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

h2{
	text-align: center;
	margin-top: 20px;
	font-size: 40px;
}
.search-container{
	margin-top: 50px;
	position: relative;
	display: flex;
  	justify-content: center; /* Horizontally center */
}
.search-container input{
	width: 350px;
	font-size: 18px;
	padding: 10px 20px;
	border-radius: 25px;
	border: none;
	box-shadow: 0px 2px 5px rgba(0,0,0, 0.2);
	transition: 0.4s ease-in-out;
}
.search-container input:focus{
	width: 450px;
}
.search-container i{
	position: absolute;
	top: 50%;
	right: 20px;
	transform: translateY(-50%);
	color: #555;
	cursor: pointer;
}

#drop-area{
	width: 400px;
	width: 300px;
	background: #fff;
	text-align: center;
	border-radius: 20px;
}

#img-view{
	width: 550px;
	height: 450px;
	border-radius: 20px;
	border: 2px dashed #bbb5ff;
	background: #f7f8ff;
}

form{
	margin: 50px auto;

	width: 550px;
	height: 450px;
}

#img-view img{
	margin-top: 25px;
	height: 300px;
	width: 200px;

}


#img-view span{
	display: block;
	font-size: 12px;
	color: #777;
	margin-top: 15px;
}

.gallery{
	margin-top: 90px;
	margin-left: 20px;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
  	justify-items: center;
}

.gallery-img{
	margin-top: 60px;
	box-shadow: 0 32px 75px rgba(66,77,136, 0.2);
}
img {
	border-radius: 25px;
	height: 500px;
	width: 400px;
}

.gallery img:hover{
	transform: scale(0.8) rotate(-15deg);
}

.full-img{
	width: 100%;
	height: 100vh;
	display: none;
	flex-direction: column;
	top: 0;
	left: 0;
	align-items: center;
	justify-content: center;
	z-index: 100;

}

.full-img #imageClicked{
	width: 70%;
	height: 600px;
	left: 50%;
	position: relative;
    transform: translateX(-50%);
	margin-top: 100px;
	max-width: 500px;
}

.full-img span{
	position: absolute;
	top: 15%;
	right: 5%;
	font-size: 30px;
	color: black;
	cursor: pointer;
}

.titleTextArea{
	text-align: center;
	margin-top: 50px;
	font-size: 26px;
	font-weight: bold;
	width: 50%;
	margin-left: auto;
	margin-right: auto;
}
.descriptionTextArea{
	text-align: center;
	margin-top: 20px;
	font-size: 20px;
	width: 50%;
	margin-left: auto;
	margin-right: auto;
}

.textareaContainer{
	display: flex;
	flex-direction: column;
	justify-content: center;
}

#img-view{
	margin-top: 30px;
	display: block;
	margin-left: auto;
	margin-right: auto;
}

#msg{
	position: absolute;
  	left: 50%;
  	transform: translateX(-50%);
  	top: 700px;
}

#second-form{
	display: none;
}
.clicked-gallery{
	display: flex;
	flex-direction: column;
	align-items: center; 
}

.delete-item-btn{
	margin-top: 10px;
	background-color: #f44336; /* Red background */
	color: white; /* White text */
	padding: 10px 20px;
	border: none;
	border-radius: 5px; /* Slightly rounded corners */
	cursor: pointer;
	font-size: 16px;
	font-weight: bold;
	transition: background-color 0.3s ease; /
}
.delete-item-btn:hover {
  background-color: #d32f2f; /* Darker red on hover */
}


@media all and (max-width: 1200px){
	.gallery{
		grid-template-columns: repeat(2, 1fr);
	}
}

@media all and (max-width: 800px){
	.full-img img{
		height: 400px;
		width: 70%;
	}

	.search-container input{
		width: 250px;
	}
	.search-container input:focus{
		width: 350px;
	}
	#img-view{
		height: 300px;
		width: 250px;
	}
	.gallery-img img {
		height: 200px;
		width: 150px;
		border: 5px solid #555;
	}
	form{
		height: 200px;
		width: 250px;
	}
	#img-view img {
		height: 200px;
	}
	.full-img #imageClicked{

		height: 400px;

	}
	#msg{
		position: absolute;
	  	left: 50%;
	  	transform: translateX(-50%);
	  	top: 600px;
	}

}
@media all and (max-width: 700px){
	.gallery{
		grid-template-columns: repeat(2, 1fr);
	}
	.gallery img{
		width: 150px;
		height: 200px;
	}
	form{
		width: 250px;
	}
}