.remove-tag-button{
  display: none;
}

.filter-enabled-button:hover>.remove-tag-button {
  display: block;
}

.filter-enabled-type {
  font-size: .8rem;
  text-transform: uppercase;
}

.form-check-label {
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  max-width: 300px;
  opacity: 1;
}

.form-check[disabled]:hover,
.form-check[disabled] label:hover {
  color: inherit;
  cursor: default;
}

#filter-container a{
  color: var(--portal-headings-color);
  background-color: unset;
  font-weight: bold;
}

#filter-container a:hover{
  text-decoration: underline;
}

#filter-container .dropdown-toggle::after {
  right: unset;
}

#filter-container ul{
  padding-left: 1rem
}
/* ADVANCED SEARCH rules end */




/* CARDS rules start */
.notebook_card {
  position: relative;
  width: 400px !important;
  padding-top: 1rem;
  border-radius: .7rem;
}

.card-type-container {
  position: absolute;
  top: .3rem;
  left: .3rem;
  width: 100%;
  height: 100%;
}

.notebook_card .card-type {
  display: inline-block;
  width: max-content;
  height: 1.1rem;
  padding: 0 .3rem;
  background-color: rgba(255, 255, 255, 0.7);
  border: 1px solid #eaebef;
  border-radius: 1rem;
  color: black;
  font-size: 0.7rem;
  line-height: 0.95rem;
  text-transform: uppercase;
  overflow: hidden;
}

.notebook-link {
  color: #003247;
  text-decoration: none;
  transition: all .3s ease-in-out;
}
.notebook-link:link {
  color: #003247;
  text-decoration: none;
}
.notebook-link:hover {
  color: #003247;
  text-decoration: underline;
}
.notebook-link:visited {
  color: #003247;
  text-decoration: none;
}

.notebook-link * {
  text-decoration: none;
}

.img-container {
  position: absolute;
  top: 5rem;
  left: 0;
  width: 100%;
  height: 250px;
  border-radius: 0;
  overflow: hidden;
}

.img-container img {
  min-width: 100%;
  width: 100%;
  min-height: 100%;
  height: auto;
}

.category-color {
  position: absolute;
  top: 5rem;
  left: 0;
  width: 100%;
  height: .35rem;
}

.category-color.esa_pdgs_data_cube {
  background-color: #3B9CA4;
}
.category-color.ceos_capd {
  background-color: #8E1F83;
}
.category-color.data_discovery {
  background-color: #42529C;
}
.category-color.case_study {
  background-color: #D74251;
}
.category-color.exercise {
  background-color: #ECB945;
}
.category-color.land_use {
  background-color: #42529C;
}
.category-color.fire_monitoring {
  background-color: #D74251;
}
.category-color.health_risk {
  background-color: #ECB945;
}
.category-color.climate_and_forecasting {
  background-color: #3B9CA4;
}
.category-color.new_ai_techniques {
  background-color: #8E1F83;
}

.card-title {
  height: 3rem;
  max-height: 3rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-image{
  width: 100%;
  height: 17rem;
  object-fit: cover;
}

.card-body {
  width: 100%;
  max-height: 10rem;
  overflow: hidden;
}

.card-text-description {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--main-text-color);
}

.category-bottom-infos {
  position: absolute;
  bottom: 0.7rem;
  width: 85%;
}

.category-title {
  color: #888;
  font-size: 0.8rem;
  line-height: .8rem;
  text-transform: uppercase;
}

.category-subtitle {
  font-size: .9rem;
  line-height: .9rem;
  text-transform: uppercase;
  text-decoration: none;
}

.category-subtitle.esa_pdgs_data_cube {
  color: #3B9CA4;
}
.category-subtitle.ceos_capd {
  color: #8E1F83;
}
.category-subtitle.data_discovery {
  color: #42529C;
}
.category-subtitle.case_study {
  color: #D74251;
}
.category-subtitle.exercise {
  color: #ECB945;
}
.category-subtitle.land_use {
  color: #42529C;
}
.category-subtitle.fire_monitoring {
  color: #D74251;
}
.category-subtitle.health_risk {
  color: #ECB945;
}
.category-subtitle.climate_and_forecasting {
  color: #3B9CA4;
}
.category-subtitle.new_ai_techniques {
  color: #8E1F83;
}
/* CARDS rules end */


/* NOTEBOOK rules start */
.banner-image {
  width: 100%;
  height: 15rem;
  border-bottom: .4rem solid;
  overflow: hidden;
}

.notebook_image {
  width: 400px;
  height: 250px;
}

.notebook_title {
  color: #003247;
  font-size: 2rem;
  line-height: 2rem;
}

.notebook_description {
  padding-top: .5rem;
}

.notebook_details_title {
  color: #003247;
  font-size: .9rem;
  line-height: .9rem;
  text-transform: uppercase;
}

.notebook_category {
  color: var(--portal-accent-color)!important;
  text-transform: uppercase;
}

.notebook_category:hover {
  text-decoration: underline;
}


.notebook_tag {
  color: var(--portal-accent-color)!important;
  text-decoration: none;
  text-transform: uppercase;
  transition: all .3s ease-in-out;
}

.notebook_tag:hover {
  text-decoration: underline;
}

.notebook_subtitle {
  font-size: .8rem;
  line-height: .8rem;
  text-decoration: none;
  text-transform: uppercase;
}

#notebook_code #code_iframe_container #code_iframe {
  width: 100%;
  height: 100%;
}

.favicon-img-link {
  max-height: 1.3rem;
  margin-right: .25rem;
}

@media only screen and (max-width: 1200px) {
  .notebook_img_col {
    flex: 0 0 auto !important;
    width: 100% !important;
  }
  .notebook_info_col {
    flex: 0 0 auto !important;
    width: 100% !important;
    padding-top: 1rem !important;
  }
}