/* Base Styling & Light Theme Layout */
body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    background-color: #f5f3ed; /* Plain white background */
    color: #333333; /* Dark gray text for readability */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    overflow-x: hidden;
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
    /* Added transition/animation for smooth load */
    animation: fadeIn 1.5s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

/* Keyframes for the fade-in transition */
@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1 {
    font-size: 5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0;
    color:#080808; /* Almost black for the main title */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1); /* Soft shadow for depth */
}

p {
    font-size: 1.2rem;
    color: #555555; /* Medium gray for the subtitle */
    margin-top: 5px;
    margin-bottom: 40px;
}

p span {
    color: #ff8c16; /* Orange highlight for "No.1" */
    font-weight: 700;
}

h2 {
    font-size: 1.5rem;
    color: #ff8c16; /* Kept the orange to match the basketball! */
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

#countdown {
    font-size: 2.5rem;
    font-weight: 700;
    background: #f8f9fa; /* Light gray box */
    border: 1px solid #e5e7eb; /* Soft border */
    padding: 20px 40px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); /* Very light drop shadow */
    margin-bottom: 40px;
    color: #1a1a1a; /* Dark text inside the box */
    letter-spacing: 2px;
    /* Added smooth transition for the countdown box */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#countdown:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* From Uiverse.io by TreepDeep */ 
.button.x {
    display: inline-flex;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    line-height: 1.25rem;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    vertical-align: middle;
    align-items: center;
    border-radius: 0.5rem;
    border: 1px solid rgba(86, 98, 246, 0.5);
    gap: 0.75rem;
    color: #ffffff;
    background-color: #5662f6;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(86, 98, 246, 0.3);
}

.button.x svg {
    height: 24px;
    width: 24px;
    fill: #fff;
}

.button.x:hover {
    transform: translateY(-3px) scale(1.02);
    background-color: rgb(100, 115, 255);
    box-shadow: 0 6px 20px rgba(86, 98, 246, 0.5);
}

.button.x:active {
    transform: scale(0.98);
    opacity: 0.8;
}

/* From Uiverse.io by Mahmoud-walid (EXACT ORIGINAL RESTORED) */ 
.container {
    margin-top: 80px;
}

@keyframes rotateBall {
  0% { transform: rotateY(0deg) rotateX(0deg) rotateZ(0deg); }
  50% { transform: rotateY(360deg) rotateX(360deg) rotateZ(0deg); }
  100% { transform: rotateY(720deg) rotateX(720deg) rotateZ(360deg); }
}

@keyframes bounceBall {
  0% { transform: translateY(-70px) scale(1, 1); }
  15% { transform: translateY(-56px) scale(1, 1); }
  45% { transform: translateY(70px) scale(1, 1); }
  50% { transform: translateY(73.5px) scale(1, 0.92); }
  55% { transform: translateY(70px) scale(1, 0.95); }
  85% { transform: translateY(-56px) scale(1, 1); }
  95% { transform: translateY(-70px) scale(1, 1); }
  100% { transform: translateY(-70px) scale(1, 1); }
}

.ball {
  animation-name: bounceBall;
  animation-duration: 1.2s;
  animation-iteration-count: infinite;
  animation-timing-function: cubic-bezier(0.42, 0, 0.58, 1);
  border-radius: 50%;
  height: 60px;
  position: relative;
  transform: translateY(-70px);
  transform-style: preserve-3d;
  width: 60px;
  z-index: 1;
}

