/* 1. Import original Bitstream Vera Sans Mono */
@font-face {
    font-family: 'Bitstream Vera Sans Mono';
    src: url('../../fonts/VeraMono-regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Bitstream Vera Sans Mono';
    src: url('../../fonts/VeraMono-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

/* ==========================================================================
 * 1. Global Reset & Base Styles
 * ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../../Pictures/mainbg.jpg');

    /* Sizing and positioning rules */
    background-size: cover;          /* Scales image to cover the full screen */
    background-position: center;     /* Centers the image */
    background-repeat: no-repeat;    /* Prevents tiling */
    background-attachment: fixed;

    font-family: 'Bitstream Vera Sans Mono', monospace;
    line-height: 1.6;
    background-color: #f4f7f6; /* Soft, clean neutral background */
    color: #333333;

    /* Flexbox setup to center page content */
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 40px 20px;
}

/* ==========================================================================
 * 2. Header & Navigation Styles
 * ========================================================================== */
header {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: inline-block;
    margin-bottom: 24px;
    width: 100%;
    max-width: 650px; /* Mobile base width */
    text-align: center;
    position: relative;
}

header h1 {
    font-size: 2.2rem;
    color: #1a202c;
    margin-bottom: 12px;
}

.lang-btn {
    /* Desktop default: absolute, top-left of the header */
    position: absolute;
    top: 10px;
    left: 10px;
    display: inline-block;
    background-color: #007bff;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
}

/* Style the navigation links */
nav {
    font-size: 1rem;
    font-weight: normal;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 20px;
}

nav a {
    color: #4a5568;
    text-decoration: none;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 6px;
    transition: all 0.2s ease-in-out;
}

nav a:hover {
    background-color: #e2e8f0;
    color: #2b6cb0;
}

/* ==========================================================================
 * 3. Main Content Card
 * ========================================================================== */
main {
    width: 100%;
    max-width: 650px; /* Mobile base width */
    background-color: rgba(255, 255, 255, 0.7);
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
}

main h2 {
    font-size: 1.5rem;
    color: #2d3748;
    margin-bottom: 12px;
    border-bottom: 2px solid #edf2f7;
    padding-bottom: 8px;
}

main p {
    color: #4a5568;
    font-size: 1.05rem;
}

.album {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 20px auto 0 auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* ==========================================================================
 * 4. Mobile-only fixes (max-width: 699px)
 * ========================================================================== */
@media (max-width: 699px) {
    header {
        padding-top: 16px;
    }

    .lang-btn {
        position: static;
        display: inline-block;
        margin: 0 0 10px 0;
    }

    nav a {
        padding: 6px 12px;
    }
}

/* ==========================================================================
 * 5. Desktop Layout: ~95% screen width
 * ========================================================================== */
@media (min-width: 700px) {
    header,
    footer {
        width: 95%;
        max-width: 1400px;
    }

    main {
        width: 95%;
        max-width: 1400px;
    }
}

/* ==========================================================================
 * 6. Footer Styles
 * ========================================================================== */
footer {
    width: 100%;
    max-width: 650px; /* Mobile base width */
    margin-top: 24px;
    padding: 16px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
}

footer p {
    color: #4a5568;
    font-size: 0.9rem;
}
