/*
 * Note: color of the poll's bars after voting is changed in the Javascript code 
 * I assume it can be changed with CSS but that is not in my knowledge
 * i also don't wanna change it bc i just finished banging the script together from the drawbox one lol
*/

#poll-container {
    background-color: black;
    background-image: linear-gradient(#212121, rgba(0, 0, 0, 0.32) 5%, rgb(0, 0, 0)), url(/graphics/bg/cloudy-night.jpg);
    padding: 4px 8px;
    font-size: 13px;
    color: #a1a1a1;
    margin: 5px 0;
    border-radius: 10px;
    border: 1px solid #0f0f0f;
    max-width: 100%;
}

#poll-container .yibbie {
    background: black;
    box-shadow: 0 0 5px black;
    border-radius: 30px;
    margin: 5px 0 4px -15px;
    padding: 3px 5px 1px 15px;
    transform-origin: center;
    font-size: 14px;
    text-align: end;
}

#poll-container .yibbie q {
    font-style: italic;
}

#poll-container .buttons {
    padding: 3px 5px 0 5px;
    text-align: end;
}

#poll-container input[type="radio"]:checked + label {
    color: #dcc8f1;
    font-style: italic;
    text-shadow: 0 0 5px #0017e9;
    padding: 5px;
}

#poll-container input[type="radio"] + label {
    transition: color 0.3s;
}

#poll-container input[type="radio"] + label:hover {
    color: #9082ef;
}

/* uncomment = question and bar/stat on same row horizontally
 * keep commented like this for when the poll has less space than 270-300px
 * uncomment for horizontal layouts & edit the width of #poll-container up top to 100% or whatever fixed width
 * this can be done whenever, 270px max-width is just the reminder of the smallest i designed the widget
.pollcode-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}
*/

/* uncomment = label + bar graph + results on one row.
 * good for horizontal layouts BUT remove the second .pollcode-bar-container + change the .pollcode-label to align left
.pollcode-bar-container {
    display: flex;
    align-items: center;
    flex-grow: 1;
}
*/

.pollcode-bar-container {
    background-image: linear-gradient(to right, transparent, black);
    display: flex;
    align-items: end;
    flex-grow: 1;
    flex-direction: column;
    text-align: end;
    padding: 3px;
}

.pollcode-label {
    text-align: right;
    margin-top: 2px;
    font-style: italic;
}

.pollcode-bar {
    height: 12px;
    min-width: 2px;
    border: 1px solid #888888;
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.pollcode-votes {
    font-size: 11px;
    margin-left: 8px;
    white-space: nowrap;
}

.pollcode-total {
    text-align: right;
    border-top: 1px dotted #ccc;
    padding-top: 5px;
    margin-top: 3px;
    font-style: italic;
}
