* {
  box-sizing: border-box;
}

body {
  font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
  margin: 0 auto;
  height: 100%;
  text-align: center;
  overflow-y: hidden;
}

.search-wrapper {
  border-radius: 4px;
  border: #878f9a 1px solid;
  top: 0;
  background-color: #fff;
  z-index: 999;
  display: flex;
  width: 720px;
  height: 48px;
  flex-direction: column;
  margin: 24px auto;
  gap: 4px;
  padding-left: 12px;
  padding-right: 12px;
}

input {
  font-size: 16px;
  font-weight: 500;
}

.demo-wrapper {
  display: flex;
  flex-wrap: wrap;
  font-size: 2.5rem;
  justify-content: center;
  width: 100vw;
  height: calc(100vh - 200px);
  overflow-y: auto;
  padding-bottom: 200px;
  align-content: flex-start;
}

.demo-wrapper > div {
  z-index: 1;
  display: grid;
  grid-template-rows: 1fr 1fr;
  width: 220px;
  height: 220px;
  min-width: 220px;
  max-width: 460px;
  max-height: 460px;
  min-height: 220px;
  overflow: hidden;
  background: #fff;
  margin: 16px;
  padding: 24px;
  border: solid 1px #C1C6CD;
  border-radius: 4px;
  transition: opacity 0.3s ease;
  /* DropShadow/dropshadow-normal */
  box-shadow: 0px 8px 16px 0px rgba(59, 72, 92, 0.16);
  position: relative;
}

.demo-wrapper > div:hover {
  opacity: 0.7;
  background: var(--Overlay-colors-default-overlay, #3B485C);
  z-index: 2;
}

img {
  align-items: center;
  height: 72px;
  width: 72px;
  max-width: 72px;
  max-height: 72px;
  min-width: 32px;
  min-height: 32px;
  margin: auto;
}

span {
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  margin-top: -10px;
  text-align: center;
  color: #667385;
  z-index: 0;
}


.copy-container{}

/* Align buttons vertically in the nested div */
.button-group {
  display: flex;
  flex-direction: column; /* Stack buttons vertically */
  align-items: center; /* Center buttons horizontally */
  gap: 15px; /* Add spacing between the buttons */
}

.button {
  position: relative; /* Make tooltip positioning relative to button */
  opacity: 0;
  transition: opacity 0.3s ease;
  border: solid 1px #667385;
  border-radius: 4px;
  background: #FFF;
  color: rgb(43, 50, 55);
  cursor: pointer;
  font-size: 16px;
  padding: 8px 16px;
  z-index: 29;
  margin-bottom: 8px;
}

.demo-wrapper div:hover .button {
  opacity: 1;
}

.demo-wrapper div:hover img {
  opacity: 0.5;
}

.tooltiptext {
  visibility: hidden;
  background-color: black;
  color: #fff;
  text-align: center;
  border-radius: 5px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  bottom: 125%; /* Position the tooltip above the button */
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
  white-space: nowrap; /* Prevent text wrapping */
}

.button:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}


.codeBlock {
  visibility: hidden;
  white-space: pre-wrap; /* Preserve code formatting */
  background-color: #f4f4f4;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  max-width: 300px; /* Optional: limit code block width */
  overflow: auto; /* Scroll if content is too wide */
}

.codeInclude {
  color: rgb(43, 50, 55);
  white-space: pre-wrap; /* Preserve code formatting */
  background-color: #f4f4f4;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  max-width: 300px; /* Optional: limit code block width */
  overflow: auto; /* Scroll if content is too wide */
}