html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    position: fixed; /* Prevent bounce/scroll on mobile */
    touch-action: none; /* Disable browser touch actions */
    background-color: #000;
}

canvas {
    display: block;
    width: 100%;
    height: 100%;
    touch-action: none;
}

#instructions {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #ff84df; /* Neon pink */
    padding: 15px;
    border: 2px solid #84ffef; /* Neon cyan */
    border-radius: 5px;
    z-index: 100;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 15px rgba(255, 132, 223, 0.5); /* Pink glow */
    backdrop-filter: blur(5px);
    max-width: 80%;
}

.instruction-last-para {
    color: white;
    font-weight: bold;
}

/* Added class for close button instead of inline styles */
.close-button {
    position: absolute;
    top: -9px;
    right: 5px;
    padding: 0px 5px;
    background: rgba(0, 255, 0, 0.15);
    border: 1;
    font-size: 32px;
    cursor: pointer;
    color: #00ff00;
}

button {
    background-color: rgba(0, 0, 0, 0.5);
    color: #a2ff84; /* Neon green */
    border: 1px solid #a2ff84;
    padding: 8px 15px;
    /* margin-top: 15px; */
    cursor: pointer;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

button:hover {
    background-color: rgba(162, 255, 132, 0.2); /* Slightly green tint */
    color: #ffffff;
    box-shadow: 0 0 10px rgba(162, 255, 132, 0.6); /* Green glow */
}

h2, h3 {
    color: #ffee84; /* Neon yellow */
    /* text-shadow: 0 0 5px rgba(255, 238, 132, 0.5); Yellow glow */
    margin-top: 0;
}

#fps-counter {
    position: absolute;
    top: 5px;
    left: 5px;
    color: white;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 5px;
    border-radius: 3px;
}

#game-over-screen {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 200;
    backdrop-filter: blur(5px);

    background-color: rgba(10, 10, 30, 0.7);
    padding: 5px 15px;
    border: 2px solid #ff4477; /* Darker neon pink */
    border-radius: 5px;
    text-align: center;
    box-shadow: 0 0 25px rgba(255, 68, 119, 0.7); /* Pink glow */
    max-width: min(90%, 600px);
    max-height: min(90%, 800px);
    color: #84ffef; /* Neon cyan */
    font-family: Helvetica;
    /* text-transform: uppercase; */
}

.game-over-content h2 {
    color: #ff4477; /* Darker neon pink */
    /* text-shadow: 0 0 5px rgba(255, 68, 119, 0.7); Pink glow */
    font-size: 28px;
    margin-top: 0;
    margin-bottom: 5px;
}

#retry-button {
    color: #84ffef; /* Neon cyan */
    background-color: rgba(10, 10, 30, 0.7);
    border: 1px solid #84ffef;
}

#restart-button {
    color: #eb84ff; /* Neon cyan */
    background-color: rgba(10, 10, 30, 0.7);
    border: 1px solid #eb84ff;
}

#retry-button, #restart-button {
    padding: 8px;
    font-size: 16px;
    border-radius: 3px;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
    margin-bottom: 5px;
}

#retry-button:hover, #restart-button:hover {
    background-color: rgba(132, 255, 239, 0.2); /* Cyan tint */
    color: #ffffff;
    box-shadow: 0 0 10px rgba(132, 255, 239, 0.6); /* Cyan glow */
}

/* Level Indicator */
#level-indicator {
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translate(-50%, 0);
    background-color: rgba(0, 0, 0, 0.6);
    color: #ffee84; /* Neon yellow */
    padding: 6px 12px;
    border: 2px solid #84ffef; /* Neon cyan */
    border-radius: 5px;
    z-index: 100;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 15px;
    box-shadow: 0 0 15px rgba(132, 255, 239, 0.5); /* Cyan glow */
    backdrop-filter: blur(5px);
}

#level-indicator span {
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 238, 132, 0.7); /* Yellow glow */
}

#enemy-kill-counter {
    position: absolute;
    top: 38px;
    left: 50%;
    transform: translate(-50%, 0);
    background-color: rgba(0, 0, 0, 0.4);
    color: #fff9d5; /* Neon yellow */
    padding: 5px 10px;
    /* border: 2px solid #84ffef; */
    /* border-radius: 5px; */
    z-index: 100;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
    box-shadow: 0 0 15px rgba(132, 255, 239, 0.5); /* Cyan glow */
    backdrop-filter: blur(5px);
}

