body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
}

:root {
    --background-color: #f4f4f4;
    --text-color: #333;
    --primary-color: #58a9ca;
    --link-color: #58a9ca;
    --link-hover-color: #000000;
    --header-background-color: #58a9ca;
    --header-text-color: white;
    --card-background-color: white;
    --card-shadow-color: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    --background-color: #333;
    --text-color: #f4f4f4;
    --primary-color: #58a9ca;
    --link-color: #9ad1e8;
    --link-hover-color: #ffffff;
    --header-background-color: #58a9ca;
    --header-text-color: white;
    --card-background-color: #424242;
    --card-shadow-color: rgba(0, 0, 0, 0.5);
}

header {
    background-color: var(--header-background-color);
    color: var(--header-text-color);
    padding: 1rem;
    text-align: center;
    border-radius: 0 0 10px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

header h1 {
    margin: 0;
    cursor: pointer;
    transition: color 0.3s;
}

header h1:hover {
    color: var(--link-hover-color);
}

header .tor-link, header .email-link {
    color: var(--header-text-color);
    text-decoration: none;
    font-size: 1rem;
    margin-left: 1rem;
}

header .tor-link {
    margin-right: 1rem;
}

header .tor-link:hover, header .email-link:hover {
    text-decoration: underline;
}

#siteDescription {
    margin: 0.5rem 0;
    font-size: 1rem;
    color: var(--header-text-color);
}

.email a {
    color: white;
    text-decoration: none;
}

#email a:hover {
    text-decoration: underline;
}

nav {
    margin-top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

nav select {
    padding: 0.5rem;
    font-size: 1rem;
    border-radius: 5px;
    border: none;
}

nav #themeToggle {
    cursor: pointer;
    font-size: 1.5rem;
    margin-left: 1rem;
}

main {
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

aside {
    margin-bottom: 1rem;
}

h1, h2, h3 {
    font-size: 24px;
    line-height: 1.2;
    margin-bottom: 1rem;
}

aside h2 {
    font-size: 20px;
    line-height: 1.2;
    margin-bottom: 1rem;
}

#bookList {
    list-style-type: none;
    padding: 0;
    font-size: 16px;
}

#bookList li {
    margin: 0.5rem 0;
    font-size: inherit;
}

#bookList a {
    text-decoration: none;
    color: var(--link-color);
    font-weight: bold;
    font-size: inherit;
    border-radius: 5px;
    padding: 0.5rem;
    display: block;
    transition: background-color 0.3s, color 0.3s;
}

#bookList a:hover {
    text-decoration: underline;
    background-color: var(--link-hover-color);
    color: white;
}

#bibleText {
    background-color: var(--card-background-color);
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 0 10px var(--card-shadow-color);
    flex: 1;
    width: 100%;
}

#bibleText a {
    color: var(--link-color);
}

#bibleText a:hover {
    color: var(--link-hover-color);
}

#bookDropdown {
    display: none;
    margin-top: 1rem;
    width: 100%;
}

#bookDropdown select {
    width: 100%;
    padding: 0.5rem;
    font-size: 1rem;
    border-radius: 5px;
    border: none;
}

@media (max-width: 767px) {
    aside {
        display: none;
    }

    #bookDropdown {
        display: block;
    }
}

@media (min-width: 768px) {
    main {
        flex-direction: row;
    }

    aside {
        flex: 1;
        margin-right: 1rem;
    }

    #bibleText {
        flex: 3;
    }
}
