/* Custom styles for Emergency Animal Disease Surveillance */
/* By Epi-interactive */
/* April 2019 */

/* ===================================================== */
/* Header ============================================== */ 
/* ===================================================== */



#pageHeader {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    background-image: linear-gradient(white -54%, #9ab4c4 80%);
    border-bottom: 3px solid #2b475c;
}

#content {
    overflow-y: hidden;
}

#main-wrapper {
    height: auto !important;
}

#mobilePagination {
    display: none;
}

.topic-title + p {
    margin: 0;
}

img.goats-in-field {
    max-width:600px;
    min-width:400px
}

img.goats-on-grass {
    max-width: 500px;
    margin: 10px;
}

img.shed {
    min-width:400px
}



.iDevice_content img.goat-lying-down {
    max-width: 500px;
    width: auto;
    margin: 10px
}

img.goat-on-grass {
    width: 500px;
    margin: 0 20px;
}

img.lots-of-goats {
    max-width: 500px;
     margin: 10px;
}

img.foetus {
    max-width: 500px;
    margin: 10px;
}

img.placenta {
    max-width: 500px;
     margin: 10px;
}

img.feedback-hotline {
    width:19rem;
}

.custom-feedback table tr td:first-of-type {
    width: 30%;
}

table.specific-table tr td:first-of-type {
    width: 30%;
}

img.bacteria {
    max-width: 500px; 
    margin: 10px;
}

.heading {
    margin-right: auto;
    margin-left: 0.5rem;
}

#pageHeader, .headerTitle {
    /* margin: 0; */
    margin-bottom: 0;
    font-size: 30px;
    color:  #234966;
}

#pageHeader, .subtitle {
    margin-top: 0;
    font-size: 25px;
}

.buttons {
    font-size: 16px;
    margin-right: 1rem;
    font-weight: 600;
}

.buttons a {
    margin: 3px;
    font-weight: normal;
}


#topPagination .pagination {
    display: flex;
}

.pagination a {
    height: 32px;
    box-sizing: border-box;
}

button.glossary,
button.close-modal {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 5px;
    border: none;
    color: #ffffff;
    margin: 3px;
    font-weight: normal;
    background: #254966;
    font-size: 1.1em;
    cursor: pointer;
    height: 32px;
    box-sizing: border-box;
}

button.glossary:hover,
button.close-modal:hover {
    background-color: #555555;
}

button.close-modal {
    width: auto;
    max-width: 100px;
}

.modal-cross {
    font-size: 40px;
    background: none;
    border: none;
    margin-bottom: 20px;
    cursor: pointer;
    width: 50px;
    position: absolute;
    top: 20px;
    right: 60px;
}

/* Nav */
#nav-toggler {
    margin: 0;
    position: relative;
    top: 0;
    left: 0;
    font-size: .95em;
    background: #254966;
    border-radius: 0;
    padding: 10px;
    display: flex !important;
}

#nav-toggler #toggle-nav {
    margin-left: 30px;
    background: #b2c5cc;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
}

#nav-toggler #toggle-nav:hover {
    background: #888;
}

#nav-toggler i {
    color: white;
}

#nav-toggler a:hover {
    background-color: #333333;
}

#siteNav, #siteNav a {
    background-color: #bdc8ca;
    color: #555555;
    border-color: #f9f9f9;
}

#siteNav li#active a { 
    background: #254966;
    background: #254966;
    color: white
}
#siteNav {
    border-top: 10px solid #778992;
}

#main-wrapper {
    height: auto !important;
}

.print-page {
    display: none !important;
}

.pagination .footer-help {
    font-size: 14px;
    float: left;
    margin-left: 25px;
}

.pagination .footer-help a {
    background: none;
    color: #2495ff;
    cursor: pointer;
    padding: 0;
}

/* Index */
.index-article {
    width: 50%
}

.index-image {
    width: 40%;
    float: right;
    margin-right: 5%;
}

