:root {
  --frame-size: 15px; /* Default thickness; JS will override */
  --shadow-opacity: 0.3; /* Shadow opacity */
  --font-family: "Roboto", sans-serif;
  --primary-color: #3172d3;
  --secondary-color: #ffffff;
  --hover-color: #0e458d;
  --border-radius: 8px;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body {
  font-family: sans-serif;
  margin: 0;
  padding-top: 20px; /* Add spacing at the top */
  background: #f0f0f0;
  display: flex;
  justify-content: center;
  background-image: url("/assets/bg.jpg"); /* Replace with your image filename */
  background-size: cover; /* Ensures the image covers the entire window */
  background-position: center; /* Centers the image */
  background-repeat: no-repeat; /* Prevents tiling */
  background-attachment: fixed; /* Keeps the image fixed during scrolling */
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  overflow: hidden;
}

.controls {
  position: fixed;
  width: 330px;
  bottom: 10px;
  right: 10px;
	padding: 15px 15px 0 15px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  font-family: var(--font-family);
  font-size: 14px;
  color: #333;
  backdrop-filter: blur(10px); /* Apply blur to the background */
  -webkit-backdrop-filter: blur(10px); /* Safari support */
  border: 1px solid rgba(255, 255, 255, 0.5); /* Optional: Adds a subtle border to enhance the glass effect */
  z-index: 9999; /* Ensure it appears on top of other elements */
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.controls > div {
  margin-bottom: 15px;
}
.controls hr {
  border: 0;
  height: 1px;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.877), rgba(255, 255, 255, 0));
  margin-bottom: 20px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); /* Adds the engraved effect */
  color: #d3ba96;
}
.controls .control label {
  margin-right: 0;
}
.controls .control {
  position: relative; /* Ensure the span is positioned relative to this container */
  display: flex;
  gap: 0.5rem;
}
.controls .control label {
  position: relative; /* Ensure label is above the span */
  z-index: 2; /* Keep the label above the span */
  display: block;
  font-weight: 600;
  color: var(--primary-color);
  flex: 0 0 130px;
}
.controls .control select {
  flex: 1;
}
.controls .control span {
  z-index: 1; /* Send span behind the label */
  opacity: 0.7; /* Optional: Adjust visibility to make it less prominent */
  font-weight: 600;
  flex: 0 0 40px;
  text-align: right;
}
.controls .control input[type=range] {
  width: 200px;
}
.controls .control button {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border: none;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.controls .control button:hover {
  background-color: var(--hover-color);
}
.controls .control button:active {
  transform: scale(0.98);
}

.frame-wrapper {
  position: relative;
  display: inline-block;
  transform: translateY(var(--vertical-transform, 0px));
}
.frame-wrapper:after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: 10px;
  width: 43px;
  height: 34px;
  background-image: url("/assets/label.png");
  z-index: 9999;
}
.frame-wrapper .frame-shine {
  position: absolute;
  top: 1px;
  left: 0;
  right: 0;
  height: calc(var(--frame-size) - var(--frame-size) * 0.3 - 3);
  background: linear-gradient(to right, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0));
  z-index: 99999;
  opacity: var(--shine-opacity);
}
.frame-wrapper .frame-shine::after {
  content: "";
  position: absolute;
  top: calc(var(--frame-size) - var(--frame-size) * 0.3);
  bottom: 0;
  left: 0;
  width: calc(var(--frame-size) - var(--frame-size) * 0.3); /* Controlled by frameWidth slider */
  height: var(--after-height, 0); /* Dynamic height from JS */
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0));
  z-index: 99999; /* Ensure it appears on top */
}
.frame-wrapper .frame {
  position: relative;
  display: inline-block;
  padding: var(--frame-size);
  box-shadow: 0 3px var(--frame-size) rgba(0, 0, 0, 0.3); /* Frame shadow */
}
.frame-wrapper .frame .image-wrapper {
  position: relative;
  z-index: 1000;
  background-color: black;
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: center;
}
.frame-wrapper .frame img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 3px; /* Add rounded corners */
  background-color: black;
  z-index: 100 !important;
  outline: 1px solid rgba(0, 0, 0, 0.3);
}
.frame-wrapper .frame .image-bg {
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  bottom: 15px;
  border-radius: 3px; /* Add rounded corners */
  z-index: 1;
}
.frame-wrapper .frame-shadow {
  position: absolute;
  top: 0;
  left: 8px;
  right: 8px;
  height: 30px; /* Initial shadow height */
  background-image: url("/assets/shadow.png");
  background-size: 100% 100%; /* Stretch shadow to fit width */
  background-repeat: no-repeat;
  z-index: -1; /* Place behind the frame */
  transform: translateY(-5px);
  opacity: var(--shadow-opacity);
}
.frame-wrapper .inner-shadow {
  position: absolute;
  top: var(--frame-size);
  left: 5px;
  right: 5px;
  height: 30px; /* Initial shadow height */
  background-image: url("/assets/shadow.png");
  background-size: 100% 100%; /* Stretch shadow to fit width */
  background-repeat: no-repeat;
  transform: translateY(-2px);
  transform: scaleX(98%);
  opacity: var(--shadow-opacity);
  z-index: 99999;
}

