*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    background-color: #353535;
}

.poll{
    position: relative;
    min-height: 200px;
    width: 100%;
    top: 100px;
    left: 50%;
    transform: translate(-50%,-50%);
    background: #353535;
    font-family:'Poppins',sans-serif;
    padding:20px;
    margin:0 auto 0 auto;
    max-height: 200px;
    overflow: scroll;
}

.poll .question{
    padding: 20px;
    color: #fff;
    font-size: 1.5em;
    font-weight:500;
    text-align:center;
}

.poll .answers{
    padding: 20px;
    display:flex;
}

.poll .answers .answer{
    position: relative;
    width: 100%;
    height:100%;
    padding:10px 20px;
    cursor: pointer;
    overflow: hidden;
    border-radius: 10px;
    color:#413057;
    font-size:16px;
    font-weight:600;
    margin:0 10px;
    background:rgba(255,255,255,.75);
    line-height: 1.25em;
    border: solid 2px #353535;
}


.poll .answers .answer span.percentage_value
{
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    color: #fff;
    font-size: 16px;
    font-weight:500;
    background:#353535;
    padding:0 10px 0 10px;
    border-radius:5px;
    transition: fade 400ms ease-in-out;
}

.poll .answers .answer span.percentage_bar{
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #fff;
    z-index: -2;
    transition: width 800ms ease-in-out;
    border-radius:0 24px 24px 0;
}

.poll .answers .answer:hover {
    transform: scale(1.0225);
    background: rgba(255,255,255,0.5);
    border:solid 2px rgba(255,255,255,.5);

}

@keyframes flash {
    0% { background-color: rgba(255,255,255,0.75); }
    50% { background-color: rgba(255,255,255,1); }
    100% { background-color: rgba(255,255,255,0.75); }
}

.poll .answers .answer.selected {
    animation: flash 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.poll {
    animation: fadeIn 0s;
}

.poll .answers .answer span.percentage_value {
    animation: scaleIn 0.5s;
}

@keyframes scaleIn {
    from { transform: scale(0); }
    to { transform: scale(1); }
}
