body {
  font-family: Arial, sans-serif;
  margin: 0;
  background-color: #000000;
  background-image: url("/static/image/background.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: #ffffff;;
  position: relative;
  display: flex;
  flex-direction: column;
  height:980px;
}
.navbar {
    background-color: #1a1a1a;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    row-gap: 10px;
    border-bottom: 2px solid #7289da;
    font-family: Arial, sans-serif;
}

.nav-left {
    display: flex;
    gap: 20px;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
}

.nav-right {
    display: flex;
    gap: 20px;
    align-items: center;
    flex: 1 1 auto;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: #7289da;
    color: #ffffff;
}

.login-btn {
    background-color: #7289da;
    font-weight: bold;
}

.login-btn:hover {
    background-color: #5a7bc9;
}

.user-info {
    font-size: 14px;
    color: #7289da;
    font-weight: bold;
    white-space: normal;
    word-break: break-word;
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #7289da;
    object-fit: cover;
    background-color: #2b2b2b;
}

.content {
    margin: 20px;
    padding: 20px;
    background-color: black;
    color: white;
    border-radius: 10px;
}

#confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

.fullscreen-page {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 24px;
  z-index: 2;
}

.fullscreen-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(2px);
  z-index: -1;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255, 255, 255, 0.25);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.login-redirect-page {
  text-align: center;
  margin-top: 120px;
  color: var(--text-color); /* or your theme color */
  font-family: "Poppins", sans-serif;
}

.logout-container {
    text-align: center;
    margin-top: 120px;
    color: black;
    font-family: "Poppins", sans-serif;
}
.spinner {
  border: 5px solid rgba(255, 255, 255, 0.1);
  border-top: 5px solid #00bfff;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  animation: spin 1s linear infinite;
}

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

/* Wheel Spin Button */
.wheels {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.wheels:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.wheels:active {
    transform: translateY(-1px);
}

.wheel-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
}

#wheel {
    display: block;
    margin: 0 auto;
}

#result {
    font-size: 22px;
    font-weight: 600;
    min-height: 28px;
}

/* Loot Box Button */
.loot {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.4);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.loot:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.6);
}

.loot:active {
    transform: translateY(-1px);
}

.discord-fab {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #5865f2;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    border: 2px solid rgba(255, 255, 255, 0.2);
    z-index: 1000;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.discord-fab svg {
    width: 28px;
    height: 28px;
}

.discord-fab:hover {
    transform: translateY(-2px);
    background: #4752c4;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4);
}

.discord-fab:active {
    transform: translateY(0);
}

@media (max-width: 640px) {
    .discord-fab {
        right: 14px;
        bottom: 14px;
        width: 52px;
        height: 52px;
    }
}



.loot-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

.loot-crate {
    position: relative;
    width: 200px;
    height: 200px;
}

.crate-box {
    position: absolute;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #8b4513 0%, #d2691e 100%);
    border: 8px solid #654321;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    z-index: 1;
}

/* Rarity color variants */
.crate-common {
    background: linear-gradient(135deg, #8b9aa8 0%, #9aa6b3 100%); /* grey */
    border-color: #7f8c8d;
}
.crate-uncommon {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%); /* green */
    border-color: #1e8449;
}
.crate-rare {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%); /* blue */
    border-color: #1f77b4;
}
.crate-epic {
    background: linear-gradient(135deg, #8e44ad 0%, #6c3483 100%); /* purple */
    border-color: #5b2c6f;
}
.crate-ascendant {
    background: linear-gradient(135deg, #f1c40f 0%, #f39c12 100%); /* gold */
    border-color: #b9770e;
}

.cloth {
    position: absolute;
    top: -15px;
    left: -15px;
    width: 230px;
    height: 230px;
    background: linear-gradient(180deg, #ff6b6b 0%, #ee5a6f 100%);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 2;
}


.shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    25% { transform: translateX(-10px) rotate(-2deg); }
    50% { transform: translateX(10px) rotate(2deg); }
    75% { transform: translateX(-10px) rotate(-2deg); }
}

.cloth-remove {
    animation: clothFly 1s ease-out forwards;
}

@keyframes clothFly {
    from {
        opacity: 1;
        transform: translateY(0) rotateZ(0deg);
    }
    to {
        opacity: 0;
        transform: translateY(-300px) rotateZ(45deg);
    }
}

.crate-open {
    animation: open 0.8s ease-out forwards;
}

@keyframes open {
    from {
        opacity: 1;
        transform: scaleY(1);
    }
    to {
        opacity: 1;
        transform: scaleY(0.2) rotateX(45deg);
    }
}

.reward-display {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: popIn 0.5s ease-out;
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.click-hint {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    color: #ffffff;
    font-size: 16px;
    letter-spacing: 0.5px;
    opacity: 0.6;
    z-index: 5;
    pointer-events: none;
}
