/* Add to the top of your CSS file */
@font-face {
    font-family: 'GB-System';
    src: url('gb-system.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'GB-Brand';
    src: url('gb-brand.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

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

body {
   background: url('yourimage.jpg') center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  font-family: 'GB-System', 'Courier New', monospace;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.gameboy-wrapper {
    position: relative;
    width: 542px;
    height: 893px;
    display: flex;
    filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.5));
}

.gameboy-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 30; /* Highest z-index - sits on top of everything */
    pointer-events: none;
}

/* Power LED Indicator */
.power-led {
    position: absolute;
    top: 200px;
    left: 73px;
    width: 15px;
    height: 15px;
    background: #333;
    border-radius: 50%;
    z-index: 35; /* Higher than frame to remain visible */
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}

.power-led.on {
    background: #ff0000;
    box-shadow: 0 0 10px #ff0000, 0 0 20px rgba(255, 0, 0, 0.7);
}

/* Power Switch - Updated to tubular pill shape */
.power-switch {
    position: absolute;
    top: 22px;
    left: 100px;
    width: 40px;
    height: 18px;
    background: #333;
    border-radius: 9px;
    z-index: 35; /* Higher than frame to remain clickable */
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.power-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 12px;
    height: 12px;
    background: #ccc;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.power-switch.on .power-slider {
    left: 25px;
}

.screen-area {
    position: absolute;
    top: 249px;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 281px; /* Adjusted to fit within the transparent window */
    height: 257px; /* 10:9 aspect ratio (280 ÷ 10 × 9 = 252) */
    z-index: 10; /* Lower than frame - behind the bezel */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.photo-display {
    width: 100%;
    height: 100%;
    background: #000;
    overflow: hidden;
    position: relative;
    border: 4px solid #000; /* Slightly thinner border to fit better */
    border-radius: 2px;
    /* Initial state - no glow */
    box-shadow: 0 0 0 rgba(143, 188, 15, 0);
    transition: all 0.8s ease; /* Transition for border color too */
}

/* Enhanced glow effect when powered on */
.photo-display.powered-on {
    background: #0f380f;
    border: 4px solid #8bac0f; /* Green border when powered on */
    /* Adjusted glow to fit within screen bounds */
    box-shadow: 
        0 0 15px rgba(143, 188, 15, 0.8),
        0 0 30px rgba(143, 188, 15, 0.5),
        0 0 45px rgba(143, 188, 15, 0.3);
}

/* CRT effect with GameBoy's authentic 59.7Hz refresh rate */
.crt-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.03) 50%,
        rgba(0, 0, 0, 0.1) 50%
    );
    background-size: 100% 3px;
    z-index: 2;
    pointer-events: none;
    opacity: 0.7;
}

/* Authentic GameBoy refresh rate - 59.7Hz (16.78ms per frame) */
@keyframes scanline {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 0 100%;
    }
}

.photo-display.powered-on .crt-effect {
    animation: scanline 0.516s linear infinite; /* Matches 59.7Hz exactly */
}

/* Subtle screen flicker to emulate GameBoy's imperfect display */
@keyframes screen-flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.98; }
}

.photo-display.powered-on {
    animation: screen-flicker 2s infinite;
}

/* Add a subtle pulse to the glow for more dynamism */
@keyframes glow-pulse {
    0%, 100% { 
        box-shadow: 
            0 0 15px rgba(143, 188, 15, 0.8),
            0 0 30px rgba(143, 188, 15, 0.5),
            0 0 45px rgba(143, 188, 15, 0.3);
    }
    50% { 
        box-shadow: 
            0 0 20px rgba(143, 188, 15, 0.9),
            0 0 40px rgba(143, 188, 15, 0.6),
            0 0 60px rgba(143, 188, 15, 0.4);
    }
}

.photo-display.powered-on {
    animation: 
        screen-flicker 2s infinite,
        glow-pulse 4s ease-in-out infinite;
}

