/*
Code developed by Epi-interactive (www.epi-interactive.com)
CLIENT: University of Melbourne
PROJECT: 2x2 Tool
DATE: 30/06/2021

Code users agree to appropriately acknowledge the code developer using the following citation: Code developed by Epi-interactive (www.epi-interactive.com) for University of Melbourne for 2x2 Tool, 30/06/2021.
Restrictions regarding sharing and distributing the code of this project may apply, please contact Epi-interactive for clarification or consult our Services Agreement (if provided as part of the contract).
Restrictions may include:
  - the distribution of any source codes, header files, make files, or libraries of the software.
  - any merging, compiling, or copying of the software. 
  - alteration or removal of any notices in or on the software or within the documentation included within the software.
  - any distribution of the software that is not conducted with approval from Epi-interactive.
  - disclosure of any source codes pertaining to the software to third parties not included in this agreement.
*/

@font-face {
    font-family: 'Source Sans Pro - Regular';
    src: url(../SourceSansPro-Regular.ttf);
}

html, body {
    font-size: 17px;
    font-family: 'Source Sans Pro - Regular';
    color: #000F46;
    background: #F3FDFF;
  }

a {
    color: white !important;
    text-decoration: underline;
}

i {
    padding-right: 5px;
}

h4 {
    font-weight: bolder;
}

h5 {
    font-style: italic;
}

label {
    font-weight: bold;
}

img {
    margin-bottom: 20px;
}

text {
    font-family: 'Source Sans Pro - Regular';
}

hr {
    height: 2px;
    width: 110%;
    text-align: left;
    margin-left: 0px;
    border-width: 0px;
    color: #000F46;
    background-color: #000F46;
}

.row {
    margin-left: 0px;
    margin-right: 0px;
    margin-bottom: 30px;
}

.section {
    margin-bottom: 65px;
}

.border-blue {
    border-top: 3px solid #000F46;
}

.border-white {
    border-top: 3px solid white;
}

.no-padding {
    padding: 0px;
    margin-bottom: 0px;
}

.cursor-pointer {
    cursor: default !important;
}

/*-------Header---------------------*/

header {
    box-shadow: 0px 0px 6px 0px #00000029;
    background: #FFFFFF;
    height: 114px;
    margin-bottom: 25px;
}

#header-container {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 5px;
    height: 114px;
}

.header-modal {
    color: #000F46 !important;
    text-decoration: none !important;
    padding-right: 50px;
    margin-top: auto;
}

img.header-logo {
    margin-top: auto;
    margin-bottom: auto;
}

.modal-header {
    justify-content: flex-end;
}


header > div > div {
    margin-top: auto;
    margin-bottom: auto;
}

header > div > .col-3.offset-6.info-links > div {
    margin-top: auto;
    margin-bottom: auto;
}

header .info-links {
    margin-top: auto;
    margin-bottom: 19.5px;
}

.logo-holder {
    display: flex; 
    justify-content: space-between;
    font-size: 14px;
}

/*-------Body---------------------*/

.container-fluid {
    max-width: 1340px;
    padding-left: 30px;
    padding-right: 30px;
}

table {
    margin-bottom: 0px !important;
}

td {
    border: 2px solid white;
    width: 200px;
    height: 45px;
    padding: 10px !important;
}

th {
    height: 45px;
    padding: 10px !important;
    border-top: none !important;
}

td:first-child {
    border: none;
    border-right: 4px solid white;
    width: initial;
    text-align: right;
    padding-left: 0px !important;
    padding-right: 20px !important;
    white-space: nowrap;
    font-weight: bolder;
}

th {
    border-bottom: 4px solid white;
}

th:first-child {
    border: none !important;
}

[class^="col-"] {
    padding-left: 0px;
    padding-right: 0px;
}

#input-table [class^="col-"] {
    margin: 20px;
}

#table-link {
    margin-top: 50px;
}

div, input {
    border-radius: 0px;
}  

 [id^="Epos\."].control-label {
    display: none;
}

 [id^="Eneg\."].control-label {
    display: none;
}

button {
    border: none;
    border-top: 1px solid #000F46;
    background-color: transparent;
    outline: none !important;
    color: #000F46;
    white-space: nowrap;
    text-align: left;
    padding: 10px 0px;
}

#massocButtons button {
    display: flex;
    justify-content:space-between;
    cursor: pointer;
}

#massocButtons button:last-child {
    border-bottom: 1px solid #000F46;
}

