body { padding: 0; margin: 0 }
#unity-container.unity-desktop {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}
#unity-canvas {
    width: 100%;
    height: 100%;
    display: block;
    position: relative !important;
	border-radius: 12px;
}
#unity-canvas:focus {
    outline: none;
}
#unity-layout {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    background: transparent;
    position: relative;
    display: none;
}

#unity-content {
    position: relative;
    aspect-ratio: 16 / 9;
	width: min(90vw, 90vh * (16 / 9));
    height: min(90vh, 90vw / (16 / 9));
    background: rgba(0,0,0,0.75);
    border-radius: 12px;
    box-shadow: 0 0 40px rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
}
#unity-warning { position: absolute; left: 50%; top: 5%; transform: translate(-50%); background: white; padding: 10px; display: none }
#unity-container {
    position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100vh;
        width: 100vw;
        overflow: hidden;
}

#unity-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(10px); 
    box-shadow: 0px 0px 0px 20px black;
}
/* ---------- */
/*Loading page*/
#loading-layout {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    padding: 5vh 5vw;
}

#cover {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.6);
}

#loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    background: rgba(0, 0, 0, 0.75);
    padding: 3vh 2vw 0.2vh 2vw;
    border-radius: 12px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
}

/* Loading bar*/
#unity-loading-bar {
    width: 100%;
}
#unity-progress-bar-empty {
    width: 100%;
    max-width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    overflow: hidden;
}
#unity-progress-bar-full {
    width: 0%;
    height: 100%;
    background-color: white;
    transition: width 0.3s ease;
}

/* Enoverse logo-Title-Description section */
#unity-description-section {
    display: flex;
    align-items: center;
    gap: 2vw;
    color: white;
    font-family: "Barlow Condensed", Arial, sans-serif;
    width: 100%;
    flex-wrap: wrap;
}
#unity-logo-container {
    width: 100px;
    height: 100px;
    background-image: url('../logo-enoverse.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}
#title-container {
    font-family: "Barlow Condensed", Arial, sans-serif;
    font-weight: bold;
    color: white;
    text-align: left;

    font-size: clamp(1.2rem, 3vw, 2.5rem);
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 1;
    max-width: 30vw;
}
#unity-logo-separator {
    width: 3px;
    height: 80px;
    background-color: white;
    opacity: 0.7;
    align-self: center;
    border-radius: 1px;
}
#unity-description-text {
    flex: 1;
    font-size: 2.1vh;
    margin: 0;
}

.time-end-content {
    
    
    align-items: center;
    background: rgba(0, 0, 0, 1);
    padding: 0.01vh 1vw 0.2vh 2vw;
    border-radius: 12px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
    font-family: "Barlow Condensed", Arial, sans-serif;
    color: white;
    font-size: clamp(1.2rem, 3vw, 2.5rem);
    
}

.alt-container{
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

#alt-layout{
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    padding: 5vh 5vw;
}
.time-end-content h2{
    margin: 0.2em 0; 
}
.time-end-content p {
    margin: 0.4em 0;
}
#redirect-link {
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
}
#redirect-link:hover {
    text-decoration: underline;
    color: #ff0;
}
