/*-- scss:defaults --*/

// replicate the CSS for a callout box with a custom title, icon, and default appearance

.solutionbox {
  margin-top: 1em;
  margin-bottom: 1em;
  border: 1px solid #002855; // use shorthand for consistent behavior
  border-left: 0.3rem solid #9834eb !important;
  border-radius: 0.25rem;
  background-color: #fefefe; // optional, makes it more visible
  overflow: hidden; // ensures border wraps floated or flex children
}

.solutionbox-icon {
  height: 0.9rem;
  width: 0.9rem;
  display: inline-block;
  content: "";
  background-repeat: no-repeat;
  background-size: 0.9rem 0.9rem;
  margin-top: .5rem;
  padding-right: 1.25rem;
  background-image: url('images/screwdriver-wrench-solid.png');
}

.solutionbox-header {
  //margin-top: 0.5em;
  margin-bottom: 0.5em;
  border-bottom: none;
  font-weight: 600;
  opacity: 85%;
  font-size: 0.9rem;
  padding-left: 0.5em;
  padding-right: 0.5em;
  display: flex;
  background-color: #f5e8ff;
  height: 2em;
  overflow: hidden;
}

.solutionbox-header p {
  padding-top: 0.2em;
}

.solutionbox-body {
  font-size: 0.9rem;
  font-weight: 400;
  padding-left: 0.5em;
  padding-right: 0.5em;
}

.solutionbox-body > :last-child {
  padding-bottom: 0.5rem;
  margin-bottom: 0;
}


/* Custom style for learning goals */
.learning-goals {
  margin-top: 1.5em;
  margin-bottom: 0.2em;  /* Reduced bottom margin */
  padding: 0.2em;
  border: 3px solid #9834eb;
  border-radius: 5px;
  background-color: #f5e8ff;
  font-size: 1.1em;
  position: relative;  /* Ensure the ribbon will be positioned relative to the box */
}

/* Create the ribbon effect for the header */
.learning-goals::before {
  content: "🎯 Learning Goals";  /* Text for the ribbon */
  position: absolute;
  top: -1em;  /* Position the ribbon above the box */
  left: 5px;
  background-color: #9834eb;  /* Color of the ribbon */
  color: white;
  font-size: 1.2em;
  padding: 0.3em 1em;
  border-radius: 0.5em;
  font-weight: bold;
  transform: rotate(0);  /* Rotate the ribbon to make it diagonal */
  width: 240px;  /* Adjust the width of the ribbon */
  text-align: center;
}

/* Style for the list */
.learning-goals ul {
  list-style-type: disc;
  margin-left: 0.5em;
  padding-bottom: 0.2em;
  margin-top: 1.3em;
  margin-bottom: 0;
}


/* Custom style for learning goals */
.practice-it {
  margin-top: 1.5em;
  margin-bottom: 0.2em;  /* Reduced bottom margin */
  padding: 0.2em;
  border: 3px solid #3a9fff;
  border-radius: 5px;
  background-color: #daedff;
  font-size: 1.1em;
  position: relative;  /* Ensure the ribbon will be positioned relative to the box */
}

/* Create the ribbon effect for the header */
.practice-it::before {
  content: "❓ Test Your Knowledge ❓"  ;  /* Text for the ribbon */
  position: absolute;
  top: -1em;  /* Position the ribbon above the box */
  left: 5px;
  background-color: #3a9fff;  /* Color of the ribbon */
  color: white;
  font-size: 1.2em;
  padding: 0.3em 1em;
  border-radius: 0.5em;
  font-weight: bold;
  transform: rotate(0);  /* Rotate the ribbon to make it diagonal */
  width: 330px;  /* Adjust the width of the ribbon */
  text-align: center;
}

/* Style for the list */
.practice-it ul {
  list-style-type: disc;
  margin-left: 0.5em;
  padding-bottom: 0.2em;
  margin-top: 1.3em;
  margin-bottom: 0;
}