@import url("base.css?v=12");
@import url("forms.css?v=12");

:root {
  --color-text: #333;
  --color-background: #eee;
  --color-primary1: #f84e2b;
  --color-secondary1: #00506e;
  --color-secondary2: #069bd2;

  --pane-padding: 5px 42px;
  --gutter: 0.8em;


  --main-color: hotpink;
  --pane-padding: 5px 42px;
  --gutter: 0.5em;
  /*--lanes-color: #ffd8b1;*/
}

a {
    color: var(--color-primary1);
    /* text-decoration: none;    this removes outline also: bad accessibility */
}
a:hover {
    /* opacity: 75%; */
    filter: brightness(120%);
}
a:visited {
    /* color: #f45000; */
}


.divider {
    height: 5px;
    background-image: linear-gradient(to right, #00506e , #ff774e, #ff774e);
}

#logo-idb {
    height: 2rem;
    margin-right: 2rem;
}
#logo-idom {
    /* padding-top: 0.3rem; */
    height: 1.1rem;
    margin: 0 2rem 0.3rem 0;
}

.card {
    /* border: solid 1px #bd4409; */
    /* background-color: #f4f4f4; */
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;

    -webkit-box-shadow: 0px 0px 30px 0px rgba(0,0,0,0.1);
    -moz-box-shadow: 0px 0px 30px 0px rgba(0,0,0,0.1);
    box-shadow: 0px 0px 30px 0px rgba(0,0,0,0.1);
}

.card h4 {
    margin-top: 0;
}

.subcards {
    margin: 0 -rem;
}

.subcard {
    display: inline-block;
    vertical-align: top;
    margin: 0 1rem;
}

.navlinks {
    margin: 0;
    text-align: right;
}



/* Project's main menu (project_detail) */

.project-sections {
    max-width: 35rem;
    margin: 2rem 0;
    /*
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    grid-auto-flow: row;
    gap: 2rem;
    width: 100%;
   */
}
.project-sections > a {
    color: #333;
    text-decoration: none;
}
.menuop {
    display: flex;
    margin: 1rem 0;
    border-radius: 0.5rem;
    box-shadow: 0px 0px 30px 0px rgba(0,0,0,0.1);
}
.menuop img {
    height: 5rem;
    border-radius: 0.5rem 0 0 0.5rem;
}
.menuop h3 {
    flex: 1 1 auto;
    margin: auto 1rem;
    /* background-color: orange; */
    
}
.menuop div {
    vertical-align: middle;
    margin: auto 1rem;
    font-size: 2rem;
    color: #29a829;
}
.menuop.disabled {
    filter: opacity(50%);
    background-color: white;
}

.menuop.disabled img {
    filter: grayscale(100%);
}

img.icon {
    height: 2rem;
    /* fill: #29a829;  only works with inlined svg, iframe or object, not with <img> */
    filter: invert(48%) sepia(79%) saturate(2476%) hue-rotate(86deg) brightness(80%) contrast(119%);
}


/* botones y textos de ayuda */
.annotated {
    margin: 0.5rem 0;
}
.annotated > * {
    display: inline-block;
    vertical-align: middle;
    margin: 0;
}
.collapsible {
    background-color: white;
    color: var(--color-text);
    font-size: 1rem;
    margin: 0 0.5rem;
    padding: 0 0.5rem;
                 
}
.active, .collapsible:hover {
    background-color: #eee;
}
.collapsible:focus {
    /* outline: none; */
}
.helptext {
    padding: 0 18px;
    margin: 1rem;
    background-color: #f1f1f1;
    border-left: var(--color-secondary2) 5px solid;  /* #15dada */
    display: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-in-out;
}



section.nav > a:visited {
    color #333;
}

section.nav:hover > a:hover {
    color orange;
}

section.nav > a:active {
  color: blue;
}




/* environment group form */
.envquestions {
    margin: 2rem 0;
    width: 100%;
}
/* .envquestions td:nth-child(2) input { */
.envquestions input[type="text"] {
    width:100%;
}
.envquestions td:nth-child(1) {
    text-align: center;
}
.envquestions td {
    padding: 0.5em;
}

textarea.envans {
    width: 100%;
    max-width: 30em;
}
label.top {
    display: block;
}

.label {
    /* font-variant: small-caps; */
    /* text-transform: lowercase; */
    /* text-transform: uppercase; */
}


.receptors {
}

.areatag {
    display: inline-block;
    height: 1rem;
    width: 1rem;
}


article.envarea {
    background: #e6e6e6;
}
div.envgroup {
    background: #ffffff;
    margin: 1em;
    padding: 0 0.5em;
}


/* Forms */


.form_field_inline {
    display: inline-block;
}

.form_field {
    /* background-color: #fcf; */
    vertical-align: top;
    margin: 0.8rem 0;
}

.form_field > textarea {
    height: 5rem;
}


.formgroup {
    display: flex;
    flex-wrap: wrap;  
}