#massocButtons button p strong{
   white-space: normal;
}

button.active {
    background-color: #000F46;
    color: white;
}

button [class^="col-"] {
    padding: 0px;
    padding-left: 5px;
}

button p {
    margin-bottom: 0px;
}

.circle {
    display: inline-block;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    background-color: #E77052;
    color: white;
    font-weight: bold;
    text-align: center;
}

.circle.hide {
    display: none;
}

button > p.col-5 {
    line-height: 15px;
}

.no-study {
    font-size: 14px;
    white-space: normal;
}

.download-icon {
    margin-bottom: auto;
    margin-top: auto;
    margin-right: 5px;
    color: #000F46;
}

.download-link {
    color: #000F46;
    text-decoration: underline;
}

.form-control {
    border-radius: 0px;
    border: none;
    color: #000F46;
}

.selectize-input {
    border-radius: 0px;
}

#header-container > div.col-3.offset-6.info-links > div.form-group.shiny-input-container {
    width: 150px;
}

.selectize-input {
    box-shadow: none !important;
    border-radius: 0px !important;
}
.item {
    color: #000F46 !important;
}

.option {
    color: #000F46 !important;
}

#lang-label {
    display: none;
}

#lang + div .selectize-input {
    width: 100%;
    border: none;
    font-size: 14px;
    color: #000F46;
    padding-left: 6px;
}

#header-container > div.col-3.offset-6.info-links > div.form-group.shiny-input-container > div > div > div.selectize-dropdown.single.plugin-selectize-plugin-a11y > div {
    white-space: nowrap;
}

#input-table {
  flex-wrap: nowrap;
}

.input-label {
    font-weight: bolder;
    height: 58px;
}

/*----Confidence interval----*/

#input-table > div.options-col.border-white > div > div > div:nth-child(2) > div:nth-child(1) {
    width: 100%;
}

#input-table > div.options-col.border-white > div > div > div:nth-child(2) > div:nth-child(1) > div > div {
    margin-bottom: 0px;
}


#input-table > div.options-col.border-white > div > div:nth-child(2) {
    display: flex;
    margin-bottom: 0px;
    padding-top: 10px;
}

/*----Study design----*/

#input-table > div.options-col.border-white > div > div > div:nth-child(2) > div:nth-child(3) {
    width: 100%
}

#method-label {
    padding-right: 10px;
    white-space: nowrap;
}

#methodSelect > div {
    width: 100%;
}

.options-col {
    flex: 0 0 39.333333%;
    max-width: 39.333333%;
    margin: 20px 20px 20px 70px;
}

.options-col.border-white > div > div:nth-child(3) > div {
    display: flex;
    margin-bottom: 0px;
}

.options-col.border-white > div > div:nth-child(3) > div > div{
    flex: 1 1 auto;
}

#methodSelect > div > div > div {
    margin-bottom: 12px;
}

/*----Multiplier----*/

#mult-label {
    padding-right: 10px;
}

.options-col.border-white > div > div:nth-child(4) {
    display: flex;
}

#mult {
    flex: 1 1 auto;
    height: 34px;
    border: 1px solid #cccccc
}

#header-container > div.col-3.offset-7.info-links > div {
    margin-bottom: 0;
}

.language-container{
  display: flex;
  align-items: flex-end;
}

.language-container i{
    font-size: 17px;
    font-weight: 900;
    color: rgb(1, 42, 88);
        padding-bottom: 5px;
    /*margin-top: auto;
    margin-bottom: auto;*/
}

.language-container .shiny-input-container:not(.shiny-input-container-inline) {
    width: 150px;
  
}

.language-container .selectize-control{
  height: 34px;
    margin-bottom: -5px;
}

.language-container .form-group {
     margin-bottom: 0; 
}

#header-container > div.col-3.offset-7.info-links > div.form-group.shiny-input-container > div > div {
    display: flex;
    margin-bottom: 0px;
}

.selectize-dropdown {
    border-radius: 0px !important;
}

.selectize-control.single .selectize-input:after {
    border-color: #000F46 transparent transparent transparent;
    right: 10px;
}

.selectize-control.single .selectize-input.dropdown-active:after {
    border-color: transparent transparent #000F46 transparent;
}

#input-table > div.col-6.offset-1 > div.col-5 > div {
    display: flex;
    width: initial;
}

.options-col.border-white > div {
    margin: 0;
    padding: 0;
}

