body {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: Arial, sans-serif;
  background: rgb(145, 145, 238);
  min-height: 100vh;
}




/* ------------------------------------------------------------------------------------ */

/* === NAVBAR === */
.navbar {
  position: sticky;
  top: 0;
  width: 97%;
  background: #000; /* siyah */
  color: #fff;
  border-radius: 30px;
  align-items: center;
  text-align: center;
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-left .logo {
  border-radius: 50%;
  width: 50px;
  height: 50px;
}

.nav-left .site-desc {
  font-size: 1.2em;
  font-weight: bold;
  text-align: center;
  align-items: center;
   background: linear-gradient(135deg, #5a25d4, #a8edea);
   width: 220px;
  height: 30px;
  border-radius: 50px;
}


.nav-left .site-desc:hover {
  font-size: 1.2em;
  font-weight: bold;
  text-align: center;
  align-items: center;
   background: rgb(18, 18, 143);
   color: yellow;
   width: 220px;
  height: 30px;
  border-radius: 50px;
}



.nav-right a {
  background: linear-gradient(135deg, #5a25d4, #a8edea);
  color: white;
  padding: 10px 16px;
  margin: 0 5px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-block;
}

.nav-right a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
   background: rgb(18, 18, 143);
   color: yellow;
}






/* Hamburger buton */
.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: white;
}

/* Mobil görünüm */
@media (max-width: 768px) {
  .nav-right {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #5a25d4;
    text-align: center;
    margin-top: 10px;
    border-radius: 8px;
  }

  .nav-right a {
    display: block;
    margin: 10px 0;
  }

  .menu-toggle {
    display: block;
  }

  .nav-right.active {
    display: flex;
  }
}



/* ------------------------------------------------------------------------------------ */


















.title {
  margin: 15px 0;
  font-size: 22px;
  font-weight: bold;
  text-align: center;
  color: #faf6f6;
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  gap: 10px;
  background-color: blue;
  border-radius: 40px;
}

.palette {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  width: 60px;
  gap: 5px;
  justify-content: center;
  align-items: center;
}

.color-btn {
  width: 35px;
  height: 35px;
  border: 2px solid white;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s;
}
.color-btn:hover {
  transform: scale(1.2);
}

.canvas-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  
}

canvas {
  border: 2px solid #333;
  max-width: 100%;
  height: auto;
  touch-action: none;
  background-color: white;
  box-shadow: 0px 0px 15px rgba(0,0,0,0.3);
   border-radius: 40px;
}

.tools {
  margin: 15px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  color: blue;
  font-weight: bolder;
}

button, input[type="range"], select, label.upload-btn {
  padding: 6px 12px;
  font-size: 15px;
  cursor: pointer;
  border-radius: 10px;
  border: 2px solid #f3efef;
  background: #df2e2e;
  color: white;
  transition: background 0.2s;
}
button:hover, label.upload-btn:hover {
  background: black;
  color: white;
}

/* Mobil uyum */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }
  .palette {
    flex-direction: row;
    flex-wrap: wrap;
    width: 90%;
    margin: 5px 0;
  }
  .color-btn {
    width: 30px;
    height: 30px;
  }
  .title {
    font-size: 18px;
  }
}
