/* share a static file between apps https://docs.djangoproject.com/en/1.10/howto/static-files/ */
html {
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;    
    min-height: 100lvh;
}

/* Edite already-existing styles */
h2, h3, h4 {
    color: rgb(0, 71, 48);
    font-weight: bold;
    margin-top: 1.5%;
}

h4 {
    font-size: large;
    font-style: italic;
}

h2:after {
    margin-top: 0%;
    margin-bottom: 1%;
    content: ' ';
    display: block;
    border: 1px double rgba(173, 236, 173, 0.685);
}

p {
    margin-bottom: 0.5%;
}

li {
    margin-left: 1%;
}

a {
    color: rgb(0, 99, 67);
}
th a {
    color: black;
}

/* Infos bulles pour les erreurs */
.errorlist { 
    margin-bottom: -10px; 
}

/* Header */
.myheader {
    background: linear-gradient(90deg, hwb(261 38% 24%), #2ebf91);  
    padding: 1px;
    margin-left: 200px;
}

.myheader-h1 {
    text-align: center; 
    vertical-align: middle; 
    font-weight: bold; 
    color: white; 
    line-height: 90px;
    font-family: Georgia;
    font-size: 300%;
}


.dropdown-menu {
    max-height: 280px;
    overflow-y: auto;
}

/* Sidebar inspired by https://www.w3schools.com/howto/howto_css_sidebar_responsive.asp*/


.mynav-logo-banner {
    margin: 5%;
    text-align: center;
}
#bioi2_menu_logo {
    width: 100%;
}

.sidebar {
    margin: 0;
    padding: 0;
    width: 200px;
    background-color: #f1f1f1;
    position: fixed;
    height: 100%;
    overflow: auto;
    font-family: sans-serif;
}

.sidebar a {
    display: block;
    color: black;
    padding: 10px;
    text-decoration: none;
}

.sidebar a:hover { 
    background-color: #555;
    color: white;
}

.sidebar a:focus {
    background-color: #04AA6D;
}


/* body */
.mybody {
    font-family: 'Helvetica';
    line-height: normal;
}

.mymain {
    display: flex;
    flex-direction: column;
    /* justify-content: space-between; */
    flex: 1 1 auto; 
    padding: 15px;
    vertical-align: top;
    margin-left: 205px;
    margin-right: 0.5%;
  }

.code_box {
    box-sizing: content-box;
    font-family: monospace;
    /* margin-right: 25%; */
    margin-top: 1%;
    margin-bottom: 1%;
    background-color: rgb(250, 250, 250);
    padding-bottom: 0.5%;
    padding-top: 0.5%;
    padding-left: 1%;
    padding-right: 1%;
    border: 3px rgb(206, 206, 206) solid;
    overflow: auto;
}


/* Green button to run AF2 or download results */
.GreenButton, .GreenButtonOff, .GreenButtonWait, .GreenButtonSmall {
    background-color: #04AA6D; 
    border: none;
    color: white;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    border-radius: 10px;
    margin-top: 1.5%;
    margin-bottom: 1%;
    font-weight: bold;
}

.GreenButtonSmall {
    padding: 5px 5px;
}

.GreenButton, .GreenButtonOff, .GreenButtonWait {
    padding: 15px 32px;
    font-size: 150%;
}

.GreenButtonSmall:hover {
    background-color: #555;
    pointer-events: auto;
    cursor: pointer; 
}

.GreenButton:hover {
    background-color: #555;
    pointer-events: auto;
    cursor: pointer;
}

.GreenButtonWait:hover {
    background-color: #555;
    pointer-events: auto;
    cursor: pointer;
}

.GreenButtonWait:focus {
    background-color: #555;
    pointer-events: auto;
    cursor: wait;
}

.GreenButtonOff {
    opacity: 0.25;
}

.GreenButtonOff:hover {
    pointer-events: auto;
    cursor: wait;
}

.mycontainer {
    display: flex;
}      

.mycolumn-col2 {
    flex: 50%;
    height: 50%;
    padding: 10px;
    margin: 5px;
    text-align: center;    
}

.myimg-centre-fit {
    padding: 0;
    display: block;
    margin: 0 auto;
    max-height: 100%;
    max-width: 100%;
}

.mywarning {
    color: rgb(175, 50, 0);
    font-weight: bold;
    font-size: 150%;
}
     
.controlsSection {
    width: 300px;
    float: left;
    padding: 40px 0 0 0;
    margin-left: 30px;
}

.my-legend .legend-title {
    text-align: left;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 90%;
    }
