.qlwapp__container {
    display: none!important;
}

.app-menu {
    display: flex;
    justify-content: center;
    gap: 10px;
    position: absolute;
    right: 20px;
    top: 10px;
	z-index: 1000;
	flex-direction: row-reverse;
}

.app-menu a img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.app-menu a img:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}


#grid-overlay-app {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

canvas {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  position: absolute;
  background: #b6aeae;
  z-index: 0;
  image-rendering: optimizeQuality;
}

#uiSide {
    position: fixed;
    left: 10px;
    top: 50px;
    z-index: 1000;
    padding: 3px;
    display: flex;
    gap: 0;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
	  z-index: 9990;
}

#uiSide button {
    width: 64px;
    height: 64px;
    border: none;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: normal;
    color: #fff;
    text-align: center;
    background: #333;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background 0.3s;
}

#uiSide button span {
    font-size: 0.6rem;
	    margin-top: 5px;
	display:none;
}

button#grayscaleBtn, button#posterizeBtn {
    background: #555 !important;
	pointer-events: auto !important;
  z-index: 9999;
}

#ui {
    position: fixed;
    bottom: 10px;
    left: 0;
    z-index: 1000;
    padding: 6px;
    display: flex;
    gap: 0;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    flex-direction: row;
}

#ui * {
  pointer-events: auto !important;
}

div#qlwapp
 {
    display: none !important;
}

.uiSub {
    width: 100%;
    text-align: center;
    display: flex;
    gap: 0;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    flex-direction: row;
}

#ui button {
  width: 64px;
  height: 64px;
  border: none;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: normal;
  color: #fff;
  text-align: center;
  background: #333;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.3s;
}

#ui button:hover {
  transform: scale(1.1);
}


#fileInputBtn    { background: #1976d2; } 
button#cameraBtn  { background: #f09333!important; } 
button#addGridBtn      { background: #51ba55!important; } 
button#deleteGridBtn   { background: #ff5353!important; } 
button#saveBtn         { background: #8e6ce1!important; }


#ui button span {
  font-size: 0.65rem;
  margin-top: 4px;
  line-height: 1;
	display:none;
}

img.wp-smiley, img.emoji {
	max-width: initial !important;
	display: inline !important;
	border: none !important;
	box-shadow: none !important;
	height: 3em !important;
	width: 3em !important;
	margin: 0 !important;
	vertical-align: 0 !important;
	background: none !important;
	padding: 0 !important;
	/* color: white !important; */
}

.custom-upload-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 64px;
    background-color: #262626;
    color: white;
    font-weight: normal;
    font-size: 0.75rem;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
    margin-right: 10px;
    padding: 0 10px 0 0;
    border-radius: 20px;
}

.custom-upload-btn:hover {
  transform: scale(1.05);
}

.custom-upload-btn img {
  width: 3em;
  height: 3em;
  margin-bottom: 4px;
}

.upload-wrapper {
  position: relative;
  display: inline-block;
  width: auto;
  height: auto;
  margin-inline-end: 10px;
}

.upload-wrapper input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

input[type="file"]::file-selector-button {
  background-color: #111111!important; 
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}