body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: url('texture.jpg');
  background-size: cover;
  color: #ffffff;
  text-shadow: 0 0 8px #ff0000;
}

/* Blue scrollbars */
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: #001133; }
::-webkit-scrollbar-thumb { background: #0066ff; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #3399ff; }

/* Top banner */
#top-banner {
  width: 100%;
  display: block;
  border-bottom: 3px solid #ff0000;
}

/* Links */
a {
  color: #00aaff;
  text-decoration: none;
  font-weight: bold;
}
a:hover {
  color: #ff0044;
  text-shadow: 0 0 10px #ff0044;
}

/* Layout */
#container {
  padding: 20px;
  padding-bottom: 60px;
  backdrop-filter: blur(4px);
}

/* Buttons */
.texture-btn {
  padding: 6px 12px;
  margin: 3px;
  border: 2px solid #0066ff;
  background: rgba(0,0,40,0.7);
  color: #fff;
  cursor: pointer;
  transition: 0.2s;
  text-shadow: 0 0 6px #ff0000;
  font-size: 12px;
}
.texture-btn:hover {
  background: #0066ff;
  border-color: #ff0000;
  box-shadow: 0 0 15px #ff0000;
}

/* Controls */
#controls {
  margin: 15px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.control-group {
  display: flex;
  align-items: center;
  gap: 6px;
}
.control-group label {
  font-size: 14px;
}

/* Preview */
#preview {
  width: 90vw;
  max-width: 512px;
  aspect-ratio: 1 / 1;
  margin-top: 20px;
  border: 3px solid #0066ff;
  box-shadow: 0 0 20px #ff0000;
  position: relative;
}
#textureCanvas {
  width: 100%;
  height: 100%;
  display: block;
}
#watermark {
  position: absolute;
  bottom: 5px;
  right: 5px;
  font-size: 14px;
  opacity: 0.6;
  text-shadow: 0 0 6px #000;
  pointer-events: none;
}

/* Download button */
#downloadBtn {
  margin-top: 15px;
  padding: 10px 20px;
  border: 2px solid #ff0000;
  background: rgba(0,0,40,0.8);
  color: #fff;
  cursor: pointer;
  text-shadow: 0 0 6px #0066ff;
  transition: 0.2s;
}
#downloadBtn:hover {
  background: #ff0000;
  border-color: #0066ff;
  box-shadow: 0 0 15px #0066ff;
}

/* Button grid */
#buttons {
  display: flex;
  flex-wrap: wrap;
  max-width: 520px;
}

/* Texture search panel */
#texture-search-panel {
  margin-top: 20px;
  max-width: 520px;
}
#textureSearch {
  width: 100%;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(30,144,255,0.6);
  background: rgba(3,12,40,0.95);
  color: #e5f0ff;
  outline: none;
  box-shadow: 0 0 0 rgba(0,0,0,0);
  transition: border-color .2s, box-shadow .2s, background .2s, transform .15s;
}
#textureSearch:focus {
  border-color: #1e90ff;
  box-shadow: 0 0 18px rgba(30,144,255,0.8);
  background: #020b2a;
  transform: translateY(-1px);
}
#textureResults {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}
.texture-result {
  background: radial-gradient(circle at top, #041b3b 0, #020b2a 40%, #020617 100%);
  border: 1px solid rgba(30,144,255,0.35);
  padding: 8px 10px;
  border-radius: 10px;
  color: #e5f0ff;
  font-size: 13px;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.texture-result:hover {
  transform: translateY(-2px) scale(1.01);
  border-color: #ffd447;
  box-shadow: 0 0 18px rgba(30,144,255,0.8);
}

/* Current style title */
#currentStyleTitle {
  margin-top: 20px;
  font-size: 18px;
  color: #35e9f5;
}

/* Full-width banner */
.fullwidth-banner {
  width: 100%;
  margin: 40px 0 20px;
  display: flex;
  justify-content: center;
  padding: 0 10px;
  box-sizing: border-box;
}
.fullwidth-banner img {
  width: 100%;
  max-width: 1200px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(30,144,255,0.6);
  transition: transform .25s ease, box-shadow .25s ease;
}
.fullwidth-banner img:hover {
  transform: scale(1.02);
  box-shadow: 0 0 35px rgba(255,212,71,0.9);
}

/* Copyright */
#copyright {
  margin-top: 40px;
  text-align: center;
  opacity: 0.7;
  font-size: 14px;
}

/* Mobile */
@media (max-width: 600px) {
  #controls {
    flex-direction: column;
    align-items: flex-start;
  }
  #buttons {
    max-width: 100%;
  }
  #textureResults {
    grid-template-columns: 1fr;
  }
}
