/* Avoir des iframes responsives pour les vidéos */
.video-container {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.ratio-16_9 {
  padding-top: 56.25%; /* 16:9 Aspect Ratio (divide 9 by 16 = 0.5625) */
}

/* Then style the iframe to fit in the container div with full height and width */
.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
}

/* Generic containers */

.cards-collection {
/*  padding: 2rem; */
}

.form-container {
  padding: 2rem;
	border: solid 1px #dee2e6;
}

/* Navbar */

.navbar {
  margin-bottom: 1rem;
}

/* Nice hover when that doesn't change the color of the background */
.nav-link:hover {
  color: white;
  background-color: rgba(0,0,0,0);
}

/* Dropbown buttons */
.navbar .dropdown-toggle {
  margin: 0 1rem;
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
}

.navbar .dropdown-item.active {
  background-color: rgba(0,0,0,0.1);
}

/* Colors by section */
.navbar.disabled {
  background-color: var(--bs-gray);
}

.navbar.section-conception, .navbar .section-conception {
  background-color: var(--bs-primary);
}

.navbar.section-animation, .navbar .section-animation {
  background-color: var(--bs-cyan);
}


/* Cards pour afficher les ressources des scénarios (/scenario/resources) */

.resource-card {
  display: inline-block;
  margin: 2rem;
  vertical-align: middle;
  align: center;
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
  height: 30rem;
  width: 20rem;
}
.resource-card-label {
  margin: .25rem 1rem 0 1rem;
  font-size: .875em;
  color: #6c757d;
}
.resource-card-img-container {
  position: relative;
  height: 60%;
  width: 100%;
  align-content: center;
}
.resource-card-img-container img {
  display: block;
  margin: 0 auto;
  max-height: 100%;
  max-width: 100%;
  padding: 1rem 0;
}
.resource-card-img-container .alert {
  position: absolute;
  opacity: 0.75;
  top: 33%;
  text-align: center;
}

.resource-card-code {
  display: inline-flex;
  text-align: center;
  align-items: center;
  font-size: .875em;
  margin: 0 1rem 1rem 1rem;
}
.resource-card-code code{
  padding: 0.5em;
  word-wrap: anywhere;
}

/*** Preview of step ***/

/* Quest preview : container for steps */
.quest-preview {
  padding: 1rem;
}

/* Step preview : container for the items (description and hints) */
.step-preview {
  margin: 1rem;
  padding: 1rem;
  border: 1px solid grey;
}

/* description or hint */
.step-preview-item {
  margin: 0.2rem;
  padding: 1rem;
  width: 25rem;
  height: 25rem;
  overflow-y: scroll;
}

.step-preview-item h5 {
  background-color: var(--bs-primary);
  color: white;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: block;
  padding: 0.2rem 0.75em;
}

/* markdown missing image visual detection */
img {
  color: #ff0000;
  text-align: center;
}

img:after {
  content: "⚠️";
  position: absolute;
  top: 50%;
  left: 25px;
  transform: translate(-50%, -50%);
  font-size: 16px;
}

