@import url("https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@100&display=swap"); /* Import Roboto Mono Light 100 from Google Fonts */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Roboto Mono", monospace; /* Set font to Roboto Mono */
  background-color: #222222;
  color: #c8f4ff;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  flex-direction: column;
  position: relative; /* For snowflakes to be positioned relative to body */
}

.container {
  position: relative;
  margin: 0 auto;
  width: 100%;
  max-width: 550px;
  border-radius: 8px;
  box-shadow: 0 20px 20px rgba(0, 0, 0, 0.3); /* Shadow for the card */
  text-align: center;
  padding: 1em;
  background-color: #1a1a1a;
}

.share-btn,
.bookmark-btn {
  position: absolute; /* Position relative to the .container */
  top: 1em; /* Align near the top */
  cursor: pointer;
}

.bookmark-btn {
  right: 3.5rem; /* Place it left of the share button */
}

.share-btn {
  right: 1rem; /* Place it in the top-right corner */
}

header {
  margin-bottom: 30px;
}

.logo {
  max-width: 250px;
  height: auto;
  background-color: transparent;
  border-radius: 50%;
  margin-bottom: 20px;
}

h1 {
  font-size: 2rem;
  color: #fafafa;
  margin-bottom: 1em;
}

h2 {
  font-size: 1.5rem;
  color: #fafafa;
  margin-bottom: 0.5em;
}

p {
  font-size: 1rem;
  color: #c8f4ff;
}

a {
  color: white;
}

.links {
  display: flex;
  flex-direction: column;
  align-items: center; /* Center align links */
  gap: 15px;
}

.link {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* Align icons to the start */
  text-align: center; /* Keep text centered */
  background-color: #333;
  color: #fff;
  padding: 10px 10px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.1rem;
  transition: background-color 0.3s ease;
  width: 100%;
  max-width: 460px;
  gap: 10px;
}

.link:hover {
  background-color: #258bff;
  color: #fff;
}

.links-socials {
  display: flex; /* Use flexbox for layout */
  justify-content: center; /* Center items horizontally */
  gap: 2em; /* Space between social links */
}

.link-social {
  color: #fff; /* White color for icons */
  font-size: 2.5rem; /* Size of the icons */
  transition: color 0.3s ease; /* Smooth color transition */
}

.link-social:hover {
  color: #258bff; /* Avalanche red color on hover */
}

.blue {
  color: #258bff;
}

.blue_dark {
  color: #1665c0;
}

.fire {
  color: #e0ac00;
}

.green {
  color: #47e000;
}

footer a:link,
a:hover {
  color: #258bff;
  text-decoration: none;
}

footer {
  margin-top: auto;
  padding-top: 3em;
  padding-bottom: 2em;
  text-align: center;
  font-size: 0.8rem;
  color: #aaa;
}

@media (max-width: 600px) {
  .container {
    padding: 15px;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  .link {
    font-size: 0.9rem;
  }
}

.pblock {
  margin-top: 1em;
  padding: 1em;
}

.code-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 20px auto;
}

.code-input {
  flex: 1;
  max-width: 400px;
  padding: 10px;
  font-family: monospace;
  font-size: 1rem;
  background-color: #333;
  color: #fff;
  border: 1px solid #333;
  border-radius: 5px;
  text-align: left;
  overflow-x: auto;
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none; /* Standard syntax */
}

input::selection {
  background-color: #333; /* Change the background color of selected text */
  color: #fff; /* Change the color of the selected text */
}

.copy-button {
  padding: 8px 16px;
  background-color: #333;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
}

.copy-button:hover {
  background-color: #258bff;
  color: #fff;
}

.notification {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #258bff;
  color: white;
  padding: 15px;
  border-radius: 5px;
  display: none;
  font-size: 16px;
  z-index: 1000;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.notification.show {
  display: block;
  opacity: 1;
}

/* Snow animation styles */

.snowflake-container {
  position: fixed; /* Make snowflakes overlay the entire viewport */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* Allow interactions with page content */
  z-index: 100;
}

.snowflake {
  position: absolute;
  top: -10px;
  background-color: #fff;
  border-radius: 50%;
  opacity: 0.8;
  animation: fall linear infinite;
  animation-duration: calc(
    var(--size) * 0.5s + 3s
  ); /* Adjust speed based on size */
  z-index: 100;
}

@keyframes fall {
  0% {
    transform: translateY(-50px) rotate(0deg); /* Start off-screen */
  }
  100% {
    transform: translateY(100vh) rotate(360deg);
  }
}