/* Buttons */
.pagination a {
    background: #254966;
}

input[type="button"], input[type="submit"], button.primary  {
    background: #254966;
    color: white;
    padding: 5px 15px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
}

button.primary {
    font-size: 16.8px;
    padding: 10px 15px;
}

.iDevice_content img.image-full {
    width: 80%;
    margin: 5% 10% 0 10%;
    max-width: unset;
}

h1#nodeSubTitle {
    font-size: 0.8em;
    color: #254966;
}

.specific-bio-feedback {
    display: none;
}

.iDeviceTitle {
    padding: 0
}

/* Player */

.mejs-container .mejs-controls {
    background: #254966 !important;
    border-radius: 5px;
}

.mejs-controls .mejs-time-rail .mejs-time-total {
    background: #b2c5cc !important;
}

/* Headings */

#nodeTitle {
    font-weight: bold;
    color: #254966;
}

/* Content */

.flex-container {
    display: flex;
}

.flex-container.row {
    flex-direction: row;
    align-items: flex-start;
}

.flex-container.column {
    flex-direction: column;
}

.flex-container .iDevice_content img {
    float: none;
}

/* Author JS start */

.grid {
    display: grid;
}

.two-columns {
    grid-template-columns: 1fr 1fr;
}

.one-columns {
    grid-template-columns: 1fr;
}


.imageCheckbox {
    display: flex;
    flex-flow: column-reverse;
    align-items: center;
    margin: 0 5px;

}

._imageCheckboxes{
    justify-content: center;
}



/* end */

.iDevice_content img {
    width: 50%;
    max-width: 500px;
    float: right;
    margin-left: 20px;
}

textarea {
    font-family: 'Open Sans';
    font-size: 1em;
    padding: 5px;
    resize: none;
}

.submit-first-question {
    width: 60%;
    margin-bottom: 40px; 
}

.iDevice_content {
    overflow: unset;
}

.mejs-inner .mejs-button.mejs-volume-button.mejs-mute,
.mejs-inner .mejs-horizontal-volume-slider.mejs-mute {
    display: none;
}

.heatmap-container {
    width: 100%;
}

.heatmap-container .heatmap {
    display: none;
    margin: 30px 0;
    transition: all 0.4s ease;
    width: 550px;
}

.heatmap-container .heatmap.activating {
    display: block;
    opacity: 0;
    transition: all 0.4s ease;
}

.heatmap-container .heatmap.active { 
    display: block;
    opacity: 1;
}

.bold {
    font-weight: bold;
}

.italics {
    font-style: italic;
}

img.suit-up-image {
    width: 200px;
    height: 500px;
    margin-right: 50px;
}

.no-margin-top {
    margin-top: 0;
}

/* Modal and Modal Button */

.modal-trigger {
    border: none;
    font-size: 1em;
    background: none;
    color: #2495ff;
    margin: 0;
    padding: 0;
    text-decoration: underline;
    cursor: pointer;
    font-family: "Open sans";
}

.modal-trigger:hover {
    text-decoration: none;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(51, 51, 51, 0.7);
    display: none;
    opacity: 0;
    z-index: 1000;
    transition: all 0.4s ease;
    box-sizing: border-box;
}

.modal-overlay.activating,
.modal-overlay.deactivating {
    display: block;
}

.modal-overlay.active {
    display: block;
    opacity: 1;
    overflow-y: scroll;
}

body.no-scroll {
    overflow-y: hidden;
}

.toggle-idevice a {
    display: none;
}

.footnote {
    margin: 20px 0;
    font-style: italic;
}

.modal {
    position: fixed;
    width: 80%;
    height: 80%;
    background: #f9f9f9;
    top: 10%;
    left: 10%;
    box-shadow: 0 0 20px 20px rgb(0,0,0, 0.2);
    display: none;
    opacity: 0;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    transition: all 0.4s ease;
    text-align: left;
    padding: 30px;
    overflow-y: auto;
}

