body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
     min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background: #466b8b;
    color: #ffffff;
    padding: 10px 0;
    text-align: center;
}

h1 {
    margin: 0;
}

.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
}

footer {
    position: relative;
    background: #222;
    color: #ffffff;
    text-align: center;
    padding: 10px 0;
}

.theme-toggle {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.theme-toggle img {
    border-radius: 50%;
    background: transparent;
    transition: transform 0.2s;
}

.theme-toggle img:hover {
    transform: scale(1.08);
}

body {
    background: #222;
    color: #eee;
    font-family: 'Fira Mono', 'Consolas', monospace;
    margin: 0;
    padding: 0;
}

.terminal {
    background: #181818;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.5);
    max-width: 600px;
    margin: 40px auto;
    padding-bottom: 16px;
}

.terminal-header {
    background: #2d2d2d;
    border-radius: 8px 8px 0 0;
    padding: 8px 12px;
    display: flex;
    align-items: center;
}

.dot {
    height: 12px;
    width: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}
.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

.terminal-title {
    margin-left: 12px;
    color: #aaa;
    font-size: 0.95em;
    letter-spacing: 1px;
}

.terminal-body {
    padding: 18px 16px;
    font-size: 1.1em;
    min-height: 120px;
}

.prompt {
    color: #00ff00;
    margin-right: 6px;
}
.terminal-input {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 8px;
    border: none;
    outline: none;
    background: transparent;
    color: inherit;
    font-size: 1em;
}
nav {
    margin: 16px 0 0 0;
    text-align: center;
    background: transparent; /* Make nav background transparent */
}

nav a {
    color: #ffffff;
    background: transparent; /* Remove button background */
    text-decoration: none;
    padding: 8px 18px;
    margin: 0 4px;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1em;
    transition: background 0.2s, color 0.2s;
    display: inline-block;
}

nav a:hover {
    background: #3c84a4;
    color: #fff;
}
main {
    flex: 1;
}
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}
/* Light mode styles */
body.light-mode {
    background: #f5f5f5;
    color: #222;
}
body.light-mode .terminal,
body.light-mode .reading-log {
    background: #fff;
    color: #222;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
body.light-mode .terminal-header {
    background: #e0e0e0;
}
body.light-mode .dot.red { background: #ff5f56; }
body.light-mode .dot.yellow { background: #ffbd2e; }
body.light-mode .dot.green { background: #27c93f; }
body.light-mode .terminal-title {
    color: #555;
}
body.light-mode .prompt {
    color: #008000;
}
body.light-mode .terminal-input {
    background: #fff;
    color: #008000;
    border-top: 1px solid #ccc;
}
body.light-mode nav a {
    color: #222;
    background: #e0e0e0;
}
body.light-mode nav a:hover {
    background: #0b0f33;
    color: #fff;
}
body.light-mode footer {
    background: #e0e0e0;
    color: #222;
}
body.light-mode .book-title {
    color: #008000;
}
body.light-mode .book-author {
    color: #555;
}
body.light-mode .book-review {
    color: #222;
}
body.light-mode .project-tile {
    background: #fff;
    color: #222;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
body.light-mode .project-title {
    color: #008000;
}
body.light-mode .project-desc {
    color: #444;
}
body.light-mode .project-link {
    color: #e8491d;
}
body.light-mode .project-link:hover {
    color: #008000;
}
.project-thumb {
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 14px;
    background: #111;
}
.book-rating {
    font-size: 1.2em;
    color: #e9db8b; /* lighter gold */
    margin-bottom: 4px;
    letter-spacing: 2px;
    user-select: none;
}
body.light-mode .book-rating {
    color: #e6b800; /* gold*/
}