/* Body and Container */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
    margin: 0;
    padding-top: 70px; /* Adjusted for fixed header height */
}

.container {
    max-width: 800px;
    margin: auto;
    background: #fff;
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Top Bar Layout & Styles */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0; /* Vertical padding only */
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 100;
    border-bottom: 1px solid #eee;
}

.lang-dropdown-container {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    padding-right: 25px; /* Add padding to the container */
}

.top-bar-title-container {
    flex: 1;
    text-align: left;
    padding-left: 25px; /* Add padding to the container */
}

.top-bar h1 {
    font-size: 1.5em;
    margin: 0;
    color: #c00;
}

/* Language Dropdown Styles */
.lang-select {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    font-size: 14px;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23666%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 12px top 50%;
    background-size: .65em auto;
    padding-right: 30px; /* Make space for the arrow */
}

.lang-select:hover {
    border-color: #999;
}

.lang-select:focus {
    outline: none;
    border-color: #c00;
    box-shadow: 0 0 0 2px rgba(204, 0, 0, 0.2);
}

/* General Typography & Content Styles */
h2, h3 {
    color: #c00;
}

h2 {
    margin-top: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

section {
    margin-bottom: 30px;
}

article {
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 3px solid #f0f0f0;
}

p {
    margin-bottom: 10px;
}

strong {
    color: #555;
}

/* Image Styles */
.piece-images {
    margin-top: 15px;
    margin-bottom: 10px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.piece-images img {
    height: 60px;
    width: 60px;
    object-fit: contain;
}

.move-image-container {
    text-align: center;
    margin: 20px 0;
}

.move-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.image-caption {
    font-size: 0.9em;
    color: #666;
    margin-top: 8px;
}