@charset "utf-8";

/*
Resolutions

4K    ==> 3,840x2,160     <--- Working for this resolution now!!
1080p ==> 1,920x1,080
*/
/* CSS Document */
/* First comes the common (landscape/portrait) definitions. Special cases follow further down */
html {
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  background-color: #005479;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Barlow", "Gill Sans", "Gill Sans MT", Calibri, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
}

.page-container {
  display: flex;
  flex-direction: column;
  justify-content: start;
}

.title-container {
  display: flex;
  justify-content: center;
  font-size: 2.7rem;
  font-weight: 700;
  color: #fff;
  margin-top: 1rem;
}

.page-item-container {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.distributed-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.centered-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.menuitem {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0px 0px 15pt #000000;
  height: 3em;
  text-align: center;
}

.menuitem-selected {
  box-shadow: 0px 0px 0px 5px #fff !important;
}

.menuitem-supportive {
  background-color: #742b6d; /* For browsers that do not support gradients */
  background-image: linear-gradient(to bottom right, #742b6d, #a555a3);
}

.menuitem-thera {
  background-color: #c15c00; /* For browsers that do not support gradients */
  background-image: linear-gradient(to bottom right, #c15c00, #ffad5c);
}

.menuitem-rare {
  background-color: #575756; /* For browsers that do not support gradients */
  background-image: linear-gradient(to bottom right, #575756, #9d9fa2);
}

.menuitem-other {
  background-color: #026386; /* For browsers that do not support gradients */
  background-image: linear-gradient(to bottom right, #026386, #3394bf);
}

.filteritem {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-transform: uppercase;
  color: #595959;
  background-color: #fff;
  cursor: pointer;
}

.filter-popup {
  display: flex;
  flex-direction: column;
  border-radius: 1em;
  box-shadow: 0px 0px 15pt #333 !important;
  padding: 1em;
  min-width: 40vw;
  background-color: white;
}

.filter-popup .filter-popup-header {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
}

.filter-popup .filter-popup-header .link {
  color: #575756;
  text-decoration: underline;
  cursor: pointer;
  font-size: 1.2vw;
}

.filter-popup .filter-popup-items {
  display: flex;
  align-items: center;
  border-bottom: 1px #d9d9d9 solid;
  margin-top: 1em;
  padding-bottom: 1em;
  cursor: pointer;
  font-size: 1.4vw;
  padding-left: 1em;
  padding-right: 1em;
}

.filter-popup .filter-popup-items .checkbox {
  display: flex;
  align-items: center;
  margin-left: auto;
  color: #026288;
}

.sortitem {
  width: 25%;
  color: #fff;
  cursor: pointer;
  font-weight: bold;
}

.cardholder {
  margin-left: 5%;
  margin-right: 5%;
}

.cards-scroll-area {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  justify-content: space-between !important;
}

.cardholder.empty {
  flex-wrap: nowrap;
  flex-direction: column;
  color: #fff;
  margin-top: 2em;
  padding: 3%;
  font-size: 2em;
  font-weight: 600;
}

.card {
  color: #fff;
  display: flex;
  flex-direction: column;
}

.card-focus-supportive {
  background-color: #742b6d; /* For browsers that do not support gradients */
  background-image: linear-gradient(to bottom right, #742b6d, #a555a3);
}

.card-focus-thera {
  background-color: #c15c00; /* For browsers that do not support gradients */
  background-image: linear-gradient(to bottom right, #c15c00, #ffad5c);
}

.card-focus-rare {
  background-color: #575756; /* For browsers that do not support gradients */
  background-image: linear-gradient(to bottom right, #575756, #9d9fa2);
}

.card-focus-other {
  background-color: #026386; /* For browsers that do not support gradients */
  background-image: linear-gradient(to bottom right, #026386, #3394bf);
}

.card-modal {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 70vw;
  border-radius: 1.5vw;
  padding: 0 !important;
}

.card-modal .ribbon {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  height: 6vw;
  margin: 0 !important;
}

.card-modal .ribbon .compoundname {
  color: #fff;
  min-height: auto;
}

.card-modal .ribbon .close-icon {
  display: flex;
  align-items: center;
  color: #fff;
  cursor: pointer;
  font-size: 2em;
}

/* All divs directly inside card-modal div */
.card-modal div {
  margin: 2%;
}

.card-modal .footnotes-holder {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: 1.1vw;
}

.card-modal .footnotes-holder div {
  margin: 0 !important;
}

.footerholder {
  margin-top: auto;
  padding-bottom: 2em;
  padding-left: 5%;
  padding-right: 5%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  color: #fff;
  font-weight: 100;
  font-size: 1.1vw;
  background-color: #00000088;
}

.footerleft {
  width: 5%;
  padding: 2% 0 2% 0;
}
.footercenter {
  width: 40%;
  padding: 2% 0 2% 0;
}
.footerright {
  width: 45%;
  padding: 2% 0 2% 0;
  display: flex;
  flex-direction: column;
  justify-content: start;
}

/************************************************************************
Orientation based styles
*************************************************************************/
@media (orientation: portrait) {
  body {
    background: url("../images/bg.jpg") fixed center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
  }

  .page-container {
    height: 100vh;
  }

  .footer-container {
    height: 15%;
    margin-top: auto;
  }

  .menuholder {
    margin-top: 5%;
    margin-left: 5%;
    margin-right: 5%;
    margin-bottom: 3vh;
  }

  .menuitem {
    font-weight: 600;
    font-size: 2vw;
    border-radius: 2em;
  }

  .filterholder {
    margin-bottom: 5vh;
    margin-left: 5%;
    margin-right: 5%;
  }

  .filteritem {
    font-size: 1.4vw;
    width: 28%;
    padding: 1.5% 1.5% 1.5% 1.5%;
    border-radius: 5vw;
  }

  .sortholder {
    margin-left: 5%;
    margin-right: 5%;
    margin-bottom: 2rem;
  }

  .sortitem {
    font-size: 1.3vw;
  }

  .sortitem svg {
    margin-left: 0.1em;
  }

  .card {
    width: calc(85% / 3);
    margin-bottom: 2%;
    padding-left: 1.5%;
    padding-right: 1.5%;
    padding-top: 2%;
    padding-bottom: 2%;
    border-radius: 1vw;
    min-height: 11vh;
  }

  .compoundname {
    font-weight: 600;
    font-size: 2vw;
    min-height: 4em;
    margin-bottom: 1%;
    text-transform: uppercase;
  }
  .region {
    font-size: 1.3vw;
    font-weight: 200;
    min-height: 1em;
    margin-bottom: 1em;
  }
  .MoA {
    font-size: 1.3vw;
    font-weight: 200;
    min-height: 2em;
    margin-bottom: 1em;
  }
  .phase {
    font-size: 1.3vw;
    font-weight: 600;
  }
}

@media (orientation: portrait) and (max-aspect-ratio: 3/4) {
  .card-and-sort-container {
    max-height: 68vh;
  }
}

@media (orientation: portrait) and (min-aspect-ratio: 3/4) {
  .card-and-sort-container {
    max-height: 58vh;
  }
}

@media (orientation: portrait) and (min-aspect-ratio: 3/4) {
  .card {
    padding-left: 1.5%;
    padding-right: 1.5%;
    padding-top: 2%;
    padding-bottom: 2%;
    min-height: 14vh;
  }
}

/***********************************************************************
Landscape
***********************************************************************/
@media (orientation: landscape) {
  html {
    overflow: -moz-scrollbars-vertical;
    overflow-y: scroll;
  }

  body {
    background: url("../images/bg1920x1080.jpg") fixed center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 100vh;
  }

  .page-container {
    min-height: 100vh;
  }

  .footer-container {
    margin-top: auto;
  }

  /* Landscape orientation */
  .menuholder {
    margin-top: 1%;
    margin-left: 5%;
    margin-right: 5%;
    margin-bottom: 3vh;
  }

  .menuitem {
    font-weight: 600;
    font-size: 1.5vw;
    border-radius: 2em;
    line-height: 1em;
  }

  .menuitem-selected {
    box-shadow: 0px 0px 0px 3px #fff !important;
  }
  
  .filterholder {
    margin-bottom: 5vh;
    margin-left: 5%;
    margin-right: 5%;
  }

  .filteritem {
    font-size: 1.3vw;
    width: 28%;
    padding: 1% 1.5% 1% 1.5%;
    border-radius: 5vw;
  }

  .sortholder {
    margin-left: 5%;
    margin-right: 5%;
    margin-bottom: 1rem;
  }

  .sortitem {
    font-size: 1.4vw;
  }

  .sortitem svg {
    margin-left: 0.1em;
  }

  .card {
    width: calc(85% / 4);
    margin-bottom: 2%;
    padding-left: 1.5%;
    padding-right: 1.5%;
    padding-top: 2%;
    padding-bottom: 1%;
    border-radius: 1vw;
  }

  .compoundname {
    font-size: 1.5vw;
    font-weight: 600;
    min-height: 4em;
    margin-bottom: 1%;
    text-transform: uppercase;
  }
  .region {
    font-size: 1.3vw;
    font-weight: 200;
    min-height: 1em;
    margin-bottom: 1em;
  }
  .MoA {
    font-size: 1.3vw;
    font-weight: 200;
    min-height: 2em;
    margin-bottom: 1em;
  }
  .phase {
    font-size: 1.3vw;
    font-weight: 600;
  }
}


@media (orientation: landscape) and (min-aspect-ratio: 4/3) {
  .card {
    min-height: 25vh;
  }
}

@media (orientation: landscape) and (min-aspect-ratio: 16/9) {
  .card {
    min-height: 21vh;
  }
}

/* Utility helper styles */
.rotate-180 {
  -webkit-transform: rotateX(180deg);
  transform: rotateX(180deg);
}

.half-opaque {
  opacity: 50%;
}

.noselect {
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none; /* Safari */
  -khtml-user-select: none; /* Konqueror HTML */
  -moz-user-select: none; /* Old versions of Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
  user-select: none; /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
}

.myoverlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.5);
  transition: opacity 500ms;
  visibility: hidden;
}

.description {
  padding-top: 1em;
  padding-bottom: 1em;
  font-size: 1.3vw;
}

.scroll-arrow-area {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  height: 5vh;
  position: absolute;
  width: 100%;
  font-size: 3vh;
  color: #fff;
}

.scroll-arrow-area.down {
  background-image: linear-gradient(rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
  bottom: 0px;
}

.scroll-arrow-area.up {
  margin-top: -1px;
  background-image: linear-gradient(rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 100%);
  top: 0px;
}