/* Add a subtle vignette effect for more authenticity */
.photo-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        ellipse at center,
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,0.3) 70%,
        rgba(0,0,0,0.5) 100%
    );
    pointer-events: none;
    z-index: 1;
    opacity: 0.4;
}

.photo-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.current-photo {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Fill screen while maintaining aspect ratio */
    /* Removed image-rendering: pixelated for photos */
}

/* Apply pixelation only to menu/boot screens */
.menu-screen,
.boot-screen {
    image-rendering: pixelated;
}

.btn {
    position: absolute;
    cursor: pointer;
    z-index: 35; /* Higher than frame to remain clickable */
    border-radius: 50%;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.btn:hover {
    opacity: 0.8;
}

.d-pad-up {
    top: 545px;
    left: 105px;
    width: 40px;
    height: 40px;
}

.d-pad-down {
    top: 630px;
    left: 105px;
    width: 40px;
    height: 40px;
}

.d-pad-left {
    top: 590px;
    left: 60px;
    width: 40px;
    height: 40px;
}

.d-pad-right {
    top: 588px;
    left: 153px;
    width: 40px;
    height: 40px;
}

/* Larger circular hitboxes for A and B buttons */
.btn-a {
    top: 540px;
    right: 50px;
    width: 60px;
    height: 60px;
}

.btn-b {
    top: 583px;
    right: 145px;
    width: 75px;
    height: 75px;
}

.start-btn {
    top: 680px;
    right: 250px;
    width: 50px;
    height: 20px;
    border-radius: 10px;
}

.select-btn {
    top: 680px;
    right: 360px;
    width: 50px;
    height: 20px;
    border-radius: 10px;
}

.photo-thumbnails {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border: 3px solid #2c2c2c;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.2s ease;
    position: relative;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: pixelated; /* Keep pixelation for thumbnails */
}

.thumbnail:hover {
    border-color: #ff5e5e;
    transform: translateY(-5px);
}

.cartridge-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 10px;
    text-align: center;
    padding: 2px;
}

/* Tutorial Sidebar */
.tutorial-sidebar {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 200px;
    background: #8bac0f;
    border: 3px solid #2c2c2c;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    font-family: 'GB-System', 'Courier New', monospace;
    z-index: 40; /* Highest of all to sit above everything */
}

.tutorial-header {
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    color: #0f380f;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 2px solid #0f380f;
    font-family: 'GB-Brand', 'Courier New', monospace;
}

.tutorial-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tutorial-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tutorial-icon {
    background: #0f380f;
    color: #8bac0f;
    padding: 4px 6px;
    border-radius: 4px;
    font-size: 12px;
    min-width: 40px;
    text-align: center;
    font-weight: bold;
}

.tutorial-text {
    font-size: 12px;
    color: #0f380f;
    line-height: 1.3;
}

.tutorial-footer {
    text-align: center;
    font-size: 10px;
    color: #0f380f;
    margin-top: 15px;
    padding-top: 5px;
    border-top: 1px solid #0f380f;
    font-style: italic;
}

/* Responsive design for mobile */
@media (max-width: 1024px) {
    .tutorial-sidebar {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        width: 100%;
        max-width: 300px;
        margin: 0 auto 20px auto;
    }
    
    body {
        padding: 20px;
    }
}

/* External glow effect that follows screen outline - MOVED TO TOP LAYER */
.glow-container {
    position: absolute;
    top: 249px; /* Adjusted to match screen-area position */
    left: 50%;
    transform: translate(-50%, -50%);
    width: 289px; /* Matches screen size + border (281 + 4 + 4) */
    height: 265px; /* Matches screen size + border (257 + 4 + 4) */
    z-index: 45; /* Increased to highest layer - above everything */
    pointer-events: none;
    border-radius: 2px;
    overflow: hidden;
}

