body {
    margin: 0;
    overflow: hidden;
  }
.welcome-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(128, 128, 128, 0.8); /* Initial grey color */
    color: color(xyz-d50 0.33 0.56 0.23);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3.5em;
    font-family: "Parkinsans", sans-serif;
    font-weight: 700;
    opacity: 1;
    transition: opacity 1s ease;
    overflow: hidden;
    animation: breathe 8s ease-in-out infinite; /* Breathing effect */
    z-index: 2;
}
@keyframes breathe {
    0%, 100% {
        background-color: rgba(128, 128, 128, 0.8);
    }
    50% {
        background-color: rgba(230, 190, 250, 0.8);
    }
}
#AR-camera{
    display: none;
}
.ar-label {
    color: #B24968;
    background: #6C5FA7;
    opacity: 1;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: baseline;
    font-size: 2em;
    font-family: "Parkinsans", sans-serif;
    font-weight: 150;
}
.cloud {
    position: absolute;
    width: 10rem;
    height: 10rem;
    background-size: contain;
    background-repeat: no-repeat;
    border-style: none;
    animation: move-cloud 15s linear infinite;
    overflow: hidden; /* Ensure halftone doesn't overflow */
}
.cloud-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    flex-direction: row;
    justify-content: center;
    align-content: flex-start;
}
.halftone {
    position: relative; /* Needed for absolute positioning of ::after */
}
.halftone::after {
    content: '';
    position: absolute;
    inset: 0; /* Cover the entire cloud */
    background-image: radial-gradient(
        circle at center,
        rgba(0, 0, 0, 1) var(--dotSize),
        transparent 0
    );
    background-size: 1rem 1rem; /* Size of the dots */
    background-position: 0 0, 0.675rem 0.675rem;
    mask-image: linear-gradient(rgba(0, 0, 0, 1), rgba(0, 0, 0, 0)); /* Fade effect */
    animation: strobe 2s infinite;
    opacity: 1;
    pointer-events: none;
}
@keyframes strobe {
    0% { background-color: rgba(255, 0, 0, 0.5); }
    14% { background-color: rgba(255, 127, 0, 0.5); }
    28% { background-color: rgba(255, 255, 0, 0.5); }
    42% { background-color: rgba(0, 255, 0, 0.5); }
    57% { background-color: rgba(0, 0, 255, 0.5); }
    71% { background-color: rgba(75, 0, 130, 0.5); }
    85% { background-color: rgba(148, 0, 211, 0.5); }
    100% { background-color: rgba(255, 0, 0, 0.5); }
}
@keyframes move-cloud {
    0% { transform: translateX(-150px); }
    100% { transform: translateX(100vw); }
}
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: "Parkinsans", sans-serif;
    color: color(xyz-d50 0.09 0.11 0.22);
    font-weight: 700;
}
.logo {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
    margin-top: 52%;
}
#welcome-screen, #logo {
    transition: opacity 1s ease;
}
a-scene {
    display: none;
}
@font-face {
    font-family: 'TitleFont';
    src: url('https://srixx24.github.io/WebXRBusinessCard/Fonts/Parkinsans-SemiBold.ttf') format('truetype');
}
/* Mobile setting could use adusting still, come back later */
@media (max-width: 600px) {
    .welcome-screen {
        font-size: 2em; /* Smaller font on mobile */
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-content: center;
        justify-content: center;
    }
    .logo img {
        width: 150px; /* Adjust logo size for mobile */
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-content: center;
        justify-content: center;
    }
    .cloud-container {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        flex-wrap: nowrap;
        align-items: flex-start;
        flex-direction: row;
        justify-content: center;
        align-content: flex-start;
    }
}
.Cross-Browser {
    -webkit-transition: all 0.3s ease; /* Safari */
    -moz-transition: all 0.3s ease; /* Firefox */
    transition: all 0.3s ease; /* Standard */
}
