.farmContainer {
}

.field-controls {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.5rem;
}

.field {
    position: relative;
    border: 1px solid black;
    min-width: 1000px;
    min-height: 600px;
    overflow: auto;
    background-color: green;
}

.goat {
    position: absolute;
    cursor: pointer;
    z-index: 10;
}

.goat img {
    display: block;
}

.goat img.mirrored {
    transform: scaleX(-1);
}

.goat.small img { 
    width: 50px; 
}

.goat.medium img { 
    width: 100px; 
}

.goat.large img { 
    width: 150px; 
}

.tooltip {
    display: none;
    position: fixed;
    background: white;
    border: 1px solid black;
    padding: 5px;
    z-index: 1000;
    white-space: nowrap;
    pointer-events: none;
}

.goat:hover .tooltip {
    display: block;
}

.deselected {
    filter: saturate(0.1);
    z-index: 1;
    display: none;
}

.codeContainer {
    padding: 10px;
}

#queryInput {
    width: 100%;
    min-height: 100px;
    font-family: monospace;
}

.query-controls {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.start-btn {
    padding: 0.5rem 2rem;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
}

.start-btn:hover {
    background-color: #45a049;
}

.start-btn:active {
    background-color: #3d8b40;
}

.reset-btn {
    padding: 0.5rem 2rem;
    background-color: #d32f2f;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    margin-right: 0.5rem;
}

.reset-btn:hover {
    background-color: #c62828;
}

.reset-btn:active {
    background-color: #b71c1c;
}

#queryError {
    color: red;
    min-height: 20px;
    white-space: pre-wrap;
    font-family: monospace;
}

#copyError {
    margin-left: 10px;
    cursor: pointer;
}

#resultsTable {
    margin-top: 20px;
    overflow-x: auto;
}

#resultsTable table {
    border-collapse: collapse;
    width: auto;
}

#resultsTable th,
#resultsTable td {
    border: 1px solid black;
    padding: 8px;
    text-align: left;
}

#resultsTable th {
    background-color: #f0f0f0;
    font-weight: bold;
}

.resultSection {
    margin-top: 20px;
}

.allDataSection {
    margin-top: 40px;
}

#allDataContainer {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.tableWrapper {
    flex: 0 1 auto;
}

.allDataSection h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.allDataSection table {
    border-collapse: collapse;
    width: auto;
    margin-bottom: 20px;
}

.allDataSection th,
.allDataSection td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: left;
}

.allDataSection th {
    background-color: #f0f0f0;
}

.allDataSection h3 {
    margin-top: 20px;
    margin-bottom: 10px;
}

.allDataSection table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 20px;
}

.allDataSection th,
.allDataSection td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: left;
}

.allDataSection th {
    background-color: #f0f0f0;
}
