@import "../common.css";

html {
    padding: 4%;
    line-height: 1.5;
}

html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

.option-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    list-style-type: none;
}

.option {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.option:not(:last-child) {
    margin-bottom: 2rem;
}

.option-name {
    flex: 30;
    margin-right: 1rem;
    text-align: right;
    font-size: 2rem;
    font-family: "Lato Black", sans-serif;
}

.option-popularity {
    flex: 70;
    align-self: stretch;
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-left: 1rem;
}

.option-meter {
    flex: 1;
    height: 100%;
    transition: 1s transform;
    transform-origin: left;
    margin-right: 1rem;
}

.option-count {
    flex-basis: 1.5em;
    flex-grow: 0;
    flex-shrink: 0;
    margin-left: 1rem;
    text-align: right;
    font-size: 2rem;
    font-family: "Lato Black", sans-serif;
}

.option:nth-child(1) .option-meter { background-color: green }
.option:nth-child(2) .option-meter { background-color: blue }
.option:nth-child(3) .option-meter { background-color: orange }
.option:nth-child(4) .option-meter { background-color: purple }
