body {
    font-family: 'Times New Roman', Times, serif;
    margin: 0;
    padding: 0;
    background-color: #fdfdfd;
    color: #333;
}

header {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

nav ul li {
    display: inline-block;
    margin: 0 20px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-size: 1.2em;
    padding-bottom: 5px;
}

nav ul li a.active,
nav ul li a:hover {
    border-bottom: 2px solid #333;
}

/* Hamburger menu styles */
.hamburger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    margin-left: auto;
    z-index: 1000;
}

.hamburger-menu span {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile styles */
@media screen and (max-width: 768px) {
    nav {
        justify-content: space-between;
        padding: 0 20px;
    }
    
    .hamburger-menu {
        display: flex;
        position: relative;
    }
    
    nav ul {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background-color: #fdfdfd;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: left 0.3s ease;
        z-index: 999;
        box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    }
    
    nav ul.active {
        left: 0;
    }
    
    nav ul li {
        display: block;
        margin: 20px 0;
    }
    
    nav ul li a {
        font-size: 1.5em;
        padding: 10px 20px;
        display: block;
    }
}

main {
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 40px;
    text-align: center;
}

main section {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

#home h1 {
    background-image: url('home-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    padding: 60px 20px;
    border-radius: 8px;
    height: 35vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

p {
    font-size: 1.2em;
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto;
    text-align: justify;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.gallery img {
    width: 150px;
    height: 220px;
    object-fit: cover;
    border: 1px solid #ddd;
}

.links-list {
    list-style: none;
    padding: 0;
    text-align: center;
}

.links-list li {
    margin: 15px 0;
}

.links-list a {
    text-decoration: none;
    color: #333;
    font-size: 1.2em;
}

/* Modal styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    padding-top: 60px;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    text-align: left;
    position: relative;
}

.close {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#modal-body h2 {
    margin-top: 0;
}

#modal-body p {
    text-align: left;
    margin: 10px 0;
}

#modal-body .quote {
    font-style: italic;
    border-left: 3px solid #ccc;
    padding-left: 15px;
    margin-top: 15px;
}

.buy-link-container {
    text-align: center;
    margin-top: 20px;
}

.buy-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.buy-link:hover {
    background-color: #555;
    color: #fff;
}
