body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: calc(15px + 0.390625vw);
  color: #2D3137;
}

:any-link {
  color:#2D3137;
}
:any-link:hover {
  color:#40a7f3;
}

h1 {
  font-size: 1.8em;
}
h2 {
  font-size: 1.6em;
}
h3 {
  font-size: 1.4em;
}
h4 {
  font-size: 1.2em;
}
h5 {
  font-size: 1em;
}

/* Index Page (choose module) styling ------------------------------------------------------------ */ 

.moduleContainer {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  
  /* center vertically */
  position: absolute;
  top: 50%;
  left:25%;
  right: 25%;
  /*-ms-transform: translateY(-50%);*/
  transform: translateY(-50%);
  
  /* center / align items */
  justify-content: center;
  align-content: center;
  gap: 10px 20px; 

}

a.modules {
  padding: 5px;
  width: 222px; 
  height: auto; 
  margin: 1px; 
  filter: opacity(77%);
}

a.modules:hover {
  filter: saturate(100%);
}

img.moduleImage {
  width: 100%;
  
}

.textContainer {
  display: flex;
  flex-direction: column;
  align-items:center;
}

.textContainer h1, h2, h3, h4, h5 {
  margin: 5px; 
}

.textContainer h3 {
  margin: 40px 0 5px 0; 
}

/* viewer styling ----------------------------------------------------------------------------- */ 

.topArea {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
 
  
}

#logo-link {
    height: 50px;
    margin-bottom: 0px;
  
}

.logo-img {
  height: 100%;

}
.logo-img:hover {
  filter: none;
  
}


.nav-firstRow {
 display: flex;
 flex-direction: row; 
 flex-wrap: wrap; 
 justify-content:center;
 gap: 3px;
 
}

#viewer-button {
  background-color: rgb(245, 245, 245, 0.5);
  text-decoration-line: none;
  font-size: calc(10px + 0.7vw);
  text-align:center;
  border: solid silver;
  border-radius: 5px;
  padding: 5px 10px;
  width: 25vw;
  
}
#viewer-button:hover {
  font-weight: bolder;
  border: solid #2D3137;
  color: #2D3137;
}


#canvas {
    height: 333px;
    padding: 0;
    margin: 5px 0;
    border:rgba(194, 199, 205, 1) solid 1px;
  }



.nav-secondRow {
  margin-top: 0px;
  
}


#attribute-button {
  position:absolute;
  right:7px;
  z-index: 100;
  
  background-color: #40a7f3;
  color: black;
  text-decoration-line: none;
  border: solid black;
  border-radius: 5px;
  padding: 3px 10px;
  margin-right: 0;
  font-size: 0.75em;
  width: 150px;
}

#attribute-button:hover {
  font-weight: bolder;
  cursor: pointer;
}

.attributes {
  border: solid 1px grey; 
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: space-between; 
  /* align-items: flex-start; */
  padding: 0 5px 5px 5px;
  margin-top: 33px;
}

#attribute-div{
  display: none;
}

.attributeContainer {
 border: solid 1px lightgrey;
 display: flex;
 flex-direction: row; 
 flex-wrap: wrap;
 justify-content: space-between;
 padding: 3px;
 margin: 5px 0 0 0; 
}

.attributeField {
  text-align: left;
  /* make container visible */
  /*
  border: solid 0.5px blue;
  */
  width: 55%;
  line-break: loose;
  
}

/* editor styling (on top) ------------------------------------------------------------------------------------- */

#editor-menu {
  color: #662E92;
  font-size: 10px;
  margin-right: 10px; 
}

.editor-button {
  background-color: #662E92;
  color: whitesmoke;
  text-decoration-line: none;
  border: solid black;
  border-radius: 5px;
  padding: 5px 10px;
  width: 10em;
  font-size: 1em;
  text-align:center;
}
.editor-button:hover {
  color: white;
  font-weight: bold;
}
.editor-button:active {
  background-color: white;
  color: #2D3137;
}