.modal h1,
.modal h3 {
    margin: 0;
}

.modal p,
.modal ul {
    margin-top: 0;
}
.modal iframe {
    width: 100%;
}

.modal p + ul {
    margin-top: -20px;
}

.modal.activating,
.modal.deactivating {
    display: flex;
    top: 20%;
}

.modal.active {
    display: flex;
    opacity: 1;
}


.modal-header {
    width: 100%;
    height: 10%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    border-bottom: solid 1px #ccc;
}

.modal-footer {
    width: 100%;
    height: 10%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    border-top: solid 1px #ccc;
}

.modal-header button {
    margin-right: 2vw;
    background: transparent;
    border: none;
    font-size: 2em; 
    color: #254966;
    cursor: pointer;
}

.modal-footer button{
    margin-right: 2vw;
}


/* Custom accordian */

.custom-accordion {
    background: #333;
    border-radius: 3px;

}

.custom-accordion h3 {
    margin-bottom: 0;
}


.exe-fx.exe-accordion.custom-accordion {
    width: 100%;
    margin-left: 0;
}

.accordion-heading {
    padding: 15px;
    background: #333;
    transition: all linear 0.15s;
    color: #fff;
    cursor:pointer;
    border-top: solid 1px rgba(255, 255, 255, 0.2);
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
}

.accordion-heading:hover {
    background: #4b4b4b;
}

.accordion-body {
    display: none;
}

/* Carousel */

.fx-carousel-content {
    display: none;
    background: #ededed;
    padding: 1px 15px .5em 15px;
    border-radius: 5px;
    margin: 0 65px;
    min-height: 250px;
}

.fx-carousel-pagination a {
    color: #254966;
}

.js .exe-tabs {
    width: 100%;
}

.exe-tabs .fx-tabs a {
    color: #254966;
}

.fx-tabs .fx-current a {
    font-weight: bold;
}

.image-caption {
    font-size: 12px;
    font-style: italic;
    text-align: left;
    margin-left: 10%;
    padding-right: 10%;
}

.flex-container .foetus-image {
    width: 100%;
}

/* Feedback */

.wrong-option, .red  {
    color: #fc4a4a
}

.right-option, .green  {
    color: #1bc00c;
}


.feedback table {
    width: 100%;
    text-align: left;
}

.submit-first-question .answer {
    display: none;
}

.submit-first-question .answer.show {
    display: block;
    margin: 15px 0 30px 0 ;
    font-style: italic;
}

.custom-cloze-feedback {
    display: none;
}

.custom-cloze-feedback.active {
    display: block;
}


/* Tables */
table, td, tr, tbody {
    border: none;
    border-spacing: 0;
}

tbody tr:first-of-type {
    font-weight: bold;
    border-bottom: 1px solid black;
}

tbody tr:nth-child(odd) {
    background: #eee;
}

tbody td {
    border: none;
    padding: 10px;
}

tbody td:first-of-type {
    font-weight: bold;
}

td {
    padding: 3px;
}

table select {
    padding: 5px;
    border-radius: 5px;
    background: white;
}

.custom-feedback {
    display: none;
}



/* Word detection start */

#detect {
    position: relative;
    border: solid 1px rgb(169,169,169);
    border-radius: 3px;
    resize: none;
    padding: 10px;
    width: 50%;
    min-height: 10em;
    font-family: "Open Sans";
    font-size: 1em;
    background-color: transparent;
    margin-bottom: 30px;
}

.detect-feedback {
    margin-top: 20px;
}

.highlight-note {
    margin-bottom: 10px;
}

.cover {
    color: black;
}

.hidden {
    display: none;
}

.keyword {
    background: transparent;
    animation: fadeIn 0.3s ease forwards;
}

/* added for selects on topic_4 page */
select {
    cursor: pointer;
}