/* Level Complete Screen */
#level-complete-content {
    background-color: rgba(10, 10, 30, 0.7);
    padding: 30px;
    border: 2px solid #ffee84; /* Neon yellow */
    border-radius: 5px;
    text-align: center;
    box-shadow: 0 0 25px rgba(255, 238, 132, 0.7); /* Yellow glow */
    max-width: 400px;
    color: #84ffef; /* Neon cyan */
    font-family: 'Courier New', monospace;
    text-transform: uppercase;

    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    /* background-color: rgba(0, 0, 0, 0.7); */
    justify-content: center;
    align-items: center;
    z-index: 200;
    backdrop-filter: blur(5px);
}

#level-complete-content h2 {
    color: #ffee84; /* Neon yellow */
    text-shadow: 0 0 5px rgba(255, 238, 132, 0.7); /* Yellow glow */
    font-size: 28px;
    margin-top: 0;
    margin-bottom: 20px;
}

#level-status {
    margin: 15px 0;
}

#next-level-button {
    background-color: rgba(10, 10, 30, 0.7);
    color: #a2ff84; /* Neon green */
    border: 1px solid #a2ff84;
    padding: 10px 20px;
    margin-top: 20px;
    font-size: 16px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

#next-level-button:hover {
    background-color: rgba(162, 255, 132, 0.2); /* Green tint */
    color: #ffffff;
    box-shadow: 0 0 10px rgba(162, 255, 132, 0.6); /* Green glow */
}

/* Game Win Screen */
#game-win-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 200;
    backdrop-filter: blur(5px);
}

.game-win-content {
    background-color: rgba(10, 10, 30, 0.7);
    padding: 30px;
    border: 2px solid #ff84f0; /* Neon pink */
    border-radius: 5px;
    text-align: center;
    box-shadow: 0 0 25px rgba(255, 132, 240, 0.7); /* Pink glow */
    max-width: 400px;
    color: #84ffef; /* Neon cyan */
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
}

.game-win-content h2 {
    color: #ff84f0; /* Neon pink */
    text-shadow: 0 0 5px rgba(255, 132, 240, 0.7); /* Pink glow */
    font-size: 28px;
    margin-top: 0;
    margin-bottom: 20px;
}

#restart-game-button {
    background-color: rgba(10, 10, 30, 0.8);
    color: #a2ff84; /* Neon green */
    border: 2px solid #a2ff84;
    padding: 10px 20px;
    margin-top: 20px;
    font-size: 16px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

#restart-game-button:hover {
    background-color: rgba(162, 255, 132, 0.2); /* Green tint */
    color: #ffffff;
    box-shadow: 0 0 10px rgba(162, 255, 132, 0.6); /* Green glow */
}

.high-score {
    color: #ffee84; /* Neon yellow */
    font-size: 18px;
    margin: 10px 0;
    text-shadow: 0 0 8px rgba(255, 238, 132, 0.8);
}

/* Keyboard hint for overlays */
.keyboard-hint {
    margin-top: 15px;
    font-size: 12px;
    color: #a2ff84; /* Neon green */
    text-shadow: 0 0 5px rgba(162, 255, 132, 0.5);
    font-style: italic;
}

/* Pulsing animation for keyboard hint */
@keyframes pulse {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

.keyboard-hint {
    animation: pulse 1.5s infinite ease-in-out;
}

.hidden {
    display: none;
}

.level-warning {
    position: fixed;
    top: 15%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #84ffef; /* Neon cyan */
    padding: 5px;
    border: 2px solid #ffee84; /* Neon yellow */
    border-radius: 5px;
    text-align: center;
    z-index: 125;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    text-transform: uppercase;
    box-shadow: 0 0 25px rgba(255, 238, 132, 0.7); /* Yellow glow */
    backdrop-filter: blur(5px);
    max-width: 400px;
    animation: fadeIn 0.5s ease-in-out;
    line-height: 1;
}

.level-warning > p{
    padding: 0;
    line-height: 1;
    margin: 8px;
}

#pause-screen-container {
    position: absolute;
    width: 100%;
    height: 100%;
    /* transform: translate(-50%, -50%); */
    z-index: 200;
    background-color:rgba(0, 0, 0, 0.6);
    /* opacity: 0.2; */
}

