@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;700;800;900&display=swap");

@font-face {
  font-family: "Iceland";
  src: url("../fonts/Iceland-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  list-style: none;
  font-family: "Inter", sans-serif;
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}
:root {
  --dark: #222222;
  --light: #ffffff;
  --success: #0abf30;
  --error: #e24d4c;
  --warning: #e9bd0c;
  --info: #3498db;
}

body {
  background: #fff;
}
a {
  text-decoration: none !important;
}
a:hover {
  text-decoration: none !important;
}

img {
  width: 100%;
}

.content-container {
  max-width: 1200px;
  margin: 0 auto;
}

/*<!========---# Landing Screen ----=======>*/
.landing-screen {
  width: 100%;
  height: 100vh;
  background: var(--dark);
  background: url("../images/landing-page-bg.svg") no-repeat center center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 40px;
  justify-content: center;
}
.landing-screen img {
  width: 300px;
  margin-bottom: 40px;
}

.landing-screen li {
  font-size: 42px;
  font-weight: 400;
  color: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  text-transform: uppercase;
  font-family: "Iceland", "Inter", sans-serif;
}
.landing-screen .landing-next-btn {
  display: block;
  width: 50px;
  height: 50px;
  border-radius: 50%;

  background-color: transparent;
  background-image: url("../images/next-button.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-size: 160%;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    filter 0.25s ease;
}
.landing-screen .landing-next-btn:hover {
  transform: scale(1.06);
  filter: brightness(1.08);
  box-shadow:
    0 14px 36px rgba(30, 110, 190, 0.45),
    0 0 0 1px rgba(120, 200, 255, 0.18);
}
.landing-screen .landing-next-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 4px;
}

/* Hide landing logo only — keep layout space + headline text (do not remove DOM) */
.landing-screen > img {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/*<!========---# Draw Sketch ----=======>*/
.draw-sketch {
  background: var(--dark);
  width: 100%;
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.draw-sketch .right-panel,
.draw-sketch .left-panel {
  width: 18%;
  height: 80vh;
  background: #333333;
}
.draw-sketch .center-panel {
  width: 55%;
  height: 60vh;
  position: relative;
}

.draw-sketch .center-panel canvas {
  width: 100%;
  height: 100%;
  max-width: 700px;
  max-height: 700px;
}
.draw-sketch .center-panel .tool-panel {
  width: 70%;
  left: 15%;
  position: absolute;
  overflow: hidden;
  bottom: 100%;
  top: -100px;
  height: 70px;
  background: #333333;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

.draw-sketch .center-panel .tool-panel #tools {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.draw-sketch .center-panel .tool-panel .tool i {
  font-size: 30px;
}
.draw-sketch .center-panel .tool-panel .tool {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}
.draw-sketch .center-panel .tool-panel .tool.tool-selected {
  background: #3498db;
}

.draw-sketch .center-panel .tool-panel #size-picker,
.draw-sketch .center-panel .tool-panel #color-picker {
  display: none;
}
.draw-sketch .center-panel .ai-images {
  width: 100%;
  height: 100%;
  display: block;
}

.draw-sketch .center-panel .ai-images img {
  object-fit: contain;
  object-position: center;
  width: 100%;
  height: 100%;
}
.draw-sketch .center-panel .btn-box {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 20px 0;
  width: 100%;
}
.draw-sketch .center-panel .refresh-btn {
  width: fit-content;
  padding: 10px 20px;
  margin: 0 auto;
  border: 3px solid var(--light);
  border-radius: 20px;
  color: var(--light);
}
.draw-sketch .center-panel .refresh-btn:hover {
  background: var(--light);
  color: var(--dark);
  font-weight: 600;
}

/*<!========---# Right panel ----=======>*/

.draw-sketch .right-panel {
  background: #333333;
  border-radius: 10px;
}

.draw-sketch .right-panel h3 {
  padding: 20px;
  color: var(--light);
  font-size: 22px;
  font-weight: 600;
  text-transform: capitalize;
}
.draw-sketch .right-panel p {
  padding: 20px;
  color: var(--light);
  font-size: 16px;
  font-weight: 400;
}
.draw-sketch .right-panel .prompts {
  padding: 10px 20px;
  width: 100%;
  height: 200px;
  position: relative;
  display: flex;
  align-content: center;
  gap: 5px;
}
.draw-sketch .right-panel .prompts li {
  width: 50px;
  height: 50px;
  border-radius: 4px;
  overflow: hidden;
  border: 3px solid transparent;
  cursor: pointer;
}

.draw-sketch .right-panel .prompts li.active {
  border: 3px solid #3498db;
}

.draw-sketch .right-panel .prompts li img {
  object-fit: cover;
  object-position: center;
  height: 100%;
}
.draw-sketch .right-panel .style {
  display: flex;
  align-items: center;
  gap: 15px;
}
.draw-sketch .right-panel .style ul {
  position: relative;
}

.draw-sketch .right-panel .style ul li {
  display: flex;
  align-items: center;
}

.draw-sketch .right-panel .style ul li img {
  width: 25px;
  height: 25px;
}

.draw-sketch .right-panel .style {
  padding: 10px 20px;
}
.draw-sketch .right-panel .style span {
  color: #f2f2f2;
}

.draw-sketch .right-panel .style .dropdown {
  position: relative;
  display: inline-block;
}

.draw-sketch .right-panel .style .dropdown-toggle {
  color: white;
  padding: 6px;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  background: #555353;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}
.draw-sketch .right-panel .style img {
  width: 20px;
  height: 20px;
  object-fit: cover;
  object-position: center;
}

.draw-sketch .right-panel .style .dropdown-menu {
  display: none; /* Hide menu by default */
  position: absolute;
  background: #555353;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.draw-sketch .right-panel .style .dropdown-menu li {
  padding: 3px;
  cursor: pointer;
  font-size: 12px;
  text-align: left;
}

.draw-sketch .right-panel .style .dropdown-menu li img {
  vertical-align: middle;
  margin-right: 10px;
  width: 20px;
  height: 20px;
}

.draw-sketch .right-panel .style .dropdown-menu li.active {
  background-color: #ddd; /* Highlight active item */
}

.draw-sketch .right-panel .style .dropdown-menu li:hover {
  background-color: #f1f1f1;
}

.draw-sketch .right-panel .style .dropdown-menu.show {
  display: block; /* Show menu when class 'show' is added */
}
.draw-sketch .right-panel .submit-box {
  text-align: center;
  padding: 20px;
}
.draw-sketch .right-panel .submit-box h2 {
  font-size: 20px;
  color: #f1f1f1;
}
.draw-sketch .right-panel .submit-box .tool {
  padding: 8px 20px;
  border-radius: 20px;
  width: 150px;
  margin: 0 auto;
  border: 3px solid var(--light);
  color: var(--light);
  margin-top: 20px;
}
.draw-sketch .right-panel .submit-box .tool:hover {
  background: var(--light);
  color: #222222;
  cursor: pointer;
}
.draw-sketch .left-panel {
  padding: 24px;
}
.draw-sketch .qr-container {
  height: 300px;
  display: block;
}
.draw-sketch .qr-container #qrcode {
  width: 150px;
}
.draw-sketch .left-panel h2 {
  font-size: 22px;
  color: var(--light);
  font-weight: 600;
  text-align: center;
}

.draw-sketch .right-panel .pick-style {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 20px;
}

.draw-sketch .right-panel .pick-style div {
  width: 100%;
  padding: 10px;
  background: #555353;
  color: #fff;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  user-select: none;
}
.draw-sketch .right-panel .pick-style div.active {
  border: 2px solid #fff;
}

@media (min-width: 900px) {
  .draw-sketch .right-panel .pick-style {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* -----------------------------
   Responsive: legacy draw page
   ----------------------------- */
@media (max-width: 1024px) {
  .draw-sketch {
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    padding: 14px;
    height: auto;
    min-height: 100vh;
  }

  .draw-sketch .left-panel,
  .draw-sketch .right-panel {
    width: min(520px, 100%);
    height: auto;
  }

  .draw-sketch .center-panel {
    width: min(820px, 100%);
    height: 62vh;
  }

  .draw-sketch .center-panel .tool-panel {
    width: min(520px, 92%);
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 520px) {
  .draw-sketch .center-panel {
    height: 56vh;
  }

  .draw-sketch .center-panel .tool-panel #tools {
    gap: 12px;
  }

  .draw-sketch .center-panel .tool-panel .tool {
    width: 52px;
    height: 52px;
  }

  .draw-sketch .center-panel .tool-panel .tool i {
    font-size: 24px;
  }
}

/* -----------------------------
   Responsive: landing screen
   ----------------------------- */
@media (max-width: 768px) {
  .landing-screen {
    gap: 26px;
    padding: 24px 16px;
    text-align: center;
  }

  .landing-screen img {
    width: min(300px, 72vw);
    margin-bottom: 10px;
  }

  .landing-screen li {
    font-size: 28px;
    gap: 16px;
    flex-wrap: wrap;
  }
}

@media (max-width: 420px) {
  .landing-screen li {
    font-size: 22px;
  }

  .landing-screen .landing-next-btn {
    width: 52px;
    height: 52px;
  }
}
