.welcome-container-wrapper {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  background-color: rgba(0,0,0,.5);
  backdrop-filter: blur(3px);
  display: none;
}

.welcome-container {
    background: url("../images/bg_welcom.jpg") no-repeat center center / cover;
    color: white;
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    position: relative;
    width: min(90%, 600px); /* Giới hạn chiều rộng tối đa là 400px, nhưng co giãn trên màn hình nhỏ */
    min-height: 500px; /* Chiều cao tối thiểu thay vì cố định */
    max-height: 100vh; /* Giới hạn chiều cao tối đa */
    z-index: 1;
    box-sizing: border-box;
}

.welcome-logo {
    width: min(90%, 230px);
}

h1.welcome-title {
    font-size: clamp(32px, 6vw, 65px); /* Font-size linh hoạt, từ 2rem đến 3rem */
    margin-bottom:clamp(25px, 3vw, 45px); 
    text-transform: uppercase;
    letter-spacing: 0.15rem;
    font-weight: 600;
    font-family: "Sora", Arial, Helvetica, sans-serif;
}

.welcome-slogan {
    font-size: clamp(16px, 3vw, 20px); /* Font-size linh hoạt, từ 1rem đến 1.2rem */
    line-height: 1.5;
    font-style: italic
}

#canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: transparent;
}

/* Media query cho màn hình nhỏ hơn 768px (điện thoại) */
@media screen and (max-width: 768px) {
    .welcome-container {
        padding: 1.5rem;
        width: 90%;
        min-height: 250px;
    }

    .welcome-logo {
        width: min(60%, 180px); /* Logo nhỏ hơn trên điện thoại */
    }

    h1.welcome-title {
        font-size: clamp(2rem, 5vw, 2.8rem);
    }

    .welcome-slogan {
        font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    }
}

/* Media query cho màn hình nhỏ hơn 480px (điện thoại nhỏ) */
@media screen and (max-width: 480px) {
    .welcome-container {
        padding: 1rem;
        width: 95%;
        min-height: 200px;
    }

    .welcome-logo {
        width: min(50%, 150px); /* Logo nhỏ hơn nữa */
    }

    h1.welcome-title {
        font-size: clamp(1.8rem, 4vw, 2.5rem);
    }

    .welcome-slogan {
        font-size: clamp(0.8rem, 2vw, 1rem);
    }
}