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

/* Body styles */
body {
  font-family: 'Inter', sans-serif;
  font-size: 18px;

  background-color: #111;
  color: #fff;
  position: relative; /* Ensure positioning relative for absolute positioning of loader */
}

/* Container styles */
.container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 80vw;
  max-width: 600px;
  margin: 120px auto 0 auto;
}



/* Share icon styles */
.share-icon {
  font-size: 32px;
  background-color: #222;
  padding: 12px;
  border-radius: 50%;
}

/* Image container styles */

.video {
    width: 100%;
    height: 50%;
    border-radius: 90%;
    height: auto;
}



/* Header styles */
h1 {
  font-size: 20px;
  margin-bottom: 32px;
  font-family: 'Inconsolata', monospace; /* Monospaced font */
  line-height: 1.5;
  display: flex;
}

h1 span {
  display: inline-block;
  vertical-align: middle; /* Ensure vertical alignment */
}

/* Image styles */
img.img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures the image covers the container without distortion */
}


/* Link card styles */
.link-card,
.link-card1 {
  width: 100%;
  display: flex;
  justify-content: space-between;
  background-color: #222;
  padding: 10px 15px;
  color: #fff;
  text-decoration: none;
  margin-bottom: 24px;
  transition: transform 0.3s ease;
}

.link-card:hover,
.link-card1:hover {
  background-image: linear-gradient(to right, #222 50%, #fff 50%);
  background-size: 200% 100%;
  transition: background-position 0.3s ease;
  transform: scale(1.05);
  box-shadow: 0px 0px 10px rgba(255, 255, 255, 0.3);
}

/* Icon styles */
.icons {
  font-size: 24px;
}

/* Loading animation wrapper styles */
.loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000000;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999; /* Ensure the loader is on top of everything */
}

/* Loader styles */
.loader {
  display: inline-block;
  width: 30px;
  height: 30px;
  position: relative;
  border: 4px solid #fff;
  animation: loader 2s infinite ease;
}

.loader-inner {
  vertical-align: top;
  display: inline-block;
  width: 100%;
  background-color: #fff;
  animation: loader-inner 2s infinite ease-in;
}

/* Keyframe animations */
@keyframes loader {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(180deg); }
  50% { transform: rotate(180deg); }
  75% { transform: rotate(360deg); }
  100% { transform: rotate(360deg); }
}

@keyframes loader-inner {
  0% { height: 0%; }
  25% { height: 0%; }
  50% { height: 100%; }
  75% { height: 100%; }
  100% { height: 0%; }
}

/* Share button styles */
.share-button {
  display: flex;
  align-self: flex-end;
  color: #fff;
  border-radius: 50%;
}

.share-button:hover {
  background-image: linear-gradient(to right, #222 50%, #fff 50%);
  background-size: 200% 100%;
  transition: background-position 0.3s ease;
  transform: scale(1.05);
  box-shadow: 0px 0px 10px rgba(255, 255, 255, 0.3);
  
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: #fff;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 500px;
  border-radius: 8px;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

#whatsappMessage {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
}

#sendWhatsappMessage {
  background-color: #25d366;
  color: white;
  border: none;
  padding: 10px 20px;
  margin-top: 10px;
  cursor: pointer;
  border-radius: 5px;
}

#sendWhatsappMessage:hover {
  background-color: #20c659;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: #222;
  color: #fff;
  padding: 20px;
  border: none;
  width: 80%;
  max-width: 500px;
  border-radius: 8px;
  text-align: center;
}

.close {
  color: #fff;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: #aaa;
}

.icons.whatsapp-icon {
  font-size: 48px;
  color: #25d366;
  margin-bottom: 20px;
}

#whatsappMessage {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  background-color: #333;
  color: #fff;
  border: none;
  border-radius: 5px;
}

#sendWhatsappMessage {
  background-color: #25d366;
  color: white;
  border: none;
  padding: 10px 20px;
  margin-top: 10px;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

#sendWhatsappMessage:hover {
  background-color: #20c659;
}



/* Custom notification popup styles */
.copy-notification {
  position: fixed;
  bottom: 40px; /* Adjust the distance from the bottom as needed */
  left: 50%; /* Position it in the center horizontally */
  transform: translateX(-50%) scale(0.8); /* Start smaller and centered */
  background-color: #333;
  color: #fff;
  padding: 8px 16px; /* Adjust padding as needed */
  border-radius: 5px;
  display: none; /* Initially hide the popup */
  z-index: 9999; /* Ensure it's on top of everything */
  animation: popIn 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards; /* Add a pop-in animation */
}

.copy-notification.show {
  display: block; /* Show the popup when the "show" class is added */
  animation: popOut 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards 2s; /* Add a pop-out animation after 2 seconds */
}

@keyframes popIn {
  0% {
    opacity: 0;
    transform: translate(-50%, 20px) scale(0.8); /* Start slightly below its final position and smaller */
  }
  100% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1); /* Move to its final position and original size */
  }
}

@keyframes popOut {
  0% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1); /* Start from its final position and original size */
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 20px) scale(0.8); /* Move slightly below its final position and smaller */
  }
}




/* Light mode styles */
body.light-mode {
  background-color: #d1d1d1; /* Set background color to a light gray */
  color: #333; /* Set text color to dark gray */
}

.container.light-mode {
  background-color: #79777700; /* Set container background color to white */
}

.link-card.light-mode {
  background-color: #eaeaea; /* Set link container background color to a lighter shade of gray */
  color: #333; /* Set link text color to dark gray */
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1); /* Add a light shadow to link containers */
}

.link-card.light-mode:hover {
  background-color: #000000; /* Change link container background color on hover */
}

.copy-notification.light-mode {
  background-color: #ffffff; /* Set background color of notification popup to a darker shade */
  color: #000000; /* Set text color of notification popup to white */
}


/* Share icon styles for light mode */
.share-icon.light-mode {
  background-color: #eee; /* Set background color to a lighter shade of gray */
  color: #333; /* Set icon color to dark gray */
}



/* Link card hover styles for light mode */
.light-mode .link-card:hover {
  background-image: none; /* Remove the background image */
  background-color: #fff; /* Set the background color to white */
  transition: transform 0.3s ease, background-color 0.3s ease; /* Include transition for background color */
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1); /* Maintain the box-shadow */
}



/* Toggle button styles */
.toggle-container {
  position: fixed;
  top: 20px;
  left: 20px;
}

.toggle-checkbox {
  display: none;
}

.toggle-label {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
  background-color: #3d3c3c;
  border-radius: 20px;
  cursor: pointer;
}

.toggle-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  background-color: #fdfeff;
  border-radius: 50%;
  transition: 0.4s;
}

.toggle-checkbox:checked + .toggle-label .toggle-slider {
  transform: translateX(20px);
}



/* Dark mode toggle animation */
body.light-mode {
  transition: background-color 0.5s, color 0.5s;
}

.link-card.light-mode {
  transition: background-color 0.5s, color 0.5s;
}

.toggle-label {
  transition: background-color 0.5s;
}

.toggle-checkbox:checked + .toggle-label {
  background-color: #c7c5c5;
}



/* Typing Animation Styles */
@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: orange; }
}

.animated-text {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 0.15em solid orange;
  font-family: 'Inter', sans-serif;
  animation: blink-caret 0.75s step-end infinite;
}




#ball-canvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1; /* Position behind other elements */
  width: 100%;
  height: 100%;

}
