

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, 
.btn:active:focus, 
.btn-link.nav-link:focus, 
.form-control:focus, 
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
  font-size: 16px;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.welcome_box {
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  text-align: center;
  background-color: #1a1a2e;
  padding: 10px;
  border-radius: 30px; 
  height: 100%;
  width: 50%;
  opacity: 80%;
}

.navbar-nav {
  display: flex;
  justify-content: flex-start;
  gap: 20px;
}

.typing::after {
    content: '|';
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0; }
}

.greeting-message {
  font-size: 1.2rem;
  text-align: center;
  margin-top: 20px;
  background-color: #0a345d;
}

.background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 92%;
  object-fit: cover;
  z-index: -1;
  opacity: 1;
}

.clock {
  font-size: 1.5rem;
  color: white;
  text-align: center;
  margin-top: 20px;
  padding: 10px;
  border-radius: 5px;
}

.weather {
  font-size: 1.2rem;
  text-align: center;
  margin-top: 20px;
  color: white;
  padding: 10px;
  border-radius: 5px;
}

#danmaku-container {
    position: absolute;
    bottom: 20px;
    left: 20px;
    pointer-events: none; /* So it doesn’t block clicks */
}

.danmaku-bubble {
    position: absolute;
    bottom: 0;
    background: rgba(255, 255, 255, 0.6);
    color: #000;
    padding: 5px 10px;
    border-radius: 15px;
    white-space: nowrap;
    font-size: 14px;
    opacity: 0;
    transform: translateY(0);
    animation: floatUp 5s ease-out forwards;
}

@keyframes floatUp {
    0% {
        opacity: 0;
        transform: translateY(0);
    }
    10% {
        opacity: 1;
    }
    70% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(-150px);
    }
}