/* 
   All colors and fonts are CSS variables, to be set by another CSS file
   based on config.py selections. This file only uses those variables.
*/

html, body {
    margin: 0;
    padding: 0;
    background: var(--background-color);
    color: var(--foreground-color);
    font-family: var(--font-fam-body);
    min-height: 100vh;
}

header {
    background: var(--accent-color);
    color: var(--background-color);
    font-family: var(--font-fam-headers);
    padding: 0.5rem 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon {
    filter: invert(var(--logo-invert, 0));
    transition: filter 0.2s;
}

img {
    height: 40px;
    margin-right: 0.5rem;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
    width: 100%;
    height: auto;
}

.logo-icon {
    width: 10vw; 
    max-width: 100px; 
    height: auto;
    display: block; 
    margin: 0 auto;
}

.club-name {
    margin-top: 0.5rem;
    font-size: 1.3rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.nav-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 1rem;
}

main {
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    width: 100%;
}

hr {
    border: none;
    border-top: 2px solid #ccc;
    margin: 1rem 0;
    width: 80%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.content {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    display: flex; 
    flex-direction: column;     
    align-items: center;
    justify-content: center;
}

.current-book-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.book-details {
    box-sizing: border-box;
    text-align: left;
    padding: 0 3rem;
    margin: 0 auto;
    width: 100%;
    max-width: 400px;
    align-self: stretch;
}

.author {
    font-size: 0.9em;
    color: var(--secondary-color);
    font-style: normal;
    margin-left: 0.5em;
}

.counts {
    font-size: 0.9em;
    color: var(--secondary-color);
    font-style: italic;
    margin-left: auto;
    padding-left: 2vw;
}

.content ul {
    list-style: none; 
    text-align: left;
    word-wrap: break-word; 
    overflow-wrap: break-word;
}

.next-meeting p {
    margin: 0.5rem auto;
    padding: 0; 
}

.schedule li {
    margin: 0.5rem 0;
    padding: 0;
}

.history li {
    margin: 0.25rem 0;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: left;
}

section {
    margin-bottom: 0rem;
}

h2 {
    margin-top: 4vh;
    margin-bottom: 0;
    color: var(--accent-color);
    font-family: var(--font-fam-headers);
    line-height: 0.5;
}

.current-book h2 {
    margin-bottom: 3vh;
}

.next-meeting h2 {
    margin-bottom: 2vh;
}

a {
    color: var(--foreground-color);
    text-decoration: none;
    transition: color 0.2s;
}

.book-cover {
    width: 60vw;
    max-width: 175px;
    height: auto;
    box-shadow: 2px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

a:hover {
    color: var(--accent-color);
}

.voting {
    margin: 1rem 0;
}

.vote-link {
    display: inline-block;
    padding: 0.5em;
    background: var(--accent-color);
    color: var(--background-color);
    font-family: var(--font-fam-headers);
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 0;
    align-items: center;
    justify-content: center;
}

.vote-link:hover {
    opacity: 0.85;
}

@media (max-width: 600px) {
    main {
        padding: 0 0.5rem;
    }
    .nav-row {
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 1rem;
    }
    .book-cover {
        max-width: 150px;
    }
    .logo-icon {
        width: 15vw;
    }
}

@media (max-width: 480px) {
    .book-cover {
        max-width: 120px;
    }
    .logo-icon {
        width: 20vw;
    }
}