.ball::before {
  background: radial-gradient(circle at 36px 20px, #ff8c16, #b35100);
  border: 2px solid #333333;
  border-radius: 50%;
  content: "";
  height: calc(100% + 6px);
  left: -6px;
  position: absolute;
  top: -3px;
  transform: translateZ(1vmin);
  width: calc(100% + 6px);
}

.ball .inner {
  animation-name: rotateBall;
  animation-duration: 25s;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
  border-radius: 50%;
  height: 100%;
  position: absolute;
  transform-style: preserve-3d;
  width: 100%;
}

.ball .line::before,
.ball .line::after {
  border: 2px solid #333333;
  border-radius: 50%;
  content: "";
  height: 99%;
  position: absolute;
  width: 99%;
}

.ball .line::before {
  transform: rotate3d(0, 0, 0, 0);
}

.ball .line::after {
  transform: rotate3d(1, 0, 0, 90deg);
}

.ball .line--two::before {
  transform: rotate3d(0, 0, 0, 2deg);
}

.ball .line--two::after {
  transform: rotate3d(1, 0, 0, 88deg);
}

.ball .oval::before,
.ball .oval::after {
  border-top: 4px solid #333333;
  border-radius: 50%;
  content: "";
  height: 99%;
  position: absolute;
  width: 99%;
}

.ball .oval::before {
  transform: rotate3d(1, 0, 0, 45deg) translate3d(0, 0, 6px);
}

.ball .oval::after {
  transform: rotate3d(1, 0, 0, -45deg) translate3d(0, 0, -6px);
}

.ball .oval--two::before {
  transform: rotate3d(1, 0, 0, 135deg) translate3d(0, 0, -6px);
}

.ball .oval--two::after {
  transform: rotate3d(1, 0, 0, -135deg) translate3d(0, 0, 6px);
}

@keyframes bounceShadow {
  0% { filter: blur(3px); opacity: 0.1; transform: translateY(73px) scale(0.5, 0.5); }
  45% { filter: blur(1px); opacity: 0.3; transform: translateY(73px) scale(1, 1); }
  55% { filter: blur(1px); opacity: 0.3; transform: translateY(73px) scale(1, 1); }
  100% { filter: blur(3px); opacity: 0.1; transform: translateY(73px) scale(0.5, 0.5); }
}

.shadow {
  animation-name: bounceShadow;
  animation-duration: 1.2s;
  animation-iteration-count: infinite;
  animation-timing-function: cubic-bezier(0.42, 0, 0.58, 1);
  background: black;
  filter: blur(2px);
  border-radius: 50%;
  height: 6px;
  transform: translateY(73px);
  width: 54px;
}

/* --- NEW ADDITIONS --- */

/* Footer Styling */
footer {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    font-size: 0.9rem;
    color: #888888;
    opacity: 0.7;
    transition: opacity 0.3s ease, color 0.3s ease;
    z-index: 10;
}

footer:hover {
    opacity: 1;
    color: #333333;
}

/* Snowfall Animation */
.snowflakes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Allows clicking through the snow */
    z-index: 9999;
}

.snowflake {
    color: #d1d5db; /* Soft gray/blue snow for white background visibility */
    font-size: 1.5em;
    font-family: Arial, sans-serif;
    position: absolute;
    top: -10%;
    animation-name: snowflakes-fall, snowflakes-shake;
    animation-duration: 10s, 3s;
    animation-timing-function: linear, ease-in-out;
    animation-iteration-count: infinite, infinite;
    animation-play-state: running, running;
}

@keyframes snowflakes-fall {
    0% { top: -10%; }
    100% { top: 100%; }
}

@keyframes snowflakes-shake {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(80px); }
}

/* Randomizing snowflakes */
.snowflake:nth-of-type(1) { left: 10%; animation-delay: 0s, 0s; }
.snowflake:nth-of-type(2) { left: 20%; animation-delay: 1s, 1s; }
.snowflake:nth-of-type(3) { left: 30%; animation-delay: 6s, 0.5s; }
.snowflake:nth-of-type(4) { left: 40%; animation-delay: 4s, 2s; }
.snowflake:nth-of-type(5) { left: 50%; animation-delay: 2s, 2s; }
.snowflake:nth-of-type(6) { left: 60%; animation-delay: 8s, 3s; }
.snowflake:nth-of-type(7) { left: 70%; animation-delay: 6s, 2s; }
.snowflake:nth-of-type(8) { left: 80%; animation-delay: 2.5s, 1s; }
.snowflake:nth-of-type(9) { left: 90%; animation-delay: 1s, 0s; }
.snowflake:nth-of-type(10) { left: 5%; animation-delay: 3s, 1.5s; }

@media (max-width: 600px) {
    h1 { font-size: 2.5rem; }
    #countdown { font-size: 1.5rem; padding: 15px 20px; }
    footer { font-size: 0.8rem; }
}
