



.list {
  list-style: none; /*сброс точки в списках*/
  margin-top: 0;
  margin-bottom: 0;
}

.link {
  display: inline-block;
  text-decoration: none; /*сброс подчеркивания*/
}


/* ==flex example== */
.flex-example {
  border: 2px solid black;
  width: 600px;
  margin: 10px auto; 
}

.code-jc {
  display: block;
  margin-bottom: 10px;
  text-align: center;
  font-weight: 700;
  font-size: 18px;
}

.menu {
  display: flex;
  gap: 8px;
  padding: 10px;
  margin: 0;
  margin-bottom: 10px;
  list-style: none;
  border-radius: 4px;
  background-color: #2196f3;
  box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2),
    0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12);
}

.menu.flex-end {
  justify-content: flex-end;
}

.menu.center {
  justify-content: center;
}

.menu.space-between {
  justify-content: space-between;
}

.menu .link {
  display: block;
  padding: 10px;
  border-radius: 4px;
  text-decoration: none;
  color: black;
  background-color: #fff;
}

.menu .link:hover {
  text-decoration: underline;
}


/* ======================== */

.flex-container {
  /* flex-direction: row | row-reverse | column | column-reverse; */
  /* justify-content: flex-start | flex-end | center | space-between | space-around | space-evenly */
  /* align-items: stretch | flex-start | flex-end | center | baseline */
  /* flex-wrap: nowrap | wrap | wrap-reverse */
  display: flex;
  justify-content: space-around; /* По горизонталі */
  align-items: center;     /* По вертикалі */
  width: 600px;
  height: 60px;
  border: 2px solid black;
  padding: 0;
}

.flex-container-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  /* row-gap: 10px; */
  /* column-gap: 10px; */
  width: 300px;
  height: 150px;
  border: 1px solid black;
  padding: 5px;
}


.flex-container-wrap > li {
  border: 1px solid red;
  flex-basis: calc((100% - 20px) / 3);
}


/* ==== 2 ============ */

.container-flex-ex {
  max-width: 900px;
  padding: 10px;
  margin-left: auto;
  margin-right: auto;
}

.card-set {
  display: flex;
  /* Make a flex container multiline */
  flex-wrap: wrap;
  /* Set gap between rows and columns */
  gap: 10px;
  padding: 0;
  list-style: none;
}

.item-ex {
  /*  Set the width of the elements  */
  flex-basis: calc((100% - 20px) / 3);
  
  padding: 10px;
  background-color: #fff;
  border-radius: 4px;
  box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2),
    0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12);
}

.item-ex h2 {
  margin-top: 0;
  font-size: 20px;
}

.item-ex p {
  margin: 0;
}


/* end flex example */


/* Гумовий контент SideBar */
.container-grow {
  display: flex;
  gap: 8px;
  max-width: 900px;
  /* margin: 0 auto; */
}

.sidebar-grow {
  flex-basis: 180px;
}

.content-grow {
  flex-grow: 1;
}

.sidebar-grow,
.content-grow {
  height: 160px;
  padding: 20px;
  border-radius: 4px;
  background-color: #fff;
  box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2),
    0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12);
}

/* end Гумовий контент SideBar */

/* Footer завжди знизу grow */
.card2-grow {
  display: flex;
  flex-direction: column;
  height: 240px;
  /* flex-basis: 320px; */
  margin: 8px;
  padding: 10px;
  background-color: #fff;
  box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2),
    0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12);
  border-radius: 4px;
}

.card2-grow > .content2-grow {
  flex-grow: 1;
  
  margin-bottom: 10px;
  padding: 10px;
  border: 2px dashed tomato;
  border-radius: 4px;
}

.card2-grow > .footer-grow {
  padding: 10px;
  text-align: center;
  background-color: teal;
  color: white;
  border-radius: 4px;
}

/* end Footer завжди знизу grow */