.corner {
  position: absolute;
  width: var(--frame-size);
  height: var(--frame-size);
  background-size: 100% 100%;
  background-repeat: no-repeat;
}
.corner-tl {
  top: 0;
  left: 0;
  background-image: var(--bg-corner-tl);
}
.corner-tr {
  top: 0;
  right: 0;
  background-image: var(--bg-corner-tr);
}
.corner-bl {
  bottom: 0;
  left: 0;
  background-image: var(--bg-corner-bl);
}
.corner-br {
  bottom: 0;
  right: 0;
  background-image: var(--bg-corner-br);
}

.side {
  position: absolute;
  background-size: 100% 100%;
  background-repeat: no-repeat;
}
.side-top {
  top: 0;
  left: var(--frame-size);
  right: var(--frame-size);
  height: var(--frame-size);
  background-image: var(--bg-side-top);
  z-index: 99999;
}
.side-bottom {
  bottom: 0;
  left: var(--frame-size);
  right: var(--frame-size);
  height: var(--frame-size);
  background-image: var(--bg-side-bottom);
  z-index: 99999;
}
.side-left {
  top: var(--frame-size);
  bottom: var(--frame-size);
  left: 0;
  width: var(--frame-size);
  background-image: var(--bg-side-left);
  z-index: 99999;
}
.side-right {
  top: var(--frame-size);
  bottom: var(--frame-size);
  right: 0;
  width: var(--frame-size);
  background-image: var(--bg-side-right);
  z-index: 99999;
}

.pattern-picker,
.gradient-picker,
.color-picker {
  width: 200px;
  display: flex;
  gap: 5px;
  flex-wrap: wrap; /* Allow items to wrap to the next line */
}

.color-square,
.pattern-square,
.gradient-square {
  width: 20px;
  height: 20px;
  cursor: pointer;
  border-radius: 3px;
  transition: transform 0.2s ease;
  border: 1px solid rgb(0, 0, 0);
}

.color-square.active,
.pattern-square.active,
.gradient-square.active {
  border: 1px solid rgb(255, 255, 255); /* Inner border */
  outline: 3px solid rgb(45, 45, 45); /* Outer border */
}

.gradient-square:hover,
.pattern-square:hover,
.color-square:hover {
  transform: scale(1.5);
  border-color: rgb(35, 111, 3);
}

.loadsave {
  /* Style for the control container */
  /* Common button styles */
  /* Specific styles for Load button */
  /* Specific styles for Save button */
  /* Specific styles for Copy button */
  /* Specific styles for Paste button */
  /* Style for the textarea */
  /* Adjust spacing between buttons and textarea */
  /* Flash effect for textarea */
  /* Keyframes for the green flash */
}
.loadsave .control {
  display: flex;
  gap: 10px; /* Space between buttons */
  margin: 10px 0 0 0;
  align-items: stretch; /* Ensure children stretch to fill the container */
  justify-content: stretch;
}
.loadsave .control button {
  flex: 1;
  color: white; /* White text */
  height: 30px;
  border: none;
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 13px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.loadsave #loadPresetButton {
  background-color: #4CAF50; /* Green */
}
.loadsave #loadPresetButton:hover {
  background-color: #45a049;
}
.loadsave #loadPresetButton:active {
  background-color: #3e8e41;
}
.loadsave #savePresetButton {
  background-color: #f44336; /* Red */
}
.loadsave #savePresetButton:hover {
  background-color: #e53935;
}
.loadsave #savePresetButton:active {
  background-color: #c62828;
}
.loadsave #copyPresetButton {
  background-color: #2196F3; /* Blue */
}
.loadsave #copyPresetButton:hover {
  background-color: #1e88e5;
}
.loadsave #copyPresetButton:active {
  background-color: #1565c0;
}
.loadsave #pastePresetButton {
  background-color: #2196F3; /* Blue */
}
.loadsave #pastePresetButton:hover {
  background-color: #1e88e5;
}
.loadsave #pastePresetButton:active {
  background-color: #1565c0;
}
.loadsave #presetOutput {
  width: 310px;
  height: 100px;
  padding: 10px;
  font-family: monospace;
  font-size: 10px;
  color: #333;
  border: 1px solid #ccc;
  border-radius: 4px;
  resize: none;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}
.loadsave .control > *:not(:last-child) {
  margin-bottom: 10px;
}
.loadsave .flash-success {
  animation: flash-green 200ms ease-in-out;
}
@keyframes flash-green {
  0% {
    background-color: #d4edda; /* Light green background */
  }
  100% {
    background-color: white; /* Revert to original background */
  }
}/*# sourceMappingURL=styles.css.map */