/* ****************************************************************************************************************** */
/* *** General *** */
/* ****************************************************************************************************************** */

h2 {
    text-align: center !important;
}

.page-header {
    margin: 40px 0 40px;
    padding: 0;
    border-bottom: none;
}

.otree-btn-next {
    margin: 40px auto;
    display: inherit;
}

.wrapper, .alert {
    min-width: 512px;
    max-width: 800px;
    margin: 0 auto 20px;
}


/* ****************************************************************************************************************** */
/* *** Instructions *** */
/* ****************************************************************************************************************** */

.instructions {
	width: 100%;
	height: 100%;
	background: rgba(255,255,245,0.25);
	margin: 40px auto;
    padding: 20px 20px 10px 20px;

    position:relative;
    -webkit-box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2), 0 0 20px rgba(0, 0, 0, 0.05) inset;
       -moz-box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2), 0 0 20px rgba(0, 0, 0, 0.05) inset;
            box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2), 0 0 20px rgba(0, 0, 0, 0.05) inset;

    -moz-border-radius: 5px;
         border-radius: 5px;
}


/* ****************************************************************************************************************** */
/* *** Decision/Results_New Table *** */
/* ****************************************************************************************************************** */

.table {
    margin-bottom: 0;
}

.table>thead>tr>th,
.table>tbody>tr>td {
    padding: 10px;
    vertical-align: middle;
    border: none;
}

.header {
    background-color: #dee2e6;
    border: 1px solid #dee2e6;
}

.pie-chart {
    min-width: 40px;
    margin: 0 auto;
}

.highcharts-container {
    margin: 0 auto;
}

.formfield {
    min-width: 80px;
    text-align: center;
}

.lottery-a {
    min-width: 160px;
    text-align: right;
}

.lottery-b {
    min-width: 160px;
    text-align: left;
}

.center {
    text-align: center;
}

.info {
    padding: 15px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.btn-primary {
    margin-bottom: 10px;
}

.btn-success[disabled], .btn-primary[disabled] {
    opacity: 1;
}

input[type="radio"]{
    margin: 7px;
}

.panel {
    border: 0.5pt solid #e3e3e3;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    border-radius: 8px;
    margin: 25px 0;
}


/* ****************************************************************************************************************** */
/* *** Progress Bar *** */
/* ****************************************************************************************************************** */

.progress {
    height: 15px;
    margin-bottom: 30px;
}

.progress-bar {
    background-color: rgba(43, 102, 154, 0.20);
    background-image: linear-gradient(to bottom, rgba(43, 102, 154, 0.1) 0, rgba(43, 102, 154, 0.6) 100%);
    background-repeat: repeat-x;
}

label {
    font-weight: normal;
    margin-bottom: 4pt;
}

/* Transition / middle / end screens */
.transition-screen {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    line-height: 1.45;
    text-align: center;
    padding: 4rem 1.5rem;
    min-height: 50vh;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.transition-screen p {
    margin-bottom: 1rem;
    text-align: center;
    width: 100%;
    max-width: 42em;
}

.transition-screen button,
.transition-screen .btn {
    margin-top: 1rem;
}

.chart-winning-title {
    display: block;
    box-sizing: border-box;
    text-align: center !important;
    font-size: 16px;
    font-weight: 600;
    margin: 8px auto 12px;
    width: 100%;
    max-width: 100%;
}

.decision-wrap .chart-winning-title {
    margin-top: 4px;
}

.instructions-example,
.modal-body .instructions-example {
    width: 100%;
    text-align: center;
}

.instructions-example .chart-winning-title,
.modal-body .instructions-example .chart-winning-title,
.decision-wrap > .chart-winning-title {
    text-align: center !important;
    margin-left: auto;
    margin-right: auto;
}

/* Part 3 instructions example (full page + modal) */
.instructions-example .charts-row,
.modal-body .instructions-example .charts-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: flex-start;
    margin-top: 20px;
    gap: 30px;
}

.instructions-example .chart-box,
.modal-body .instructions-example .chart-box {
    flex: 0 0 360px;
    width: 360px;
    max-width: 360px;
    text-align: center;
}

.instructions-example .chart-box > div[id],
.modal-body .instructions-example .chart-box > div[id] {
    width: 100%;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}

.instructions-example .highcharts-container,
.modal-body .instructions-example .highcharts-container {
    width: 100% !important;
    max-width: 320px;
    margin-left: auto !important;
    margin-right: auto !important;
}

.instructions-example .chart-caption,
.modal-body .instructions-example .chart-caption {
    margin-top: 8px;
    font-weight: 600;
}

.instructions-example .options,
.modal-body .instructions-example .options {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.instructions-example .options label,
.modal-body .instructions-example .options label {
    font-size: 20px;
    font-weight: 600;
}

.instructions-example .options input[disabled],
.modal-body .instructions-example .options input[disabled] {
    cursor: not-allowed;
}

#unknown_pie_example,
#known_pie_example,
#unknown_pie_modal,
#known_pie_modal,
#unknown_pie_main,
#known_pie_main {
    min-height: 280px;
}

.nav {
    visibility: hidden;
}
