/* Global styles */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: sans-serif;
    overflow: hidden; /* Prevent scrolling on the body */
    background-color: #f0f0f0; /* Light grey background */
}

#app-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.screen {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: none; /* Hide screens by default */
    flex-direction: column; /* Default layout for screens */
    box-sizing: border-box;
    z-index: 1; /* Base layer */
    background-color: #f0f0f0; /* Ensure screens have a background by default */
}

.screen.active {
    display: flex; /* Show active screen using flex */
    z-index: 5; /* Active screen on top */
}

/* Temporary style for debugging */
#ar-screen {
    position: relative;
}

#ar-subject-info {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10; /* Ensure it's above AR content, same level as back button */
    display: flex;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.25);
    padding: 3px 20px;
    border-radius: 8px;
    pointer-events: none; /* Don't interfere with AR interaction */
}

#ar-subject-title {
    font-size: 0.8em;
    font-weight: bold;
    color: #ffffff;
    margin-right: 10px;
}

#ar-subject-icon {
    height: 64px;
    width: 64px;
    display: block;
}

#back-to-menu-button {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10; /* Ensure it's above the AR content */
    background: none;
    border: none;
    padding: 0;
    width: 60px;
    height: 60px;
    cursor: pointer;
}

#back-to-menu-button img {
    display: block; /* Remove extra space below image */
    width: 100%;
    height: 100%;
}

button {
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 5px;
    border: none;
    font-size: 1em;
}

img {
    max-width: 100%;
    height: auto;
}

/*AR Screen Specific Styles*/

#ar-screen {
    /* Add any specific container styles if needed */
    position: relative; /* Needed for overlay positioning */
}

/* Style for the AR loading overlay */
.ar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent black */
    color: white;
    display: none; /* Hidden by default */
    flex-direction: column; /* Stack spinner and text */
    justify-content: center;
    align-items: center;
    z-index: 100; /* Ensure it's above other AR content */
    font-size: 1.2em;
    text-align: center;
}

.ar-overlay.visible {
    display: flex; /* Show when visible class is added */
}

/* Basic spinner animation */
.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    width: 40px;
    height: 40px;
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Info Popup Styles */
#info-popup-overlay {
    display: none; /* Hidden by default, JS will toggle to flex */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Darker semi-transparent background */
    z-index: 3000; /* Very high z-index */
    justify-content: center;
    align-items: center;
    padding: 20px; /* Add some padding for smaller screens */
    box-sizing: border-box;
}

#info-popup-content {
    background-color: rgba(45, 45, 45, 0.9); /* Dark, semi-transparent content box */
    color: white;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #666; /* Slightly lighter border for definition */
    text-align: center;
    max-width: 500px; /* Max width for the popup */
    width: 90%; /* Responsive width */
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    cursor: pointer; /* Indicate it's clickable to dismiss */
    display: flex;
    flex-direction: column;
    align-items: center;
}

#info-popup-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

#info-popup-logos img {
    max-height: 50px; /* Adjust as needed */
    margin: 0 15px;
    /* To prevent white logos from disappearing on white background if image fails and alt text is white */
    /* background-color: rgba(255,255,255,0.1); */ /* Optional: very light bg for logo placeholders */
}

#info-popup-text {
    margin-bottom: 15px;
    font-size: 1em; /* Slightly larger text */
    line-height: 1.6;
}

#info-popup-link {
    color: #87CEEB; /* Sky blue link color */
    text-decoration: none;
    font-weight: bold;
}

#info-popup-link:hover {
    text-decoration: underline;
}

/* Back button on AR screen */
#back-to-menu-button {
    /* ... existing code ... */
} 