body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0 0 80px;
    line-height: 1.6;
    color: #333;
}

header, footer {
    padding: 20px;
    background-color: #2c3e50;
    color: white;
    text-align: center;
}

footer {
    position: fixed;
    bottom: 0;
    width: 100%;
}

.gallery-container {
    max-width: 900px;
    margin: 20px auto;
    padding: 0 20px;
}

#searchInput {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    box-sizing: border-box;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.image-container {
    position: relative;
    margin: 20px 0;
    min-height: 300px;
}

#photo {
    max-width: 100%;
    height: auto;
    max-height: 500px;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

#photo:hover {
    transform: scale(1.02);
}

.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(44, 62, 80, 0.7);
    color: white;
    border: none;
    font-size: 24px;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.nav-button:hover {
    background-color: rgba(44, 62, 80, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.nav-button:first-child {
    left: 10px;
}

.nav-button:last-child {
    right: 10px;
}

.navigation, .filter-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.navigation button, .filter-buttons button {
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.navigation button:hover, .filter-buttons button:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.filter-buttons button {
    background-color: #2ecc71;
}

.filter-buttons button:hover {
    background-color: #27ae60;
}

#description, #how_to_use {
    text-align: left;
    margin: 25px 0;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

h2 {
    color: #2c3e50;
    margin-top: 30px;
}

h3 {
    color: #3498db;
    margin-top: 30px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.loading-indicator {
    display: none;
    margin: 20px 0;
    font-size: 18px;
    color: #7f8c8d;
}

@media (max-width: 768px) {
    .nav-button {
        padding: 10px 15px;
        font-size: 18px;
    }
    
    #photo {
        max-height: 300px;
    }
}