/* MOON */
/* MOON */
/* MOON */
/* MOON */

.moon {
  width: 10vh;
  height: 10vh;
  border-radius: 50%;
  background: #ffffdd;
  box-shadow: inset -1.1vh -0.8vh 0vh 0.4vh #feffa2,
    0vh 0vh 1vh 0vh #feffa2,
    0vh 0vh 5vh 0vh #feffa2,
    0vh 0vh 50vh 0vh #feffa2;
  display: inline-block;
  position: absolute;
  top: 10%;
  left: 10%;
  cursor: pointer;
  animation: 3s moonglow ease-in-out infinite alternate;
  z-index: 2;
}

.crater {
  position: absolute;
  background: rgba(255, 244, 118, 1);
  border-radius: 50%;
  box-shadow: inset 0.1vh 0.1vh 0vh 0.1vh #ecec79;
}

.crater:nth-child(1) {
  width: 2.5vh;
  height: 2.5vh;
  top: 57%;
  left: 30%;
}

.crater:nth-child(2) {
  width: 1.6vh;
  height: 1.6vh;
  top: 30%;
  left: 23%;
}

.crater:nth-child(3) {
  width: 1.2vh;
  height: 1.2vh;
  top: 50%;
  left: 14%;
}

.crater:nth-child(4) {
  width: 3vh;
  height: 3vh;
  top: 20%;
  left: 30%;
  box-shadow: none;
  background: rgba(255, 244, 118, 0.3);
}

@keyframes moonglow {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.02);
  }
}

/* TOP MENU */
/* TOP MENU */
/* TOP MENU */
/* TOP MENU */

#app {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: sans-serif;
  background-image: none; /* Replace var(--app-background-image) if applicable */
  padding: 3.2vh;
  overflow: hidden;
  box-sizing: border-box;
}

.cpc-menu {
  position: fixed;
  top: 2vh;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 32vh;
  background-color: rgba(255, 255, 255, 0.2);
  padding: 0.64vh;
  box-sizing: border-box;
  border-radius: 1.12vh;
  z-index: 1000;
}

.cpc-main, .cpc-sub {
  padding: 0;
  margin: 0;
  list-style-type: none;
}

.cpc-main {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.cpc-main > li {
  width: 100%;
  position: relative;
}

.cpc-main > li > a, .cpc-sub > li > a {
  color: #ffffff;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  width: 100%;
  padding: 1.44vh 1.12vh;
  display: flex;
  justify-content: space-between;
  box-sizing: border-box;
  text-shadow: 0 -0.1vh #000000;
  border-radius: 1.12vh;
  transition: background-color 300ms ease-in-out;
  white-space: nowrap;  /* 👈 Ensure links don't wrap */
  text-align: center;
}

.cpc-main > li > a:hover, .cpc-sub > li > a:hover {
  background-color: rgba(0, 0, 0, 0.3);
}

.cpc-caret {
  margin-left: 0.8vh;
}

.cpc-icon {
  margin-right: 0.8vh;
}

.cpc-hidden {
  visibility: hidden;
}

@keyframes caret-is-inactive {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(90deg) scale(1.2); }
  100% { transform: rotate(180deg) scale(1); }
}

@keyframes caret-is-active {
  0% { transform: rotate(180deg) scale(1); }
  50% { transform: rotate(90deg) scale(1.2); }
  100% { transform: rotate(0deg) scale(1); }
}

  .cpc-menu {
    width: auto;
    max-width: none;
  }

  .cpc-main {
    flex-direction: row;
    position: relative;
  }

  .cpc-main > li > a {
    position: relative;
  }

  .cpc-sub {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.64vh;
    position: absolute;
    top: 120%;
    left: 50%;                      /* 👈 center horizontally */
    transform: translateX(-50%);    /* 👈 fine-tune to exact center */
    border-radius: 1.12vh;
    z-index: 100;
    visibility: hidden;
    height: 0;
    overflow: hidden;
  }

  .cpc-hidden {
    display: none;
  }

#canvas-club {
  background-color: transparent;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

/* LOADER */
/* LOADER */
/* LOADER */
/* LOADER */

#loader {
  height: inherit;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  backdrop-filter: blur(1vh);
  z-index: 3;
}
@keyframes loader {
  0% { left: -10vh }
  100% { left: 110%; }
}

div2 {
  position: absolute;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0.6vw solid #a78247;
  overflow: hidden;
}
div2:before, div2:after {
  content: "";
  display: block;
  position: absolute;
}

.wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 78vw;
  height: 70vh;
  border: 0;
  transform: translate(-50%, -50%);
  overflow: visible;
}
.wrapper .icon {
  position: relative;
  display: inline-block;
  width: 12vw;
  height: 12vw;
  margin: 2.5vw 1.5vw;
  border: 0;
  overflow: visible;
  top: calc(50% - 2vw);
  left: calc(50% - 2vw);
  transform: translate(-50%, -50%);
}
.wrapper .icon .moon, .wrapper .icon .planetoid, .wrapper .icon .planet {
  border-radius: 50%;
  background: #303030;
}