#conf\.level-label, #method-label, #mult-label {
    display: none;
}

.heading {
    padding-top: 5px;
    font-size: 20px;
}

td .shiny-input-container:not(.shiny-input-container-inline) {
    width: 100%;
    margin: auto;
}

td .shiny-text-output.shiny-bound-output {
    width: 100%;
    margin: auto;
}

#input-table {
    background-color: #000F46;
    color: white;
}

#interp > p {
    padding: 25px 20px 15px 20px;
    border-top: solid 3px #E77052;
    background: #FFDCBA;
    margin-bottom: 0px;
}

#formula {
    background: #FFDCBA;
    font-weight: bold;
    padding-top: 5px;
    padding-left: 10px;
    padding-bottom: 20px;
}

#distPlot {
    height: 340px !important;
}

#distPlot > div > div > svg:nth-child(1) {
    background: #FFDCBA !important;
    height: 320px !important;
}

#gif {
    margin-bottom: 10px;
}

#replay-gif {
    color: #000F46 !important;
    text-decoration: underline;
    text-align: left;
    margin-bottom: 45px;
}

#replay-gif > span {
  cursor: pointer;
}

#redo {
    transform: scale(1,1) scale(-1,1) rotate(315deg);
}

#no-graphs {
    border-top: solid 3px #E77052;
    background: #FFDCBA;
    padding-top: 20px;
}

#no-graphs > div,#no-graphs > img {
    padding-left: 25px;
}

#no-graphs > div {
    padding-top: 5px;
}

#massocButtons {
    display: flex;
    flex-direction:column;
    cursor: pointer;
}

#massocText {
    font-weight: bold;
    font-size: 20px;
    margin-bottom: 36px;
    padding-top: 5px;
}

#formula > table {
    height: 91px;
}

td:first-child.formula-cell {
    border: none;
    padding: 10px !important;
}

.formula-cell {
    width: initial;
    text-align: center !important;
    border: none;
    padding: 10px !important;
}

.formula-cell.top {
    border-bottom: 1px solid #000F46;
}

#distPlot > div > div > svg:nth-child(3) > g.infolayer > g.g-xtitle > text {
    font-weight: bold !important;
}

#distPlot > div > div > svg:nth-child(3) > g.infolayer > g.g-ytitle > text {
    font-weight: bold !important;
}

g.xtick text {
    color: #000F46 !important;
    fill: #000F46 !important;
    font-size: 17px !important;
}

#twoByTable td {
    border: 2px solid #000F46;
    width: 20%;
    height: 45px;
}

#twoByTable td:first-child {
    border: none;
    border-right: 4px solid #000F46;
    width: initial;
    padding-right: 20px !important;
}

#twoByTable th {
    border-bottom: 4px solid #000F46;
}

#twoByTable th:nth-child(5), #twoByTable th:nth-child(6), #twoByTable td:nth-child(5), #twoByTable td:nth-child(6) {
    background-color: #3FA7C240;
}

#inc\.text {
    padding-top: 50px;
}

/*-------Footer---------------------*/

.logo-footer {
    flex-direction: column;
}

.logo-text {
    font-size: 14px;
    white-space: nowrap;
}

.logo-col {
    display: flex;
    flex-direction: column;
}

.logo-img {
    flex: 1 1 auto;
}

.info-links {
    display: flex; 
    justify-content: flex-end;
    font-size: 20px;
}

.footer-modal {
    text-decoration: none !important;
}

#footer-container {
    margin-bottom: 0px;
    padding: 30px 30px 50px 30px;
    margin-left: auto;
    margin-right: auto;
    
}

footer {
    background-color: #000F46;
    color: white;
    height: 240px;
}

#footer-container .border-white {
    border-width: 1px;
}

footer [class^="col-"] {
    padding-right: 25px;
}

footer .info-links {
    padding-right: 0px;
}

[id^="footer"][id$="Modal"]  {
    padding-top: 10px;
}

#aboutModal, #footerAboutModal, #helpModal, #footerHelpModal{
      white-space: nowrap;
}

#footerAboutModal{
    margin-right: 50px;
}

/* ------ Modal ----------------------------*/
.modal-body a {
    color: #000F46 !important;
    text-decoration: underline;
}

.modal-body img {
     margin-bottom: 0;
}

.flex-spacing{
  display: flex;
}

.flex-spacing > span  {
  display: flex;
  padding-left: 5px;
}

.flex-spacing > span:first-child  {
  padding-left: 0;
}
