
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', monospace;
    background-color: #000;
    color: #0f0;
    overflow: hidden;
    cursor: crosshair;
}


.background-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    background-color: #222;
    overflow: hidden;
}


.parallax-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 110%;
    height: 110%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    will-change: transform;
}

.layer-1 {
    z-index: 1;
    background-image: url('images/layer1-bg.png');
}

.layer-2 {
    z-index: 2;
    background-image: url('images/layer2-trees.png');
}

.layer-3 {
    z-index: 3;
    background-image: url('images/layer3-foreground.png');
}


.adventure-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 20px;
    z-index: 4;
    pointer-events: none;
}


.house-item {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 250px;
    z-index: 5;
    transition: transform 0.3s ease;
}

.house-item:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.adventure-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    height: 100%;
}


.image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border: 3px solid #ffcc00;
    box-shadow: 0 0 10px #ffcc00;
    transition: all 0.3s ease;
}

.house-item:hover .image-container {
    transform: scale(1.05);
    box-shadow: 0 0 25px #ffcc00, 0 0 40px #ff9900;
    border-color: #ff9900;
}


.normal-image, .hover-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
    image-rendering: optimizeSpeed;
}

.hover-image {
    opacity: 0;
}

.house-item:hover .hover-image {
    opacity: 1 
}

.house-item:hover .normal-image {
    opacity: 0 
}

/* Text styling */
.item-text {
    position: absolute;
    bottom: -30px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 14px;
    color: #ffcc00;
    text-shadow: 0 0 5px #ff9900;
    opacity: 0;
    transition: opacity 0.3s ease, bottom 0.3s ease;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 5px;
    border: 1px solid #ffcc00;
}

.house-item:hover .item-text {
    opacity: 1;
    bottom: -40px;
}


.background-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 255, 0, 0.03) 50%, rgba(0, 0, 0, 0.25) 50%);
    background-size: 100% 4px;
    z-index: 20;
    pointer-events: none;
}


.background-container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 30;
    pointer-events: none;
}
/* Keyboard navigation styles */
.keyboard-container {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
    pointer-events: none;
}

.keyboard-key {
    width: 60px;
    height: 60px;
    background: linear-gradient(145deg, #f0f0f0, #d0d0d0);
    border-radius: 8px;
    box-shadow: 
        4px 4px 8px rgba(0, 0, 0, 0.5),
        -2px -2px 4px rgba(255, 255, 255, 0.8),
        inset 1px 1px 2px rgba(255, 255, 255, 0.5),
        inset -1px -1px 2px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.1s ease;
    position: relative;
    user-select: none;
    pointer-events: auto;
}

.keyboard-key:hover {
    box-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.5),
        -1px -1px 2px rgba(255, 255, 255, 0.8),
        inset 1px 1px 2px rgba(255, 255, 255, 0.5),
        inset -1px -1px 2px rgba(0, 0, 0, 0.2);
}

.keyboard-key.pressed {
    box-shadow: 
        inset 2px 2px 4px rgba(0, 0, 0, 0.5),
        inset -1px -1px 2px rgba(255, 255, 255, 0.8),
        1px 1px 2px rgba(0, 0, 0, 0.2),
        -1px -1px 2px rgba(255, 255, 255, 0.2);
    transform: translateY(2px);
}

.keyboard-key.disabled {
    box-shadow: 
        inset 2px 2px 4px rgba(0, 0, 0, 0.5),
        inset -1px -1px 2px rgba(255, 255, 255, 0.8),
        1px 1px 2px rgba(0, 0, 0, 0.2),
        -1px -1px 2px rgba(255, 255, 255, 0.2);
    transform: translateY(2px);
    opacity: 0.7;
    cursor: default;
}

.key-text {
    color: #333;
    font-weight: bold;
    font-size: 24px;
    text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.5);
    z-index: 2;
    pointer-events: none;
}

.keyboard-key:hover .key-text {
    color: #ffcc00;
    text-shadow: 0 0 5px #ffcc00;
}

.keyboard-key.pressed .key-text,
.keyboard-key.disabled .key-text {
    color: #ff9900;
    text-shadow: 0 0 8px #ff9900;
}
/* Room styles */
.room-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 1;
}

.room-content {
    position: relative;
    z-index: 5;
    color: #0f0;
    font-family: 'Courier New', monospace;
    padding: 20px;
    text-align: center;
    margin-top: 50px;
    background-color: rgba(0, 0, 0, 0.7);
    border: 1px solid #0f0;
    box-shadow: 0 0 10px #0f0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.room-content h1 {
    margin-top: 0;
}

.room-content p {
    margin-bottom: 15px;
}
.door-container {
    width: 150px;  /* Adjust based on your door width */
    height: 220px; /* Adjust based on your door height */
}