* {
  box-sizing: border-box;
}

html {
  height: 100%;
  margin: 0;
}

body {
  height: inherit;
  margin: 0 0 0.75rem 0;
  padding: 0;
  background-color: #15202B;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: #FFF;
  font-family: cursive;
}

header,
section {
  width: 100%
}

/* global utils classes */
.center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  color: #FFF;
  background-color: #95395f;
  border-color: #eeeeee;
}

.btn:hover {
  color: #7c7c7c;
  background-color: #FFF;
  border-color: #95395f;
}

.inline-choices {
  display: flex;
  justify-content: space-evenly;
}

.flex-baseline {
  display: flex;
  justify-content: center;
  align-items: baseline;
}

.margin-2 {
  margin: 2em;
}
.column-gap-2em {
  column-gap: 2em;
}

.margin-left-1 {
  margin-left: 1em;
}

.flex-column {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.flex-container {
  background-color: #c5c5c58c;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 0.5px solid #f6b8b8de;
}

.flex-fill-available {
  /* flex 1 to grow to the size available*/
  flex: 1;
}

.flex-container-box {
  padding: 1em;
  margin: 0 0.5rem;
  border-radius: 0.4em;
}


/* navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #c5c5c58c;
  color: #FFF;
  border-bottom: 1px solid #f6b8b8de;
}

.navbar-brand-title {
  width: 100%;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #FFF;
  padding: 0 0.2rem;
}

.navbar-brand-title:hover {
  background-color: #FFF;
  border-radius: 5px;
  color: #7c7c7c;
}

.navbar-brand-title img {
  margin-right: 0.5rem;
}

.toggle-navbar-menu-button {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  margin-right: 1rem;
  width: 30px;
  height: 30px;
}

.toggle-navbar-menu-button .bar {
  height: 4px;
  width: 100%;
  background-color: white;
  border-radius: 10px;
}

.navbar-menu form {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

form .searchbar {
  width: 90%;
  height: 50%;
  border-radius: 20px;
  background-color: #15202B;
  color: #FFF;
}

.searchbar::placeholder {
  /* Internet Explorer 10-11 */
  color: #FFF;
  opacity: 1;
}

.searchbar:-ms-input-placeholder {
  /* Internet Explorer 10-11 */
  color: #FFF;
}

.searchbar::-ms-input-placeholder {
  /* Microsoft Edge */
  color: #FFF;
}

.navbar-menu .navbar-ul {
  margin: 0;
  padding: 0;
  display: flex;
}

.navbar-menu li {
  list-style: none;
}

.navbar-menu li a {
  text-decoration: none;
  color: #FFF;
}

.navbar-menu li .navbar-link {
  padding: 1rem;
  display: block;
}

.navbar-play-screen {
  position: relative;
}

.navbar-play-screen:hover {
  cursor: pointer;
}

.navbar-play-screen:hover>.navbar-link {
  color: #7c7c7c;
}

.navbar-parameter {
  padding: 0 1rem;
  display: flex;
  position: relative;
  flex-direction: column;
  justify-content: center;
}

.navbar-parameter:hover {
  cursor: pointer;
}

.navbar-menu li:hover:not(.noHover) {
  background-color: #FFF;
  border-color: #95395f;
}

.navbar-menu li a:hover {
  color: #7c7c7c;
}


/* Style input range navbar */
.range-label {
  width: 50%;
  margin: 0 1rem;
}

input[type=range] {
  width: 100%;
  margin: 5px 0;
  background-color: transparent;
  -webkit-appearance: none;
}

input[type=range]:focus {
  outline: none;
}

input[type=range]::-webkit-slider-runnable-track {
  background: #eeeeee;
  border: 1.4px solid #010101;
  border-radius: 16.2px;
  width: 100%;
  height: 10px;
  cursor: pointer;
}

input[type=range]::-webkit-slider-thumb {
  margin-top: -6.4px;
  width: 20px;
  height: 20px;
  background: #95395f;
  border: 1.25px solid #eeeeee;
  border-radius: 5px;
  cursor: pointer;
  -webkit-appearance: none;
}

input[type=range]:focus::-webkit-slider-runnable-track {
  background: #f1f1f1;
}

