body {
  margin: 0;
  padding: 0;
  background-color: #f5f5f5;
}

.tool-container {
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  margin: 20px auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  background-color: #ffffff;
}

/* Left Section */
.left-section {
  background-color: #1F2526;
  color: white;
  padding: 30px;
  width: 50%;
  box-sizing: border-box; /* Add this to include padding in width calculation */
}

.left-section h3 {
  margin-top: 0;
  font-size: 20px;
  word-wrap: break-word; /* Allow text to wrap */
}

.left-section p {
  font-size: 18px;
  line-height: 1.5;
  word-wrap: break-word; /* Allow text to wrap */
}

/* Right Section (Tool) */
.right-section {
  background-color: #ffffff;
  color: #1F2526;
  padding: 30px;
  width: 50%;
  box-sizing: border-box; /* Add this to include padding in width calculation */
}

input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  background-color: #ddd;
  border-radius: 5px;
  margin-bottom: 20px;
  box-sizing: border-box; /* Add this to ensure proper sizing */
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background-color: white;
  border-radius: 50%;
  border: 6px solid #1F2526;
  cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background-color: white;
  border-radius: 50%;
  border: 6px solid #1F2526;
  cursor: pointer;
}

.output p {
  font-size: 22px;
  margin-top: 10px;
  text-align: center;
  word-wrap: break-word; /* Allow text to wrap */
}

.output span {
  font-weight: bold;
}

/* Tablet Optimization */
@media (max-width: 992px) {
  .left-section h3 {
    font-size: 19px;
  }
  
  .left-section p {
    font-size: 17px;
  }
  
  .output p {
    font-size: 20px;
  }
}

/* Mobile Optimization */
@media (max-width: 768px) {
  .tool-container {
    flex-direction: column;
    width: 95%; /* Control width to prevent overflow */
  }
  
  .left-section, .right-section {
    width: 100%;
    padding: 20px;
  }
  
  .left-section h3 {
    font-size: 18px;
    text-align: left;
    max-width: 100%; /* Ensure text stays within container */
  }
  
  .left-section p {
    font-size: 16px;
    text-align: left;
    max-width: 100%; /* Ensure text stays within container */
  }
  
  .output p {
    font-size: 20px;
    max-width: 100%; /* Ensure text stays within container */
  }
}

/* Small Mobile Screens */
@media (max-width: 480px) {
  .tool-container {
    margin: 10px auto;
    width: 92%; /* Control width to prevent overflow */
  }
  
  .left-section, .right-section {
    padding: 15px;
  }
  
  .left-section h3 {
    font-size: 18px;
  }
  
  .left-section p {
    font-size: 16px;
  }
  
  .output p {
    font-size: 20px;
  }
}