:root {
    --background-color: rgba(0, 0, 0, 0.3);
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

h1 {
    font-size: 6.5rem; /* Larger, dramatic text */
    margin: 0;
    padding: 0;
    line-height: 1.2;
    letter-spacing: 3px; /* Add some spacing for elegance */
}

h2 {
    font-size: 1.8rem;
    margin: 10px 0 0;
}

.title {
    display: flex;
    position: fixed;
    z-index: 10;
    color: white;
    flex-direction: column;
    width: 100%;
    justify-content: center; /* Center content vertically */
    align-items: center;    /* Center content horizontally */
}
.background-video{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.welcomeText{
    font-size: 1.2rem;
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* Tablets */
@media (max-width: 1024px) {
    h1 {
        font-size: 4rem; /* Smaller for tablets */
    }

    h2 {
        font-size: 1.5rem;
    }

    .title {
        padding: 15px;
    }
}

/* Smartphones */
@media (max-width: 600px) {
    h1 {
        font-size: 2.5rem; /* More compact */
        letter-spacing: 2px;
    }

    h2 {
        font-size: 1.2rem;
    }

    .title {
        padding: 10px;
    }
    .welcomeText{
        width: 325px;
        margin-right: 19px;
        overflow-y: auto;
        height: 400px;
    }
}
@media (max-height: 530px) {
    .welcomeText{
        max-height: 300px;
        overflow-y: auto;
    }
}
@media (max-height: 380px) {
    .welcomeText{
        max-height: 115px;
        overflow-y: auto;
    }
}