.external-glow {
    width: 100%;
    height: 100%;
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.8s ease;
    box-shadow: 
        0 0 30px rgba(143, 188, 15, 0.7),
        0 0 60px rgba(143, 188, 15, 0.5),
        0 0 90px rgba(143, 188, 15, 0.3);
}

.external-glow.active {
    opacity: 1;
}

/* Camera view styles */
.camera-view {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #0f380f;
    z-index: 15;
}

.camera-view.active {
    display: flex;
}

#webcam-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

#pixel-canvas {
    width: 100%;
    height: 100%;
    image-rendering: pixelated;
    display: block;
}

.camera-hint {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 10px;
    color: #8bac0f;
    background: rgba(15, 56, 15, 0.8);
    padding: 4px;
    font-family: 'GB-System', 'Courier New', monospace;
}

/* Add CRT effect to camera view */
.camera-view .crt-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.03) 50%,
        rgba(0, 0, 0, 0.1) 50%
    );
    background-size: 100% 3px;
    z-index: 2;
    pointer-events: none;
    opacity: 0.7;
    animation: scanline 0.516s linear infinite;
}

/* Add LCD pixel effect to camera */
.camera-view::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.1) 1px, transparent 1px);
    background-size: 4px 4px;
    pointer-events: none;
    z-index: 3;
}

/* Gallery view styles */
.gallery-view {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    background: #0f380f;
    z-index: 15;
    padding: 10px;
    overflow: hidden;
}

.gallery-view.active {
    display: flex;
}

.gallery-header {
    text-align: center;
    font-size: 16px;
    color: #8bac0f;
    font-weight: bold;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #8bac0f;
    font-family: 'GB-Brand', 'Courier New', monospace;
}

.gallery-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    overflow-y: auto;
    max-height: 180px;
}

.gallery-thumbnail {
    width: 100%;
    height: 50px;
    background: #306230;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    position: relative;
    padding: 4px;
    border: 2px solid #0f380f;
}

.gallery-thumbnail.selected {
    border: 2px solid #8bac0f;
    background: #8bac0f;
}

.gallery-thumbnail img {
    width: 42px;
    height: 42px;
    object-fit: cover;
    image-rendering: pixelated;
    margin-right: 8px;
}

.gallery-thumbnail.empty {
    background: #1a4d1a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8bac0f;
    font-size: 12px;
}

.photo-info {
    font-size: 10px;
    color: #8bac0f;
}

.gallery-hint {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 10px;
    color: #8bac0f;
    background: rgba(15, 56, 15, 0.8);
    padding: 4px;
    font-family: 'GB-System', 'Courier New', monospace;
}

/* Boot Menu styles */
.boot-menu {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 15px 10px;
    background: #0f380f;
    font-family: 'GB-System', 'Courier New', monospace;
    color: #9bbc0f;
    image-rendering: pixelated;
    z-index: 25;
}

.boot-menu.active {
    display: flex;
}

.menu-header {
    text-align: center;
    margin-bottom: 15px;
}

.menu-title {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 2px;
    text-shadow: 2px 2px 0 #306230;
    font-family: 'GB-Brand', 'Courier New', monospace;
}

.menu-subtitle {
    font-size: 16px;
    letter-spacing: 1px;
    margin-top: 5px;
    font-family: 'GB-Brand', 'Courier New', monospace;
}

.menu-options {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.menu-option {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: #306230;
    border: 2px solid #0f380f;
    cursor: pointer;
    transition: all 0.2s ease;
}

.menu-option.selected {
    background: #8bac0f;
    color: #0f380f;
    border-color: #9bbc0f;
}

.option-icon {
    margin-right: 10px;
    font-size: 14px;
}

.option-text {
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 1px;
}

.menu-footer {
    margin-top: 10px;
    font-size: 10px;
    text-align: center;
    color: #8bac0f;
}

.menu-hint {
    padding: 4px 8px;
    background: #306230;
    border: 1px solid #0f380f;
}

/* Options view styles */
.options-view {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    background: #0f380f;
    z-index: 15;
    padding: 15px;
}

.options-view.active {
    display: flex;
}

.options-header {
    text-align: center;
    font-size: 18px;
    color: #8bac0f;
    font-weight: bold;
    margin-bottom: 20px;
    padding-bottom: 5px;
    border-bottom: 1px solid #8bac0f;
    font-family: 'GB-Brand', 'Courier New', monospace;
}

.options-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
    justify-content: center;
}