input[type=range]::-moz-range-track {
  background: #eeeeee;
  border: 1.4px solid #010101;
  border-radius: 16.2px;
  width: 100%;
  height: 10px;
  cursor: pointer;
}

input[type=range]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: #95395f;
  border: 1.25px solid #eeeeee;
  border-radius: 5px;
  cursor: pointer;
}

input[type=range]::-ms-track {
  background: transparent;
  border-color: transparent;
  border-width: 6px 0;
  color: transparent;
  width: 100%;
  height: 10px;
  cursor: pointer;
}

input[type=range]::-ms-fill-lower {
  background: #ebebeb;
  border: 1.4px solid #010101;
  border-radius: 32.4px;
}

input[type=range]::-ms-fill-upper {
  background: #eeeeee;
  border: 1.4px solid #010101;
  border-radius: 32.4px;
}

input[type=range]::-ms-thumb {
  width: 20px;
  height: 20px;
  background: #95395f;
  border: 1.25px solid #eeeeee;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 0px;
  /*Needed to keep the Edge thumb centred*/
}

input[type=range]:focus::-ms-fill-lower {
  background: #eeeeee;
}

input[type=range]:focus::-ms-fill-upper {
  background: #f1f1f1;
}


/* Style navbar - dropdown parameter */
.navbar-menu-dropdown {
  width: max-content;
  display: none;
  background-color: #c5c5c5;
  position: absolute;
  top: 100%;
  margin-top: 0.25rem;
  right: 0;
  z-index: 1;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
}

.navbar-menu-dropdown.active {
  display: flex;
}

.margin-top-button {
  margin-top: 1rem;
}


@media (max-width: 550px) {
  .navbar {
    flex-direction: column;
  }

  .navbar-brand-container {
    width: 100%;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: #FFF;
    padding: 0 0.2rem;
  }

  .navbar-brand-title {
    width: auto;
  }

  .navbar-brand-title-icon {
    width: auto;
  }

  .toggle-navbar-menu-button {
    display: flex;
  }

  .toggle-navbar-menu-button:hover {
    cursor: pointer;
  }

  .navbar-menu {
    display: none;
    width: 100%;
  }

  .navbar-menu.active {
    display: flex;
  }

  .navbar-menu ul {
    width: 100%;
    flex-direction: column;
  }

  .navbar-menu li {
    text-align: center;
  }

  .navbar-menu li a {
    padding: 0.5rem 1rem;
  }

  /* dropdown part */
  .navbar-parameter {
    padding-bottom: 1rem;
  }

  #navbar-menu-dropdown-play {
    margin: 1rem 0;
  }

  .navbar-menu-dropdown {
    width: 100%;
    position: initial;
  }

  .navbar-parameter:hover {
    color: #7c7c7c;
  }

}



/* main for index and category */
.hidden {
  display: none;
}

.notifs-container {
  display: flex;
  justify-content: space-around;
  gap: 1rem;
  flex-wrap: wrap;
}

section h1 {
  text-align: center;
  margin-top: 0;
  margin-bottom: 1rem;
}

.height-spacer {
  height: 50px;
}

.more-button-container {
  margin: 1em 0;
}

.more-button {
  width: fit-content;
  padding: 0.5rem 3rem;
  background: #353535;
  font-size: 0.75rem;
  color: #fff;
  box-shadow: rgba(3, 8, 20, 0.1) 0px 0.15rem 0.5rem, rgba(2, 8, 20, 0.1) 0px 0.075rem 0.175rem;
  border-radius: 0.5rem;
  transition: all 500ms;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.notif {
  width: 250px;
  height: 375px;
  display: inline-flex;
  justify-content: space-around;
  background-color: #eee;
  border-radius: 5px;
  overflow: hidden;
  position: relative;
  text-align: left;

}

.notif a {
  margin: auto;
  height: inherit;
  width: inherit;
}

.notif .image {
  margin: auto;
  height: inherit;
  width: inherit;
}

.notif .image img {
  height: inherit;
  width: inherit;
}

.notif-video {
  width: inherit;
}

.notif .nom {
  background: #5b5274;
  bottom: 0;
  left: 0;
  box-sizing: border-box;
  height: 22px;
  padding: 0 5px;
  color: white;
  font-size: 12px;
  font-weight: bold;
  position: absolute;
  width: 100%;
  display: block;
  text-align: center;
  margin: auto;
  border-radius: 0;

}

@media (max-width: 600px) {
  .notif {
    width: 220px;
    height: 329px;
  }

  /* for gifs that are not a perfect 3/2 ratio*/
}

@media (max-width: 520px) {
  .notif {
    width: 250px;
    height: 375px;

  }

  /* for gifs that are not a perfect 3/2 ratio*/
}


/* Footer */
footer {
  width: 100%;
  bottom: 0;
}

/* lecture.php */
#view-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#img-diapo {
  max-width: 100%;
  max-height: 84vh;
}