.icon_positioner {
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
}

.wrapper .icon.icon2 .planetoid {
  top: 15%;
  right: 9%;
  width: 10%;
  height: 10%;
  overflow: visible;
  animation: icon2planetoid 5s linear 0s infinite;
}
.wrapper .icon.icon2 .planetoid:after {
  top: -35%;
  left: -35%;
  width: 1%;
  height: 1%;
  border: 0.1vw solid #a78247;
  border-radius: 50%;
}
.wrapper .icon.icon2 .planet {
  top: 20%;
  left: 17%;
  width: 63%;
  height: 63%;
}
.wrapper .icon.icon2 .planet:after {
  top: 10%;
  left: 10%;
  width: 70%;
  height: 70%;
  border: 0.5vw solid #a78247;
  border-radius: 50%;
  border-color: #a78247 transparent transparent transparent;
  transform: rotate(-50deg);
}
.wrapper .icon.icon2 .ring-planet {
  top: 40%;
  left: 10%;
  width: 77.5%;
  height: 25%;
  border-radius: 50%;
  border-color: transparent #a78247 #a78247 #a78247;
  transform: rotate(-17deg);
  animation: icon2ring 5s linear 0s alternate infinite;
}
@keyframes icon2planetoid {
  0% {
    top: 15%;
    left: 90%;
    transform: rotate(0deg);
    z-index: 0;
  }
  49% {
    top: 80%;
    left: 5%;
    transform: rotate(720deg);
    z-index: 0;
  }
  50% {
    top: 80%;
    left: 5%;
    transform: rotate(720deg);
    z-index: 1;
  }
  99% {
    top: 15%;
    left: 90%;
    transform: rotate(1440deg);
    z-index: 1;
  }
  100% {
    top: 15%;
    left: 90%;
    transform: rotate(1440deg);
    z-index: 0;
  }
}
@keyframes icon2ring {
  0% {
    transform: rotate(-10deg);
  }
  100% {
    transform: rotate(-30deg);
  }
}

/* HIDDEN PROPERTY */
/* HIDDEN PROPERTY */
/* HIDDEN PROPERTY */
/* HIDDEN PROPERTY */

.hidden {
    opacity: 0;
    display: none;
    position: absolute;  /* This ensures it does not interfere with the layout */
    pointer-events: none;
    transition: opacity 0.5s ease, visibility 0.5s ease; /* Smooth transition for opacity and visibility */
}

.visible {
  opacity: 1;
  visibility: visible;
}

/* BOTTOM MENU TO MATCH WITH FONTAWESOME */
/* BOTTOM MENU TO MATCH WITH FONTAWESOME */
/* BOTTOM MENU TO MATCH WITH FONTAWESOME */
/* BOTTOM MENU TO MATCH WITH FONTAWESOME */

.icon-size {
    width: 1em;
    height: 1em;
    display: inline-block;
    vertical-align: middle;
    fill: currentColor;
}

.bottom-menu {
    top: 92.1dvh;  /* 92.1vh */
    /* font-weight: bold; */
    position: absolute;
    transform: translate(-50%);
    left: 50%;
    width: 55vh;
    text-shadow: 0 -0.1vh #000000;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 0.375rem;
    justify-content: stretch;
    display: flex;
    margin-left: auto;
    margin-right: auto;
    z-index: 3;
  
}

/* STARS */
/* STARS */
/* STARS */
/* STARS */

html, body {
  height:100%;
  width:100%;
  margin:0;
  padding:0;
  overflow:hidden;
}
body {
  /* background: linear-gradient(180deg, #212145, #0f1a2b, #34174f, #1f2a47, #2a1f47, #3e2442, #272442, #1d2849); */
  /* background: linear-gradient(180deg, #5e3665, #2c294b, #5e3665, #2c294b, #5e3665, #2c294b, #5e3665, #2c294b); */
  background: rgba(0,0,0,0.8);
  background-size: 1600% 1600%;
  -webkit-animation: skygradient 100s ease infinite;
  -moz-animation: skygradient 100s ease infinite;
  -o-animation: skygradient 100s ease infinite;
  animation: skygradient 100s ease infinite;
}
@-webkit-keyframes skygradient {
  0%{background-position:50% 0%}
  25%{background-position:50% 50%}
  50%{background-position:50% 100%}
  75%{background-position:50% 50%}
  100%{background-position:50% 0%}
}
@-moz-keyframes skygradient {
  0%{background-position:50% 0%}
  25%{background-position:50% 50%}
  50%{background-position:50% 100%}
  75%{background-position:50% 50%}
  100%{background-position:50% 0%}
}
@-o-keyframes skygradient {
  0%{background-position:50% 0%}
  25%{background-position:50% 50%}
  50%{background-position:50% 100%}
  75%{background-position:50% 50%}
  100%{background-position:50% 0%}0%}
}
@keyframes skygradient {
  0%{background-position:50% 0%}
  25%{background-position:50% 50%}
  50%{background-position:50% 100%}
  75%{background-position:50% 50%}
  100%{background-position:50% 0%}
}
canvas {
  width: 100%!important; height: 100%!important;
}

