* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
}

.game-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    background-color: #4CAF50;
    padding: 15px;
    border-radius: 8px;
    color: white;
}

.stats {
    display: flex;
    gap: 20px;
    font-size: 18px;
    font-weight: bold;
}

.zoo-area {
    background-color: #e8f5e9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    min-height: 300px;
}

.animal-exhibits {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}

.empty-zoo-message {
    width: 100%;
    text-align: center;
    font-size: 18px;
    color: #777;
    padding: 50px 0;
}

.animal-exhibit {
    width: 150px;
    height: 180px;
    background-color: white;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.animal-image {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.animal-name {
    margin-top: 10px;
    font-weight: bold;
    text-align: center;
}

.animal-income {
    color: green;
    font-size: 14px;
}

.shop {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
}

.shop-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 10px 20px;
    border: none;
    background-color: #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.tab-btn.active {
    background-color: #4CAF50;
    color: white;
}

.shop-items {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.shop-item {
    width: 180px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f9f9f9;
    transition: transform 0.2s;
}

.shop-item:hover {
    transform: translateY(-5px);
}

.shop-item-image {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 10px;
}

.shop-item-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.shop-item-price {
    color: #e91e63;
    margin-bottom: 10px;
    font-weight: bold;
}

.shop-item-income {
    color: green;
    font-size: 14px;
    margin-bottom: 10px;
}

.buy-btn, .view-btn {
    padding: 8px 15px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.buy-btn:hover, .view-btn:hover {
    background-color: #388E3C;
}

.buy-btn:disabled, .view-btn:disabled {
    background-color: #9E9E9E;
    cursor: not-allowed;
}

.reset-btn {
    padding: 8px 15px;
    background-color: #ff9800;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.reset-btn:hover {
    background-color: #f57c00;
}

.notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px 25px;
    border-radius: 5px;
    display: none;
    z-index: 100;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover {
    color: black;
}

.variety-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
    justify-content: center;
}

.variety-option {
    width: 170px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f9f9f9;
    cursor: pointer;
    transition: transform 0.2s;
}

.variety-option:hover {
    transform: translateY(-5px);
    background-color: #e0f7fa;
}

.variety-option.owned {
    cursor: default;
}

.variety-name {
    font-weight: bold;
    margin-bottom: 5px;
    text-align: center;
}

.variety-price {
    color: #e91e63;
    margin-bottom: 5px;
    font-weight: bold;
}

.variety-income {
    color: green;
    font-size: 14px;
    margin-bottom: 5px;
}

.variety-visitors {
    color: #2196F3;
    font-size: 14px;
}

.owned-tag {
    margin-top: 5px;
    background-color: #4CAF50;
    color: white;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
}

/* Level styles */
.level-info {
    background-color: #3f51b5;
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.level-banner {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
}

.level-bonus {
    color: #8bc34a;
    font-weight: bold;
}

.level-progress {
    position: relative;
    height: 30px;
    background-color: #283593;
    border-radius: 15px;
    overflow: hidden;
    margin: 10px 0;
}

.level-bar {
    height: 100%;
    width: 0%;
    background-color: #8bc34a;
    transition: width 0.5s ease-in-out;
}

.level-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

/* Weight class popup styles */
.weight-popup {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.weight-popup-content {
    background-color: white;
    margin: 15% auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 500px;
    text-align: center;
    position: relative;
}

.close-weight-popup {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 15px;
}

.close-weight-popup:hover {
    color: black;
}

.weight-popup-image {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin: 0 auto 15px;
    display: block;
}

.weight-class {
    font-size: 24px;
    font-weight: bold;
    margin: 10px 0;
    padding: 5px;
    border-radius: 5px;
}

.weight-class.small {
    background-color: #e3f2fd;
    color: #1565c0;
}

.weight-class.medium {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.weight-class.large {
    background-color: #fff3e0;
    color: #e65100;
}

.weight-class.enormous {
    background-color: #fbe9e7;
    color: #bf360c;
}

.weight-bonus {
    font-size: 18px;
    margin: 10px 0;
}

.continue-btn {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 15px;
}

.continue-btn:hover {
    background-color: #388E3C;
}

/* Main tab navigation */
.main-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.main-tab-btn {
    padding: 12px 25px;
    border: none;
    background-color: #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
    flex-grow: 1;
    text-align: center;
    font-size: 16px;
}

.main-tab-btn.active {
    background-color: #2196F3;
    color: white;
}

.main-tab-content {
    display: none;
}

.main-tab-content.active {
    display: block;
}

/* Decorations */
.decorations {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
}

.decoration-info {
    margin-bottom: 20px;
    font-size: 16px;
    color: #555;
}

.decoration-items {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.decoration-item {
    width: 220px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f9f9f9;
    transition: transform 0.2s;
}

.decoration-item:hover {
    transform: translateY(-5px);
}

.decoration-image {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 10px;
}

.decoration-name {
    font-weight: bold;
    margin-bottom: 5px;
    text-align: center;
}

.decoration-price {
    color: #e91e63;
    margin-bottom: 5px;
    font-weight: bold;
}

.decoration-bonus {
    color: #2196F3;
    font-size: 14px;
    margin-bottom: 10px;
    text-align: center;
}

/* Research */
.research {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
}

.research-info {
    margin-bottom: 20px;
    font-size: 16px;
    color: #555;
}

.research-categories {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.research-tab-btn {
    padding: 10px 20px;
    border: none;
    background-color: #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.research-tab-btn.active {
    background-color: #9C27B0;
    color: white;
}

.research-items {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.research-item {
    width: 250px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    background-color: #f9f9f9;
    transition: transform 0.2s;
}

.research-item:hover {
    transform: translateY(-5px);
}

.research-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.research-name {
    font-weight: bold;
    font-size: 16px;
}

.research-level {
    background-color: #9C27B0;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
}

.research-description {
    color: #555;
    font-size: 14px;
    margin-bottom: 10px;
}

.research-bonus {
    color: #2196F3;
    font-size: 14px;
    margin-bottom: 10px;
}

.research-cost {
    color: #e91e63;
    font-weight: bold;
    margin-bottom: 10px;
}

.research-progress {
    width: 100%;
    height: 10px;
    background-color: #eee;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

.research-progress-bar {
    height: 100%;
    background-color: #9C27B0;
    width: 0%;
    transition: width 0.3s;
}

.research-btn {
    padding: 8px 15px;
    background-color: #9C27B0;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.research-btn:hover {
    background-color: #7B1FA2;
}

.research-btn:disabled {
    background-color: #9E9E9E;
    cursor: not-allowed;
}

.research-maxed {
    background-color: #4CAF50;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
}

/* Special event */
.special-event {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.special-event-content {
    background-color: white;
    margin: 15% auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 500px;
    text-align: center;
    position: relative;
    border: 5px solid #FFC107;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(255, 193, 7, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0); }
}

.close-event {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 15px;
}

.close-event:hover {
    color: black;
}

#event-title {
    color: #FF5722;
    margin-bottom: 15px;
}

#event-description {
    margin-bottom: 15px;
    font-size: 16px;
}

.event-bonus {
    font-size: 18px;
    font-weight: bold;
    color: #4CAF50;
    margin-bottom: 15px;
}

.event-timer {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #FF9800;
}

.event-btn {
    padding: 10px 20px;
    background-color: #FF5722;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.event-btn:hover {
    background-color: #E64A19;
}

/* Animal enclosure styles for the enhanced zoo view */
.animal-enclosure {
    background-color: #f0f8ff;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    position: relative;
}

.enclosure-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
}

.enclosure-title {
    font-size: 18px;
    font-weight: bold;
    color: #2196F3;
}

.enclosure-stats {
    display: flex;
    gap: 15px;
    font-size: 14px;
}

.enclosure-income {
    color: green;
}

.enclosure-visitors {
    color: #FF9800;
}

.enclosure-animals {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.enclosure-decorations {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #ccc;
}

.decoration-chip {
    display: inline-block;
    background-color: #e0f7fa;
    color: #00838f;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 12px;
    margin-right: 5px;
    margin-bottom: 5px;
}