#pause-screen {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* background-color: rgba(0, 0, 0, 0.5); */
    color: #84ffef; /* Neon cyan */
    padding: 20px;
    border: 2px solid #ffee84; /* Neon yellow */
    border-radius: 5px;
    text-align: center;
    z-index: 201;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    text-transform: uppercase;
    box-shadow: 0 0 25px rgba(255, 238, 132, 0.7); /* Yellow glow */
    backdrop-filter: blur(5px);
    width: 33%;
    animation: fadeIn 0.5s ease-in-out;
}

#start-game-button {
    /* position: fixed; */
    /* top: 20%; */
    /* left: 50%; */
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: #84ffef; /* Neon cyan */
    padding: 20px 30px;
    border: 2px solid #ffee84; /* Neon yellow */
    border-radius: 5px;
    text-align: center;
    z-index: 150;
    font-family: 'Courier New', monospace;
    font-size: 28px;
    text-transform: uppercase;
    box-shadow: 0 0 25px rgba(255, 238, 132, 0.9); /* Yellow glow */
    backdrop-filter: blur(5px);
    max-width: 200px;
    animation: fadeIn 0.5s ease-in-out;

    position: relative;
    top: 0;
    left: 0;
    transform: none;
    margin-top: 15px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.level-warning.fade-out {
    animation: fadeOut 1s ease-in-out forwards;
}

/* Camera flip button styles */
#camera-flip-button {
    position: fixed;
    top: 5px;
    left: 5px;
    width: 50px;
    height: 50px;
    font-size: 24px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #84ffef; /* Neon cyan */
    border: 2px solid #84ffef;
    border-radius: 50%;
    z-index: 150;
    cursor: pointer;
    /* display: flex; */
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 10px rgba(132, 255, 239, 0.6); /* Cyan glow */
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.2s ease;
}

#camera-flip-button:active {
    background-color: rgba(132, 255, 239, 0.3);
}

#sound-toggle, #instruction-button {
    position: fixed;

    width: 50px;
    height: 50px;

    font-size: 24px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #84ffef; /* Neon cyan */
    border: 2px solid #84ffef;
    border-radius: 50%;
    z-index: 150;
    cursor: pointer;
    /* display: flex; */
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 10px rgba(132, 255, 239, 0.6); /* Cyan glow */
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.2s ease;
    margin: 0;
    padding: 0;
}

#sound-toggle {
    top: 3px;
    right: 3px;
}

#instruction-button {
    top: 3px;
    right: 53px;
}

/* Optimize touch targets for mobile */
button {
    min-width: 44px;
    min-height: 44px;
    touch-action: manipulation;
    font-weight: bold;
    font-size: 18px;
}

/* Remove any transitions that might interfere with orientation changes */
* {
    transition: none !important;
}

/* Portal Info UI */
.portal-info {
    position: fixed;
    bottom: 10px;
    left: 75%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: #84ffef;
    padding: 8px 12px;
    border: 1px solid #ff84f0;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    font-size: 12px;
    z-index: 100;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portal-info.visible {
    opacity: 1;
}

/* Portal Indicator */
.portal-indicator {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ff84f0;
    box-shadow: 0 0 10px #ff84f0;
    z-index: 90;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portal-indicator.visible {
    opacity: 1;
    animation: pulse-indicator 1s infinite alternate;
}

@keyframes pulse-indicator {
    from { transform: translate(-50%, -50%) scale(1); }
    to { transform: translate(-50%, -50%) scale(1.5); }
}

/* Styles for the level selector */

#level-selector-container {
    background: rgba(0,0,0,0.4);
    font-family: 'Courier New', monospace;
    color: #84ffef; /* Neon cyan */
    text-transform: uppercase;
    text-align: center;
    background-color: black;
    padding: 5px;
}

#level-select {
    background-color: rgba(0, 0, 0, 0.6);
    color: #a2ff84; /* Neon green */
    border: 1px solid #a2ff84;
    padding: 8px 15px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 3px;
    transition: all 0.3s ease;
    margin-left: 10px;
    font-weight: bold;
}

