html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
font,
iframe,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
caption {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  vertical-align: baseline;
  background: transparent;
}


:root {
  --vx: 100vh;
  --vy: 100vw;
}



html {
  height: 100%;
  width: 100%;
  font-family: Nunito;
  overflow-x: hidden;
  scroll-padding-top: 60px;
}
@font-face{
  font-family: 'Monaco';
  src: url('/res/fonts/Monaco.ttf') format('truetype');
}
@font-face{
  font-family: 'DomaineRegular';
  src: url('/res/fonts/domaine-font-family/TestDomaineText-Regular-BF66174a20ac89e.otf') format('truetype');
}
@font-face{
  font-family: 'Nunito';
  src: url('/res/fonts/Nunito/Nunito-VariableFont_wght.ttf') format('truetype');
}



h1{
  font-family: 'Times New Roman', Times, serif;
}
p {
  line-height: 1.6em;
}
p,ul{
  font-size: 15px;
  font-family: DomaineRegular;
  font-weight: thin;
}
mjx-container {
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
  padding: 0;
}


ul,ol {
  padding-left: 2.5em;
  margin-bottom: 2em;
}
ol li{
  font-family: 'Times New Roman', Times, serif;
}
h4, h3, h2, p, hr{
  margin-top: 1em;
}
li{
  margin-top: 0.8em;
}
hr{
  margin: 2em 0;
}



span a{
  font-size: 15px;
  font-family: DomaineRegular;
  font-weight: thin;
}
a {
  text-decoration: none;
  color: #8c2eff;
  background: 
    linear-gradient(to right, #61d0ff, #61d0ff),
    linear-gradient(to right, #ff00c8ad, #029affb4);
  background-size: 100% 0.1em, 0 0.1em;
  background-position: 100% 100%, 0 100%;
  background-repeat: no-repeat;
  transition: background-size 400ms;
}
a:hover,
a:focus {
  background-size: 0 0.1em, 100% 0.1em;
}
#side a,
#side a:hover,
#side a:focus{
  text-decoration: none;
  color: black;
  background: none;
}




#threejs {
  position: fixed;
  /* background-color: #ff00ff; */
  /* opacity: 0.5; */
  z-index: -1;
  top: 0;
  left: 0;
  width: var(--vy);
  height: var(--vx);
}



#cover {
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 89;
  position: fixed;
  top: 0;
  left: 0;
  width: var(--vy);
  height: var(--vx);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
#cover.visible {
  opacity: 1;
}

#loader {
  background-color: rgb(255, 255, 255);
  z-index: 99;
  position: fixed;
  top: 0;
  left: 0;
  width: var(--vy);
  height: var(--vx);
  opacity: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  vertical-align: middle;
  justify-content: center;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
#loader.visible{
  opacity: 0.96;
}



#banner {
  width: var(--vy);
  height: var(--vx);
  /* background-image: url("https://img.freepik.com/free-vector/stylish-glowing-digital-red-lines-banner_1017-23964.jpg?semt=ais_hybrid&w=74"); 
  background-size: cover; 
  background-repeat: no-repeat; 
  background-position: center; */

  /* display: flex;
  /*flex-direction: column;*/
}
#footer{
  width: 100%;
  height: 20px;
  background-color: #000000;
  opacity: 0.6;
  margin-top: 30px;
}
#banner h1,
#footer h1 {
  color: black;
  margin: auto;
  opacity: 0;
  margin-top: 90px;
}



#header {
  z-index: 10;
  color: wheat;
  text-align: center;
  height: 30px;
  top: 0px;
  /* margin-top: -30px; */
  position: sticky;
  background-color: rgb(4, 0, 255, 0.5);
}
#header p{
  padding-top: 4px;
}
.tags {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tags span {
  padding: 4px 10px;
  border-radius: 999px;
  background: #f0f0f0;
  border: 1px solid #d5d5d5;
  font-size: 0.9rem;
  font-family: DomaineRegular;
}



#container {
  /* background-color: red; /* test */
  margin: 0 auto;
  display: -ms-flexbox;
  /* IE10 */
  display: flex;
  -ms-flex-wrap: wrap;
  /* IE10 */
  flex-wrap: wrap;
  max-width: min(1300px, 90%);
}


