.modal-overlay {
	display: none;
	position: fixed;
	z-index: 9999;
	top: 0;
	left: 0;
	height: 100dvh;
	width: 100vw;
	background: rgba(0, 0, 0, 0.7);
	justify-content: center;
	align-items: center;
	padding: 10px;
	box-sizing: border-box;
}

.modal {
	background: #ffffff;
	padding: 20px;
	max-width: 700px;
	width: 100%;
	border-radius: 10px;
	max-height: 85vh;
	overflow-y: auto;
	box-sizing: border-box;
}

#giphy-results {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
}

#giphy-results img {
	height: auto;
	cursor: pointer;
	border-radius: 6px;
	transition: transform 0.2s;
}

#giphy-results img:hover {
	border-color: #3b82f6;
	box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.5);
}

input#giphy-search {
	width: 95%;
	padding: 8px;
	margin-bottom: 12px;
}

.close-modal {
	background-color: #f44336;
	color: white;
	border: none;
	padding: 10px 20px;
	margin-top: 10px;
	border-radius: 5px;
	cursor: pointer;
}

.poweredby {
	float: right;
	width: 80px;
	margin-top: 10px;
}

@media (max-width: 600px) {
	#giphy-results img {
		width: 80px;
	}
	
	.modal {
		padding: 15px;
		border-radius: 8px;
	}
	
	#open-giphy-modal {
		width: 100%;
		box-sizing: border-box;
	}

	input#giphy-search {
		width: 100%;
		font-size: 16px;
	}
}
