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

body {
  background-color: #000;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #fff;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

canvas {
    margin: 0;
    padding: 0;
}

.fa-ban {
  color: red;
  margin-right: 5px;
}

.form-container {
    display: none; 
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.37);
    width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.5s, transform 0.5s;
}

@media screen and (max-width: 600px) {
  .form-container {
    width: 90%;
  }
}

.form-title {
  display: flex;
  align-items: center;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(45deg, rgba(255,138,0,0.8), rgba(229,46,113,0.8));
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}
.form-title i {
  margin-right: 0.5rem;
}

fieldset {
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 10px;
  margin-bottom: 1rem;
  padding: 1rem;
}
legend {
  padding: 0 0.5rem;
  font-weight: bold;
  font-size: 1.2rem;
}

.form-group {
  margin-bottom: 1rem;
}
label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.slider-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
input[type="range"] {
  -webkit-appearance: none;
  width: 70%;
  height: 8px;
  border-radius: 5px;
  background: linear-gradient(to right, #ff8a00, #e52e71);
  outline: none;
  opacity: 0.9;
  transition: opacity 0.2s;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #e52e71;
  cursor: pointer;
  transition: transform 0.2s;
}
input[type="range"]:hover::-webkit-slider-thumb {
  transform: scale(1.1);
}
.slider-value {
  font-size: 1.2rem;
  font-weight: bold;
  color: #ff8a00;
  background: rgba(255, 255, 255, 0.2);
  padding: 5px 10px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  min-width: 60px;
  text-align: center;
  margin-left: 10px;
}

.toggle-container {
  display: flex;
  align-items: center;
  margin-top: 0.5rem;
}
.toggle-container input[type="checkbox"] {
  margin-right: 0.5rem;
}

.attraction-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}
.matrix-pair {
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 8px;
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.2);
}
.matrix-pair label {
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
  display: block;
}
.matrix-slider-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.matrix-slider-value {
  font-size: 1rem;
  font-weight: bold;
  color: #ff8a00;
  background: rgba(255, 255, 255, 0.2);
  padding: 3px 6px;
  border-radius: 6px;
  min-width: 40px;
  text-align: center;
  margin-left: 5px;
}
input[type="range"].matrix-range {
  width: 60%;
}


.color-swatch {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin-right: 5px;
    border: 1px solid #fff;
    vertical-align: middle;
  }
  
  
  .matrix-label {
    display: flex;
    align-items: center;
    margin-bottom: 0.3rem;
  }
  
