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

body {
    font-family: 'Courier New', monospace;
    color: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
    background-color: #31B5FC;
    position: relative;
}

body::before {
    display: none;
}

.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    position: relative;
    z-index: 2;
    font-family: 'Courier New', monospace;
}

.nav-link:hover {
    color: #31B5FC;
}

.content-overlay {
    position: relative;
    z-index: 2;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
    gap: 1rem;
}

h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 0;
    /*text-shadow: 2px 2px 4px rgba(0,0,0,0.2);*/
    font-family: 'Rubik', sans-serif;
    letter-spacing: -0.02em;
    color: #000000;
    position: relative;
    z-index: 3;
}

.subtitle {
    font-size: 1.7rem;
    max-width: 600px;
    /*color: #F22929;
    font-family: 'Permanent Marker', cursive; */
    position: relative;
    z-index: 3;
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    h1 {
        font-size: 3rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }
}

@media (max-width: 1148px) {
    .content-overlay {
        padding: 0 1rem;
    }
    
    .subtitle {
        font-size: 1.3rem;
        max-width: 100%;
    }
}

.about-section {
    position: relative;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 6rem 2rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #31B5FC;
    font-family: 'Courier New', monospace;
}

.about-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    font-family: 'Courier New', monospace;
}

/* Add smooth scrolling to the page */
html {
    scroll-behavior: smooth;
}

.contact-section {
    position: relative;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 6rem 2rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-content h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #31B5FC;
    font-family: 'Courier New', monospace;
}

.contact-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    font-family: 'Courier New', monospace;
}

.contact-link {
    color: #31B5FC;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #ffffff;
}

.copyright {
    position: relative;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 1rem;
    text-align: center;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #ffffff;
}

.writing-section {
    position: relative;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 6rem 2rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.writing-content {
    max-width: 800px;
    margin: 0 auto;
}

.writing-content h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #31B5FC;
    font-family: 'Courier New', monospace;
}

.writing-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    font-family: 'Courier New', monospace;
}

.substack-widget {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 600px;
    margin: 30px auto 0;
    padding: 0 2rem;
}

.substack-widget iframe {
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background: white;
}

.submarine-image {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.submarine-image img {
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 80%;
    height: auto;
    object-fit: cover;

}

.book-covers-container {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.book-cover {
    text-align: center;
}

.book-cover img {
    max-width: 200px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.book-cover img:hover {
    transform: scale(1.05);
}

.book-log-section {
    position: relative;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 7rem 2rem 4rem;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.book-log-content {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.book-log-title {
    font-size: 2.5rem;
    /*margin-bottom: 1.1rem;*/
    color: #31B5FC;
    font-family: 'Courier New', monospace;
}

.book-log-intro {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
    font-family: 'Courier New', monospace;
}

.book-notes-header {
    max-width: 720px;
    margin: 0 auto 0.75rem;
}

.book-notes {
    max-width: 720px;
    margin: 0 auto 2rem;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    line-height: 1.9;
}

.book-notes h2 {
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    color: #31B5FC;
}

.book-notes p {
    margin-bottom: 1rem;
}

.book-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.1rem;
    margin-top: 0.36rem;
}

.book-meta-item {
    display: flex;
    flex-direction: column;
    min-width: 120px;
}

.book-meta-label {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #aaaaaa;
}

.book-meta-value {
    font-family: 'Rubik', sans-serif;
    font-size: 1.05rem;
    font-weight: 500;
    color: #ffffff;
}

.book-notes-separator {
    max-width: 720px;
    margin: 0.5rem auto 2rem;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.book-tags {
    max-width: 720px;
    margin: 2rem auto 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.book-tags-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #cccccc;
}

.book-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.6rem;
}

.book-tag {
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    background-color: rgba(49, 181, 252, 0.1);
    border: 1px solid rgba(49, 181, 252, 0.6);
    color: #ffffff;
}

.book-related {
    max-width: 720px;
    margin: 2.5rem auto 0;
    font-family: 'Courier New', monospace;
}

.book-related-title {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #cccccc;
}

.book-related-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.book-related-list li + li {
    margin-top: 0.35rem;
}

.book-related a {
    color: #31B5FC;
    text-decoration: none;
}

.book-related a:hover {
    text-decoration: underline;
}

.book-log-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
    margin-bottom: 1rem;
}

.book-log-search-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.book-log-search-label {
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    color: #cccccc;
}

.book-log-search-input {
    flex: 1 1 220px;
    max-width: 320px;
    padding: 0.45rem 0.6rem;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
}

.book-log-search-input::placeholder {
    color: #777777;
}

.book-log-search-input:focus {
    outline: none;
    border-color: #31B5FC;
    box-shadow: 0 0 0 1px rgba(49, 181, 252, 0.4);
}

.book-log-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.book-log-filter-label {
    color: #cccccc;
    margin-right: 0.25rem;
}

.book-log-filter-option {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
}

.book-log-filter-option input[type="checkbox"] {
    accent-color: #31B5FC;
}

.book-log-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.book-log-table {
    width: 100%;
    border-collapse: collapse;
    background-color: rgba(0, 0, 0, 0.9);
    border-radius: 4px;
    overflow: hidden;
    font-family: 'Courier New', monospace;
}

.book-log-table th,
.book-log-table td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
    font-size: 0.95rem;
}

.book-log-table th {
    background-color: rgba(49, 181, 252, 0.15);
    color: #31B5FC;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
}

.book-log-table th.sortable {
    cursor: pointer;
    user-select: none;
}

.book-log-table th.sort-asc::after,
.book-log-table th.sort-desc::after {
    content: '';
    display: inline-block;
    margin-left: 0.5rem;
    border: 4px solid transparent;
}

.book-log-table th.sort-asc::after {
    border-bottom-color: #31B5FC;
}

.book-log-table th.sort-desc::after {
    border-top-color: #31B5FC;
}

.book-log-table tr:nth-child(even) td {
    background-color: rgba(255, 255, 255, 0.03);
}

.book-log-table tr:hover td {
    background-color: rgba(49, 181, 252, 0.15);
}

.book-thought-link {
    color: #31B5FC;
    text-decoration: none;
}

.book-thought-link:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .book-log-section {
        padding: 6rem 1rem 3rem;
    }

    .book-log-controls {
        align-items: stretch;
    }

    .book-log-title {
        font-size: 2rem;
    }

    .book-log-table th,
    .book-log-table td {
        padding: 0.7rem 0.6rem;
        font-size: 0.85rem;
    }
}
