﻿@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.5.0/font/bootstrap-icons.css");

/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

/* Provide sufficient contrast against white background */
a {
    color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.border-top {
    border-top: 1px solid #e5e5e5;
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
    position: relative;
    min-height: 100%;
}

body {
    /* Margin bottom by footer height */
    margin-bottom: 60px;
}

div.background {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url(/images/members.gif);
    background-size: 75%;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: bottom 60px center;
}

div.background-vote {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url(/images/bg.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: bottom 60px center;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px; /* Vertically center the text there */
    background-color: white;
    opacity: 0.85;
}


.dropzone.drag-over {
    display: block;
    height: 24px;
    width: 100%;
    background-color: Highlight;
    margin-bottom: 16px;
}



fieldset {
    border: solid silver 1px;
    border-radius: 0.5em;
    padding: 1em;
    padding-top: 0;
    padding-bottom: 8px;
    margin-bottom: 20px; /*1.6em;*/
    margin-top: 4px;
}


legend {
    width: auto;
    padding-right: 0.5em;
    padding-left: 0.15em;
    display: inline-block;
    margin-top: -0.85em;
    background-color: white;
}

.dropzone {
    display: none;
}

.addon-left {
    background-color: whitesmoke;
    border: 1px solid silver;
    border-right: none;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    font-size: 18pt;
}

.drag-border-right {
    border-right: 1px solid silver;
}

legend.draggable {
    background-color: whitesmoke;
    border: 1px solid silver;
    border-radius: 5px;
}



.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}


main {
    padding: 1em;
    background-color: white;
    border: solid 1px black;
    border-radius: 0.5em;
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
    opacity: 0.95;
    margin-bottom: 1em;
}

.main-medium {
    width: 900px;
    margin: auto;
}

.main-narrow {
    width: 450px;
    margin: auto;
}

    .main-narrow
    .col-md-4 {
        width: 100%;
    }

div.container.for-main {
    padding-bottom: 2em;
}

div.after-main {
    display: block;
    height: 2em;
}


nav {
    opacity: 0.85;
}


div.frosting {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    background-color: #F8F8FF;
    opacity: 0.6;
}

.one-liner h1, .one-liner h3 {
    display: inline-block;
    width: auto;
    padding-right: 8px;
}

.one-liner a {
    display: inline-block;
    width: auto;
    margin-bottom: 14px;
    /*font-size: larger;*/
}

a i.bi {
    margin-right: 6px;
}




.input-group {
    padding-left: 0;
    padding-right: 0;
}

.navbar-brand {
    font-style: italic;
    font-weight: bold;
    color: darkblue !important;
}

div.form-group {
    padding-right: 1em;
}



.top-curtain {
    position: fixed;
    display: block;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: white;
    opacity: 0.6;
    z-index: 25;
}

.top-dialog {
    position: fixed;
    display: block;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 500;
}

    .top-dialog .modal-dialog {
        position: relative;
        background-color: white;
        border: 1px solid black;
        border-radius: 0.5em;
        z-index: 100;
        pointer-events: all;
    }

    .top-dialog.below-nav {
        padding-top: 60px;
    }



div.group-group {
    padding: 0;
    padding-bottom: 0.5em;
    border: solid rgb(206, 212, 218) 1px;
    border-radius: 4px;
    user-select: none;
}

div.group-item {
    user-select: none;
    display: inline-block;
    padding: 0.25em;
    border: 1px solid silver;
    border-radius: 4px;
    margin: 0;
    margin-right: 0.5em;
    margin-top: 0.5em;
    background-color: #f0f0f0;
    cursor: pointer;
}


div.toggle-component {
    display: inline-block;
    font-size: 2em;
    margin-top: -8px;
    margin-bottom: 0;
    height: 38px;
    outline: none;
    color: #495057;
}

    div.toggle-component:focus {
        color: steelblue;
    }


div.vote-answer {
    display: inline-block;
    padding: 0.5em;
    border: solid 1px silver;
    border-radius: 0.5em;
    min-width: 150px;
    min-height: 50px;
    background-color: blanchedalmond;
    margin-right: 8px;
    margin-bottom: 8px;
}


div.top-preview {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    padding: 1em;
    background-color: beige;
    opacity: 1;
    height: 100vh;
    width: 100vw;
    background-image: url(/images/bg.jpg);
    background-size: cover;
    z-index: 999999;
}

div.top-preview-scroller {
    display: block;
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
}

button.top-button {
    position: fixed;
    top: 16px;
    right: 16px;
}


div.ballot-outer {
    display: block;
    position: relative;
    margin: 32px;
    width: 100%;
    max-width: 1024px;
    margin: auto;
    padding: 1em;
    border: 1px solid black;
    border-radius: 0.25em;
    background-color: white;
    opacity: 0.98;
    height: auto;
}

div.ballot-question {
    margin-top: 1em;
    border-top: 4px solid silver;
    padding: 1em;
    user-select: none;
}

div.vote-answer-status {
    font-size: 24px;
    display: inline-block;
    float: left;
    height: 1.5em;
    width: 1.5em;
    padding: 0;
    margin-top: -6px;
}

div.answer-rank {
    border: 1px solid black;
    border-radius: 4px;
    width: 1em;
    height: 1.25em;
    line-height: 1em;
    text-align: center;
    margin-right: 8px;
    margin-top: 0;
    padding-top: -12px;
    color: tan;
}


div.ballot-question h3 {
    display: inline-block;
    margin-right: 0.5em;
}

div.ballot-question .question-type {
    display: inline-block;
    padding: 0;
    margin: 0;
}

div.question-answers {
    clear: both;
}

.question-description {
    display: inline-block;
    padding: 0;
    margin: 0;
    margin-right: 0.5em;
}

.answer-has-rank {
    background-color: black;
    color: white !important;
}


div.id-card-vars {
    --w: 8.5cm;
    --h: 5.4cm;
}


div.id-card-frost {
    height: calc( var(--h) - 2rem);
    width: calc( var(--w) - 2rem);
    display: block;
    position: fixed;
    top: 2rem;
    left: 2rem;
    padding: 8px;
    border: none;
    border-radius: 0.5em;
    background-color: #ffffff;
    opacity: 0.85;
    font-size: 12px;
}



div.id-card {
    height: calc( var(--h) - 2rem);
    width: calc( var(--w) - 2rem);
    display: block;
    position: fixed;
    top: 2rem;
    left: 2rem;
    padding: 8px;
    border: none;
    border-radius: 0.5em;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
}

img.id-card {
    height: var(--h);
    width: var(--w);
    border: 1px solid black;
    border-radius: 0.5em;
    display: block;
    position: fixed;
    top: 1em;
    left: 1em;
    object-fit: cover;
    object-position: top left;
    /*opacity: 0.5;*/
}




div.form-group label.form-label {
    width: 12em;
    text-align: right;
}


div.form-group div.validation-message {
    padding-left: 12em;
}


div.form-group {
    margin-bottom: 4px;
}

    div.group-picker-outer {
        margin:0;
        padding:0;
    }

    div.group-picker-outer,
    div.form-group .input-group,
    div.form-group .form-control,
    div.form-group .group-group {
        display: inline-block;
        width: calc(100% - 12.5em);
    }

        div.form-group .input-group .form-control {
            display: inline-block;
            width: calc(100% - 8.5em);
        }

        div.form-group .input-group .input-group-append {
            display: inline-block;
            width: auto;
        }

            div.form-group .input-group .input-group-append .input-group-text {
                display: inline-block;
                width: 8em;
            }

    div.form-group .input-group {
        display: inline-block;
        width: calc(100% - 12.5em);
    }

@media (max-width: 600px) {

    div.form-group label.form-label {
        width: 100%;
        text-align: left;
    }

    div.group-picker-outer,
    div.form-group .input-group,
    div.form-group .form-control,
    div.form-group .group-group {
        width: 100%;
        margin-left: 8px;
    }

    div.form-group .input-group {
        width: 100%;
        margin-left: 0;
    }


    div.form-group div.validation-message {
        padding-left: 8px;
    }

    div.form-group .input-group .input-group-append .input-group-text {
        display: inline-block;
        width: 7.7em;
    }
}

.extra-top-padding {
    padding-top:13px;
}


input.form-control.type-time {
    width: 10em;
}

.like-link {
    color: rgb(3,102,214);
    text-decoration: underline;
    cursor: pointer;
}