body { margin: 0; background-color: #0a0a1a; color: white; font-family: 'Courier New', Courier, monospace; overflow: hidden; }
canvas { display: block; }

kbd {
  /* Basic box model for button-like appearance */
  background: linear-gradient(-20deg, #f7f8fa 0%, #bebfc3 100%);
  border: 1px solid #c6cbd1;
  border-bottom-color: #959da5;
  border-radius: 3px;
  box-shadow: inset 0 -1px 0 #959da5;
  
  padding: 3px 5px;
  margin: 0 2px;

  font-family: monospace;
  font-size: 13px;
  color: #444d56;
  font-weight: bold;
  /* Ensure it doesn't wrap awkwardly */
  white-space: nowrap;
}

#tvVideo {
    position: absolute;
    width: 2px;
    height: 2px;
    opacity: 0;
    pointer-events: none;
    left: -9999px;
}
#info, #exitTooltip {
    position: absolute;
    top: 10px;
    width: 100%;
    text-align: center;
    z-index: 100;
    color: rgba(255, 255, 255, 0.7);
}
#interactionTooltip {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(10, 10, 26, 0.85);
    border: 1px solid #00bfff;
    padding: 15px 25px;
    border-radius: 5px;
    font-size: 18px;
    color: #00bfff;
    text-shadow: 0 0 5px #00bfff;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
    box-shadow: 0 0 10px rgba(0, 191, 255, 0.2);
}
#tvControls {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(10, 10, 26, 0.85);
    border: 1px solid #00bfff;
    padding: 10px 15px;
    border-radius: 8px;
    z-index: 101;
    box-shadow: 0 0 10px rgba(0, 191, 255, 0.2);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    gap: 15px;
}
#tvControls button {
    background-color: transparent;
    border: 1px solid #00bfff;
    color: #00bfff;
    cursor: pointer;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
}
#tvControls button:hover {
    background-color: #00bfff;
    color: #101018;
    box-shadow: 0 0 10px #00bfff;
}
#tvControls button svg {
    width: 24px;
    height: 24px;
}
#fadeOverlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0a0a1a;
    opacity: 0;
    pointer-events: none;
    z-index: 999;
    transition: opacity 0.5s ease-in-out;
}
#websiteContainer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 102;
}
#websiteFrame {
    position: absolute;
    border: 2px solid #000000;
    /* box-shadow: 0 0 20px #00bfff; */
    background-color: #000;
    /* keep the iframe's logical size at 1280x695 and scale via transform to fit the monitor */
    width: 1280px;
    height: 695px;
    transform-origin: center center;
    will-change: transform, left, top;
}
#exitTooltip {
    top: auto;
    bottom: 20px;
    color: #fff;
    background-color: rgba(0,0,0,0.5);
    padding: 10px;
    border-radius: 5px;
    display: none;
}
#splashScreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0a0a1a;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: opacity 0.8s ease-out;
}
#splashScreen h1 {
    color: #00bfff;
    font-size: 2.5em;
    text-shadow: 0 0 10px #00bfff;
    letter-spacing: 2px;
    margin-bottom: 20px;
}
#loadingBarContainer {
    width: 300px;
    height: 10px;
    border: 1px solid #00bfff;
    border-radius: 5px;
    overflow: hidden;
}
#loadingBar {
    width: 0%;
    height: 100%;
    background-color: #00bfff;
    transition: width 0.3s ease-out;
}
#mobileWelcomeScreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0a0a1a;
    z-index: 2000; /* High z-index to be on top of everything */
    display: none; /* Hidden by default */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}
.mobile-content h1 {
    color: #00bfff;
    text-shadow: 0 0 10px #00bfff;
    margin-bottom: 20px;
}
.mobile-content p {
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.8);
    max-width: 400px;
    margin: 0 auto 30px;
    line-height: 1.5;
}
.mobile-content .separator {
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.5);
}
.portfolio-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: transparent;
    border: 2px solid #00bfff;
    color: #00bfff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1em;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
}
.portfolio-button:hover {
    background-color: #00bfff;
    color: #0a0a1a;
}

/* Class to apply when on a mobile device */
body.is-mobile #mobileWelcomeScreen {
    display: flex; /* Show the welcome screen */
}
body.is-mobile canvas,
body.is-mobile #info,
body.is-mobile #interactionTooltip,
body.is-mobile #tvControls,
body.is-mobile #websiteContainer,
body.is-mobile #checklistContainer {
    display: none !important; /* Hide 3D and its UI */
}

/* Checklist Styles */
#checklistContainer {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 320px;
    background-color: rgba(10, 10, 26, 0.85);
    border: 1px solid #00bfff;
    border-radius: 8px;
    z-index: 101;
    backdrop-filter: blur(5px);
    box-shadow: 0 0 15px rgba(0, 191, 255, 0.2);
    color: #e0e0e0;
    font-family: 'Courier New', Courier, monospace;
    transition: transform 0.3s ease-in-out;
}

#checklistHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid rgba(0, 191, 255, 0.3);
}

#checklistHeader h2 {
    margin: 0;
    font-size: 16px;
    color: #00bfff;
    text-shadow: 0 0 5px #00bfff;
}

#checklistToggleBtn {
    background: transparent;
    border: 1px solid #00bfff;
    color: #00bfff;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s, color 0.3s;
}

#checklistToggleBtn:hover {
    background-color: #00bfff;
    color: #101018;
}

#checklist {
    list-style: none;
    padding: 10px 15px;
    margin: 0;
    transition: all 0.3s ease-in-out;
    max-height: 300px; /* for transition */
    overflow: hidden;
}

#checklist li {
    padding: 8px 0;
    transition: color 0.3s, text-decoration 0.3s;
}

#checklist li.completed {
    color: #6a9955;
    text-decoration: line-through;
}

#checklistContainer.hidden #checklist {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
}