/* Import Google Fonts */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f0f2f5;
    margin: 0;
    padding: 0;
    text-align: center;
    color: #333;
}

/* Dashboard Styles */
#dashboard {
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#dashboard h1 {
    margin-bottom: 10px;
    color: #2c3e50;
}

#scores {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
}

#scores div {
    text-align: center;
    width: 150px;
}

#scores h3 {
    margin-bottom: 10px;
    color: #34495e;
}

.progress-container {
    position: relative;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
}

progress {
    width: 100%;
    height: 20px;
    -webkit-appearance: none;
    appearance: none;
}

progress::-webkit-progress-bar {
    background-color: #e0e0e0;
    border-radius: 10px;
}

progress::-webkit-progress-value {
    background-color: #27ae60;
    border-radius: 10px;
}

#sustainabilityScore::-webkit-progress-value {
    background-color: #27ae60;
}

#profitabilityScore::-webkit-progress-value {
    background-color: #2980b9;
}

.progress-container span {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    font-weight: bold;
    font-size: 14px;
    color: #fff;
    line-height: 20px;
}

/* Game Controls */
#gameControls {
    margin: 20px;
}

.control-button {
    padding: 12px 30px;
    font-size: 16px;
    margin: 10px;
    cursor: pointer;
    background-color: #2980b9;
    color: #fff;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.control-button:hover {
    background-color: #1f5f7a;
}

.control-button:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
}

/* Farm Map */
#farmMap {
    position: relative;
    width: 90%;
    max-width: 800px;
    height: 400px;
    margin: 20px auto;
    background-image: url('farm-background.jpg'); /* Replace with your own image */
    background-size: cover;
    background-position: center;
    border: 2px solid #bdc3c7;
    border-radius: 10px;
    overflow: hidden;
}

#farmMap h2 {
    position: absolute;
    top: 10px;
    left: 20px;
    color: #fff;
    text-shadow: 1px 1px 2px #000;
}

/* Pest Area */
#pestArea {
    position: relative;
    width: 100%;
    height: 100%;
}

.pest {
    position: absolute;
    width: 50px;
    height: 50px;
    background-image: url('pests/pest.png'); /* Replace with your own pest image */
    background-size: cover;
    cursor: pointer;
    transition: transform 0.2s;
}

.pest:hover {
    transform: scale(1.2);
}

/* Crop Status */
#cropContainer {
    margin: 20px;
}

#cropContainer h3 {
    color: #34495e;
}

#cropStatus {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

#cropStatus li {
    margin: 5px 0;
    padding: 10px;
    background-color: #ecf0f1;
    border-radius: 5px;
}

/* Decision Tracker */
#decisionTracker {
    margin: 20px;
}

#decisionTracker h3 {
    color: #34495e;
}

#choicesContainer {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.choice-image {
    width: 100px;
    height: 100px;
    margin: 10px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border: 2px solid #bdc3c7;
    border-radius: 10px;
    transition: transform 0.3s;
}

.choice-image:hover {
    transform: translateY(-5px);
}

/* Game Content */
#gameContent {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 80px; /* Add this line */
}

#gameContent h2 {
    color: #2c3e50;
}

#gameContent p {
    font-size: 18px;
    color: #555;
}

#gameContent button {
    padding: 12px 30px;
    font-size: 16px;
    margin: 10px;
    cursor: pointer;
    background-color: #27ae60;
    color: #fff;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

#gameContent button:hover {
    background-color: #1e8449;
}

/* Progress Bar */
#progressBar {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #2980b9;
    color: white;
    padding: 10px;
}

#progressBar span {
    display: block;
    font-size: 14px;
    margin-bottom: 5px;
}

#progressBar progress {
    width: 80%;
    height: 20px;
    -webkit-appearance: none;
    appearance: none;
}

#progressBar progress::-webkit-progress-bar {
    background-color: #e0e0e0;
    border-radius: 10px;
}

#progressBar progress::-webkit-progress-value {
    background-color: #27ae60;
    border-radius: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    #scores {
        flex-direction: column;
        align-items: center;
    }

    #farmMap {
        height: 300px;
    }

    #gameContent p {
        font-size: 16px;
    }

    #progressBar progress {
        width: 100%;
    }
}