#redtube-player,
#movie-player {
  width: 100%;
  max-width: 750px;
}

.select-filters-container {
  flex-wrap: wrap;
  row-gap: 1em;
}

/* CUSTOM SELECT */
/* remove default style */
select {
  appearance: none;
  background-color: transparent;
  border: none;
  padding: 0 1em 0 0;
  margin: 0;
  width: 100%;
  font-family: inherit;
  font-size: inherit;
  cursor: inherit;
  line-height: inherit;
  outline: none;
  align-items: center;
}

/* custom style for the wrapper div */
.custom-select {
  width: 100%;
  border: 1px solid lightgray;
  border-radius: 20px;
  padding: 0.25em 0.5em;
  font-size: 1.25rem;
  cursor: pointer;
  background-color: #15202B;
  color: #FFF;
  align-items: center;
  position: relative;
  display: grid;
  row-gap: 0.1em;
  grid-template-areas: "select arrow";
}

select {
  grid-area: select;
  color: #FFF;
  opacity: 0.8;
}

select > * {
  background-color: #15202B;
  color: #FFF;
}

 .custom-select:after {
  grid-area: arrow;
}
.custom-select::after {
  content: "";
  width: 0.8em;
  height: 0.5em;
  background-color: #FFF;
  clip-path: polygon(100% 0%, 0 0%, 50% 100%);
  justify-self: end;
}


/* GRID VIDEOS */
.video-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

a {
  text-decoration: none;
  color: #fff;
}

.card a {
  width: 100%;
}

.card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  background: #353535;
  font-size: 0.75rem;
  box-shadow: rgba(3, 8, 20, 0.1) 0px 0.15rem 0.5rem, rgba(2, 8, 20, 0.1) 0px 0.075rem 0.175rem;
  height: 100%;
  width: 100%;
  border-radius: 4px;
  transition: all 500ms;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.invisible {
  background: transparent;
  border: transparent;
  box-shadow: none;
}

.card-img {
  position: relative;
  width: 100%;
}

.card-img img {
  width: 100%;
}

/* title container */
.card-title {
  flex: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  /* width === width img thumbnail*/
  width: 240px;
  max-height: 50px;
  opacity: 0.8;
}

/* Bottom left text */
.bottom-left {
  position: absolute;
  bottom: 8px;
  left: 16px;
  background: #353535;
  border-radius: 2px;
  padding: 0.1rem 0.25rem;
}

/* Bottom right text */
.bottom-right {
  position: absolute;
  bottom: 8px;
  right: 16px;
  background: #353535;
  border-radius: 2px;
  padding: 0.1rem 0.25rem;
}

.card:hover,
.more-button:hover {
  cursor: pointer;
  box-shadow: rgba(2, 8, 20, 0.1) 0px 0.35em 1.175em, rgba(2, 8, 20, 0.08) 0px 0.175em 0.5em;
  transform: translateY(-3px) scale(1.1);
}


/* Medium screens */
@media screen and (min-width: 600px) {
  .card-tall {
    grid-row: span 2 / auto;
  }

  .card-wide {
    grid-column: span 2 / auto;
  }
}

/* ADVERTISEMENTS */

/* BANNER */
.communication-banner-container {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 0 1rem;
}

.communication-banner-container .com-img {
  width: 100%;
  height: auto;
}

.communication-banner-container a:hover {
  cursor: pointer;
}
