html, body {
    height: 100%;
}

#map {
    height:450px
}

#myForm {
    margin-left: auto;
    margin-right: auto;
}

#loginbackground {
    position: absolute;
    top: 50%; 
    height: 50%; 
    width: 100%; 
    background-color:#D70000; 
    left:0;
}

#logincard {
    margin: 8% auto; 
    width: 500px; 
    max-width:90%; 
    z-index:1; 
    padding: 30px;
}

#login_container {
    width: 100%;
    height: 100%;
    background: #fff;
    background: linear-gradient(bottom, #D70000 50%,  #fff 50%);
    background: -o-linear-gradient(bottom, #D70000 50%, #fff 50%);
    background: -moz-linear-gradient(bottom, #D70000 50%, #fff 50%);
    background: -webkit-linear-gradient(bottom, #D70000 50%, #fff 50%);
    background: -ms-linear-gradient(bottom, #D70000 50%, #fff 50%);
}



.ui.button.mainButtonColor {
    background-color:#D70000;
    color:white;
}

.ui.card.loginForm {
    width: 500px;
    max-width: 90%;
    margin: 8% auto;
    padding: 2%;
}

li a {
    color: grey;
}

.comment {
    margin: 20px 0px 20px 20px;
}

.ui.card .commentReply {
    background-color: #f6f6f6;
    padding: 1em;
    box-shadow: none;
    border-radius: 1rem;
    margin: 1rem;
    width: 90%;
}

.ui.card .commentParent {
    /* box-shadow: none; */
}

.ui.button {
    margin: 5px 0px 5px 0px;
}

@media screen and (min-width: 480px){
    #mobile-menu {
        display: none !important;
    }

    .desktop-menu {
        display: block !important;
    }

    #mobile-sub-menu {
        display: none !important;
    }

    #desktop-sub-menu {
        display: flex !important;
    }

    .small-width-page  {
        width: 60%;
        margin: 0;
    }

    .ui.card.small-width-page {
        width: 60%;
        margin: 0;
        padding: 3%;
    }


    .ui.vertical.divider {
        height: 30%;
    }

    #logintitle {
        position: relative;
        text-align:center; 
        color: #D70000; 
        font-size: 5rem; 
        padding-top: 3%;
        font-weight: 800;
        z-index: 1;
        margin-top: 0;
    }


}

@media screen and (max-width: 1500px){
    .small-width-page {
        width: 80%;
        margin: 0;
    }

    .ui.card.small-width-page {
        width: 80%;
        margin: 0;
        padding: 3%;
    }

    .ui.vertical.divider {
        height: 25%;
    }

    #logintitle {
        position: relative;
        text-align:center; 
        color: #D70000; 
        font-size: 4rem; 
        padding-top: 3%;
        padding-bottom: 10%;
        font-weight: 800;
        z-index: 1;

    }
}

@media screen and (max-width: 480px){
    #mobile-menu {
        display: block !important;
     }

     #mobile-menu i{
             margin: 0 auto -0.3rem !important;
     }

    .desktop-menu {
        display: none !important;
    }

    #mobile-sub-menu {
        display: flex !important;
    }

    #desktop-sub-menu {
        display: none !important;
    }

    .small-width-page .ui.card.small-width-page {
        width: 100%;
        margin: 0;
    }

    .ui.segment {
        padding: 0%;
    }



    .ui.card.small-width-page {
        width: 100%;
        margin: 0;
        padding: 4%;
    }

    .ui.vertical.divider {
        height: 0%;
    }

    #logintitle {
        position: relative;
        text-align:center; 
        color: #D70000; 
        font-size: 3rem; 
        padding-top: 3%;
        padding-bottom: 10%;
        font-weight: 800;
        z-index: 1;

    }

    .ui.cards {
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
    }

    #results_question, #results_chart {
        width: 100% !important; 
    }
}



.message {
    width: 300px;
    background-color: #faf0e6;
    border-radius: 10px;
}

.message * {
    padding: 10px;
}

.title {
    font-weight: bold;
}

/* BEGIN COMMENTS */


.comment {
    padding: 10px;
    margin: 10px;
    position: relative;
    margin-left: -40px;
}

.comment_li {
    list-style: none;

}

.comment_last {
    padding: 10px;
    margin: 10px;
}

.comment_info {
    line-height: 24px;
    position: relative;
}

.comment_user {
    margin-right: 10px;
    font-weight: bold;
    color: #666;
    font-size: .99em;
    cursor: pointer;
    float: left;
    width: 100%;
}

.comment_reply_user {
    text-decoration: underline;
    font-weight: bold;
    color: #666;
    font-size: .99em;
    cursor: pointer;
    position: inline;
    margin-right: 10px;
}

.comment_data {
    font-size: 11px;
    color: #666;
    margin-top: 10px;
    position: absolute;
    right: 1em;
}