/* from here on, this is all prewritten bpmn.js css (copied from bpmn-js.css ------------------------------------------------------------ */
.bjs-container {
    --bjs-font-family: Arial, sans-serif;
  
    --color-grey-225-10-15: hsl(225, 10%, 15%);
    --color-grey-225-10-35: hsl(225, 10%, 35%);
    --color-grey-225-10-55: hsl(225, 10%, 55%);
    --color-grey-225-10-75: hsl(225, 10%, 75%);
    --color-grey-225-10-80: hsl(225, 10%, 80%);
    --color-grey-225-10-85: hsl(225, 10%, 85%);
    --color-grey-225-10-90: hsl(225, 10%, 90%);
    --color-grey-225-10-95: hsl(225, 10%, 95%);
    --color-grey-225-10-97: hsl(225, 10%, 97%);
  
    --color-blue-205-100-45: hsl(205, 100%, 45%);
    --color-blue-205-100-45-opacity-30: hsla(205, 100%, 45%, 30%);
    --color-blue-205-100-50: hsl(205, 100%, 50%);
    --color-blue-205-100-95: hsl(205, 100%, 95%);
  
    --color-green-150-86-44: hsl(150, 86%, 44%);
  
    --color-red-360-100-40: hsl(360, 100%, 40%);
    --color-red-360-100-45: hsl(360, 100%, 45%);
    --color-red-360-100-92: hsl(360, 100%, 92%);
    --color-red-360-100-97: hsl(360, 100%, 97%);
  
    --color-white: hsl(0, 0%, 100%);
    --color-black: hsl(0, 0%, 0%);
    --color-black-opacity-05: hsla(0, 0%, 0%, 5%);
    --color-black-opacity-10: hsla(0, 0%, 0%, 10%);
  
    --breadcrumbs-font-family: var(--bjs-font-family);
    --breadcrumbs-item-color: var(--color-blue-205-100-50);
    --breadcrumbs-arrow-color: var(--color-black);
    --drilldown-fill-color: var(--color-white);
    --drilldown-background-color: var(--color-blue-205-100-50);
  }
  
  .bjs-breadcrumbs {
    position: absolute;
    display: none;
    flex-wrap: wrap;
    align-items: center;
    top: 30px;
    left: 30px;
    padding: 0px;
    margin: 0px;
    font-family: var(--breadcrumbs-font-family);
    font-size: 16px;
    line-height: normal;
  }
  
  .bjs-breadcrumbs-shown .bjs-breadcrumbs {
    display: flex;
  }
  
  .djs-palette-shown .bjs-breadcrumbs {
    left: 90px;
  }
  
  .djs-palette-shown.djs-palette-two-column .bjs-breadcrumbs {
    left: 140px;
  }
  
  .bjs-breadcrumbs li {
    display: inline-flex;
    padding-bottom: 5px;
  }
  
  .bjs-breadcrumbs li a {
    cursor: pointer;
    color: var(--breadcrumbs-item-color);
  }
  
  .bjs-breadcrumbs li:last-of-type a {
    color: inherit;
    cursor: default;
  }
  
  .bjs-breadcrumbs li:not(:first-child)::before {
    content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="17" height="17" viewBox="0 0 24 24"><path d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z" /><path d="M0 0h24v24H0z" fill="none" /></svg>');
    padding: 0 8px;
    color: var(--breadcrumbs-arrow-color);
    height: 1em;
  }
  
  .bjs-breadcrumbs .bjs-crumb {
    display: inline-block;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  
  .bjs-drilldown {
    width: 20px;
    height: 20px;
  
    padding: 0px;
    margin-left: -20px;
  
    cursor: pointer;
    border: none;
    border-radius: 2px;
    outline: none;
  
    fill: var(--drilldown-fill-color);
    background-color: var(--drilldown-background-color);
  }
  
  .bjs-drilldown-empty {
    display: none;
  }
  
  .selected .bjs-drilldown-empty {
    display: inherit;
  }
  
  [data-popup="align-elements"] .djs-popup-results {
    display: flex;
  }
  
  [data-popup="align-elements"] .djs-popup-body [data-group] + [data-group] {
    border-left: 1px solid var(--popup-border-color);
  }
  
  [data-popup="align-elements"] [data-group="align"] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
  
  [data-popup="align-elements"] .djs-popup-body .entry {
    padding: 6px 8px;
  }
  
  [data-popup="align-elements"] .djs-popup-body .entry:not(:first-child) {
    margin-top: 0;
  }
  
  [data-popup="align-elements"] .djs-popup-entry-icon {
    display: block;
    margin: 0;
    height: 20px;
    width: 20px;
  }
