/**
 * Styling document for the ROOT app.
 */

@import url('https://fonts.googleapis.com/css?family=Roboto+Mono:400,700|Roboto:400,300,300italic,400italic,500,500italic,700,700italic');
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');

html {
  /* general typography */
  font-family: Roboto, Noto, sans-serif;

  /* F24 CI */
  --f24-blueblack: #001D33; /* F24 important text, headings, buttons, logo darkblue; rgb(0,29,51)*/
  --f24-lightblack: #575A5D; /* F24 article text; rgb(87,90,93) */
  --f24-lightgrey: #F7F7F7; /* F24 article tile background; rgb(247,247,247) */
  --f24-bluegrey: #B3D4FC; /* F24 selected text background; rgb() */
  --f24-blue: #00B1EB; /* F24 logo, buttons, links; rgb(0, 177, 235) */
  --f24-red: #BB0A30; /* F24 error color */

  /* Colors by Role */
  --background-color: var(--f24-lightgrey); /* document background, gaps between surfaces */
  --surface-color: #FFFFFF; /* background of sheets, tiles, dialogs, popups */
  --selection-color: var(--f24-bluegrey); /* background of selections */
  --primary-text-color: var(--f24-blueblack); /* heading text, main text */
  --secondary-text-color: var(--f24-lightblack); /* article text, auxiliary text */
  --disabled-text-color: #9B9B9B; /* disabled icons, disabled text */
  --primary-color: var(--f24-blue); /* toolbar, buttons, links, ... */
  --on-primary-color: #FFFFFF; /* text and icons on primary-color (and other elements */
  --error-color: var(--f24-red);

  /* Element Color Defaults */
  --button-color: var(--surface-color);
  --on-button-color: var(--primary-color);

}

body {
  background: var(--background-color);
  padding: 0;
  margin: 0;
}

#contents {
  display: flex;
  flex-wrap: wrap;
  margin-left: 5%;
  width: 90%;
  margin-top: 20px;
}

#link {/*portal tile, <a>*/
  display: block;
  text-decoration: none;
  position: relative;/*anchor*/
  box-shadow: rgba(0, 0, 0, 0.14) 0px 2px 2px 0px, rgba(0, 0, 0, 0.12) 0px 1px 5px 0px, rgba(0, 0, 0, 0.2) 0px 3px 1px -2px;
  margin: 15px;
  width: 280px;
  height: 280px;
  background: var(--surface-color);
  overflow: hidden;
}

#titleDiv {
  box-sizing: border-box;
  height: 80px;
  padding: 16px;
}

#title {
  margin: 0;
  max-height: 100%;
  font-size: 20px;
  font-weight: 500;
  line-height: 24px !important;
  color: var(--primary-text-color);
  white-space: pre-line;
  overflow: hidden;
  text-overflow: ellipsis;
}

#imageDiv {
  box-sizing: border-box;
  height: 160px;
  padding: 0 16px;
}

#image {
  max-height: 100%;
  max-width: 100%;
  display: block;
  margin: auto;
}

#description {
  display: inline-block;
  position: absolute;
  bottom: 0; right: 0;
  margin: 0 16px 8px 16px;
  max-height: 50px;
  text-overflow: ellipsis;
  overflow: hidden;
  font-size: 14px;
  white-space: pre-line;
  color: var(--primary-text-color);
}

#toolbar {
  position: relative;
  z-index: 1; /*over contents*/
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  background: var(--primary-color);
  color: var(--on-primary-color, #fff);
  box-sizing: border-box;
  height: 48px;
  width: 100%;
  padding: 0 16px;
  border: none;
}

#toolbarHeader {
  flex-grow: 1;
  color: var(--on-primary-color, #fff);
  font-size: 20px;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.bannerImg {
  height: 36px;
  align-self: center;
}

#adminButton {
  cursor: pointer;
  color: unset;
  text-decoration: none;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 2px 2px;
}

#adminButton:hover {
  color: var(--primary-color);
  background: var(--on-primary-color);
}

/*@media(min-width: 0){*/
/*    #bannerImg{*/
/*        margin-left: 5%;*/
/*    }*/
/*}*/
/*@media (min-width: 500px) and (max-width: 1000px){*/
/*    #bannerImg{*/
/*        margin-left: 20%;*/
/*    }*/
/*}*/
/*@media (min-width: 1000px){*/
/*    #bannerImg{*/
/*        margin-left: 30%;*/
/*    }*/
/*}*/