#side {
  -ms-flex: 20%;
  /* IE10 */
  flex: 20%;
  max-width: 20%;
  /* background-color: green; /* test */
}
#sidebar {
  position: sticky;
  top: 55px;
  max-height: 70vh;
  /* background-color: yellow; /* test */
}



#menu{
  /* background-color: #ffffff60; */
  background-color: rgba(255, 255, 255, 0.4);
  color: black;
  max-height: 60vh;
  margin-top: 1.8rem;
  overflow-y: auto;
  scrollbar-width: none;
  background-attachment: local;
  backdrop-filter: blur(5px);
}
#namecard {
  /* background-color: #ffffff60; */
  background-color: rgba(255, 255, 255, 0.4);
  color: black;
  max-height: 20vh;
  backdrop-filter: blur(5px);
}



#collapse {
  position: fixed;
  /* width: min(5vw, 30px); */
  width: 30px;
  border-radius: 0 50% 50% 0;
  z-index: 21;
  background-color: #00000050;
  text-align: center;
  left: 0;
  top: 50%;
  display: none;
  box-shadow: inset 0 2px 4px #ffffff30, 0 4px 6px #00000030, 0 6px 8px #00000015;
  transition: left 0.5s ease, background-color 0.5s ease, border-radius 0.5s;
}

#collapseArrow {
  transition: transform 0.5s cubic-bezier(0.42, 0, 0.42, 1), filter 0.5s;
}

body:has(#collapse input:checked) #collapse {
  /* left: calc(100vw - max(30px, 5vw)); */
  left: calc(100vw - 30px);
  border-radius: 50% 0 0 50%;
  background-color: #000000ff;
}

body:has(#collapse input:checked) #collapseArrow {
  transform: rotate(180deg);
  filter: invert(1);
}

body:has(#collapse input:checked) #side {
  left: 0;
}

body:has(#collapse input:checked) #menu,
body:has(#collapse input:checked) #namecard {
  opacity: 1;
}




#main {
  /* border-radius: 12px; */
  flex: 68%;
  max-width: 68%;
  margin-left: 4%;
  min-height: 90vh;
  padding: 40px 30px;
  background-color: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(5px);
  margin-bottom: 50px;
  padding-top: 18px;
}
#main.no-blur {
  backdrop-filter: none;
}

@media screen and (max-width: 1020px) {

  /* no side if under max-width */
  #main,
  #side {
    width: 100%;
    flex: 100%;
    -ms-flex: 100%;
    margin: auto;
    max-width: 80%;
    backdrop-filter: blur(5px);
  }
  #container {
    margin: 0 auto;
  }

  #side {
    margin: 0;
    position: fixed;
    z-index: 20;
    max-width: 100%;
    width: var(--vy);
    height: var(--vx);
    left: -100%;
    background-color: rgb(255, 255, 255, 0.55);
    transition: left 0.5s ease;
    top: 0;
    backdrop-filter: blur(10px);
  }

  #sidebar {
    position: default;
    height: 100%;
    top: 0;
    /* background-color: #ff000060; /* test */
  }

  #menu,
  #namecard,
  #menu:before,
  #namecard:before,
  #menu:after,
  #namecard:after {
    box-shadow: none;
    background: linear-gradient(transparent, transparent);
    background-color: rgb(255, 255, 255, 0);
    backdrop-filter: none;
    opacity: 0;
    transition: opacity 2s ease, transform 0.5s cubic-bezier(0.23, 1, 0.320, 1);
  }
  #menu{
    max-height: 75vh;
  }
  #namecard{
    margin-top: 5vh;
  }

  #collapse {
    display: block;
  }
}










.rowVideo {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 5%;
  gap: 0;
}

.colVideo {
  width: 70%;
  box-sizing: border-box;
}

.colVideoText {
  width: 30%;
  /* background-color: violet; /* test */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}
.colVideoText p, .colVideoText h2 {
  margin: 0;
}

