 :root {
    --slide-width: 450px;
    --slide-height: 700px;
  }
  body {
    margin: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #121212;
    font-family: sans-serif;
    overflow: hidden;
  }

  /* Top bar */
    .topbar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 60px;
        background: #1e1e1e;
        display: flex;
        justify-content: space-between; /* logo left, tabs right */
        align-items: center;
        padding: 0 20px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.4);
    }
      #top {
    height: 86px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .tabs {
    display: flex;
    gap: 15px;
    margin-right: 100px;
  }
  .tab {
    color: #aaa;
    cursor: pointer;
    font-weight: 500;
    transition: color 0.3s;
  }
  .tab.active {
    color: #fff;
  }

  /* Carousel container */
  .carousel-container {
    display: flex;
    flex-direction: column; /* Stacks items vertically */
    justify-content: center;
    align-items: center;
    height: 100%;
  }

  /* Slides stacked in same place */
  .carousel {
    position: relative;
    flex-direction: column; /* Stacks items vertically */
    width: var(--slide-width);
    height: var(--slide-height);
    border-radius: 19px;
        background-color: rgb(90, 89, 89);
  }

  .slide {
      position: absolute;
      top: 0;
      left: 0;
      width: 450px;     /* match your login card size */
      height: 700px;
      border-radius: 15px;
      display: flex;
      justify-content: center;
      align-items: center;
      font-size: 24px;
      color: white;
      opacity: 0;
      transform: scale(0.9);
      transform-origin: center center;
      background-color: rgb(65, 64, 64);
      transition: opacity 0.5s ease, transform 0.5s ease;
  }

  .slide.active {
    display: flex;
    opacity: 1;
    transform: scale(1);
    z-index: 1;
    flex-direction: column;
  }

  .brand {
    display: flex;
    align-items: center;
    gap: 10px;
  }

    .logo {
        height: 35px; /* adjust size of logo */
        width: auto;
    }

    .company-name {
        font-size: 18px;
        font-weight: bold;
        color: #fff;
    }

    #Queue {
      display: flex;
      flex-direction: column;
      justify-content: flex-start; /* push content to top */
      align-items: center;         /* still center horizontally */
      text-align: center;
      color: white;
    }


    .joinf {
        width: 100%;
        margin-bottom: 20px;
    }

/* ******************************************************************************Choice section**************************************************************************************************/

    .choice-buttons {
      display: flex;
      flex-direction: row;
      gap: 12px;
      align-items: center;
      justify-content: center;
      margin-bottom: 20px;
      flex-wrap: nowrap;
    }

            .choice-btn {
            background: linear-gradient(45deg, #667eea, #764ba2);
            color: white;
            border: none;
            padding: 12px 15px;
            border-radius: 25px;
            font-size: 12px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            width: 115px;
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

         .choice-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
        }

        .choice-btn.x {
            background: linear-gradient(45deg, #ff6b6b, #ee5a52);
        }

        .choice-btn.y {
            background: linear-gradient(45deg, #51cf66, #40c057);
        }

        .choice-btn.z {
            background: linear-gradient(45deg, #ffd93d, #fccc02);
        }

        .input-section {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 15px;
            width: 100%;
        }

                .name-input {
            width: 100%;
            max-width: 280px;
            padding: 12px 16px;
            border: 2px solid #555;
            border-radius: 20px;
            font-size: 14px;
            text-align: center;
            background: #444;
            color: white;
            box-sizing: border-box;
        }

        .join-btn {
            background: linear-gradient(45deg, #667eea, #764ba2);
            color: white;
            border: none;
            padding: 12px 25px;
            border-radius: 20px;
            font-size: 14px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
            text-transform: uppercase;
            letter-spacing: 1px;
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
        }
        /* ********************************************************************************************************************************************************************************/

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 8px;
            width: 100%;
        }

        .inner-box {
            z-index: 2;
            width: 100%;
            max-width: 350px;
            background: #555;
            border-radius: 10px;
            border: 1px solid #252525;
            margin-top: 30px;
            padding: 15px;
            box-sizing: border-box;
        }
        
        .stat-choice {
            font-size: 12px;
            font-weight: bold;
            color: #E0E0E0;
            margin-bottom: 3px;
        }
                .stat-item {
            background: rgba(255, 255, 255, 0.1);
            padding: 8px;
            border-radius: 6px;
            text-align: center;
            border: 1px solid rgba(255, 255, 255, 0.2);
            font-family: monospace;
        }

        .stat-count {
            font-size: 11px;
            color: #B0B0B0;
            font-family: 15px;
        }
/* ******************************************************************************SIGN IN CARD**************************************************************************************************/
    .premium-login-wrapper {
    width: 450px;
    height: 700px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    padding: 40px 35px;
    box-sizing: border-box;
    }

.premium-login-header {
  text-align: center;
  margin-bottom: 40px;
}

.premium-login-header h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
  color: #ffffff;
}

.premium-login-header p {
  margin: 8px 0 0;
  font-size: 14px;
  color: #a0a0a0;
}

.premium-login-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px; /* even spacing between groups */
}

.premium-input-group label {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
  color: #cccccc;
}

.premium-input-group input {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: none;
  background: #2b2b2b;
  color: #f1f1f1;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
}

.premium-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.premium-actions label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: #cccccc;
}

.premium-actions a {
  color: #3ea6ff;
  text-decoration: none;
}

.premium-login-buttons {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.premium-btn-primary,
.premium-btn-ghost {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  font-size: 15px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.premium-btn-primary {
  border: none;
  background: linear-gradient(135deg, #3a3a3a, #1e1e1e);
  color: #ffffff;
}

.premium-btn-primary:hover {
  background: linear-gradient(135deg, #4a4a4a, #2a2a2a);
}

.premium-btn-ghost {
  border: 1px solid #333333;
  background: transparent;
  color: #cccccc;
}

.premium-btn-ghost:hover {
  background: #222222;
  color: #ffffff;
}

.premium-social-login {
  display: flex;
  gap: 12px;
}

.premium-social-login button {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 8px;
  background: #2b2b2b;
  color: #f1f1f1;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.premium-social-login button:hover {
  background: #3a3a3a;
}

.premium-login-footer {
  text-align: center;
  font-size: 12px;
  color: #888888;
  margin-top: 20px;
}

.premium-login-footer a {
  color: #3ea6ff;
  text-decoration: none;
}


.waiting {
    margin-top: 20px;
    text-align: center;
    color: #fff;
    font-size: 16px;
    animation: pulse 1.5s ease-in-out infinite;
}
.choice-btn.selected {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.choice-btn.x.selected {
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.5);
}

.choice-btn.y.selected {
    box-shadow: 0 10px 25px rgba(81, 207, 102, 0.5);
}

.choice-btn.z.selected {
    box-shadow: 0 10px 25px rgba(255, 217, 61, 0.5);
}

#logout-button {
    margin-top: auto;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}
#logout-button .premium-btn-ghost {
    margin-bottom: 10px;
    height: auto;
    padding: 4px 12px;
}

#icosahedron {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

#particle-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    pointer-events: none;
    overflow: visible;
    z-index: 9999;
  }


.particle {
position: absolute;
bottom: 0;
border-radius: 50%;
background: rgba(255, 255, 255, 0.8);
opacity: 0.8;
animation: floatUp linear forwards;
}

.bottom-element {
  position: absolute;
  bottom: 0; /* Aligns the element to the bottom of its positioned parent */
  align-items: center;
}


@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes floatUp {
  0% {
    transform: translateY(0);
    opacity: 0.8;
  }
  100% {
    transform: translateY(-150px);
    opacity: 0;
  }
}