

.octopus-app{
  /** Display html text style */
  .html-wysiwyg-content{
    h3,h4{
      margin: 0 0 0.5em !important;
    }

    h3{
      font-size: 1rem;
      text-align: center;
      color: var(--octopus-gray-text);
    }

    h4{
      font-size: 0.9rem;
    }

    p, ol, ul{
      margin-bottom: 0.2rem;
    }
  }

  /** Description style */
  .description-text{
    word-wrap: break-word;
    font-size: 0.7rem;

    @media (width <= 450px) {
      margin: 1rem 0;
    }
  }

  /** Image style */
  .img-box{
    height: var(--octopus-image-size);
    width: var(--octopus-image-size);
    background-size: cover;
    border-radius: var(--octopus-border-radius);
    overflow: hidden;
    flex-shrink: 0;

    @media (width <= 960px) {
      flex-grow: 0;
    }
  }

  .img-box-podcast{
    height: calc(var(--octopus-podcast-size) - 2px);
    width: calc(var(--octopus-podcast-size) - 2px);
  }

  .img-box,.img-box.img-box-podcast{
    @media (width <= 550px) {
      margin-inline: auto !important;
      float: inherit !important;
      display: flex;
      width: var(--octopus-image-size);
      height: var(--octopus-image-size);
    }
  }

  .category-filter-no-filter {
    position: absolute;
    inset: 0;
    background: white;
    z-index: -1;
  }

  /** Overlap on the header style */
  .page-element{
    margin-top: -6rem;
    position: relative;

    @media (width <= 960px) {
      margin-top: -5rem;
    }
  }

  /** Error page style */
  .page-box-absolute{
		position: absolute;
		inset: 0;
		height: max-content;
		min-height: 100%;
		z-index: 11;
		display: flex;
		flex-direction: column;
	}

  /** Elements list */
  .octopus-element-list {
    align-self: stretch;
    flex-grow: 1;
    margin: 1rem 0 0;
    padding: 0;
    display: grid; 
    grid-gap: 1rem; 
    justify-content: space-between; 
    grid-template-columns: repeat(auto-fill, var(--octopus-podcast-size)); 

    @media (width <= 960px) {
      display: flex;
      align-self: auto;
      justify-items: center;
      justify-content: space-evenly;
      flex-wrap: wrap;
    }
  }

  .two-items-list{
    grid-template-columns: repeat(auto-fill, calc(50% - 0.5rem));

    @media (width <= 960px) {
     flex-direction: column;
    }
  }

  .element-list-inline {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding-bottom: 1rem;
    width: 100%;

    .item-phone-margin {
      margin: 0 0.5rem !important;
    }

    .element-list-item{
      scroll-snap-align: center;
      margin: auto;
    }
  }


  /* Element style (emission,playlist,etc...) */  
  .classic-element-container{
    position: relative;
    background: var(--octopus-background);
    display: flex;
    flex-grow: 1;
    border: 2px solid var(--octopus-border-default);
    border-radius: var(--octopus-border-radius);

    @media (width <= 960px) {
      &>a{
        flex-direction: column;
        align-items: center;
      }
    }
  }

  .classic-element-text {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    max-height: 16.5rem;
    flex-grow: 1;

    .element-name {
      font-size: 1.2rem;
      font-weight: 400;
    }
  }

  .element-description {
    overflow: hidden;
    margin-top: 0.5em;
    word-break: break-word;
    max-height: var(--octopus-max-height-description);
    position: relative;
    

    &.after-element-description::after {
      content: '...';
      position: absolute;
      padding-left: 1rem;
      inset-inline: 0;
      bottom: 0;
      font-size: 1rem;
      font-weight: bolder;
      text-align: center;
      background: linear-gradient(to bottom,var(--octopus-background-transparent),
      var(--octopus-background));
    }
  }

  .small-description{
    --octopus-max-height-description:3rem;

    text-align: center;
  }

  progress{
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    color: var(--octopus-color-on-primary);
    text-align: center;
    white-space: nowrap;
    background-color:var(--octopus-secondary-lighter);
    border-radius: var(--octopus-border-radius);
    cursor: pointer;
    height: 4px;
    flex-grow: 1;
    width:100%;
    @media (width <= 960px) {
      height: 8px;
    }
    &::-webkit-progress-bar{
      background-color: var(--octopus-secondary-lighter);
    }
    &:not(.ambiance-progress)::-webkit-progress-value {
      background-color: var(--octopus-primary);
    }
    &.ambiance-progress::-webkit-progress-value {
      background-color: var(--octopus-text-disabled);
    }
    &.large{
      height: 15px;
    }

    &.medium{
      height: 6px;
    }
  }

}