#level-select:hover {
    /* background-color: rgba(162, 255, 132, 0.2); Slightly green tint */
    box-shadow: 0 0 20px rgba(162, 255, 132, 0.6); /* Green glow */
}

#level-select option {
    background-color: black;
    color: #a2ff84;
}

/* Adjust game start screen to accommodate the level selector */
#game-start-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 25%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 150;
}

#powerup-status-container {
    position: fixed;
    top: 75%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #84ffef; /* Neon cyan */
    padding: 5px;
    border: 2px solid #ffee84; /* Neon yellow */
    border-radius: 5px;
    text-align: center;
    z-index: 125;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    text-transform: uppercase;
    box-shadow: 0 0 25px rgba(255, 238, 132, 0.7); /* Yellow glow */
    backdrop-filter: blur(5px);
    max-width: 400px;
    animation: fadeIn 0.5s ease-in-out;
}

/* Twitter/X Feedback Button Styles - Added to match the game's cyberpunk/neon aesthetic */
#feedback-button {
    position: fixed;
    bottom: 0px;
    left: 0px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white; /* Neon cyan to match game's theme */
    padding: 7px;
    border: 2px solid white;
    border-radius: 0px;
    z-index: 150;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    /* box-shadow: 0 0 10px rgba(132, 255, 239, 0.6); Cyan glow */
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
}

#feedback-button:hover {
    background-color: rgba(132, 255, 239, 0.2); /* Cyan tint */
    color: #ffffff;
    box-shadow: 0 0 15px rgba(132, 255, 239, 0.8); /* Enhanced cyan glow */
}

#hover-instructions {
    position: fixed;
    top: 60px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    font-family: Helvetica, system-ui, sans-serif;
    font-size: 16px;
    z-index: 3000;
    max-width: 300px;
    display: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s ease;

    border: 2px solid #ffee84; /* Neon yellow */
    border-radius: 5px;
}

#hover-instructions p {
    margin: 8px 0;
}

@media (max-width: 768px) {
    #hover-instructions {
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
        right: auto;
        width: 80%;
        max-width: none;
    }
}

.game-over-stats {
    margin-bottom: 8px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3px;
    font-size: 16px;
    padding: 0;
}

#final-level, #final-score {
    color: #5ef8f8;
    font-weight: bold;
}

.high-score-table h3 {
    font-size: 16px;
    margin-bottom: 3px;
    color: #f8d05c;
}

.table-container {
    max-height: min(600px, 45vh);
    overflow-y: auto;
    margin-bottom: 6px;
    border-radius: 6px;
    background-color: rgba(0, 0, 0, 0.8);
}

#high-scores-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

#high-scores-table th {
    background-color: rgba(248, 167, 233, 0.2);
    padding: 8px;
    font-size: 14px;
    color: #f8d05c;
    border: none;
    margin: 0;
    position: sticky;
    top: 0;
}

#high-scores-table td {
    padding: 8px;
    font-size: 14px;
    border-bottom: 1px solid rgb(189, 158, 184);
    color: rgb(214, 243, 255);
}

#high-scores-table tr:last-child td {
    border-bottom: none;
}

#high-scores-table tr.current-user {
    background-color: rgba(94, 248, 248, 0.1);
}

#high-scores-table tr.current-user td {
    color: #5ef8f8;
    font-weight: bold;
}

.percentile-message {
    font-size: 15px;
    font-weight: bold;
    margin: 8px 0;
    color: #00ffbb;
    background-color: rgba(3, 57, 57, 0.7);
    padding: 10px;
    border-radius: 6px;
}

.game-over-buttons {
    margin-top: 0px;
    display: flex;
    gap: 5px;
    justify-content: center;
}

.keyboard-hint {
    font-size: 12px;
    opacity: 0.7;
    margin-top: 5px;
}

@media (max-width: 600px) {
    .game-over-content {
        width: 90%;
        padding: 15px;
    }
    
    .game-over-content h2 {
        font-size: 20px;
    }
    
    .stat-row {
        font-size: 14px;
    }
    
    .high-score-table h3 {
        font-size: 14px;
    }
    
    #high-scores-table th, 
    #high-scores-table td {
        padding: 3px;
        font-size: 12px;
    }
    
    .percentile-message {
        font-size: 12px;
    }
    
    .game-over-buttons button {
        font-size: 14px;
    }
}

