@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

body {
    font-family: "Inter", sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    background-color: #f2f2f2;
    padding: 20px;
}

.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 800px;
    margin: auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.user-guide {
    color: #2b7fff;
    text-decoration: none;
}

.user-guide:hover {
    color: #0a6cff;
    text-decoration: underline;
}

.search-container {
    /* display: flex; */
    display: none;
    margin-bottom: 20px;
}

#searchBar {
    flex-grow: 1;
    padding: 10px;
    margin-right: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#addSpecial {
    padding: 10px;
    border: none;
    background-color: #008CBA;
    color: white;
    border-radius: 4px;
    cursor: pointer;
}

#addSpecial:hover {
    background-color: #007B9A;
}

.selected-special {
    margin-bottom: 20px;
    display: none;
}

#specialList {
    list-style-type: none;
    padding: 0;
}

#specialList li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #e7f3fe;
    padding: 10px;
    margin-bottom: 5px;
    border-radius: 4px;
}

#specialList li button {
    background: none;
    border: none;
    color: red;
    cursor: pointer;
    font-size: 1em;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

textarea, input, button {
    width: 100%;
    margin: 10px 0;
    padding: 10px;
    box-sizing: border-box;
}

button {
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 4px;
}

a:focus, button:focus {
    outline: #888888 dotted medium;;
}

.generate-data {
    background-color: #2b7fff;
}

.generate-data:hover {
    background-color: #0a6cff;
}

.copy-data {
    background-color: #6c757d;
}

.copy-data:hover {
    background-color: #60686f;
}

#groupResults {
    display: flex;
    flex-direction: column;
}

.group {
    border: 1px solid #ddd;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.group h3 {
    margin-top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (min-width: 768px) {
    #groupResults {
        margin-top: 2rem;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    .group {
        margin-bottom: 0;
    }
    .button-container {
        display: flex;
        justify-content: space-between;
    }
    .button-container button {
        width: 49%;
    }
}

@media (max-width: 767px) {
    #groupResults {
        margin-top: 1rem;
    }
    .button-container {
        display: flex;
        flex-direction: column;
    }
    .button-container button {
        margin-top: 10px;
    }
}

footer {
    text-align: center;
    color: #b4b4b45e;
    padding-top: 10px;
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

.blob-container {
    position: relative;
    width: 100%;
    height: 300px; /* Adjust height as needed */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    transition: opacity 0.5s ease-in-out;
}

.image-container {
    width: 100%;
    height: 300px; /* Adjust as needed */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-in-out;
}

.image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.percentage {
    font-size: 12px;
    font-weight: normal;
    position: relative;
    cursor: help; /* Cursor indicates that there's additional info */
}

.tooltip {
    visibility: hidden;
    width: 200px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 120%; /* Position the tooltip above the text */
    left: 50%;
    margin-left: -100px; /* Center the tooltip */
    opacity: 0;
    transition: opacity 0.3s;
}

.percentage:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

/* Arrow for the tooltip */
.percentage .tooltip::after {
    content: "";
    position: absolute;
    top: 100%; /* At the bottom of the tooltip */
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.slider-container {
    display: flex;
    flex-direction: row; /* Changed to row for label and slider side by side */
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    margin-bottom: 20px;
}

.slider-container label {
    margin-right: 10px; /* Space between label and slider */
    font-size: 14px; /* Smaller font size for label */
}

#membersPerGroup {
    -webkit-appearance: none;
    appearance: none;
    width: 150px; /* Smaller width */
    height: 4px; /* Thinner slider */
    background: #ddd;
    border-radius: 5px;
    outline: none;
    transition: 0.2s;
}

#membersPerGroup::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px; /* Smaller thumb */
    height: 14px;
    background: #333;
    border-radius: 50%;
    cursor: pointer;
}

.slider-value {
    font-size: 16px; /* Smaller font size for value */
    font-weight: normal; /* Normal weight for less emphasis */
    margin-left: 10px; /* Space between slider and value */
}

@media (max-width: 767px) {
    .tooltip {
        width: 150px; /* Adjust width for smaller screens */
        left: 150%; /* Center it relative to the parent */
        transform: translateX(-50%); /* Ensure it's centered properly */
        white-space: normal; /* Allow text to wrap */
    }

    .percentage .tooltip::after {
        left: 80%;
        transform: translateX(-50%);
    }
}