footer {
  position:fixed;
  z-index:1000;
  left:0;
  bottom:0;
  display:block;
  padding:2vh;
  box-sizing:border-box;
}

footer a {
  text-decoration:none;
  display:block;
  /*width:5vh; */
}

footer a svg {
  width:100%;
  max-width:5vh;
  min-width:4vh;
  display:inline-block;
}

/* TEMPORARY */
/* TEMPORARY */
/* TEMPORARY */
/* TEMPORARY */

#temporary {
  position: absolute;
  z-index: 2;
}

/* MEDIA CHANGE FOR ALL ELEMENTS */
/* MEDIA CHANGE FOR ALL ELEMENTS */
/* MEDIA CHANGE FOR ALL ELEMENTS */
/* MEDIA CHANGE FOR ALL ELEMENTS */

@media (max-width: 1000px) {
  .profile-title {
    margin-top: 0.7vh;
  }
  .wrapper .icon {
    width: 12vw;
    height: 12vw;
    margin: 2.5vw 1.5vw;
  }
  .moon {
     display: none;
     opacity: 0;
  }
  .cpc-menu {
     transform: translateX(-50%) scale(0.84); /* 0.768  ideally*/
     top: 1.2vh;
  }
  .message-box .message-submit {
    top: 1dvh !important;
  }
  .message-box .message-input {
    /*! height: 50% !important; */
  }
  .bottom-menu {
    max-width: 96vw;
    font-size: 1.4vh;
  }
  .message-info{
    max-width: 96vw !important;
  }
  .message-container {

  }
  .chat {
    max-width: 64vw;
    height: 54dvh !important;
    bottom: -49.7dvh !important;
    /*--tw-backdrop-blur: none !important; */
    /*backdrop-filter: none !important; */
    /*max-height: 54vh; */
  }
  #animation-show-up {
    transform: translate(-50%, -50%) scale(3);
  }
  .viewer {
    max-width: 90vw;
  }
  .viewer__iframe {
    height: 50vh !important;
  }
  .clooned-container {
    height: 50vh !important;
    top: 25vh;
  }
  .contributors-container {
    transform: translate(-50%) scale(0.75) !important;
    left: 50% !important;
  }
  .resume-container {
    max-width: 96vw;
  }
  .resume-container {
    top: 10dvh !important;
    height: 79.5dvh !important;
    /*--tw-backdrop-blur: blur(0px) !important;*/
  }
  .header-element {
    padding: 1vh 5vw 1vh 5vw !important;
  }
  .header-container-total {
    top: 9dvh !important;
  }
  .resume-header {
    /*--tw-backdrop-blur: blur(0px) !important;*/
    top: 0dvh !important;
  }
  .contact-form {
    width: 95vw !important;
  }
  .container-star-info {
    width: 95vw !important;
    max-width: 55vh;
  }
  .project-title {
    display: none;
  }
  .hidden-mobile-title {
    display: block !important;
  }
  .profile-details-container {
    flex: 0 0 40% !important;
  }
  .message-block-2 {
    flex: 1 0 55% !important;
  }
  #hideonmobile {
    display: none !important;
  }
  .image-half-reflections{
    height: 15vh !important;
  }
}

/* VARIABLE TEXT COLORS */
/* VARIABLE TEXT COLORS */
/* VARIABLE TEXT COLORS */
/* VARIABLE TEXT COLORS */

.text {
  color: #212529;
  animation: dynamicColorChange 180s ease infinite;
}

@keyframes dynamicColorChange {
  0% {
    color: #212529;
  }
  12.5% {
    color: #343a40;
  }
  25% {
    color: #495057;
  }
  37.5% {
    color: #6c757d;
  }
  50% {
    color: #adb5bd;
  }
  62.5% {
    color: #ced4da;
  }
  75% {
    color: #dee2e6;
  }
  87.5% {
    color: #e9ecef;
  }
  100% {
    color: #212529;
  }
}

/* CUSTOM ALERT MESSAGE */
/* CUSTOM ALERT MESSAGE */
/* CUSTOM ALERT MESSAGE */
/* CUSTOM ALERT MESSAGE */

.alert-box {
  width: 300px;
  background-color: #f0f0f0;
  border-radius: 12px;
  overflow: hidden;
  font-family: sans-serif;
  border: 1px solid #ccc;
  z-index: 10000;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 1;
  transition: opacity 0.4s ease;
}

#alert {
transition: opacity 0.3s ease, visibility 0.3s ease;
opacity: 1;
visibility: visible;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
z-index: 10000;
background-color: rgba(0,0,0,0.6);
width: 40vh;
}

#alert.hidden {
opacity: 0;
visibility: hidden;
}

.alert-box {
background-color: #f0f0f0; /* Slightly light background for the box */
border-radius: 10px;
box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
}

#ok-btn {
padding: 1vh 5vh;
background-color: #999;
color: white;
border: none;
border-radius: 1vh;
cursor: pointer;
transition: background-color 0.3s ease;
}

#ok-btn:hover {
background-color: moccasin;
}