#hit-point-bar {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 200;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
    pointer-events: none;
}

.hit-point-heart {
    transition: opacity 0.3s ease;
    image-rendering: pixelated;
    pointer-events: none;
}

.hit-point-heart svg {
    image-rendering: pixelated;
    pointer-events: none;
}

/* Apply pixelation effect to the SVG path */
.hit-point-heart svg path {
    shape-rendering: crispEdges;
    pointer-events: none;
}

#links-div {
    display: flex;
    justify-content: center;
    width: 100%;
}

#links-div > a:link {
    color: red;
    
}
.socialMediaButton{
    font-size: 22px;
    padding: 0;
    margin: 0;
    background-color: rgb(10, 222, 233);
}

.socialMediaButton:hover {
    background-color: rgb(255, 196, 0);
}

.socialMediaButton > a {
    text-decoration: none !important;
}

/* Computer Screen styles */
#computer-screen-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    z-index: 1000;
    display: none;
}

#dialog-header {
    position: fixed;
    top: 0px;
    right: 0px;
    width: 120px;
    height: 22px;
    background-color: #000080;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    z-index: 2000;
    border-top: 1px solid #DFDFDF;
    border-left: 1px solid #DFDFDF;
    border-right: 1px solid #000000;
    border-bottom: 1px solid #000000;
}

#exit-computer-button {
    width: 16px;
    height: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #C0C0C0;
    color: red;
    border: 1px solid #FFFFFF;
    border-right: 1px solid #848484;
    border-bottom: 1px solid #848484;
    cursor: pointer;
    font-size: 16px;
    font-family: 'Courier New', sans-serif;
    font-weight: bold;
    padding: 0;
    z-index: 2001;
}

#social-links-container {
    position: fixed;
    top: 0px;
    left: 0;
    width: 100%;
    height: 40px;
    display: flex;
    gap: 5px;
    justify-content: left;
    align-items: center;
    z-index: 1002;
    background-color: rgba(62, 98, 206, 0.7);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.link-element {
    /* position: fixed;
    top: 0px;
    left: 0;
    width: 100%; */
    height: 40px;
    padding: 0 10px;
    display: flex;
    justify-content: left;
    align-items: center;
    z-index: 1002;
    background-color: rgb(219, 219, 219) !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    font-size: 14px;
    cursor: pointer;
}

/* HN Newspaper */

#HN-exit-button {
    padding: 10px;
    margin: 0 !important;
    background-color: transparent;
    color: #a2ff84;
    border: 2px solid #a2ff84;
    cursor: pointer;
    font-size: 16px; /* Default for non-mobile */
    font-family: monospace;
    letter-spacing: 2px; /* Default for non-mobile */
    box-shadow: 0 0 15px rgba(255, 102, 0, 0.7);
    transition: all 0.3s ease;
    position: absolute;
    top: 0px;
    right: 0px;
    animation: pulse 2.5s infinite;
    max-width: 35%;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

#HN-date-panel {
    position: absolute;
    bottom: 0px;
    left: 0px;
    background-color: rgba(0, 0, 0, 0.7);
    border: 1px solid #00FFFF;
    padding: 5px 10px; /* Default for non-mobile */
    color: #00FFFF;
    font-size: 11px; /* Default for non-mobile */
}

#HN-title-panel {
    background-color: rgba(0,0,0,0.7);
    border: 2px solid #FF6600;
    padding: 5px 10px;
    margin-bottom: 10px;
    width: auto;
}

#HN-title {
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 1px;
    text-align: left;
    padding: 10px
    /* max-width: 55%; */
}

#HN-status-panel {
    background-color: rgba(0,0,0,0.7);
    border: 2px solid #ffe8d0;
    color: #ffe8d0;
    padding: 5px;
    width: auto;
}

#HN-status {
    font-size: 13px;
    letter-spacing: 1px;
    text-align: left;
}

#HN-content {
    padding: 0 10px;
    max-height: calc(100% - 200px);
    overflow-y: auto;
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: #FF6600 #000;
}

@media (max-width: 600px) {
    #HN-exit-button, #HN-title {
        font-size: 14px;
    }
    #HN-status {
        font-size: 12px;
    }
}