:root {
    --text-color: rgb(32, 33, 36);
    --white: #FFFFFF;
    --gray: #CCCCCC;
    --light: rgb(248,249,250);
    --primary-color: #337ab7;
    --light-primary-color: #337ab7AA;
}

.loading-element {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 10vh;
}

fieldset {
    border: 1px solid var(--gray);
    margin-bottom: 1rem;
    border-radius: 0.25rem;
    padding-bottom: 0.5rem;
}

legend {
    float: none !important;
    display: inline;
    width: auto;
    margin-left: 0.75rem;
    margin-bottom: 0.5rem;
    padding: 0 0.25rem;
    font-size: 1.5rem;
    text-align: left;
    border: 0;
}

.response:first-of-type {
    padding: 0 0 1rem 0;
}

.response {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 0;
    padding: 1rem 0;
    max-width: 1080px;
    margin: 0 auto;
}

.response:not(:last-of-type) {
    border-bottom: 1px solid var(--gray);
}

.response .response-title {
    font-size: 1.25rem;
    color: var(--text-color);
    letter-spacing: .2px;
    line-height: 2rem;
    margin: 0;
    padding: 0;
}

.response .response-count {
    font-size: 1rem;
    color: var(--text-color);
    margin: 0;
    margin-bottom: 1rem;
    padding: 0;
}

.response .response-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 0.5rem;
    margin: 0;
    padding: 0 0;
    width: 100%;
}

.response .response-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: .2px;
    line-height: 1.5rem;
    color: var(--text-color);
    background-color: var(--light);
    width: 100%;
    border-radius: 0.5rem;
    padding: 0.5rem;
}

.response .response-list li span,
.response .response-file-list li span {
    background-color: var(--light-primary-color);
    color: var(--text-color);
    border-radius: 100%;
    padding: 0 0.5rem;
    line-height: 1.45rem;
}

.response .response-file-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: start;
    gap: 0.875rem;
    margin: 0;
    padding: 0.5rem 0;
    width: 100%;
}

.response .response-file-list li {
    display: flex;
    justify-content: space-between;
    background-color: var(--light);
    gap: 1rem;
    border-radius: 0.5rem;
    padding: 0.925rem;
    width: auto;
    align-items: end;
}

.response .response-file-list li img {
    max-height: 15vh;
    max-width: 8vw;
    border-radius: 0.5rem;
    cursor: zoom-in;
}

.response .response-file-list li a {
    font-size: 3rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.response .response-chart {
    width: 400px;
    margin: 0 auto;
    padding: 0.5rem 0;
}

div.checkbox-response {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: start;
}

li div.checkbox-response input[type="checkbox"] {
    margin: 0;
    padding: 0;
}

li div.checkbox-response > p,
li div.checkbox-response > span {
    line-height: 1rem;
    font-size: 1rem;
    margin: 0;
    padding: 0 !important;
}

@media screen and (max-width: 920px) {
    .nav.nav-tabs {
        justify-content: start;
    }

    .nav.nav-tabs li:first-of-type {
        flex: 0 0 100%;
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

@media screen and (max-width: 550px) {
    .response {
        overflow-x: scroll;
    }
}

@media screen and (max-width: 420px) {
    .response .response-list li {
        max-width: 320px;
        min-width: 280px;
    }

    .filter-field {
        flex-direction: column;
    }


    .filter-field .ask {
        width: 100%;
    }

    .filter-field #askSelect {
        width: 100%;
    }
}