* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'MedievalSharp', cursive;
    background: linear-gradient(-45deg, #000000, #1a0000, #330000, #000000);
    background-size: 400% 400%;
    animation: gradientShift 5s ease infinite;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.center-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.center-logo img {
    width: 40vw;
    max-width: 350px;
    height: auto;
    transition: transform 0.3s ease
}

.center-logo img:hover {
    transform: scale(1.2);
    filter: drop-shadow(0 0 2px #8B0000);
}

#questionBox {
    display: none;
    position: absolute;
    padding: 20px;
    background-color: #111;
    border: 2px solid #8B0000;
    border-radius: 10px;
    text-align: center;
    max-width: 80%;
    z-index: 2;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%)
}

#questionBox button {
    margin: 10px;
    padding: 10px 20px;
    background-color: #8B0000;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}

#questionBox button:hover {
    background-color: #a40000;
}

#finalMessage {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'MedievalSharp', cursive;
    font-size: 2.5rem; 
    text-align: center;
    text-shadow: 2px 2px 5px #000, 0 0 15px rgba(255,0,0,0.7); /* glow + shadow */
    background: rgba(0,0,0,0.4); /* semi-transparent */
    padding: 30px 50px;
    border-radius: 20px;
    z-index: 20;
    line-height: 1.3;
    max-width: 90%;
    word-wrap: break-word;
    animation: pulse 2s infinite alternate;
}

@keyframes pulse {
    0% { text-shadow: 2px 2px 5px #000, 0 0 10px var(--pulse-color); }
    100% { text-shadow: 2px 2px 5px #000, 0 0 25px var(--pulse-color); }
}

.buttons {
    display: flex;
    width: 99%;
    align-items: center;
    gap: 10px;
    position: absolute;
    top: 2%;
}

.general-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    padding: 12px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10000;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    width: 50px;  
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px; 
}

.general-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}

.fog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('./assets/fog.gif') repeat;
    background-size: cover;
    opacity: 0.3;
    pointer-events: none;
    z-index: 5;
    animation: moveFog 60s linear infinite;
}

.countdown-container {
    text-align: center;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    display: none;
}

.countdown-title {
    font-size: 32px;
    margin-bottom: 25px;
    color: #d63384;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 25px; 
}

.time-box {
    background: linear-gradient(135deg, #1a1a1a, #2c003e);
    border: 2px solid #d63384;
    border-radius: 15px;
    padding: 20px 25px;
    width: 110px;
    box-shadow: 0px 0px 15px rgba(214, 51, 132, 0.5);

    display: flex;
    flex-direction: column;
    align-items: center;
}

.time-box span {
    font-size: 40px; 
    font-weight: bold;
    color: #ff80ff;
}

.time-box p {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #aaa;
    text-align: center;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@media (max-width: 768px) {
  .countdown-title {
    font-size: 20px;   
    margin-bottom: 16px;
  }

  .countdown {
    gap: 12px;
  }

  .time-box {
    width: 84px;         
    padding: 12px 14px;
    border-radius: 12px;
  }

  .time-box span {
    font-size: 28px;      
    line-height: 1;       
  }

  .time-box p {
    font-size: 12px;
    letter-spacing: 1px;
  }
}

@media (max-width: 420px) {
  .countdown-container {
    padding-left: 10px;
    padding-right: 10px;
  }

  .countdown-title {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .countdown {
    gap: 8px;
    flex-wrap: nowrap;
  }

  .time-box {
    width: 64px;          
    padding: 8px 10px;
    border-radius: 10px;
  }

  .time-box span {
    font-size: 20px;    
  }

  .time-box p {
    font-size: 10px;
    letter-spacing: 0.5px;
  }
}
