.science-themes {
  display: flex;
  justify-content: flex-end;
}
@media all and (min-width: 500px) {
  .science-themes {
      display: flex;
      justify-content: flex-end;
  }
}
@media all and (min-width: 768px) {
  .science-themes {
      display: flex;
      justify-content: flex-end;
  }
  /*.node-type-data-in-action .science-themes {
    justify-content: space-evenly;
  }*/
}
.science-theme {
   padding-left: 7px;
   padding-right: 7px;
   box-sizing: border-box;
}
.science-theme .label::before{
   color: #5a5a5a;
   font-weight: bold;
   font-size: 0.7rem;
   display: block;
   text-transform: uppercase;
}
.science-theme .logo {
   width: 30px;
   height: 30px;
   display: block;
   margin-left: auto;
   margin-right: auto;
   margin-bottom: 5px;
   background-size: contain;
   background-repeat: no-repeat;
   background-position: 50% 50%;
   position: relative;
 }

@media all and (min-width: 1024px) {
  .science-theme .logo {
    width: 40px;
    height: 40px;
  }
}
@media all and (min-width: 1400px) {
  .science-theme .logo {
    width: 50px;
    height: 50px;
  }
}
 .science-theme img {
   display: none;
 }
 .science-theme.coast .logo {
   background-image: url("../images/science_themes/coast_blue.svg");
 }
 .science-theme.hydrosphere .logo {
   background-image: url("../images/science_themes/hydrosphere_blue.svg");
 }
 .science-theme.ocean .logo {
   background-image: url("../images/science_themes/ocean_blue.svg");
 }
 .science-theme.mission .logo {
   background-image: url("../images/science_themes/mission_blue.svg");
 }
 .science-theme.cryosphere .logo {
   background-image: url("../images/science_themes/cryosphere_blue.svg");
 }
 .science-themes .label { line-height: 70px; height: 70px; font-weight: 600; font-size: 90%; color: #222; padding-right: 5px; box-sizing: border-box;}
.node-type-data-in-action .science-themes .label,
.block-interactive-pages .science-themes .label { line-height: 60px; /*height: 60px;*/ height: 20px;}

 .science-theme.logo .tooltip-text {
   visibility: hidden;
   width: 120px;
   background-color: black;
   color: #fff;
   text-align: center;
   border-radius: 6px;
   padding: 5px 0;
   font-size: 10px;
   /* Position the tooltip */
   position: absolute;
   z-index: 1;
 }
 .science-theme.logo:hover .tooltip-text {
   visibility: visible;
 }
@media all and (max-width: 767px) {
  .science-theme.logo .tooltip-text {
    width: 0px;
    display: none;
  }
}

 .science-theme {
   /*display: block;
   clear: both;*/
   display: flex;
   flex-direction: column-reverse;
   /*margin-top: 0.5em;*/
}
.science-themes .science-theme,
.science-themes .label
 {
  margin-top: 0.5em;
}
.science-theme .logo,
.science-theme .label {
 display: inline-block;
 text-align: center;
}
.science-theme .label {
 font-weight: bold;
 font-size: 1rem;
}
.science-theme .label {
   /*padding-right:10px;*/
   display: block;
   margin-left: auto;
   margin-right: auto;
   color: #5a5a5a;
   font-weight: bold;
   font-size: 0.7rem;
   text-transform: uppercase;
}

.science-themes-wrapper {position: relative; widows: 100px;}
@media all and (min-width: 768px) {
    .science-themes-wrapper {position: absolute; width:350px; top: 1.25em; right:0px;}
    .node-type-data-in-action .science-themes-wrapper,
    .node-type-animation .science-themes-wrapper,
    .block-interactive-pages .science-themes-wrapper { top: 6.3em; right:20px;}

    .node-type-ocean-story .node-type-animation .science-themes-wrapper,
    .node-type-ocean-story .block-interactive-pages .science-themes-wrapper { top: 11em; }

    .logged-in .science-themes-wrapper { top: -3.25em; }
    .logged-in .block-interactive-pages .science-themes-wrapper { top: -3.7em; }
}
@media all and (min-width: 1024px) {
  .science-themes-wrapper {width:400px;}
  /*.block-interactive-pages .science-themes-wrapper { top: 4.5em;}*/
  .node-type-animation .science-themes-wrapper,
  .node-type-data-in-action .science-themes-wrapper  .science-themes-wrapper { top: 7em;}
  .logged-in .science-themes-wrapper { top: -3.25em; }
  .logged-in .block-interactive-pages .science-themes-wrapper { top: -3.7em; }
}
@media all and (max-width: 767px) {
  #block-interactive-pages-content-science-theme-icons {margin-bottom: 0px;}
}


.node-type-data-in-action .science-theme.logo img,
.block-interactive-pages .science-theme.logo img  {width: 100%; opacity: 0;}
.node-type-data-in-action .science-themes .label,
.block-interactive-pages .science-themes .label {/*padding-top: 10px;*/ line-height: 20px; padding-top: 6px; }
@media all and (min-width: 1024px) {
  .node-type-data-in-action .science-themes .label,
  .block-interactive-pages .science-themes .label {padding-top: 14px; }
}
@media all and (min-width: 1400px) {
  .node-type-data-in-action .science-themes .label,
  .block-interactive-pages .science-themes .label {padding-top: 14px; }
}


.node-type-data-in-action .science-themes .science-theme.label,
.block-interactive-pages .science-themes .science-theme.label {padding-top: 0px; line-height: 1em; }

.node-type-data-in-action .science-theme .science-theme.label,
.block-interactive-pages .science-theme .science-theme.label {
  -webkit-transition: opacity 100ms ease-in 0s;
  -moz-transition: opacity 100ms ease-in 0s;
  -o-transition: opacity 100ms ease-in 0s;
  transition: opacity 100ms ease-in 0s;
  opacity: 0;
  margin-left: -25px;
  margin-right: -25px;
}

.node-type-data-in-action .science-theme:hover .science-theme.label,
.block-interactive-pages .science-theme:hover .science-theme.label {opacity: 1;}

#block-interactive-pages-content-science-theme-icons { overflow-x: hidden; }
.logged-in #block-interactive-pages-content-science-theme-icons {overflow-x: visible;}

/* Data-in-action page*/
body.node-type-data-in-action .page-title-container .region-title {
  display: flex; position: relative;
  align-items: stretch;
  justify-content: space-between;
  margin-bottom: 0em;
  min-height: 50px;
}
body.node-type-data-in-action .science-themes-wrapper {
  top: 0px;
  padding-right: 10px;
  flex-wrap: wrap;
  width:auto;
}
@media all and (min-width: 768px) {
  body.node-type-data-in-action .science-themes-wrapper {
    top: -10px;
  }
  body.node-type-data-in-action .label {white-space: nowrap;}
}
@media all and (min-width: 1024px) {
  body.node-type-data-in-action .page-title-container .region-title {
    margin-bottom: 1em;
  }
  body.node-type-data-in-action #block-podaac-helper-content-date {
    margin-bottom: 0px; line-height: 2em;
  }
}
body.node-type-data-in-action .label {white-space: nowrap;}
body.logged-in.node-type-data-in-action .science-themes-wrapper {
  top: 0em;
}
@media all and (max-width: 499px) {
  body.node-type-data-in-action .science-themes .label {
    display: none;
  }
  body.node-type-data-in-action #block-podaac-helper-content-date .date-display-single {
    white-space: normal;
  }
}
.science-themes .science-theme.label {
  white-space:normal;
  max-width: 100px;
  /*overflow: hidden;*/
}