* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  overflow-x: hidden;
}

body {
  font-family: "Petch", sans-serif;
  color: #E6969B;
  overflow-x: hidden;
  background-color: #150A1F;
}

/*---------------------- Sidebar ----------------------*/

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 8.5%;
  transition: width 0.5s, box-shadow 0.5s;
  background-color: #1A0D27;
  color: #E691AB;
  padding: 20px;
  z-index: 9;
  overflow: hidden;
  white-space: nowrap; 
  display: flex;
  flex-direction: column;
}
.sidebar:hover {
  width: 13.5%;
  box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.9);
}
.sidebar::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 80%; 
  height: 100vh;
  background: linear-gradient(to right, rgba(0,0,0,0), #150A1F); 
  pointer-events: none;
  transition: opacity 0.5s ease;
  opacity: 1;
}
.sidebar:hover::after {
  opacity: 0;
}
/* .sidebarl {
  display: block;
} */
.dropdowncont {
  display: flex;
  flex-direction: column;
}
.downside {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  margin-top: auto;
}

/*---------------------- Body ----------------------*/

.base {
  opacity: 0;
  transition: opacity 2s ease-in;
}
.base.ready {
  padding: 20px;
  display: flex;
  justify-content: center;
  height: 90.4vh;
  opacity: 1;
}
.slider {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.5s ease;
}
.page {
  display: flex;
  width: 67%;
  flex-direction: column;
  align-items: center;
  height: 80vh;
}
.topping {
  margin-bottom: 3%;
  width: 100%;
}
.content {
  background-color: #23182e;
  padding: 2rem 2rem 0rem;
  border-radius: 1.25rem;
  margin-bottom: 3rem;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: center;
  align-content: center;
  width: 100%;
  box-shadow: 10px 10px 20px 0px rgba(66, 38, 51, 0.8);
  box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.9);
}
.pagehidden {
  display: none;
}
.expandable {
  height: 300px;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, black, black 5%, transparent);
}        
.expandable.expanded {
  height: auto;
  mask-image: none;
}



/*---------------------- Link ----------------------*/

.linkl:link,
.linkl:visited {
  text-decoration: none;
  margin-bottom: 10px;
  font-weight: 600;
  color: #E691AB;
  /* padding: 5px; */
}
.linkl:hover,
.linkl:active {
  color: #E59A8B;
  text-shadow: 0px 0px 5px rgba(229, 154, 139, 0.9);
}
.hmcodel:link,
.hmcodel:visited {
  text-decoration: none;
  margin-bottom: 10px;
  font-weight: 600;
  color: #97a7c8;
  display: inline-block;
  padding: 5px;
}
.hmcodel:hover,
.hmcodel:active {
  color: #c2d7f3;
}
.linkbox {
  background-color: #23182e;
  padding: 1.25rem 1.75rem;
  border-radius: 1.25rem;
  margin-bottom: 3rem;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: center;
  align-content: center;
  box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.9);
}

/*---------------------- Text ----------------------*/

.large {
  font-size: 2.325vh;
  padding-top: 0.7rem;
  display: flex;
  align-items: center;
}
.medium {
  font-size: 1.925vh;
  margin: 1.1vh 4.6% 0rem;
  text-align: center;
}

.headed {
  font-size: 4.225vh;
  display: flex;
  justify-content: center;
  margin: 2.35vh 0vh;

}
.seconded {
  font-size: 2.575vh;
  margin-bottom: 1.35vh;
  text-align: center;
}
.secondednobreak {
  font-size: 2.575vh;
  display: flex;
  justify-content: center;
}
.normaltext {
  text-align: center;
}
.lefttext {
  text-align: left;
}

/*---------------------- Images ----------------------*/

/* .widimg {
  width: 100%;
} */
.images {
  width: 100%;
  height: 100%;
}
.content img {
  margin-right: 0.7rem;
}
.fs {
  max-width: 69%;
  max-height: 90%;
  position: fixed;
  left: 50%;
  top: 46.5%;
  transform: translate(-50%, -41%); 
  z-index: 19;
  padding: 20px;
  overflow-y: auto
}
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  grid-auto-rows: auto;
}
.content img {
  transition: transform 0.2s;
  object-fit: cover;
}
.content img:hover {
  transform: scale(1.03);
}
.cropbox {
  width: 100%;
  overflow: hidden;
  border-radius: 3px;
  transition: border-radius 0.2s ease;
}
.cropbox:hover {
  border-radius: 7px;
}

.cropboxwide {
  height: auto;
  width: 98%;
  overflow: hidden;
  border-radius: 0.7rem;
  transition: border-radius 0.2s ease;
  display: flex;
  flex-direction: column;
  margin-top: 1.1vh;
}
.cropboxwide:hover {
  border-radius: 1.3rem;
}

.codess {
  width: 100%;
}

/*---------------------- Code Segments ----------------------*/

.hmcode {
  margin-top: 4rem;
  background-color: #111820;
  padding: 2rem;
  border-radius: 1.25rem;
}
.codehm {
  text-align: left;
  background-color: #0b1015;
  font-size: 1.6rem;
  color: #abb2bf;
  padding: 1.5rem;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}
