@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

@font-face {
    font-family: 'Daydream';
    src: url('fonts/Daydream DEMO.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Upheaval';
    src: url('fonts/upheavtt.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Alagard';
    src: url('fonts/alagard.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

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

body {
    background-color: #000;
    color: #00ff00;
    font-family: 'Press Start 2P', monospace;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* tiled green + grid background */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Ctext x='50%25' y='50%25' dominant-baseline='central' text-anchor='middle' font-family='monospace' font-size='20' fill='%23004400'%3E%2B%3C/text%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 40px 40px;
    opacity: 0.6;
}

.content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 20px;
}

/* top title — Daydream font, lava lamp gradient */
.title {
    font-family: 'Daydream', monospace;
    font-size: clamp(1.4rem, 4vw, 2.8rem);
    text-align: center;
    line-height: 1.4;
    padding: 12px 10px;
    image-rendering: pixelated;
    letter-spacing: 4px;
    background: linear-gradient(
        180deg,
        #ff0000,
        #ff4500,
        #ff8c00,
        #ff4500,
        #ff0000
    );
    background-size: 100% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: lava 7s linear infinite;
}

@keyframes lava {
    0% { background-position: 0% 0%; }
    100% { background-position: 0% -300%; }
}

.main-area {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    padding-left: clamp(20px, 5vw, 60px);
    padding-top: clamp(10px, 2vw, 20px);
}

.sidebar {
    border: 1px solid #ffffff;
    padding: clamp(12px, 2vw, 20px);
    width: clamp(220px, 28vw, 400px);
    min-height: clamp(250px, 35vw, 500px);
    background: rgba(0, 0, 0, 0.8);
    font-family: 'Alagard', monospace;
}

.sidebar-title {
    font-family: 'Alagard', monospace;
    font-size: clamp(0.96rem, 2.16vw, 1.8rem);
    color: #ffffff;
    margin-bottom: clamp(8px, 1.5vw, 16px);
    letter-spacing: 1px;
    text-align: center;
    white-space: nowrap;
}

.sidebar-section {
    margin-bottom: clamp(8px, 1.5vw, 14px);
}

.sidebar-section h3 {
    font-family: 'Alagard', monospace;
    font-size: clamp(0.84rem, 1.8vw, 1.4rem);
    color: #ff4500;
    margin-bottom: clamp(4px, 1vw, 8px);
}

.sidebar-section ul {
    list-style: none;
    padding: 0;
}

.sidebar-section li {
    font-family: 'Alagard', monospace;
    font-size: clamp(0.72rem, 1.56vw, 1.25rem);
    color: #e0e0e0;
    padding: 3px 0;
    padding-left: 20px;
}

.sidebar-section li::before {
    content: "\2605\00a0\00a0";
    color: #ffffff;
}

.book-icon {
    width: 18px;
    height: 24px;
    vertical-align: middle;
    margin-left: 6px;
    image-rendering: pixelated;
    border: 1px solid #555;
}
