/* Global Styles inspired by lookatmyfuckingredtrousers.blogspot.com */
body {
    font-family: Arial, sans-serif;
    background-color: #eee;
    color: #333;
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

/* Header Styles */
header {
    background-color: #333;
    padding: 20px;
    text-align: center;
    border-bottom: 5px solid #d32f2f;
}

header h1 {
    font-size: 36px;
    color: white;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
}

nav {
    margin-top: 15px;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 20px;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    padding: 5px 10px;
    border-radius: 3px;
    transition: background-color 0.3s;
    text-transform: uppercase;
    font-weight: bold;
}

nav a:hover {
    background-color: #d32f2f;
}

nav a.active {
    background-color: #d32f2f;
}

/* Main Content Styles */
main {
    max-width: 960px;
    margin: 20px auto;
    padding: 20px;
}

section {
    margin-bottom: 30px;
}

.intro {
    background-color: white;
    padding: 20px;
    border-left: 5px solid #d32f2f;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

h2 {
    font-size: 24px;
    margin-bottom: 15px;
    text-transform: uppercase;
    color: #d32f2f;
    border-bottom: 2px solid #d32f2f;
    padding-bottom: 5px;
}

h3 {
    font-size: 20px;
    color: #333;
}

p {
    margin-bottom: 15px;
}

/* Gallery Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    overflow: hidden;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.photo-placeholder {
    height: 300px;
    overflow: hidden;
    position: relative;
}

.photo-placeholder::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,0.1));
}

.photo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item h3, .gallery-item p {
    padding: 0 15px;
}

.gallery-item h3 {
    margin-top: 15px;
    font-size: 20px;
}

.gallery-item p {
    padding-bottom: 15px;
}

/* Color-specific styles for gallery items */
.gallery-item.red {
    border-top: 5px solid #d32f2f;
}

.gallery-item.green {
    border-top: 5px solid #388e3c;
}

.gallery-item.blue {
    border-top: 5px solid #1976d2;
}

.gallery-item.yellow {
    border-top: 5px solid #fbc02d;
}

.gallery-item.purple {
    border-top: 5px solid #7b1fa2;
}

.gallery-item.orange {
    border-top: 5px solid #e64a19;
}

/* History Page Styles */
.history-page h2 {
    margin-bottom: 25px;
}

.history-section {
    background-color: white;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.history-section:nth-child(odd) {
    border-left: 5px solid #d32f2f;
}

.history-section:nth-child(even) {
    border-right: 5px solid #d32f2f;
}

.history-flex {
    display: flex;
    gap: 20px;
    align-items: center;
}

.history-flex.reverse {
    flex-direction: row-reverse;
}

.history-text {
    flex: 3;
}

.history-image {
    flex: 2;
}

.history-image img {
    width: 100%;
    border: 3px solid #eee;
}

/* Footer Styles */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px 0;
    border-top: 5px solid #d32f2f;
}

footer p {
    margin: 5px 0;
}

/* Responsive Designs */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .history-flex {
        flex-direction: column;
    }
    
    .history-flex.reverse {
        flex-direction: column;
    }
    
    .history-image {
        margin-top: 15px;
        width: 100%;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 24px;
    }
    
    nav ul {
        flex-direction: column;
        gap: 10px;
    }
    
    .history-section {
        padding: 15px;
    }
}
