/* Basic Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

.container {
    width: 80%;
    margin: 20px auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Intro Animation Styles */
#intro-animation {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #000; /* Black background for intro */
    animation: fadeOut 0.5s ease-out 1.5s forwards; /* Fade out after 1.5s */
}

#intro-animation img {
    max-width: 80%;
    max-height: 80%;
    animation: fadeIn 1s ease-in forwards; /* Fade in over 1s */
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; visibility: hidden; }
}

/* From Uiverse.io by Vosoone */
.main-container {
  display: flex; /* Visible by default */
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
  position: fixed; /* To cover the entire screen */
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent background */
  z-index: 9999; /* Ensure it's on top of everything */
}

.hidden {
    display: none !important; /* Aggressively hide the loader */
}

.loader {
  width: 200px; /* Smaller width */
  height: 200px; /* Smaller height */
  max-width: 90vw; /* Ensure it's responsive */
  max-height: 90vh; /* Ensure it's responsive */
}

.trace-bg {
  stroke: #333;
  stroke-width: 1.8;
  fill: none;
}

.trace-flow {
  stroke-width: 1.8;
  fill: none;
  stroke-dasharray: 40 400;
  stroke-dashoffset: 438;
  filter: drop-shadow(0 0 6px currentColor);
  animation: flow 3s cubic-bezier(0.5, 0, 0.9, 1) infinite;
}

.yellow {
  stroke: #ffea00;
  color: #ffea00;
}
.blue {
  stroke: #00ccff;
  color: #00ccff;
}
.green {
  stroke: #00ff15;
  color: #00ff15;
}
.purple {
  stroke: #9900ff;
  color: #9900ff;
}
.red {
  stroke: #ff3300;
  color: #ff3300;
}

 @keyframes flow {
  to {
    stroke-dashoffset: 0;
  }
}

/* Čip */
.chip-body {
  rx: 20;
  ry: 20;
}

/* Text uvnitř čipu */
.chip-text {
  font-weight: bold;
  letter-spacing: 1px;
}

/* Footer Styles */
.footer {
    background-color: #1a1a1a; /* Dark background for footer */
    color: #fff;
    padding: 40px 20px;
    text-align: center;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-logo {
    font-size: 2em;
    font-weight: bold;
    color: #03e9f4; /* Match electric button color */
}

.footer-text {
    font-size: 0.9em;
    color: #bbb;
}

.social-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}



.button svg {
  color: white;
  width: 30px;
  height: 30px;
  z-index: 9;
}

.button:active {
  transform: scale(0.85);
}

.button::before {
  content: "";
  position: absolute;
  width: 55px;
  height: 55px;
  background-color: #212121;
  border-radius: 50px;
  z-index: -1;
  border: 0px solid rgba(255, 255, 255, 0.411);
  transition: 0.4s;
}

.button:hover::before {
  width: 0px;
  height: 0px;
}

.social-buttons a[href*="linkedin"] {
    background: #0077B5;
}

.social-buttons a[href*="tiktok"] {
    background: linear-gradient(45deg, #00f2ea, #000000, #fe2c55);
}

.social-buttons a[href*="instagram"] {
    background: linear-gradient(120deg, #833ab4, #fd1d1d, #fcb045);
}

.social-buttons a[href*="x.com"] {
    background: black;
}

.back-content .vote-amount-input:focus {
    outline: none;
    border-color: #03e9f4;
    box-shadow: 0 0 5px #03e9f4;
}

.share-link-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90%;
    margin-top: 15px;
}

.share-link-container input {
    flex-grow: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px 0 0 5px;
    background-color: #f0f0f0;
}

.share-link-container button {
    padding: 8px 15px;
    border: 1px solid #03e9f4;
    background-color: #03e9f4;
    color: #151515;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.share-link-container button:hover {
    background-color: #02adc1;
}

/* New Spinner Styles */
.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: #7983ff; /* A nice blue color */
    border-radius: 50%;
    width: 36px;
    height: 36px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
