html, body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    height: 100%;
}

.closebutton {
    background-color: red;
    width:50px;
    height: 50px; 
    border-radius: 20px; 
    position:relative;
    display: flex;
    justify-content: center; 
    align-items: center;
    padding: 0 12px;
    cursor: pointer;
}

.fullscreenbutton {
    background-color: rgba(0,0,0,0.6);
    color: #fff;
    padding: 0 12px;
    height: 50px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    white-space: nowrap;
    align-self: end;
}

.fullscreenbutton p {
    margin: 0;
    font-size: 12px;
    font-family: Arial, Helvetica, sans-serif;
}
.window {
    list-style-type: square;
    padding: 6px;
    border: 2px ridge red;
    margin: 4px;
    border-radius: 16px;
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: gold;
    flex-direction: column;
    width: 70vw;
    max-width: 320px;
}

.windowheader{
    user-select: none;
    cursor: grab;
    align-items: center;
    width: 100%;
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 12px;
    flex-direction: row;
    gap: 8px;
}

.desktopApps{
    padding-top: 64px;
    padding-left: 16px;
}

.app{
    text-align: center;
    padding: 16px;
    filter: drop-shadow(0 0 8px red);
    width: fit-content;
    cursor: pointer;
}

.app .logo{
    width: 64px;
    height: 64px;
    border-radius: 16px;
    object-fit: cover;
}

.app .name{
    margin: 0px;
    margin-top: -10px;
    color:#fff;
}

.window:fullscreen,
.window.maximized {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    max-height: 100vh;
    margin: 0;
    border: none;
    border-radius: 0;
    transform: none;
    top: 0 !important;
    left: 0 !important;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.window:fullscreen .windowheader,
.window.maximized .windowheader {
    padding: 0 12px;
}

.window:fullscreen > div:last-child,
.window.maximized > div:last-child {
    width: calc(100% - 12px) !important;
    max-width: none !important;
    flex: 1 !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}

.window:fullscreen .startScreen,
.window:fullscreen #quizContainer,
.window:fullscreen #jarvisContainer,
.window.maximized #hudContainer {
    width: 100%;
    height: 100%;
}

.window:fullscreen #jarvisVideo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.window:fullscreen .startScreen p,
.window:fullscreen .startScreen h3,
.window:fullscreen .startScreen h2 {
    font-size: 2.2vw;
}

.window:fullscreen .startScreenImg {
    width: 28vw !important;
    max-width: none !important;
    height: auto !important;
    max-height: none !important;
}

.window:fullscreen .continueButton {
    width: 18vw !important;
    border-radius: 2vw !important;
}

.window:fullscreen .continueButton h3 {
    font-size: 2vw;
}

.window:fullscreen #question {
    font-size: 2.8vw;
}

.window:fullscreen .options {
    max-width: 50vw;
    padding: 1vw 0;
}

.window:fullscreen .options p {
    font-size: 2vw;
}

.headerleft {
    display: flex;
    align-items: center;
    gap: 8px;
}

.headertext {
    display: flex;
    align-items: center;
    justify-content: center;
    flex:1;
    min-width: 0;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;

}

.closebutton,
.fullscreenbutton {
    flex-shrink: 0;
}
.startScreen{
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
}
#quizContainer {
    display:none;
    flex-direction: column;
    gap:12px;
    align-items: center;
    width:100%;
    height: 100%;
    box-sizing: border-box;
    padding: 10px 20px 15px 20px;

}

#question {
    text-align: center; 
    font-family: Arial, Helvetica, sans-serif; 
    font-weight: bold;
    font-size: 18px;
    color: #222;
    margin-top: 5px;
    margin-bottom: 15px;
}
#image {
    display: block;
    margin: 0 auto;
    padding-top: 5px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    height: auto;
    width: 100%;
    max-width: 280px;
}
.options {
    display: flex;
    background-color: #f32013;
    border-radius: 20px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 280px;
    cursor: pointer;
    transition: background-color o.2s, transform 0.1s;

    
}

.options p {
    margin: 10px 0;
    font-family: Arial, Helvetica, sans-serif;
    color: white;
    font-weight: bold;
}

.options:hover{
    background-color: #ffcc00;
}
.options:hover p{
    color:#222
}

.options:first-of-type{
    margin-top: auto;
    margin-bottom: 10px;
}