.formgroup > div {
    flex: 1 1 auto;
    width: 20rem;
    max-width: 30em;
    margin: 0 0.5rem;
    /*margin: calc(2 * var(--gutter)); */
    /*background: #eee;
    border: solid 1px #cece1a;*/
}

.recepans {
    display: flex;
    flex-wrap: wrap;
}
.recepans > * {
    flex: 0 1 auto;
    margin: 0.5rem 1rem;
}
.recepans :nth-child(2) {
    flex: 1 1 auto;
}
.recepans li {
    white-space: nowrap;
}
.recepans textarea {
    width: 100%
}


form ul {
    list-style-type: none;
}
form label {
    display: block;
}
li label {
    display: inline-block;
}

/* leaflet maps */
#map {
    height: 500px;
    width: calc(100% - 1cm);  /* space left for touch devices */
    max-height: 300px;
}


.riskquestion {
    margin: 0.5rem 0;
    background-color: #e8f4fd;
    padding: 0.4rem 1rem;
    border-radius: 0.5rem;
    
}
.riskquestion .collapsible {
    background-color: #e8f4fd;
}

input[type="color"] {
    height: 2em;
    width: 4em;
}

input.risk {
    padding: 0;
    text-align: center;
    vertical-align: middle;
    
    
}

.final-score {
    font-size: 150%;
    padding: 0.2rem 0.5rem;
    margin: 1rem;
    font-weight: bold;
    background-color: #cefc7d;
    border-radius: .25rem;
}

table.factors {
    margin: 2rem 0;
}

/* modify buttons */
.btn.modify {
    background-color: #ffffff;
    color: var(--color-primary1);
    border: 2px solid var(--color-primary1);
}
.btn.modify:hover, .btn.modify:visited {
    color: var(--color-primary1);
}
.btn.modify:hover {
    background: #ffc4b8;
    color: #af361d;
}


/* hide up/down arrows ("spinners") on input fields marked type="number" */
.no-spinners {
    -moz-appearance: textfield;
}

.no-spinners::-webkit-outer-spin-button,
.no-spinners::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

p.area {
    padding: 1em;
    background: #eee;
    font-weight: 700;
}
.compact td {
    padding: 0.2em 0.5em;
}

.right {
    float: right;
}

.formtable th {
    border-bottom: 2px solid var(--color-text);
    text-align: left;
    padding: 0.2em 0.5em 0.2em 0.5em;
    margin: 0 0 1rem 0;
}
.formtable thead tr {
    height: 2.5em;
}


ul.hazards {
    column-width: 15em;
    list-style-type: none;
}

ul.hazards span {
    display: inline-block;
    width: 2em;
    text-align: right;
    padding-right: 0.3rem;
}

/* dt::after {
        content: ":";
}*/
dd {
    padding: 0 0 0.5em 1rem;
}


.receptors li > div {
    margin: 1rem;
}

.details {
    display: inline-block;
    /* display: none; */
    margin-left: 2rem;
    visibility: visible;
}

.fade-enter-active, .fade-leave-active {
  transition: opacity .5s;
}
.fade-enter, .fade-leave-to /* .fade-leave-active below version 2.1.8 */ {
    opacity: 0;
}

h5 {
    margin-top: .5rem;
}


/* forms */
/*form ul {
    background-color: cyan;
    list-style-type: none;  
}
form li {
    display: inline-block;
}*/
  
/*
background-image: linear-gradient(90deg,#ff8a00,#e52e71);
position: relative;

background-origin: content-box;
background-clip: border-box;
https://developer.mozilla.org/en-US/docs/Web/CSS/background-clip
*/


.applicable {
    font-weight: bold;
}

.question {
    padding: 1rem;
    margin: 1rem 0;
    background-color: #eee;
    /*border-radius: 0.25em 0.25em 0 0;*/
}
.question h3 {
    /*background-color: #0c0;*/
    box-shadow:  0 5px #ffa546;
    margin: 0;
}


article.impact {
    border: solid 1px;
    margin: 1em 0;
    padding: 1em;
}

article.impact p:first-child {
    font-weight: bold;
    display: inline-block;
    margin: 0;
}

article.impact span {
    color: red;
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

.buttons {
    margin: 1em -0.3em;
}
.buttons > * {
    display: inline-block;
    margin-left: 0.3em;
    margin-right: 0.3em;
}

.location {
    display: flex;
    flex-wrap: wrap;
}

.breadcums {
    flex: 1 1 auto;
}

.progress {
    flex: 0 1 auto;
    width: 30%;
    /* text-align: center;
    background-color: #eee; */
    /* display: inline-block;
    float: right; */
}
.location progress[value] {
    display: inline-block;
    background-color: #eee;
    border-radius: 2px;
}
/* color de la barra interior, el valor */
.location progress[value]::-webkit-progress-value,
.location progress[value]::-moz-progress-bar {
    /* background-color: var(--color-primary1); */
    background-color: #f3a97c;
}