.option-control {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: #306230;
    border: 2px solid #0f380f;
    transition: all 0.2s ease;
}

.option-control.selected {
    background: #8bac0f;
    border-color: #9bbc0f;
}

.option-label {
    font-size: 14px;
    color: #8bac0f;
    font-weight: bold;
    width: 80px;
}

.option-control.selected .option-label {
    color: #0f380f;
}

.option-slider {
    flex: 1;
    height: 12px;
    background: #0f380f;
    border: 2px solid #0f380f;
    position: relative;
    cursor: pointer;
}

.slider-track {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #8bac0f;
}

.slider-handle {
    position: absolute;
    top: -4px;
    width: 20px;
    height: 20px;
    background: #8bac0f;
    border: 2px solid #0f380f;
    border-radius: 50%;
    cursor: pointer;
}

#volume-handle {
    left: 70%;
}

#contrast-handle {
    left: 50%;
}

.option-value {
    font-size: 12px;
    color: #8bac0f;
    width: 40px;
    text-align: right;
}

.option-control.selected .option-value {
    color: #0f380f;
}

.options-footer {
    margin-top: auto;
    text-align: center;
}

.options-hint {
    font-size: 10px;
    color: #8bac0f;
    background: rgba(15, 56, 15, 0.8);
    padding: 4px;
    font-family: 'GB-System', 'Courier New', monospace;
}

/* Add game-specific menu styles */
.cartridge-menu {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 15px 10px;
    background: #0f380f;
    font-family: 'GB-System', 'Courier New', monospace;
    color: #9bbc0f;
    image-rendering: pixelated;
    z-index: 25;
}

.cartridge-menu.active {
    display: flex;
}

/* Add dark state styles */
.photo-display.cold-state {
    background: #000 !important;
    border: 4px solid #000 !important;
    box-shadow: 0 0 0 rgba(143, 188, 15, 0) !important;
    animation: none !important;
}

.photo-display.cold-state .crt-effect {
    animation: none !important;
    opacity: 0 !important;
}

/* Camera contrast indicator */
.camera-contrast-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(15, 56, 15, 0.8);
    color: #8bac0f;
    padding: 4px 8px;
    font-size: 10px;
    font-family: 'GB-System', 'Courier New', monospace;
    z-index: 20;
    border: 1px solid #8bac0f;
}

/* Photo review screen */
.photo-review-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0f380f;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 25;
}

.review-photo-container {
    width: 90%;
    height: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border: 2px solid #8bac0f;
}

#review-photo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: pixelated;
}

.review-controls {
    margin-top: 10px;
}

.review-hint {
    font-size: 10px;
    color: #8bac0f;
    background: rgba(15, 56, 15, 0.8);
    padding: 4px;
    font-family: 'GB-System', 'Courier New', monospace;
}

/* Ensure the canvas takes up the full camera view */
#pixel-canvas {
    width: 100%;
    height: 100%;
    image-rendering: pixelated;
    display: block;
}

/* Hide the video element - we only want to show the processed canvas */
#webcam-video {
    display: none;
}

/* Guestbook Styles */
.guestbook-sidebar {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 250px;
    background: #8bac0f;
    border: 3px solid #2c2c2c;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    font-family: 'GB-System', 'Courier New', monospace;
    z-index: 40;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
}

.guestbook-header {
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    color: #0f380f;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 2px solid #0f380f;
    font-family: 'GB-Brand', 'Courier New', monospace;
}

.guestbook-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