.my-legend .legend-scale ul {
    margin: 0;
    margin-bottom: 5px;
    padding: 0;
    float: left;
    list-style: none;
}
.my-legend .legend-scale ul li {
    font-size: 80%;
    list-style: none;
    margin-left: 0;
    line-height: 18px;
    margin-bottom: 2px;
}
.my-legend ul.legend-labels li span {
    display: block;
    float: left;
    height: 16px;
    width: 30px;
    margin-right: 5px;
    margin-left: 0;
    border: 1px solid #999;
}
.my-legend .legend-source {
    font-size: 70%;
    color: #999;
    clear: both;
}
.my-legend a {
    color: #777;
}


/* Footer */
.myfooter {
    bottom: 0;
    /* width: 100%; */
    height: 40px;
    background-color: #2ebf91;
    margin-left: 200px;
    padding: 0.5%;
}

.myfooter-text {
    margin-left: 0.5%;
    margin-right: 0.5%;
    color: black;
    display: flex;
    gap: 20px; /* Adjust as needed */    
}

.top {
    bottom: 0;
    align-self: self-end;
  }
  

/* On screens that are less than 700px wide, make the sidebar into a topbar */
@media screen and (max-width: 900px) {
    .sidebar {
      width: 100%;
      height: auto;
      position: relative;
      overflow: auto;
      white-space: nowrap;
    }
    .sidebar a {
        display: inline-block;
        text-align: center;
    }
    .mymain {
        margin-left: 1%;
        margin-right: 1%;
    }
    .mynav-logo-banner {
        margin: 0.5%;
        width:min-content;
    }
    #bioi2_menu_logo {
        width: 50px;
    }
    .myheader {
        margin-left: 0;
    }
    .myfooter {
        margin-left: 0;
    }
  }



/* snowflakes: https://pajasevi.github.io/CSSnowflakes/ */
/* customizable snowflake styling */
.snowflake {
    color: #fff;
    font-size: 2em;
    font-family: Arial, sans-serif;
    text-shadow: 0 0 5px #000;
}
.snowflake{
    animation-iteration-count:infinite; 
    animation-play-state:running
}
.snowflake .inner{
    animation-iteration-count:1;/*infinite*/
    animation-play-state:running
}
@keyframes snowflakes-fall{
    0%{transform:translateY(0)}
    100%{transform:translateY(200px)}
}
@keyframes snowflakes-shake{
    0%,100%{transform:translateX(0)}
    50%{transform:translateX(80px)}
}
.snowflake{
    position:fixed;
    top:-10%;
    z-index:9999;
    -webkit-user-select:none;
    user-select:none;
    cursor:default;
    animation-name:snowflakes-shake;
    animation-duration:3s;
    animation-timing-function:ease-in-out
}
.snowflake .inner{
    animation-duration:10s;
    animation-name:snowflakes-fall;
    animation-timing-function:linear
}
.snowflake:nth-of-type(0){
    left:1%;
    animation-delay:0s
}
.snowflake:nth-of-type(0) .inner{
    animation-delay:0s
}
.snowflake:first-of-type{
    left:10%;
    animation-delay:1s
}
.snowflake:first-of-type .inner,.snowflake:nth-of-type(8) .inner{
    animation-delay:1s
}
.snowflake:nth-of-type(2){
    left:20%;
    animation-delay:.5s
}
.snowflake:nth-of-type(2) .inner,.snowflake:nth-of-type(6) .inner{
    animation-delay:6s
}
.snowflake:nth-of-type(3){
    left:30%;
    animation-delay:2s
}
.snowflake:nth-of-type(11) .inner,.snowflake:nth-of-type(3) .inner{
    animation-delay:4s
}
.snowflake:nth-of-type(4){
    left:40%;
    animation-delay:2s
}
.snowflake:nth-of-type(10) .inner,.snowflake:nth-of-type(4) .inner{
    animation-delay:2s
}
.snowflake:nth-of-type(5){
    left:50%;
    animation-delay:3s
}
.snowflake:nth-of-type(5) .inner{
    animation-delay:8s
}
.snowflake:nth-of-type(6){
    left:60%;
    animation-delay:2s
}
.snowflake:nth-of-type(7){
    left:70%;
    animation-delay:1s
}
.snowflake:nth-of-type(7) .inner{
    animation-delay:2.5s
}
.snowflake:nth-of-type(8){
    left:80%;
    animation-delay:0s
}
.snowflake:nth-of-type(9){
    left:90%;
    animation-delay:1.5s
}
.snowflake:nth-of-type(9) .inner{
    animation-delay:3s
}
.snowflake:nth-of-type(10){
    left:25%;
    animation-delay:0s
}
.snowflake:nth-of-type(11){
    left:65%;
    animation-delay:2.5s
}