/* used to hide answers on specific_biosecurity_considerations page */
.answer {
    display: none;
}


@keyframes fadeIn {
    from { background: transparent; }
    to { background: rgb(100, 211, 96); }
}


/* Media query getting near mobile viewport*/
@media only screen and (max-width: 900px) {
    /* to allow photos to stack (1 column) */
  .flex-container.row {
      flex-direction: column;
      align-items: flex-start;
  }
  .grid.two-columns {
      grid-template-columns: 1fr;
  }

  .flex-container.row._imageCheckboxes {
    align-items: center;

  }

}

@media only screen and (max-width: 1100px) {
    /* to allow photos to stack (1 column) */
  .flex-container.row#generalClinical {
      flex-direction: column;
      align-items: flex-start;
  }
  

}


/* Media query for larger screens */
@media only screen and (min-width: 1100px) {
    /* to allow photos to stack (1 column) */
  #placeta_imgs {
      flex-direction: row;
      align-items: flex-start;
  }
  /* Allow each image to occupy equal space */
  #placeta_imgs div {
    width: 50%;
  }

}

@media (max-width: 768px) {
    .pagination .footer-help {
        float: none;
        text-align: left;
        display: block;
        margin-bottom: 20px;
    }

    #bottomPagination .next {
        margin-bottom: 30px;
    }

    .pagination {
        height: auto;
        padding-bottom: 60px;
    }

    img.arrow-chart {
        width: 100%;
        padding: 0;
    }

    .flex-container.dead-cows {
        flex-direction: column-reverse;
    }

    .flex-container.bubble-container {
        flex-direction: column;
    }

    .bubble-text {
        margin-left: 0;
        margin-top: 40px;
        width: 100%;
    }

    .bubble-text::after {
        top: -20px;
        left: calc(50% - 20px);
    }

    .cloze-form select {
        max-width: 100%;
    }

    img.section-graphic {
        width: 100%;
    }

    .section-graphic-heading {
        padding-left: 0;
    }

    #mobilePagination {
        display: block;
        position: relative;
        top: -46px;
    }

    #mobilePagination .pagination {
        padding: 0;
        text-align: right;
        position: absolute;
        right: 0;
        top: 0;
    }

    .topic-title + p {
        display: none;
    }

    .modal {
        height: 90%;
        width: 90%;
        left: 5%;
        top: 5%;
        padding: 5px;
    }

    .modal-cross {
        right: 15px;
    }

}

@media(max-width: 1000px) {
    #topPagination {
        display: none;
    }

    #mobilePagination {
        display: block;
        position: relative;
        top: -46px;
    }

    #mobilePagination .pagination {
        padding: 0;
        text-align: right;
        position: absolute;
        right: 0;
        top: 0;
    }

    img.goats-in-field {
        max-width: 100%;
        min-width: 0;
        width: 100%;
        margin: 0;
        float: none;
    }

    img.shed {
        min-width: 0;
        width: 100%;
        margin: 0;
    }

    #detect {
        margin: 0 0 20px 0;
        width: 92%;
    }

    .custom-feedback table tr td:first-of-type {
        width: 40%;
    }

    .iDevice_content img.goat-lying-down {
        margin: 0;
        min-width: 0;
        max-width: 100000px;
        width: 100%;
    }

    img.lots-of-goats {
        width: 100%;
        margin: 0;
    }

    img.foetus {
        max-width: 10000px;
        width: 100%;
        margin: 0;
    }

    img.placenta {
        max-width: 10000px;
        width: 100%;
        margin: 0;
    }

    img.feedback-hotline {
        width: 100%;
        margin-left: -10px;
    }

    table.specific-table tr td:first-of-type {
        width: 50%;
    }

    img.bacteria {
        max-width: 5000px; 
        margin: 0;
        width: 100%;
    }

    img.goat-on-grass {
        width: 100%;
        margin: 0;
    }

    .flex-container div {
        max-width: 100%;
    }

}