#guest-name, #guest-message, #guest-photo-select {
    background: #0f380f;
    border: 2px solid #306230;
    color: #8bac0f;
    padding: 6px;
    font-family: 'GB-System', 'Courier New', monospace;
    font-size: 12px;
}

#guest-name::placeholder, #guest-message::placeholder {
    color: #8bac0f;
    opacity: 0.7;
}

#guest-message {
    height: 60px;
    resize: none;
}

#guestbook-submit {
    background: #0f380f;
    color: #8bac0f;
    border: 2px solid #306230;
    padding: 8px;
    cursor: pointer;
    font-family: 'GB-System', 'Courier New', monospace;
    font-weight: bold;
}

#guestbook-submit:hover {
    background: #306230;
}

.guestbook-entries {
    flex: 1;
    overflow-y: auto;
    border-top: 2px solid #0f380f;
    padding-top: 10px;
}

.guestbook-entry {
    background: #0f380f;
    border: 2px solid #306230;
    margin-bottom: 10px;
    padding: 8px;
    color: #8bac0f;
}

.guestbook-entry-header {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 12px;
}

.guestbook-entry-message {
    margin-bottom: 8px;
    font-size: 11px;
    line-height: 1.3;
}

.guestbook-entry-photo {
    width: 100%;
    image-rendering: pixelated;
    border: 1px solid #8bac0f;
}

.guestbook-empty {
    text-align: center;
    font-size: 11px;
    color: #0f380f;
    padding: 10px;
}

/* Responsive design for mobile */
@media (max-width: 1024px) {
    .guestbook-sidebar {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        width: 100%;
        max-width: 300px;
        margin: 20px auto;
        max-height: 300px;
    }
}
/* Guestbook selected photo */
.guestbook-selected-photo {
    margin-bottom: 10px;
    text-align: center;
}

.guestbook-selected-thumb {
    width: 80px;
    height: 80px;
    image-rendering: pixelated;
    border: 2px solid #306230;
    margin-top: 5px;
}

/* Guestbook form elements */
.guestbook-photo-selector {
    margin-bottom: 10px;
}

.guestbook-select-hint {
    font-size: 11px;
    color: #0f380f;
    margin-bottom: 5px;
    text-align: center;
}

#open-gallery-for-guestbook, #change-guestbook-photo {
    background: #0f380f;
    color: #8bac0f;
    border: 2px solid #306230;
    padding: 6px;
    cursor: pointer;
    font-family: 'GB-System', 'Courier New', monospace;
    font-size: 11px;
    width: 100%;
}

#open-gallery-for-guestbook:hover, #change-guestbook-photo:hover {
    background: #306230;
}

/* Guestbook selected photo */
.guestbook-selected-photo {
    margin-bottom: 10px;
    text-align: center;
    font-size: 11px;
    color: #0f380f;
}

.guestbook-selected-thumb {
    width: 80px;
    height: 80px;
    image-rendering: pixelated;
    border: 2px solid #306230;
    margin-top: 5px;
}

/* Guestbook form elements */
.guestbook-photo-selector {
    margin-bottom: 10px;
}

.guestbook-select-hint {
    font-size: 11px;
    color: #0f380f;
    margin-bottom: 5px;
    text-align: center;
}

#open-gallery-for-guestbook, #change-guestbook-photo {
    background: #0f380f;
    color: #8bac0f;
    border: 2px solid #306230;
    padding: 6px;
    cursor: pointer;
    font-family: 'GB-System', 'Courier New', monospace;
    font-size: 11px;
    width: 100%;
    margin-top: 5px;
}

#open-gallery-for-guestbook:hover, #change-guestbook-photo:hover {
    background: #306230;
}

/* Gallery hint styling for guestbook mode */
.gallery-hint.guestbook-mode {
    color: #8bac0f;
    background: rgba(15, 56, 15, 0.9);
}

.guestbook-entries-container {
    margin-top: 15px;
    border-top: 2px solid #0f380f;
    padding-top: 10px;
    max-height: 300px;
    overflow-y: auto;
}