/*
* demo.css
* File include item demo only specific css only
******************************************************************************/

.menu .app-brand.demo {
  height: 64px;
  margin-top: 12px;
}

.app-brand-logo.demo svg {
  width: 22px;
  height: 38px;
}

.app-brand-text.demo {
  font-size: 1.75rem;
  letter-spacing: -0.5px;
  text-transform: lowercase;
}

/* ! For .layout-navbar-fixed added fix padding top to .layout-page */
/* Detached navbar */
.layout-navbar-fixed .layout-wrapper:not(.layout-horizontal):not(.layout-without-menu) .layout-page {
  padding-top: 76px !important;
}

/* Default navbar */
.layout-navbar-fixed .layout-wrapper:not(.layout-without-menu) .layout-page {
  padding-top: 64px !important;
}

.docs-page .layout-navbar-fixed.layout-wrapper:not(.layout-without-menu) .layout-page,
.docs-page .layout-menu-fixed.layout-wrapper:not(.layout-without-menu) .layout-page {
  padding-top: 62px !important;
}

/* Navbar page z-index issue solution */
.content-wrapper .navbar {
  z-index: auto;
}

/*
* Content
******************************************************************************/

.demo-blocks>* {
  display: block !important;
}

.demo-inline-spacing>* {
  margin: 1rem 0.375rem 0 0 !important;
}

/* ? .demo-vertical-spacing class is used to have vertical margins between elements. To remove margin-top from the first-child, use .demo-only-element class with .demo-vertical-spacing class. For example, we have used this class in forms-input-groups.html file. */
.demo-vertical-spacing>* {
  margin-top: 1rem !important;
  margin-bottom: 0 !important;
}

.demo-vertical-spacing.demo-only-element> :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-lg>* {
  margin-top: 1.875rem !important;
  margin-bottom: 0 !important;
}

.demo-vertical-spacing-lg.demo-only-element> :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-xl>* {
  margin-top: 5rem !important;
  margin-bottom: 0 !important;
}

.demo-vertical-spacing-xl.demo-only-element> :first-child {
  margin-top: 0 !important;
}

.rtl-only {
  display: none !important;
  text-align: left !important;
  direction: ltr !important;
}

[dir='rtl'] .rtl-only {
  display: block !important;
}

/* Dropdown buttons going out of small screens */
@media (max-width: 576px) {
  #dropdown-variation-demo .btn-group .text-truncate {
    width: 231px;
    position: relative;
  }

  #dropdown-variation-demo .btn-group .text-truncate::after {
    position: absolute;
    top: 45%;
    right: 0.65rem;
  }
}

/*
* Layout demo
******************************************************************************/

.layout-demo-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  margin-top: 1rem;
}

.layout-demo-placeholder img {
  width: 900px;
}

.layout-demo-info {
  text-align: center;
  margin-top: 1rem;
}

/* news feed */
.holder {
  border: 1px solid #ccc;
  width: 100%;
  height: 250px;
  overflow: hidden;
  padding: 10px;
  border-radius: 5px;
}

.holder .mask {
  position: relative;
  left: 0px;
  top: 10px;
  width: 100%;
  height: 240px;
  overflow: hidden;
}

.holder ul {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.holder ul li {
  padding: 10px 0px;
}

.holder ul li a {
  color: darkred;
  text-decoration: none;
  display: block;
}

/* code editor */
.code-editor {
  width: auto;
  height: 95vh;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  background-color: #FFF;
  border-radius: 1rem;
  overflow: hidden;
  border: 2px solid #14007a;
}

.code {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  overflow-y: auto;
  background-color: #0E0D14;
  padding: .5rem;
}

.lang-heading {
  font: 600 1.2rem sans-serif;
  margin: .2rem 0;
  color: #fff;
}

.lang-heading>img {
  width: 1.2rem;
  margin-right: 1rem;
  vertical-align: middle;
}

.code textarea {
  width: 100%;
  height: calc(100% - 2.2rem);
  background-color: rgba(22, 24, 45, 1);
  color: rgb(74, 225, 255);
  border: none;
  outline: none;
  padding: .5rem;
  font-size: 1.1rem;
  resize: vertical;
}

.code textarea::-webkit-scrollbar {
  width: .4rem;
}

.code textarea::-webkit-scrollbar-thumb {
  background-color: #525CEB;
  border-radius: .4rem;
}

#result {
  width: 100%;
  height: 100%;
  border: none;
}

/* ivisible form elements */
.radio-group {
  display: flex;
}

.radio {
  margin-right: 5px;
}

.radio input[type='radio'] {
  position: absolute;
  opacity: 0;
}

.radio-overlay::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  -moz-border-radius: 7.5px;
  -webkit-border-radius: 7.5px;
  border-radius: 10px;
  border: 2px solid black;
}

.radio input[type='radio']:focus+.radio-overlay {
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px #b51ad1;
}

.radio input[type='radio']:checked+.radio-overlay::before {
  background-color: #3273dc;
}

.radio-overlay {
  margin-right: 2px;
}

.checkbox input[type='checkbox'] {
  position: absolute;
  opacity: 0;
}

.checkbox-overlay::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid black;
}

.checkbox input[type='checkbox']:focus+.checkbox-overlay {
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px #b51ad1;
}

.checkbox input[type='checkbox']:checked+.checkbox-overlay::before {
  background-color: #3273dc;
}

.select {
  position: absolute;
  opacity: 0;
}

.select:focus+.select-overlay {
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px #b51ad1;
}

.select-overlay {
  width: 80px;
  height: 20px;
  border: 1px solid black;
  display: flex;
  justify-content: space-between;
}

.select-overlay svg {
  margin-top: -2px;
  height: 15px;
  width: 15px;
}

.option-overlay {
  margin-left: 2px;
  font-size: small;
}

.option-overlay:not(:first-child) {
  display: none;
}

.input-select {
  border: 2px solid black;
  padding: 5px;
  width: 300px;
  height: 30px;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.input-select svg {
  margin-top: -6px;
  height: 20px;
  width: 20px;
}

.input-select input {
  position: absolute;
  opacity: 0;
}

.input-select:focus-within {
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px #b51ad1;
}

.input-select-overlay {
  display: none;
  padding: 15px;
  width: 300px;
  border: 1px solid black;
  border-top: none;
}

.input-select-overlay li:not(:last-child) {
  border-bottom: 1px solid black;
  padding-bottom: 5px;
}


.image-container {
  position: relative;
  /* Set a relative position for the container */
  width: 100px;
  /* Adjust based on your image sizes */
  height: 100px;
  /* Adjust based on your image sizes */
}

.image {
  position: absolute;
  /* Allows overlapping */
  width: 100%;
  /* Adjust as needed */
  height: 100%;
  /* Adjust as needed */
  object-fit: cover;
  /* Keeps images in proportion */
}

.image1 {
  z-index: 1;
  /* Image 1 at the bottom */
  top: 0;
  left: 0;
}

.image2 {
  z-index: 2;
  /* Image 2 in the middle */
  top: 10px;
  /* Slight offset for overlap */
  left: 20px;
  /* Slight offset for overlap */
  opacity: 0.8;
  /* Optional transparency */
}

.image3 {
  z-index: 3;
  /* Image 3 on top */
  top: 10px;
  /* Slight offset for overlap */
  left: 40px;
  /* Slight offset for overlap */
  opacity: 0.6;
  /* Optional transparency */
}