body {
    display: flex;
    justify-content: center;
    align-items: center;
    /*height: 100vh;*/
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    user-select: none;
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE10+/Edge */
  }
  #containerMain {
    display: flex;
    justify-content: center;
    flex-direction: row;
    align-items: center;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin: 10px;
  }
  #containerMenu {
    max-width: 250px;
    min-width: 100px;
    font-size: 15px;
    display: flex;
    flex-direction: column; /* To center items vertically */
    align-items: center; /* To center items horizontally */
    justify-content: center; /* To center items vertically */
    margin: 5px;
    padding: 10px;
    padding-top: 20px;
    padding-bottom: 20px;
    border: 2px solid rgb(125, 125, 125);
    border-radius: 10px;max-width: 200px;
    font-size: 15px;
    display: flex;
    flex-direction: column; /* To center items vertically */
    align-items: center; /* To center items horizontally */
    justify-content: center; /* To center items vertically */
    margin-top: 10px;
  }
  #containerSketch {
    margin-right: 20px;
    position: relative; /* Ensures child elements are positioned relative to this container */
  }
  #dateText {
    position: absolute; /* Positions the element relative to the sketch */
    top: 10px;
    left: 10px;
    color: white;
    font-size: 28px;
    user-select: none; /* Standard syntax */
    -webkit-user-select: none; /* Chrome, Safari, and Opera */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer and Edge */
    /* font-family: 'Source Code Pro', monospace; */
  }
  button {
    display:flex;
    text-align: center;
    justify-content: center;
    align-items: center;
    position:relative;
    overflow: hidden;
    background-color: #007bff;
    color: white;
    border: none;
    padding: 5px 10px;
    font-size: 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.4s ease;
    min-width: 30px;
    min-height: 30px;
    margin: 2px;
  }
  button:hover {
    background-color: #0056b3;
  }
  button:active::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 100%;
    padding-top: 100%;
    height: 0;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: ripple 0.2s linear;
  }
  @keyframes ripple {
    to {
      transform: translate(-50%, -50%) scale(4);
      opacity: 0;
    }
  }
  #sliderValue {
    margin-top: 0px; /* Adjust the margin as needed */
    font-size: 15px; /* Match the font size with the rest of your text */
  }




  
/* Style the slider */
input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    margin: 10px 0;
}

/* Track */
input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    cursor: pointer;
    animate: 0.2s;
    background: #ddd;
    border-radius: 5px;
    border: 1px solid #ccc;
}

input[type=range]::-moz-range-track {
    width: 100%;
    height: 8px;
    cursor: pointer;
    animate: 0.2s;
    background: #ddd;
    border-radius: 5px;
    border: 1px solid #ccc;
}

input[type=range]::-ms-track {
    width: 100%;
    height: 8px;
    cursor: pointer;
    animate: 0.2s;
    background: transparent;
    border-color: transparent;
    color: transparent;
}

input[type=range]::-ms-fill-lower {
    background: #ddd;
    border: 1px solid #ccc;
    border-radius: 5px;
}

input[type=range]::-ms-fill-upper {
    background: #ddd;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Thumb */
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    border: 1px solid #ccc;
    height: 20px;
    width: 20px;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    margin-top: -6px;
    box-shadow: 0 0 2px rgba(0,0,0,0.5);
}

input[type=range]::-moz-range-thumb {
    border: 1px solid #ccc;
    height: 20px;
    width: 20px;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 0 2px rgba(0,0,0,0.5);
}

input[type=range]::-ms-thumb {
    border: 1px solid #ccc;
    height: 20px;
    width: 20px;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 0 2px rgba(0,0,0,0.5);
}

/* Focus */
input[type=range]:focus {
    outline: none;
}

input[type=range]:focus::-webkit-slider-runnable-track {
    background: #ccc;
}

input[type=range]:focus::-moz-range-track {
    background: #ccc;
}

input[type=range]:focus::-ms-fill-lower {
    background: #ccc;
}

input[type=range]:focus::-ms-fill-upper {
    background: #ccc;
}

/* Apply flex to the parent container */
.button-container {
  display: flex;
  gap: 0px; /* Optional: adds space between buttons */
}
.button-equiSol {
  width: 90px;
  font-size: 15px;
  margin: 2px;
}


/********************* MEDIA QUERYS *********************/
@media screen and (max-width: 900px) {
  #containerMain {
    flex-direction: column; /* Stacks items vertically */
    align-items: center; /* Ensures child elements take full width */
    padding: 10px; /* Adjusted padding for smaller screens */
  }

  #containerSketch, 
  #containerMenu {
    margin-right: 0; /* Removes right margin in vertical layout */
    width: 100%; /* Ensures full width of the container */
    max-width: none; /* Removes max-width restriction */
  }

  #containerMenu {
    margin-top: 20px; /* Adds space between simulation and menu */
    align-items: center;
    width: 100%; /* Full width for smaller screens, stacking vertically */
    max-width: 250px; /* Remove max-width restriction */
  }
}