.comment_text {
    margin-top: 10px;
    float: inherit;
    font-size: 1.08em;
    color: black;
}

.comment_reply_link.ui.label {
    color: #004276;
    margin-top: 20px;
}

.comments_length {
    padding-left: 15px;
    font-weight: bold;
}

#form-comment {
    padding: 15px;
    margin: 15px;
    width: 500px;
}

form label {
    float: left;
    width: 130px;
}

label[for=id_honeypot],
#id_honeypot {
  display: none;
}

#cancel_reply {
    display: none;
}

.comments #cancel_reply {
  display: inline;
}

/* END COMMENTS */

#currentPage {
    opacity: 0.9;
    color: #e6e6e6 !important;
    font-weight: 900 !important;
}

.ui.segment {
    margin: 0;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    background: #f6f6ff;
}

body {
    background-color: #f6f6f6;
}

#wrap_write_comment {
    display: none;
}

.dataTables_filter {
    float: right;
    margin-bottom: 10px;
}

.dataTables_wrapper {
    display:inline;
}

.dataTables_wrapper span.invisible {
    display:none;
}

table .ui.button {
    margin: 0;
}

#questionProgressBar {
    position: sticky;
    width: 100%;
    z-index: 1;
    top: 0;
    margin: 0;
    background: rgb(230, 230, 230);
}

#percentageCorrect {
    position: sticky;
    float: right;
    z-index: 100;
    margin-top: 1%;
    top: 3%;
}

.ui.selection {
    width: 100%;
    margin-left: 0;
}

.ui.selection.dropdownTable {
    width: auto;
    min-height: auto;
}

.image-container { position: relative; display: inline-block; min-height: 100px; width: 100%;}
.image-container img { display: block; }
.image-container .button { position: absolute; left:0; bottom:0; margin: 0;}

.image-container-quiz { display: inline-block; min-height: 100px; width:49%;}

.quiz-image {
    max-width: 100%;
}

.ui.button.list-vote-button  {
    margin: 0;
    text-align: left; 
    color:black !important;
    padding: 0.7em;
    border-radius: 1rem;
    display: inline-block;
    position: absolute;
    right: 1%;
}

.ui.basic.blue.button.list-vote-button {
    background-color: #a1dddd;
    box-shadow: none;

}

span.list-vote-option-text > p {
    display: inline-block;
    width: 90%;
}

.ui.table > tbody > tr > td.bigBorder, .ui.table > tr > td.bigBorder {
    border-top: 2px solid rgba(34, 36, 38, .5);
}

textarea {
    height: 100px;
}

.ui.button.activity-button, .ui.buttons.activity-button {
    margin: 5px 0 5px 0;
    width: 100%;
    display: flex;
    justify-content: center;
}

.ui.buttons.activity-button>.ui.button {
    border: 1px;
    border-style: solid;
    flex: 1;
    text-align: center;
}

.paginate_button {
    background-color: #2185d0;
    color: #fff;
    padding: 0.4rem;
    margin: 50px 2px 5px 2px;
    border-radius: 0.3rem;
    cursor: pointer;
}

.paginate_button:hover {
    color: white;
}

.dataTables_paginate {
    margin-top: 20px;
}

.ui.table > tbody > tr > td.select-checkbox {
    padding: 0;
}

table.dataTable tbody td.select-checkbox::before, table.dataTable tbody td.select-checkbox::after, table.dataTable tbody th.select-checkbox::before, table.dataTable tbody th.select-checkbox::after {
    top: auto;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    margin-left: -8px;
}

table.dataTable tr.selected td.select-checkbox::after, table.dataTable tr.selected th.select-checkbox::after {
    margin-left: -8px;
}

.selectAll {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -8px;
    margin-left: -8px;
}

.tabular.menu {
    overflow: auto;
}

.left {
    padding : 5px;
}

/*Legend specific*/
.legend {
  padding: 6px 8px;
  font: 14px Arial, Helvetica, sans-serif;
  background: white;
  background: rgba(255, 255, 255, 0.8);
  /*box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);*/
  /*border-radius: 5px;*/
  line-height: 24px;
  color: #555;
}
.legend h4 {
  text-align: center;
  font-size: 16px;
  margin: 2px 12px 8px;
  color: #777;
}

.legend span {
  position: relative;
  bottom: 3px;
}

.legend i {
  width: 18px;
  height: 18px;
  float: left;
  margin: 0 8px 0 0;
  opacity: 1;
}

.legend i.icon {
  background-size: 18px;
  background-color: rgba(255, 255, 255, 1);
}

.slider_container {
    padding:10px;
    margin: 10px; /* add some spacing between items */
    margin-bottom: 0;
    text-align: center; /* center text horizontally */
}

.slider_container table{
    width: 100%;
}

