* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Schoolbell', cursive;
  background: white;
  color: black;
  min-height: 100vh;
  padding: 20px;
}

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

/* Header */
.header {
  text-align: center;
  margin-bottom: 40px;
}

.header h1 {
  font-size: 4rem;
  color: black;
  margin-bottom: 20px;
}

/* Main Content Layout */
.main-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

/* Canvas Section */
.canvas-section {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.canvas-wrapper {
  width: 400px;
  height: 400px;
  position: relative;
  background: white;
  margin-bottom: 30px;
}

.base-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 2;
}

.background-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 1;
}

.accessory-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 10;
}

.drawing-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'><path d='M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z' fill='%23333'/></svg>") 2 20, auto;
  z-index: 20;
}

.canvas-controls {
  display: flex;
  gap: 30px;
}

/* Customization Panel */
.customization-panel {
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: auto;
}

/* Accessory Sections */
.accessory-section {
  margin-bottom: 20px;
}

.accessory-section:last-child {
  margin-bottom: 0;
}

.accessory-section h3 {
  font-size: 1.5rem;
  color: black;
}

/* Accessories Carousel */
.accessories-carousel {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  padding: 10px 0;
}

.accessory-item {
  width: 60px;
  height: 60px;
  cursor: pointer;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.accessory-item:hover {
  opacity: 0.7;
}

.accessory-item.active {
  opacity: 0.5;
}

.accessory-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Buttons */
.btn {
  background: none;
  border: none;
  font-family: 'Schoolbell', cursive;
  font-size: 2rem;
  font-weight: 600;
  color: black;
  cursor: pointer;
  text-decoration: none;
}

/* Scrollbar Styling */
.accessories-grid::-webkit-scrollbar {
  width: 6px;
}

.accessories-grid::-webkit-scrollbar-track {
  background: transparent;
}

.accessories-grid::-webkit-scrollbar-thumb {
  background: #ccc;
}

.accessories-grid::-webkit-scrollbar-thumb:hover {
  background: #999;
}

/* Drawing Controls */
.drawing-controls {
  margin: 15px 0;
}

.drawing-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Schoolbell', cursive;
  font-size: 1.1rem;
}

.drawing-tools label {
  color: black;
}

.drawing-tools input[type="range"] {
  width: 80px;
}

.drawing-tools input[type="color"] {
  width: 40px;
  height: 30px;
  border: 2px solid black;
  cursor: pointer;
}

.clear-btn {
  font-size: 1.1rem !important;
}

.tool-mode {
  display: flex;
  gap: 5px;
}

.mode-btn {
  font-size: 1rem !important;
  padding: 5px 10px;
  border: 2px solid black;
  background: white;
  border-radius: 5px;
}

.mode-btn.active {
  background: black;
  color: white;
}

.mode-btn:hover {
  opacity: 0.7;
}

.canvas-controls {
  gap: 64px;
  margin-left: -20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .main-content {
    grid-template-columns: 1fr;
  }
  
  .canvas-wrapper {
    width: 350px;
    height: 350px;
  }
  
  .header h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  body {
    padding: 15px;
  }
  
  .canvas-wrapper {
    width: 300px;
    height: 300px;
  }
  
  .header h1 {
    font-size: 2rem;
  }
  
  .accessory-item {
    width: 50px;
    height: 50px;
  }
  
  .canvas-controls {
    flex-direction: column;
    gap: 15px;
  }
}

/* Recent Jorlps Carousel */
.recent-jorlps-section {
  margin-top: 10px;
  padding: 40px 0;
  width: 100%;
}

.recent-jorlps-section h2 {
  font-family: 'Schoolbell', cursive;
  font-size: 1.6rem;
  color: black;
  text-align: center;
  margin-bottom: 10px;
}

.recent-jorlps-carousel {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.carousel-track {
  display: flex;
  gap: 20px;
  animation: scroll 60s linear infinite;
  width: max-content;
}

.carousel-track:hover {
  animation-play-state: paused;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.recent-jorlp {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  background: white;
  cursor: pointer;
  transition: transform 0.2s;
}

.recent-jorlp:hover {
  transform: scale(1.05);
}

.recent-jorlp img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .recent-jorlps-section h2 {
    font-size: 2rem;
  }
  
  .recent-jorlp {
    width: 80px;
    height: 80px;
  }
  
  .carousel-track {
    gap: 15px;
  }
} 