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

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

body {
    font-family: 'MainFont', Arial, sans-serif;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #fafafa;
    color: #333;
}

body.home-page {
    position: relative;
}

/* Background image only for home page */
body.home-page::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: url('/images/book-1-2024.jpg');
    background-size: cover;
    background-position: 100% 0%;
    opacity: 0.6;
}

strong {
    font-weight: 250;
    color: #000000;
    text-shadow: 0.5px 0 0 currentColor;
}

p {
    margin-bottom: 1.5em;
}

#banner {
    background-color: #f5f5f5;
    padding: 20px 0;
    width: 100%;
    box-sizing: border-box;
}

#banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

#banner h1 {
    margin: 0;
    font-size: 2.5em;
}

#banner p {
    margin: 5px 0 0;
    font-size: 1.2em;
}

#main-content {
    display: flex;
    flex-grow: 1;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

#menu {
    width: 200px;
    background-color: #f5f5f5;
    padding: 20px;
    box-sizing: border-box;
}

#menu ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

#menu li {
    margin-bottom: 10px;
}

#menu a {
    text-decoration: none;
    color: #333;
}

#menu a:hover {
    text-decoration: underline;
}

#content {
    flex-grow: 1;
    padding: 20px;
    box-sizing: border-box;
    max-width: 800px;
    margin-left: 20px;
}

#content p {
    text-align: justify;
}

h1, h2 {
    color: #000;
}

/* Footer styles */
#footer {
    background-color: #f5f5f5;
    padding: 20px 0;
    width: 100%;
    text-align: center;
    margin-top: auto;
}

#footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-item {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.social-icons {
    display: flex;
    justify-content: flex-start;
    gap: 15px;
}

.footer-item a {
    text-decoration: none;
    color: #333;
    font-size: 1.1em;
}

.social-icons a img {
    width: 24px;
    height: 24px;
    vertical-align: middle;
}

.footer-item a:hover,
.social-icons a:hover {
    opacity: 0.8;
}

#copyright {
    font-size: 0.9em;
    color: #666;
    margin-top: 20px;
}

form {
    max-width: 500px;
    margin: 0 auto;
}

label {
    display: block;
    margin-top: 20px;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

textarea {
    height: 150px;
}

button[type="submit"] {
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: 20px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button[type="submit"]:hover {
    background-color: #444;
}

/* Responsive styles */
@media (max-width: 1200px) {
    #main-content {
        flex-direction: column;
    }

    #menu {
        width: 100%;
    }

    #content {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 1024px) {
    body.home-page::before {
        display: none; /* Remove background image for mobile */
    }
}

@media (max-width: 600px) {
    #banner h1 {
        font-size: 2em;
    }

    #banner p {
        font-size: 1em;
    }

    #footer-content {
        flex-direction: column;
        gap: 15px;
    }

    .footer-item {
        justify-content: center;
    }

    .social-icons {
        justify-content: center;
    }
}