.slider_container table tr td input {
    width : 100%
}
.table-text {
    padding-top: 0px;
    width: 24%;
}

#slider {
  width: 100%;
  height: 5px;
  background-color: #b9b9b9;
  outline: none;
  -webkit-appearance: none;
  border-radius: 5px;
}

#slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background-color: #4285F4;
  border-radius: 50%;
  cursor: pointer;
}

#slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background-color: #4285F4;
  border-radius: 50%;
  cursor: pointer;
}

#slider_pov {
  width: 100%;
  height: 5px;
  background-color: #b9b9b9;
  outline: none;
  -webkit-appearance: none;
  border-radius: 5px;
}

#slider_pov::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background-color: #4285F4;
  border-radius: 50%;
  cursor: pointer;
}

#slider_pov::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background-color: #4285F4;
  border-radius: 50%;
  cursor: pointer;
}

.dropbtn {
    cursor: pointer;
    display: inline-block;
    min-height: 1em;
    outline: 0;
    border: none;
    vertical-align: baseline;
    background: #e0e1e2 none;
    color: rgba(0,0,0,.6);
    font-family: Lato,'Helvetica Neue',Arial,Helvetica,sans-serif;
    margin: 0 0.25em 0 0;
    padding: 0.78571429em 1.5em 0.78571429em;
    text-transform: none;
    text-shadow: none;
    font-weight: 700;
    line-height: 1em;
    font-style: normal;
    text-align: center;
    text-decoration: none;
    border-radius: 0.28571429rem;
    -webkit-box-shadow: 0 0 0 1px transparent inset, 0 0 0 0 rgba(34,36,38,.15) inset;
    box-shadow: 0 0 0 1px transparent inset, 0 0 0 0 rgba(34,36,38,.15) inset;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-transition: opacity .1s ease,background-color .1s ease,color .1s ease,background .1s ease,-webkit-box-shadow .1s ease;
    transition: opacity .1s ease,background-color .1s ease,color .1s ease,background .1s ease,-webkit-box-shadow .1s ease;
    transition: opacity .1s ease,background-color .1s ease,color .1s ease,box-shadow .1s ease,background .1s ease;
    transition: opacity .1s ease,background-color .1s ease,color .1s ease,box-shadow .1s ease,background .1s ease,-webkit-box-shadow .1s ease;
    will-change: auto;
    -webkit-tap-highlight-color: transparent;
    background-color: #f2711c;
    color: white;
    padding: 11px 21px;
    margin: 5px 0px 5px 0px;
    font-size: 1rem;
    border: none;
    cursor: pointer;
}

.dropbtn:hover, .dropbtn:focus {
  background-color: #D96519;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f1f1f1;
  min-width: 160px;
  overflow: auto;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.dropdown a:hover {background-color: #ddd;}

.show {display: block;}

.legend {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.legend-item {
  display: flex;
  align-items: center;
  margin-right: 20px;
}

.legend-item span {
  display: inline-block;
  margin-right: 5px;
}

.legend-item span.color-high {
  background-color: #990066;
  width: 10px;
  height: 10px;
}

.legend-item span.color-medium {
  background-color: #F08080;
  width: 10px;
  height: 10px;
}

.legend-item span.color-low {
  background-color: #6495ED;
  width: 10px;
  height: 10px;
}

.legend-item span.color-none {
  background-color: #808080;
  width: 10px;
  height: 10px;
}

.but-legend{
    width: 100%
}

.background-gifs {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    overflow: hidden;
    z-index: 0;
}

.bottom-section {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50vh;
    background-color: #f0f0f0;
}

.gif-container {
    position: relative;
    display: inline-block;
}

#gif-image {
    max-width: 100%;
    max-height: 100%;
    display: block;
    opacity: 0; /* Initially set opacity to 0 */
    transition: opacity 0.3s ease; /* Add transition for opacity */
}


.arrow-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 35px; /* Adjust as needed */
    color: #ffffff; /* Example color for arrow icons */
    cursor: pointer;
}

#prev-button {
    left: 0;
    color: #0F0F0F;
    padding-left: 10px
}

#next-button {
    right: 0;
    color: #0F0F0F;
    padding-right: 10px
}

.tooltip {
    display: none;
    position: absolute;
    bottom: 45px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    max-width: 33%
}

.tooltip-left {
    margin-left: 20px
}

.tooltip-center {
    left: 50%;
    transform: translateX(-50%);
}

.gif:hover .tooltip {
    display: block;
}

/* Semantic-UI overrides */
[class^="icon-"], [class*=" icon-"] {
    font-family: inherit !important;
    font-weight: inherit !important;
    font-style: inherit !important;
    text-decoration: inherit !important;
    -webkit-font-smoothing: inherit !important;
}

.ui.secondary.stackable.menu {
    display: flex !important;
    flex-wrap: wrap !important;
}
