/* G7X Page Styles */
body .header .logo a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    display: inline-block;
}

body .header .logo a:hover,
body .header .logo a:focus,
body .header .logo a:visited {
    text-decoration: none;
    color: inherit;
    opacity: 1;
}

.g7x-main {
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

/* Computer Container */
.computer-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.computer-setup {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: center;
    gap: 1rem;
}

/* Monitor */
.computer-monitor {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.monitor-screen {
    width: 400px;
    height: 300px;
    background: #0a0a0a;
    border: 8px solid #d3d3d3;
    border-radius: 4px;
    position: relative;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    transition: background 0.5s ease, box-shadow 0.5s ease;
    overflow: hidden;
}

.monitor-screen.off {
    background: #0a0a0a;
}

.monitor-screen.on {
    background: #1a1a1a;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

.monitor-screen.zoomed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    border-radius: 0;
    transform: scale(1);
    border-width: 0;
}

.monitor-base {
    width: 200px;
    height: 20px;
    background: #808080;
    border: 2px solid #666;
    margin-top: -2px;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.monitor-indicators {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: flex;
    gap: 8px;
}

.indicator {
    width: 8px;
    height: 8px;
    border: 1px solid #333;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.indicator.yellow {
    background: #ffd700;
}

.indicator.green {
    background: #00ff00;
}

.indicator.off {
    background: #333;
}

/* CPU Tower */
.computer-tower {
    width: 120px;
    height: 200px;
    background: #d3d3d3;
    border: 4px solid #999;
    position: relative;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.tower-vents {
    position: absolute;
    top: 20px;
    left: 10px;
    right: 10px;
    height: 60px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.vent-line {
    width: 100%;
    height: 3px;
    background: #666;
}

/* SD Card Slot */
.sd-slot-container {
    position: absolute;
    right: 15px;
    top: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.sd-slot-label {
    font-size: 0.5rem;
    color: var(--text-color);
    opacity: 0.7;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    white-space: nowrap;
}

.sd-slot {
    width: 40px;
    height: 6px;
    background: #0a0a0a;
    border: 2px solid #333;
    cursor: pointer;
    transition: background 0.3s ease;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.sd-slot.drag-over {
    background: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
}

.sd-slot.filled {
    background: rgba(0, 255, 0, 0.3);
}

.sd-slot-indicator {
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        90deg,
        #333 0px,
        #333 2px,
        #000 2px,
        #000 4px
    );
}

/* Keyboard and Mouse */
.computer-peripherals {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 1rem;
    justify-content: center;
}

.computer-keyboard {
    width: 300px;
    height: 20px;
    background: #d3d3d3;
    border: 3px solid #999;
    border-radius: 2px;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.computer-mouse {
    width: 40px;
    height: 25px;
    background: #d3d3d3;
    border: 3px solid #999;
    border-radius: 12px 12px 2px 2px;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

/* SD Card */
.sd-card {
    width: 50px;
    height: 40px;
    background: #333;
    border: 3px solid #666;
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    transition: transform 0.2s ease, opacity 0.3s ease;
    z-index: 100;
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
}

.sd-card::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    height: 8px;
    background: #1a1a1a;
    border: 1px solid #000;
}

.sd-card:hover {
    transform: translateX(-50%) scale(1.1);
}

.sd-card.dragging {
    cursor: grabbing;
    opacity: 0.7;
    z-index: 1000;
}

.sd-card.inserted {
    opacity: 0;
    pointer-events: none;
}

.sd-card-label {
    font-size: 0.4rem;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 15px;
    font-family: 'Courier New', monospace;
}

.screen-content {
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
}

.screen-content.active {
    display: flex;
}

/* Instructions */
.instructions {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: clamp(0.75rem, 1.25vw, 0.875rem);
    color: var(--text-color);
    opacity: 0.7;
    text-align: center;
    transition: opacity 0.3s ease;
}

.instructions.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Photo Gallery */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    width: 100%;
    max-width: 1200px;
    padding: 1rem;
}

.photo-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.photo-item:hover {
    transform: scale(1.05);
    border-color: var(--accent-color);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Lightbox for full-size photos */
.photo-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    cursor: pointer;
}

.photo-lightbox.active {
    display: flex;
}

.photo-lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border: 2px solid var(--accent-color);
}

/* Screen blink animation */
@keyframes screenBlink {
    0%, 100% {
        background: #0a0a0a;
    }
    50% {
        background: #1a1a1a;
        box-shadow: 0 0 30px rgba(0, 255, 0, 0.5);
    }
}

.monitor-screen.blinking {
    animation: screenBlink 0.3s ease-in-out 3;
}