#jarvisContainer {
    display:none;
    flex-direction: column;
    gap:12px;
    align-items: center;
    width:100%;
    height: 100%;
    box-sizing: border-box;
    padding: 10px 20px 15px 20px;
}

#jarvisVideo {
    width: 100%;
    border-radius: 8px;
    height: auto;
    max-height: 100%;
}

#suitDiag {
    width: calc(20% - 10px);
    height: 100%;
    margin-left: 24px;
    margin-top: 24px;
}

.DiagInfo {
    padding-bottom: 16px;
}

.stat-name {
    color: #00d4ff88;
}

.bar {
    display: flex;
}

.stat-value {
    text-align: right;
    color:#00d4ff;
}

.title {
    color: #00d4ff88;
    font-size: 24px;
}

.status-name {
    color: #00d4ff88;
    margin: 4px;
}

.status-display {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #00ff88;
    margin-right: 10px;
    animation: blip 3s ease-in-out infinite
}

.status {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin: 4px 0;
}


#hudContainer {
    display: flex;
}

.divider {
    width: 1px;
    height: 100%;
    background-color: #00d4ff33;
    margin-left: 24px;
    margin-right: 24px;
}

#hudMiddle {
    flex: 1;
}

#environment {
    width: calc(20% - 10px);
    height: 100%;
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    margin-right: 24px;
}

.envInfo {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin: 8px 0;
}
.envInfoName {
    color: #00d4ff88;
}

.envInfoValue {
    color:#00d4ff;
}

.radar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 1px solid #00d4ff33;
    position: relative;
    overflow: hidden;
    margin: 32px auto 0;
}

.radar-cross-v {
    position: absolute;
    left: 50%;
    top: 0;
    width: 1px;
    height: 100%;
    background: #00d4ff22;
}

.radar-cross-h {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: #00d4ff22;
}

.radar-sweep {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 50%;
    transform-origin: 0% 100%;
    background: linear-gradient(90deg, transparent, #00d4ff33);
    animation: sweep 3s linear infinite;
}

@keyframes sweep {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.radar-blip {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #00ff88;
    top: 45px;
    left: 120px;
    animation: blip 3s ease-in-out infinite;
}

@keyframes blip {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

#arcReactor {
    width: 260px;
    height: 260px;
    position: relative;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arc-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
}

.arc-ring-1 {
    width: 260px;
    height: 260px;
    border-top-color: #00d4ff;
    animation: spin 4s linear infinite;
}

.arc-ring-2 {
    width: 200px;
    height: 200px;
    border-right-color: #00d4ff99;
    animation: spin 2.5s linear infinite reverse;
}

.arc-ring-3 {
    width: 140px;
    height: 140px;
    border-top-color: #00d4ffcc;
    border-left-color: #00d4ffcc;
    animation: spin 1.5s linear infinite;
}

.arc-core {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #00d4ff22;
    border: 2px solid #00d4ff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arc-core-value {
    font-size: 18px;
    color: #00d4ff;
    margin: 0;
}

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

#centerPanel {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

#battery {
    font-size: 32px;
    color:#00d4ff;
    text-align: center;
}

#scan-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #00d4ff11;
    animation: scan 8s ease-in-out infinite;
}


@keyframes scan {
    0%, 15% {
        top: 0;
        opacity: 0;
    }
    25% {
        opacity: 1;
    }
    75% {
        opacity: 1;
    }
    85%, 100% {
        top: 100%;
        opacity: 0;
    }
}

.hud-hidden {
    opacity: 0;
}

#suitDiag,
#arcReactor,
#environment {
    transition: opacity 0.4s ease;
}

.hud-corner {
    position: absolute;
    width: 16px;
    height: 16px;
}

.corner-tl {
    top: 8px;
    left: 8px;
    border-top: 1px solid #00d4ff88;
    border-left: 1px solid #00d4ff88;
}

.corner-tr {
    top: 8px;
    right: 8px;
    border-top: 1px solid #00d4ff88;
    border-right: 1px solid #00d4ff88;
}

.corner-bl {
    bottom: 8px;
    left: 8px;
    border-bottom: 1px solid #00d4ff88;
    border-left: 1px solid #00d4ff88;
}

.corner-br {
    bottom: 8px;
    right: 8px;
    border-bottom: 1px solid #00d4ff88;
    border-right: 1px solid #00d4ff88;
}