@font-face {
    font-family: 'ClipRegular';
    src: url('/wp-content/plugins/imagen/clip.regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

#history {
	display: flex;
	flex-wrap: wrap;
	flex-direction: row;
	justify-content: center;
	gap: 4px;
}
#history img {
	width: 64px
}

#result {
	width: 512px;
	min-height: 512px;
	margin: 0 auto 0px auto;
	text-align: center;
	position: relative;
}

#result h3 {
	line-height: 20px;
    font-weight: 100;
	padding: 0 40px;
	font-style: italic;
}

#result h3:before {
	font-family: "Font Awesome 5 Free";
    content: "\f24d";
    position: absolute;
    right: 50%;
    transform: translateX(256px);
	user-select: none; 
	font-style: normal;
}
#adjustments {
    margin: 0;
    text-align: center;
}
#adjustments span {
    margin: 0 20px;
}
#prompt-container {
	margin: 30px 0;
}
#prompt {
    width: calc(100% - 120px) !important;
    border-radius: 3px !important;
    filter: drop-shadow(0px 0px 6px #E65219) !important;
    background-color: #222e !important;
    border: 1px solid #E65219 !important;
    box-shadow: inset 0 0 10px #fff4 !important;
    margin-right: 10px !important;
    font-size: 30px !important;
    letter-spacing: 2px;
    font-family: 'ClipRegular', sans-serif !important;
    text-shadow: 0 0 5px #fff, 0 0 10px #fff;
    color: #fe9 !important;
}
#generer {
	width: 110px;
	margin: -23px 0 !important;
	height: 120px;
	background-color: transparent !important;
	padding: 0px !important;
}


#status {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate3d(-50%, -50%, 0);
	min-width: 90%;
	font-family: 'Courier New', Courier, monospace !important;

}

/* The Modal (background) */
.modal {
	display: none; /* Hidden by default */
	position: fixed; /* Stay in place */
	z-index: 9999; /* Sit on top */
	padding-top: 100px; /* Location of the box */
	left: 0;
	top: 0;
	width: 100%; /* Full width */
	height: 100%; /* Full height */
	overflow: hidden; /* Enable scroll if needed */
	background-color: rgb(0,0,0); /* Fallback color */
	background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}

/* Modal Content (image) */
.modal-content {
    margin: auto;
    display: block;
    max-height: 90%;
}

/* Caption of Modal Image */
#caption {
	margin: auto;
	display: block;
	width: 80%;
	max-width: 700px;
	text-align: center;
	color: #ccc;
	padding: 10px 0;
	height: 150px;
}

/* Add Animation */
.modal-content, #caption {  
	animation-name: zoom;
	animation-duration: 0.6s;
}

@keyframes zoom {
	from {transform:scale(0)} 
	to {transform:scale(1)}
}

/* The Close Button */
.close {
    position: absolute;
    top: 7%;
    right: calc(50% - 482px);
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    z-index: 9999;
    filter: drop-shadow(0px 0px 3px black);
}

.close:hover,
.close:focus {
	color: #bbb;
	text-decoration: none;
	cursor: pointer;
}

.image-container {
    position: relative;
    display: inline-block;
    height: 64px;
}

.image-container img {
	cursor: pointer;
}

.delete-image {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: red;
    color: white;
    border: none;
    cursor: pointer;
}

.delete-image:before {
    content: "\f2ed";
    font-family: "Font Awesome 5 Free";
    position: absolute;
    right: 50%;
    user-select: none;
    top: 50%;
    transform: translate3d(50%, -50%, 0px);
	filter: drop-shadow(0px 0px 2px black);
}
button.delete-image {
    padding: 9px !important;
    display: block;
    clear: both;
    position: absolute !important;
    right: 0px;
    width: 20px;
    top: -3px !important;
}

div#result button {
    position: absolute;
    bottom: 70px;
    padding: 0 !important;
    font-size: 30px !important;
    margin: 20px;
    background-color: transparent !important;
    filter: drop-shadow(1px 1px 3px black);
}

@media (max-width: 500px) {
    #result {
		max-width: 90%;
		min-height: 400px;
	}
	#result button {
		padding: 5px 10px !important;
	}
	.close {
		top: 110px;
		right: 16px;
		filter: drop-shadow(2px 4px 6px black);
	}
	#generer {
		padding: 0 !important;
		width: 100%;
		height: 95px;
	}
	#generer img {
		max-height: 95px;
	}
	#prompt {
		width: calc(100% - 0px) !important;
	}
	span.imageAdjustment {
		display: block;
		padding: 10px 0;
	}
}

#adjustments {
	display: none;
}