/* ---------- Typography ---------- */

body,
.form-control,
.btn {
    font-family: "Arial", sans-serif;
    font-size: 16px;
    font-weight: 400;
}

.question-title-container {
    font-size: 20px;
    font-weight: 600;
}


/* ---------- Colors ---------- */

body {
    background: #eee;
    color: #000;
   
}

.question-container {
    background: #ffffff;
}

.btn-primary {
    background-color: #842624;
    border-color: #842624;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #842624;
    border-color: #842624;
}


/* ---------- Layout ---------- */

.question-container {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.logo-container img {
    max-height: 133px;
}



/* BALLS AND BINS ONLY */
/* Hide LimeSurvey's six underlying numerical fields */
.cebi-ball-question .answer-container {
    display: none;
}


/* Whole component */

cebi-ball-distribution {
    display: block;
    width: 100%;
}

.cebi-distribution {
    width: 100%;
    margin-top: 30px;
}


/* Buckets */

.cebi-buckets {
    display: grid;
    grid-template-columns: repeat(6, minmax(100px, 1fr));
    gap: 10px;
    overflow-x: auto;
}

.cebi-bucket-container {
    min-width: 100px;
}

.cebi-bucket {
    min-height: 250px;
    padding: 6px;

    background: #e2e2e2;

    border: 1px solid #000;
    border-top: 0;

    border-radius: 0 0 8px 8px;

    display: flex;
    flex-direction: row;
    flex-wrap: wrap-reverse;
    align-content: flex-start;
}

.cebi-bucket-label {
    min-height: 45px;
    margin-top: 5px;

    text-align: center;
    font-size: 14px;
}


/* Balls */

.cebi-ball {
    display: inline-block;

    width: 25px;
    height: 25px;
    margin: 2px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle at 65% 15%,
            white 1px,
            aqua 3%,
            darkblue 60%,
            aqua 100%
        );
}


/* +/- controls */

.cebi-bucket-controls {
    display: flex;
    align-items: center;
    justify-content: center;

    margin-top: 10px;
}

.cebi-ball-button {
    min-width: 36px;
    height: 32px;
}

.cebi-bucket-count {
    min-width: 36px;
    text-align: center;
    font-weight: 600;
}


/* Remaining balls */

.cebi-ball-pool {
    position: relative;

    max-width: 450px;
    min-height: 100px;

    margin: 45px auto 20px;
    padding: 10px;

    border: 1px solid #000;
}

.cebi-ball-pool-balls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.cebi-ball-remaining {
    position: absolute;
    right: 0;
    top: -32px;
}


/* Step size */

.cebi-ball-step-control {
    margin-top: 20px;
    text-align: center;
}

.cebi-ball-step {
    width: 55px;
    margin-left: 10px;
    text-align: center;
}


/* Validation */

.cebi-ball-error {
    margin-top: 15px;
    text-align: center;
    color: var(--bs-danger, #dc3545);
    font-weight: 600;
}


@media (max-width: 767px) {

    .cebi-buckets {
        grid-template-columns: repeat(6, 80px);
        justify-content: start;
    }

    .cebi-bucket {
        min-height: 180px;
    }

}