iframe {
  width: 100%;
  aspect-ratio: 16/9;
}

button {
  outline: none;
  border: none;
  font-family: Nunito;
}

.col {
  float: left;
  width: 33.33%;
}

.col button {
  margin: auto;
}

.row {
  width: 85%;
  content: "";
  display: table;
  clear: both;
  background-color: rgba(255, 255, 255, 0.2);
}







.gallery {
  column-count: 3;
  column-gap: 2%;
}

.gallery img {
  margin: 2% 0;
}

@media screen and (max-width: 800px) {
  .gallery {
    column-count: 2;
  }
  .colVideo {
    flex: 100%;
  }
}
@media screen and (max-width: 600px) {
  .gallery {
    column-count: 1;
  }
}

.gallery-item {
  position: relative;
  cursor: pointer;
}
.thumb {
  z-index: 2;
  width: 100%;
}
.copy {
  position: absolute;
  z-index: 90;
  /* top: 10px; */
  width: 100%;
  opacity: 0;
  transform-origin: center;
  transition: opacity 1s, transform 0.5s, width 1s, height 0.8s, z-index 0s 1s;
  pointer-events: none;
}
.gallery-item:active .copy {
  z-index: 90;
  transform:
    translate(var(--dx), var(--dy)) scale(var(--scale));
  /*width: var(--w);*/
  opacity: 1;
  transition: opacity 1s, transform 0.5s, width 1s, height 0.8s, z-index 0s 0s;
}


.galleryCaption {
  position: fixed;
  pointer-events: none;
  opacity: 0;
  transform: translate(12px, 12px);
  transition: opacity 0.5s ease;
  background: rgb(255, 255, 255, 0.8);
  color: black;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 6;
  white-space: normal;
}
.galleryCaption h2{
  margin: 0;
  margin-top: 0.1em;
}
.galleryCaption p{
  margin: 0;
  margin-bottom: 0.1em;
}
@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateY(4px);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.fade-out {
  animation: fadeOut 0.2s ease forwards;

}
.fade-in {
  animation: fadeIn 0.2s ease forwards;
}





.cardStatic {
  /*width: 300px;
  height: 200px;*/
  width: 100%;
  /*
  background-color: #4158D0;
  background-image: linear-gradient(43deg, #4158D0 0%, #C850C0 46%, #FFCC70 100%);
  */
  border-radius: 12px;
  box-shadow: inset 0 1px 2px #ffffff30, 0 2px 4px #00000020, 0 4px 8px #00000010;
}

.card {
  /*width: 300px;
  height: 200px;*/
  width: 100%;
  /*
  background-color: #4158D0;
  background-image: linear-gradient(43deg, #4158D0 0%, #C850C0 46%, #FFCC70 100%);
  */
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.320, 1);
  box-shadow: inset 0 1px 2px #ffffff30, 0 2px 4px #00000020, 0 4px 8px #00000010;
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

#Home .card h3 {
  margin: 0;
}
#Home .card p {
  margin-top: 5px;
}

.card-content {
  padding: 20px;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
}

.card-content .card-title {
  font-size: 24px;
  font-weight: 700;
  color: inherit;
  text-transform: uppercase;
}

.card-content .card-para {
  color: inherit;
  opacity: 0.8;
  font-size: 14px;
}

.card:hover {
  transform: scale(1.02);
  box-shadow: inset 0 2px 4px #ffffff30, 0 4px 6px #00000030, 0 6px 8px #00000015;
}

.card:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background: linear-gradient(transparent, rgba(0, 0, 0, 0.02)); */
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.320, 1);
  z-index: 2;
}

.card:hover:before {
  transform: translateX(-100%);
}

.card:after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  /* background: linear-gradient(transparent, rgba(0, 0, 0, 0.02)); */
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.320, 1);
  z-index: 2;
}

.card:hover:after {
  transform: translateX(100%);
}




/* From Uiverse.io by vinodjangid07 */
.Btn {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background-color: transparent;
  position: relative;
  /* overflow: hidden; */
  border-radius: 7px;
  cursor: pointer;
  transition: all .3s;
}

