@import url('https://fonts.googleapis.com/css2?family=Tiny5&display=swap');

/* main color palette */
:root {
    --c1: #d6c894;
    --c2: #b59070;
    --c3: #875d51;
    --c4: #422e31;
    --text:    #f6f2e8;
}

* { 
    box-sizing: border-box; 
}

html {
    height: 100%;
    margin: 0;
    font-family: 'Tiny5', monospace;
    color: var(--text);
}

body {
	background-color: var(--c4);
    overflow-x: hidden;
}

a { 
    text-decoration: none; 
    color: var(--text); 
}

.background {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
}

.background iframe {
    opacity: 0;
    transition: opacity 1.5s ease-in-out; /* Smooth 1.5s fade in */
}

/* This class is added by the new JS file */
.background iframe.loaded {
    opacity: 1;
}

.wrap {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    padding: 20px;           /* Changed from 28px to match streets.html */
    display: flex;
    align-items: center;     /* Changed from flex-start to center */
    justify-content: center;
}

.layout { 
    display: grid; 
    grid-template-columns: 240px 1fr; 
    gap: 24px;
}

.card {
    background: rgba(47, 35, 31, 0.75);
    border: 4px solid var(--c4);
    padding: 32px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
	width: 60%;
    min-width: 720px;
}

.sidebar { 
    display: flex; 
    flex-direction: column; 
    gap: 10px; 
}

.back { 
    background: var(--c3); 
    padding: 8px 12px; 
    color: var(--text); 
    font-size: 14px;
    border: 4px solid var(--c4);
    font-weight: 700;
    cursor: pointer;
    user-select: none;
    text-decoration: none;
    box-shadow: 0 6px 0 var(--c4);
    display: inline-block;
}

/* universal back button */
.back:hover { 
    background: var(--c2); 
    color: var(--c4); 
    transform: translateY(-4px);
    box-shadow: 0 10px 0 var(--c4);
}

.back:active {
    transform: translateY(2px);
    box-shadow: 0 4px 0 var(--c4);
}

/* universal button */
.btn, 
.place {
    border: 4px solid var(--c4);
    font-weight: 700;
    cursor: pointer;
    user-select: none;
    text-decoration: none;
    box-shadow: 0 6px 0 var(--c4);
    display: inline-block;
}

.btn:hover, 
.place:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 0 var(--c4);
}

.btn:active, 
.place:active {
    transform: translateY(2px);
    box-shadow: 0 4px 0 var(--c4);
}

.header-title { 
    font-size: 24px; 
    margin: 0; 
    padding-bottom: 4px;
}

.zone-title { 
    margin-top: 0; 
    color: var(--c1); 
    padding-bottom: 10px; 
    font-size: 28px;
}

.zone-desc { 
    font-size: 18px; 
    line-height: 1.4; 
    opacity: 0.9; 
    margin-bottom: 20px; 
}

.header-row {
	display: flex;
    align-items: center;
    margin-bottom: 24px;
    border-bottom: 2px dashed var(--c3); 
    padding-bottom: 10px;
    position: relative; 
}

.header-row .back {
    position: absolute;
    right: 0;
    top: -5px;
}
