html, body {
    margin: 0;
    padding: 0;
    width: 100vw;
    min-height: 100vh;
    height: 100dvh; /* Use dynamic viewport for mobile browsers */
    background: #f7f7f7;
    font-family: 'Noto Sans HK', 'Geologica', Arial, sans-serif;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: none;
    overflow: hidden;
}
.container {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Center vertically */
    overflow: hidden;
    box-sizing: border-box;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    padding-top: env(safe-area-inset-top, 0px);
}

.bg-image {
  position: fixed;
  top: 0;
  left: 50%;
  height: 100dvh;
  width: auto;
  transform: translateX(-50%);
  object-fit: contain;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}
.header {
  position: absolute;
  top: 10vh;
  left: 0;
  width: 100vw;
  text-align: center;
  z-index: 3;
  margin: 0;
}
.loading-card {
width: 80%;
aspect-ratio: 1 / 1;
position: relative;
background: rgba(255,255,255,0.6);
box-shadow: 0px 4px 4px rgba(0,0,0,0.2);
border-radius: 40px;
outline: 3px white solid;
outline-offset: -3px;
backdrop-filter: blur(7.5px);
display: flex;
flex-direction: column;
align-items: end;
justify-content: space-between; /* This puts children at top and bottom */
padding: 2em 0.5em; /* Add vertical padding for spacing */
}
.minutes-box {
width: 100%;
display: flex;
flex-direction: column;
align-items: center;
margin-bottom: 1em;
/* Optional: add extra spacing if needed */
}

.minutes-cn, .minutes-en {
    text-align: center;
    color: #058A00;
    font-size: clamp(1.2rem, 4vw, 2.5rem);
    font-family: 'Noto Sans HK', sans-serif;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 0;
    
}
.minutes-en {
    font-family: 'Geologica', sans-serif;
    font-weight: 400;
}
.spinner-ring {
width: 25vw;
max-width: 110px;
height: 25vw;
max-height: 110px;
display: flex;
align-items: center;
justify-content: center;
animation: spinner 1s linear infinite;
/* Optional: If you want a ring border around the image: */

box-sizing: border-box;
/* Remove margin if you want it strictly centered by flexbox: */
margin: 0 auto;
z-index: 3;
}
.spinner-ring img {
width: 20vw;
height: 20vh;
object-fit: contain;
display: block;
}
@keyframes spinner {
    0% { transform: rotate(0deg);}
    100% { transform: rotate(360deg);}
}
.title-cn {
    text-align: center;
    font-family: 'Geologica', 'Noto Sans HK', sans-serif;

    
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    letter-spacing: 1.25px;

}
.title-en {
    

    text-align: center;
    font-family: 'Geologica';
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: -0.5px;
    text-transform: capitalize;

}
.title-cn,.title-en{
    color: #058A00;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}

.title-cn span:first-child {
    font-weight: 600;
    letter-spacing: 1.25px;
}
@media (max-width: 600px) {
    .loading-card {
    width: 80%;
    
    aspect-ratio: 1 / 1;
    padding: 1em 0.5em;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.20);
    backdrop-filter: blur(7.5px);
    }
    .spinner-ring {
    width: 18vw;
    height: 18vw;
    min-width: 50px;
    min-height: 50px;
    max-width: 60px;
    max-height: 60px;
    }

}
