:root {
    --color-light: white;
    --color-dark: #33475a;
}

* {
    padding: 0;
    margin: 0;
    outline: none;
    box-sizing: border-box;
    border: none;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    /*height: calc(3 * 100px + 30px);*/
}

h4 {
    padding-top: 10px;
    font-size: 18px;
    font-weight: bold;
    text-align: initial;
    color: #33475a;
}


/* Poll */

main {
    /*height: 100vh;*/
    display: flex;
    flex-direction: column;
    border-radius: 5px;
    overflow: hidden;
}

main .image {
    width: 100%;
    padding-top: 62.25%;
    background-color: gray;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-image: var(--image);
}

main .content {
    padding: 20px;
    background-color: white;
}

main .content .question {
    font-size: 18px;
    font-weight: bold;
    font-family: 'Lora', serif;
}

main .content>.info {
    display: flex;
    flex-direction: row;
    margin-top: 10px;
    color: gray;
    font-size: 12px;
}

main .content>.info .name {
    font-weight: 500;
}

main .content>.info .time::before {
    content: "";
    display: inline-block;
    height: 3px;
    width: 3px;
    margin: 2px 6px;
    border-radius: 50%;
    background-color: black;
    opacity: .3;
}

main .options .option {
    position: relative;
    width: 100%;
    height: 40px;
    margin-top: 20px;
    border-radius: 5px;
    background-color: rgb(237, 241, 244);
}

main .options .option .info {
    position: absolute;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 0 15px;
    font-size: 12px;
    font-weight: 600;
}

main .options .option .info .percent {
    font-size: 10px;
}

main .options .option .progress {
    width: var(--percent);
    height: 100%;
    border-radius: 5px;
    background-color: rgb(220, 224, 230);
}


/*.poll {
    width: 100vw;
    height: 100vh;
}

.poll {
    display: flex;
    flex-direction: column;
}

.poll .view {
    position: relative;
    display: flex;
    flex: 1;
}

.poll .overlay {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}

.poll .overlay.active {
    opacity: 1;
    pointer-events: all;
}

.poll .overlay button {
    display: none;
}

.poll .overlay.login button {
    display: flex;
}

.poll .overlay.active+.options>* {
    filter: blur(5px);
    -webkit-filter: blur(5px);
}

.poll .options {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: flex-end;
    flex: 1;
    margin: 20px 0;
    padding: 0 40px;
    background-color: #f2f9fb;
    border-radius: 10px;
    overflow: hidden;
}

.poll .options .option {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 15%;
    max-width: 80px;
    min-height: 50px;
    max-height: 50px;
    height: var(--percent);
    cursor: pointer;
    transition: 1s max-height;
}

.poll.voted .options .option {
    max-height: var(--percent);
    cursor: default;
}

.poll .options .option .percent {
    color: var(--color-dark);
    opacity: 0;
    transition: 1s opacity;
}

.poll.voted .options .option .percent {
    opacity: 1;
}

.poll .options .option .block {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    width: 100%;
    flex: 1;
    padding: 5px;
    background-color: var(--color);
    background-image: var(--image);
    border-radius: 5px 5px 0 0;
}

.poll .options .option.active .block {
    box-shadow: 0 0 5px 1px #afafaf;
}*/


/* Facebook Button */

button.fb-login {
    position: relative;
    display: flex;
    align-items: center;
    height: 40px;
    padding: 0 4px;
    border-radius: 4px;
    background-color: rgb(24, 119, 242);
    cursor: pointer;
}

button.fb-login .fb-logo {
    width: 24px;
    height: 24px;
    margin: 8px;
}

button.fb-login .fb-label {
    font-weight: bold;
    font-size: 16px;
    font-family: Helvetica, Arial, sans-serif;
    color: white;
    margin-right: 8px;
    white-space: nowrap;
}

button.fb-login span {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@media only screen and (max-width: 580px) {
    .poll .options {
        flex-direction: column;
        justify-content: space-around;
        align-items: flex-start;
        /*height: 320px;*/
        padding: 20px 0;
    }
    .poll .options .option {
        flex-direction: row-reverse;
        height: 40px;
        width: var(--percent);
        min-width: 120px;
        max-width: var(--percent);
        min-height: 0;
        max-height: none !important;
    }
    .poll .options .percent {
        padding: 0 5px;
    }
    .poll .options .option .block {
        align-items: center;
        height: 100%;
        border-radius: 0 5px 5px 0;
    }
}