/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */
.results-container .hide {
    display: none;
}

.no-scroll {
    overflow-y: hidden;
}

.results-container .error {
    display: block;
    color: red;
    text-align: center;
}

.results-container {
    /* margin-top: 100px; */
    border: 8px solid #ffb819;
    position: fixed;
    z-index: 100;
    top: 10vh;
    left: 50%;
    background-color: #9b00c3;
    width: 450px;
    transform: translateX(-50%);
    max-height: 80vh;
    overflow-y: auto;
    /* Customize the label (the container) */
    /* Hide the browser's default radio button */
    /* Create a custom radio button */
    /* On mouse-over, add a grey background color */
    /* When the radio button is checked, add a blue background */
    /* Create the indicator (the dot/circle - hidden when not checked) */
    /* Show the indicator (dot/circle) when checked */
    /* Style the indicator (dot/circle) */
}
@media screen and (max-width: 450px) {
    .results-container {
        width: 300px;
        top: 0;
        margin-top: 0;
        max-height: 100%;
    }
}
.results-container .close {
    position: absolute;
    top: 10px;
    right: 10px;
    height: 20px;
    /* margin-left: 0; */
    width: 20px;
    cursor: pointer;
}
.results-container .title-container {
    padding: 60px 15px;
    background: white;
}
.results-container .title-container h1 {
    font-size: 26px;
    text-align: center;
    background: white;
}
.results-container .question-container {
    background: #9b00c3;
    padding: 40px;
}
.results-container .submit {
    display: block;
    margin: auto;
    padding: 5px 15px;
    background: #ffb819;
    border: 2px solid black;
    font-size: 24px;
    margin-top: 20px;
    cursor: pointer;
}
.results-container .fact-container {
    padding: 40px 10px 10px 10px;
}
.results-container .fact-container p {
    font-size: 18px;
    text-align: left;
    color: white;
    margin-bottom: 0;
}
.results-container .links {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}
.results-container .links a {
    display: flex;
    padding: 10px 15px;
    /* background: #ffb819; */
    border: 2px solid black;
    font-size: 14px;
    width: 100px;
    text-align: center;
    color: black;
    cursor: pointer;
    align-items: center;
}
.results-container button {
    display: block;
    margin: auto;
    padding: 5px 15px;
    border: 2px solid black;
    font-size: 20px;
    color: #9b00c3;
    cursor: pointer;
}
.results-container .results-title {
    display: flex;
    justify-content: space-between;
}
.results-container .results-title p {
    font-size: 26px;
}
.results-container .responses {
    width: 100px;
    text-align: center;
}
.results-container .responses span {
    display: block;
    font-size: 20px;
}
.results-container .chart-container {
    height: 200px;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: flex-end;
    border-left: 1px solid black;
    border-bottom: 1px solid black;
    padding-bottom: 10px;
}
.results-container .bar-container {
    display: flex;
    flex-direction: column;
    min-height: 40px;
}
.results-container .bar-container p {
    color: #9b00c3;
    margin-bottom: 0;
    text-align: center;
}
.results-container .bar {
    height: 100%;
    width: 100%;
    background: #9b00c3;
}
.results-container .question-names {
    display: flex;
    justify-content: space-evenly;
    /* margin-top: 20px; */
    flex-direction: row;
}
.results-container .question-names p {
    text-align: center;
    font-size: 18px;
    line-height: 22px;
}
@media screen and (max-width: 450px) {
    .results-container .question-names p {
        font-size: 14px;
        margin: 0 10px 30px 10px;
    }
}
.results-container .more-button {
    border: 2px solid black;
    margin: 20px auto;
    display: block;
    padding: 5px 15px;
    background: #ffb819;
    border: 2px solid black;
    font-size: 24px;
    color: black;
    cursor: pointer;
}
.results-container .loader {
    border: 4px solid #f3f3f3;
    /* Light grey */
    border-top: 4px solid #3498db;
    /* Blue */
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 2s linear infinite;
    background-color: transparent;
    padding: 0;
}
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
.results-container label {
    cursor: pointer;
}
.results-container .input-container {
    display: block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 22px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    margin-bottom: 20px;
    color: white;
    cursor: pointer;
}
.results-container .input-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}
.results-container .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 25px;
    width: 25px;
    background-color: #eee;
    border-radius: 50%;
}
.results-container .input-container:hover input ~ .checkmark {
    background-color: #ccc;
}
.results-container .input-container input:checked ~ .checkmark {
    background-color: #ffb819;
}
.results-container .checkmark:after {
    content: '';
    position: absolute;
    display: none;
}
.results-container .input-container input:checked ~ .checkmark:after {
    display: block;
}
.results-container .input-container .checkmark:after {
    top: 9px;
    left: 9px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
}
