/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
.items-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  gap: 1rem;

  margin-block: 1rem;
}

.item-card:hover,
.item-card:hover #add-to-workbench {
  transition: transform 0.2s;
  transform: translateY(-5px);
}


.burger-button {
  display: flex;
  border-radius: 50%;
  padding: 3px;
  background: #474747;
}

.stash--burger-classic {
  display: inline-block;
  width: 36px;
  height: 36px;
  --svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M4 6a1 1 0 0 1 1-1h14a1 1 0 1 1 0 2H5a1 1 0 0 1-1-1m0 6a1 1 0 0 1 1-1h14a1 1 0 1 1 0 2H5a1 1 0 0 1-1-1m1 5a1 1 0 1 0 0 2h14a1 1 0 1 0 0-2z'/%3E%3C/svg%3E");
  background-color: currentColor;
  -webkit-mask-image: var(--svg);
  mask-image: var(--svg);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.burger-list {
  position: absolute;
  width: 270px;
  top: 46px;
  transform: translateX(-314px);
}

.burger-list.active {
   transform: translateX(-8px);
}


.flash {
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  box-shadow: 0 0 8px rgba(0,0,0,0.2);
  border-radius: 4px;
  margin: 8px;
  color: black;
  position: absolute;
  top: 10px;
  right: 10px;
}

.flash-success {
  border: 2px solid #1EDD88;
}

.flash-warning {
  border: 2px solid #FFC65A;
}

.flash-danger {
  border: 2px solid #FD1015;
}

/* ANIMATION POUR EXPAND LES ITEMS NECESSAIRES AU CRAFT */
.items-children {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 400ms ease-in-out;
}

.card:nth-child(odd of .card) {
  background-color: #272727;
}

.inner .items-children {
  padding-left: 1rem;
}

.items-children .inner {
  overflow: hidden;
}

.visible {
  grid-template-rows: 1fr;
}

/* ANIMATION TO ROTATE THE EXPAND ARROW */
.arrow {
  transform: rotate(90deg);
  transition: transform 300ms ease-in-out;
}

.item-completed {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: greenyellow;
}

.item-uncompleted {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: black;
}