.svgContainer {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  backdrop-filter: blur(0px);
  letter-spacing: 0.8px;
  border-radius: 10px;
  transition: all .3s;
  border: 1px solid rgba(156, 156, 156, 0.2);
}

.BG {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  background: #181818;
  z-index: -1;
  border-radius: 10px;
  pointer-events: none;
  transition: all .3s;
}

.Btn:hover .BG {
  transform: rotate(35deg);
  transform-origin: bottom;
}

.Btn:hover .svgContainer {
  background-color: rgba(156, 156, 156, 0.0.2);
  backdrop-filter: blur(4px);
}

.Btn {
  margin: 0;
  padding: 0;
}

.serifH {
  font-family: 'Times New Roman', Times, serif;
}













.collapsible {
  cursor: pointer;
  padding: 0;
  padding: 4px;
  border: 0;
  margin: 0;
  /* background-color: #f0f0f0; /* test */
  background-color: transparent;
  text-align: left;
  width: 100%;
  position: relative;
  background-color: #00000000;
  transition: color 0.3s ease;
}
/* Collapsible content */
.submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
  padding-left: 15px;
  border-left: 2px solid #ccc;
  margin: 0;
  /* background-color: #ff000010; /* test */
}
/* Active state: expands content */
.submenu.active {
  max-height: 1000px; /* big enough to show content */
  
}
.submenu {
  display: none; /* hidden by default */
}
.submenu.active {
  display: block; /* show when active */
}

.collapsible::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.05), rgba(0,0,0,0));
  transition: width 0.5s ease;
  pointer-events: none; /* allows clicking through the pseudo-element */
}
.collapsible:hover::before {
  width: 100%;
}
.collapsible:hover {
  color: #000;
}
.collapsible h3{
  margin: 0;
}
.submenu-button{
  position: relative;
  z-index: 2;  /* text above background */
  overflow: hidden;
  background: linear-gradient(to right, #000 0%, #000 0%, transparent 0%);
  color: #000;
  transition: background-size 0.5s ease;
  background-repeat: no-repeat;
  background-size: 0% 100%;
}
.submenu-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  opacity: 5%;
  background: #000;
  z-index: 1;                /* behind text */
  transition: width 0.5s ease;
}
.submenu-button.active::before {
  width: 100%;
}



.buttonRow button {
  position: relative;
  aspect-ratio: 1;
  height: 38px;
  font-family: inherit;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.05em;
  border-radius: 0.8em;
  cursor: pointer;
  border: none;
  background: linear-gradient(to right, #8e2de2, #4a00e0);
  color: ghostwhite;
  overflow: hidden;
}

.buttonRow svg {
  width: 80%;
  margin: 10% auto;
}
#namecard img {
  max-height: 50px;
  margin-right: 30%;
  border-radius: 50%;
}
.buttonRow{
  display: flex;
  gap: 10px;
}

.buttonRow span {
  position: relative;
  align-items: center;
  z-index: 2;
  transition: color 0.4s;
  display: inline-flex;
}

.buttonRow button::before,
.cssbuttons-io::after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.buttonRow button::before {
  content: "";
  background: rgb(0, 0, 252);
  width: 120%;
  left: -10%;
  transform: skew(30deg);
  transition: transform 0.4s cubic-bezier(0.3, 1, 0.8, 1);
}

.buttonRow button:hover::before {
  transform: translate3d(100%, 0, 0);
}
.buttonRow button:active {
  transform: scale(0.95);
}
/* #menu h3{
  margin-top: 1em;
} */





.code-wrapper {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #640238;
  margin: 20px 0;
  font-family: monospace;
}
.code-header {
  background: #640238;
  color: #fff;
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.code-header button {
  background: #ffffff;
  color: #640238;
  border: none;
  padding: 4px 10px;
  cursor: pointer;
  border-radius: 4px;
}
pre {
  margin: 0;
  max-height: 200px;
  overflow: auto;
  transition: max-height 0.3s ease;
}
pre.collapsed {
  max-height: 120px;
  margin: 10px;
}
pre.expanded {
  max-height: 1000px;
}