#codehmbutton {
  position: absolute;
  top: 0rem;
  right: 0rem;
  background-color: transparent;
  border: none;
  cursor: pointer;
}
#codehmbutton ion-icon {
  font-size: 4rem;
  color: #97a7c8;
}
#codehmbutton ion-icon:hover,
#codehmbutton ion-icon:active {
  color: #c2d7f3;
}
#hmtxt.fullscreen {
  position: fixed;
  top: 9.6rem;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 19;
  padding: 20px;
  overflow-y: auto
}

/*---------------------- Tabs ----------------------*/

.ttabcontent {
  background-color: #0b1015;
  padding: 0.5rem;
}
.rtabcontent {
  background-color: #0b1015;
  padding: 0.5rem;
}
.tab {
  display: flex;
  background-color: #111820;
}
.tab button {
  flex: 1;
  background-color: inherit;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 10px 20px;
  transition: 0.3s;
  color: #97a7c8;
  font-family: "Petch", sans-serif;
}
.tab button:hover {
  color: #c2d7f3;
}
.tab button.active {
  background-color: #161F2A;
}

/*---------------------- Buttons ----------------------*/

.buttonoverlay {
  z-index: 2;
}

.butt {
  size: 4rem;
}

.expand {
  font-size: 4.6rem;
  display: flex;
  justify-content: center;
}

/*---------------------- JS ----------------------*/

.imgunderlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(3px);
  background-color: rgba(0, 0, 0, 0.5); 
  z-index: 18; 
  /* display: none; */
}

/*---------------------- Table ----------------------*/

table {
  width: 100%;
  border-collapse: collapse; 
}
th {
  background-color: #161f2a;
  color: #97a7c8; 
  padding: 8px; 
  text-align: center;
}
td {
  padding: 8px; 
  border-bottom: 1px solid #161f2a; 
  text-align: center;
}
tr:nth-child(even) {
  background-color: #0E141B;
}
tr:hover {
  background-color: #131A23;
}

/*---------------------- Scrollbar ----------------------*/

::-webkit-scrollbar-track {
  background-color: #150A1F;
}
::-webkit-scrollbar-thumb {
  background-color: #E6969B;
  border-radius: 100px;
}
::-webkit-scrollbar {
  width: 3px;
}

/*---------------------- Video ----------------------*/

.vjs-big-play-button {
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
}
.vim video {
  width: 100%;
}
.vim {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
}
/* .vim video {
  
  object-fit: cover;
} */

.vid{
  width: 100%;
  height: auto;
  border-radius: 1%;
}

.vidlowski {
  aspect-ratio: 16 / 10;
}

/*---------------------- List ----------------------*/

ul {
  padding-left: 20px; 
}
ul li {
  margin: 5px 0; 
}

/*---------------------- Copy Text ----------------------*/

.python {
  background-color: #0E141B;
  border: 0.2rem solid #131A23;
  font-size: 1.6rem;
  color: #abb2bf;
  overflow: hidden;
  white-space: nowrap;
}
.copytext {
  cursor: pointer;
}
.copytext::after {
  content: "Copy";
  position: absolute; 
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #97a7c8cc; 
  padding: 4px 8px; 
  border-radius: 4px;
  font-size: 12px;
  color: #0b1015; 
  display: none; 
}
.copytext:hover::after {
  display: block; 
}

/*---------------------- LLM ----------------------*/


.llbot {
  text-align: left;
  padding: 0.5rem 0.75rem;
  background-color: #2d223d;
  width: fit-content;
  border-radius: 1rem;
  margin-bottom: 0.7rem;
}
.lluser {
  text-align: right;
  padding: 0.5rem 1rem;
  background-color: #2d223d;
  width: fit-content;
  border-radius: 5rem;
  align-self: flex-end;
  margin-bottom: 0.7rem;
}
.llmessages {
  display: flex;
  flex-direction: column;
  max-height: 95%;
  overflow-y: auto;
  margin-top: auto;
  width: 100%;
}
.llmessages::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}
.llcontent {
  background-color: #23182e;
  padding: 2rem 2rem 2rem;
  border-radius: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.llsendmsg {
  display: flex;
  gap: 1rem;
  align-items: center;
  width: 100%;
  margin-top: 1rem;
}
.llmessage {
  font-size: 1.8rem;
}

#userInput {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: 1.25rem;
  border: none;
  outline: none;
  font-size: 1.8rem;
  background-color: #2d223d;
  color: white;
}

#userInput::placeholder {
  color: #aaa;
}

.llbtn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  font-size: 3rem;
  color: #E691AB; /* or whatever accent color you want */
  transition: transform 0.2s ease;
}

.llbtn:hover {
  transform: scale(1.1);
  color: #E59A8B;
}


/*---------------------- Misc ----------------------*/

#willbeusing {
  margin-bottom: 1rem;
}
#yamlcodesegment {
  height: 12rem;
}

/*---------------------- Font ----------------------*/

@font-face {
  font-family: 'Petch';
  src: url(Fonts/ChakraPetch-Medium.ttf) format('truetype');
}



/* .middled {
  background-color: #0b1015;
  padding: 0.5rem;
} */

/* .seconded {
  font-size: 2.2rem;
  display: flex;
  justify-content: center;
} */