/* Cisco 4331 CSS */
/* Reset Body Styles */
body { 
    padding: 0; 
    margin: 0; 
    font-family: Arial, sans-serif;
}

/* Unity Container - Ensures Proper Positioning */
#unity-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-height: 864px; /* Ensures it takes up the correct height */
    text-align: center;
    margin-top: 5vh;
}

/* Unity Canvas - Ensures Proper Scaling */
#unity-canvas {
    width: 100%;
    max-width: 1536px; 
    height: auto; 
    aspect-ratio: 16 / 9; /* Maintains correct aspect ratio */
    background: #231F20;
}

.unity-mobile #unity-canvas { width: 100%; height: 100% }

/* Loading Bar - Centered */
#unity-loading-bar { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: none }
#unity-logo { width: 154px; height: 130px; background: url('unity-logo-dark.png') no-repeat center }
#unity-progress-bar-empty { width: 141px; height: 18px; margin-top: 10px; margin-left: 6.5px; background: url('progress-bar-empty-dark.png') no-repeat center }
#unity-progress-bar-full { width: 0%; height: 18px; margin-top: 10px; background: url('progress-bar-full-dark.png') no-repeat center }

/* Footer Styling */
#unity-footer { 
    position: relative;
    margin-top: 20px; /* Prevents overlapping with the accordion */
    display: flex;
    justify-content: space-between; /* Space between ensures the first and last element are at opposite ends */
	align-items: center; /* Aligns items vertically */
    width: 100%;
    max-width: 1536px;
    padding: 10px;
}

/* WebGL Logo */
#unity-webgl-logo { 
    float: left; 
    width: 204px; 
    height: 38px;
	background: url('webgl-logo.png') no-repeat center 
}



/* Fullscreen Button */
#unity-fullscreen-button { 
    float: right; 
    width: 38px; 
    height: 38px;
	 background: url('fullscreen-button.png') no-repeat center 
}

#unity-build-title { 
	float: right;
	margin-left: auto;
	margin-right: 10px;
	line-height: 38px;
	font-family: arial;
	font-size: 18px;
	color: #940406;
}

/* Mobile Warning */
#unity-mobile-warning { 
    position: absolute; 
    left: 50%; 
    top: 5%; 
    transform: translate(-50%); 
    background: white; 
    padding: 10px; 
    display: none; 
}

/* Accordion Section */
.accordion {
    width: 80%;
    max-width: 1200px; /* Add to cap width */
    margin: 20px auto 0 auto; /* Match Video Pages, tighten spacing */
    position: relative;
    text-align: left; /* Ensure content aligns */
}

/* Accordion Item */
.accordion-item {
    border-bottom: 1px solid #ddd;
}

/* Accordion Header */
.accordion-header {
    background: #333;
    color: white;
    padding: 15px;
    cursor: pointer;
    font-size: 18px;
    text-align: left;
    border: none;
    width: 100%;
}

/* Accordion Content */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 15px; /* 0 when closed */
    background: #f4f4f4;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out; /* Add transition */
}

/* Active Accordion */
.accordion-item.active .accordion-content {
    max-height: 500px; /* Fallback, JS overrides */
    padding: 15px; /* Match expanded state */
    overflow: hidden;
}