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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #454545;
    /* background-image: url('resources/steelbackground.jpg'); */
    font-family: Arial, sans-serif;
    overflow: hidden;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Main artwork container with aspect ratio */
.cockpit-container {
    width: calc(85vh * 9 / 16); /* 85% of viewport height converted to width for aspect ratio */
    height: 85vh;
    max-width: 100vw;
    max-height: 100vh;
    aspect-ratio: 9/16;
    background-image: url('resources/MuniDriverPOV.png');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cockpit-container::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 2;
    border-radius: inherit;
    box-sizing: border-box;
    background: radial-gradient(
        ellipse at center,
        rgba(0,0,0,0) 60%,
        rgba(0,0,0,0.3) 80%,
        rgba(0,0,0,0.6) 100%
    );
}

.windscreen-container {
    width: 90%; /* x% of the artwork container */
    aspect-ratio: 3/4;
    /* background: #ffffff; */
    background-image: url('resources/DraftJudah.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    perspective: 1000px;
    top: -10%;
}

.windscreen-container::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.99) 0%,   /* Dense fog at the top */
    rgba(255,255,255,0.99) 5%,   /* Dense fog at the top */
    rgba(255,255,255,0.00) 20%,   /* Medium fog */
    rgba(255,255,255,0.00) 60%,   /* Medium fog */
    rgba(255,255,255,0.00) 80%,  /* Light fog */
    rgba(255,255,255,0.00) 100%   /* No fog at the bottom */
  );
}

.windscreen-container::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border: solid #000;
    border-width: calc(0.04 * 100%);
    pointer-events: none;
    z-index: 2;
    border-radius: 5px;
    box-sizing: border-box;
}

.floating-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.floating-image-wrapper {
    position: absolute;
    border-radius: 0px;
    pointer-events: none;
    opacity: 0;
    transform-origin: center center;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.floating-image {
    position: absolute;
    border-radius: 0px;
    object-fit: cover;
    pointer-events: none;
    width: 100%;
    height: 100%;
}

/* Loading indicator */
.loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #666;
    font-size: 16px;
    z-index: 10;
}

.loading-indicator.hidden {
    display: none;
}

/* --- List View Rectangle Overlay --- */
#listViewRect {
    position: absolute;
    /* Example position/size: adjust as needed to match the rectangle in the PNG */
    left: 11%;
    top: 74.5%;
    width: 33%;
    height: 15%;
    border: 2px solid gold;
    border-radius: 6px;
    cursor: pointer;
    z-index: 20;
    background: rgba(255, 215, 0, 0.05); /* subtle highlight */
    transition: box-shadow 0.2s, border-color 0.2s;
    animation: pulsate-glow 2s infinite;
}
#listViewRect:hover, #listViewRect:focus {
    box-shadow: 0 0 16px 4px gold;
    border-color: #ffd700;
}

@keyframes pulsate-glow {
    0% {
        box-shadow: 0 0 8px 0px gold;
        border-color: gold;
    }
    50% {
        box-shadow: 0 0 8px 8px gold;
        border-color: #ffd700;
    }
    100% {
        box-shadow: 0 0 8px 0px gold;
        border-color: gold;
    }
}

/* --- Retro Notification --- */
.retro-notification {
    position: absolute;
    left: 45%;
    top: 70%;
    transform: translate(-50%, 0);
    min-width: 180px;
    max-width: 80%;
    background: #f3f3e7;
    border: 2px solid #222;
    border-radius: 8px;
    padding: 18px 24px 12px 24px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.1em;
    color: #222;
    z-index: 30;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    opacity: 1;
}
.retro-notification.hidden {
    display: none;
}
.notification-text {
    margin-bottom: 8px;
    font-weight: bold;
    letter-spacing: 1px;
}
.notification-continue {
    margin-top: 6px;
    font-size: 1em;
    cursor: pointer;
    display: none;
    pointer-events: auto;
}

/* Show continue link on mobile */
@media (hover: none) and (pointer: coarse) {
    .notification-continue {
        display: inline-block;
    }
    .retro-notification {
        /* top: 18%; */
        min-width: 140px;
        font-size: 1em;
        padding: 14px 16px 10px 16px;
    }
}

/* Ensure rectangle is above windscreen-container */
.cockpit-container {
    position: relative;
} 

/* Floating dialog box styles */
.floating-dialog-box {
  background: #241901;
  border-radius: 8px;
  color: #ffb300;
  font-family: 'Dot Matrix', 'Courier New', Courier, monospace;
  font-size: 2rem;
  padding: 0.0em 1.0em;
  box-shadow: 0 0 0px 8px #1f1f1e, 0 0 0px 16px #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  min-height: 1.0rem;
  text-align: center;
  letter-spacing: 0.08em;
  user-select: none;
  pointer-events: none;
  position: absolute;
  z-index: 2;
} 