@import url('https://fonts.googleapis.com/css2?family=Leon+Sans:wght@400;700&display=swap');

body {
    font-family: 'Leon Sans', sans-serif;
    background-color: #000052;
    color: #e8e8e8;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.container {
    border: 3px solid #e8e8e8;
    border-radius: 15px;
    padding: 20px;
    margin: 20px;
    max-width: 800px;
    width: 90%;
}

.banner {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 20px;
}

h1, h2 {
    color: #27FF00;
    text-align: center;
}

button {
    background-color: #33EEBB;
    color: #000052;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #449DDD;
}

#gameScreen, #endScreen {
    display: none;
}

.score-dashboard {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.bar-container {
    width: 30px;
    height: 150px;
    border: 2px solid #e8e8e8;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.bar {
    width: 100%;
    position: absolute;
    bottom: 0;
    transition: height 0.5s, background-color 0.5s;
}

.funding-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.funding-category {
    width: 30%;
    margin-bottom: 20px;
}

.funding-category h3 {
    color: #27FF00;
    text-align: center;
}

.funding-button-container {
    margin-bottom: 10px;
}

.funding-button {
    width: 100%;
    margin-top: 5px;
    position: relative;
}

.funding-meter {
    width: 100%;
    height: 5px;
    background-color: #e8e8e8;
    border-radius: 2px;
    overflow: hidden;
}

.funding-level {
    height: 100%;
    background-color: #27FF00;
    transition: width 0.3s;
}

.budget-container {
    border: 2px solid #27FF00;
    border-radius: 10px;
    padding: 10px;
    display: flex;
    align-items: center;
    transition: transform 0.3s;
}

.budget-container i {
    margin-right: 10px;
    color: #27FF00;
}

@keyframes cha-ching {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.cha-ching {
    animation: cha-ching 0.5s;
}

.synergy-container {
    border: 2px solid #27FF00;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 20px;
    background-color: rgba(39, 255, 0, 0.1);
}

.synergy-item {
    margin-bottom: 10px;
}

.synergy-item h4 {
    color: #27FF00;
    margin: 0 0 5px 0;
}

.synergy-item p {
    margin: 0 0 5px 0;
}

.synergy-item button {
    background-color: #33EEBB;
    color: #000052;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.synergy-item button:hover {
    background-color: #449DDD;
}

.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #000052;
    border: 3px solid #e8e8e8;
    border-radius: 15px;
    padding: 20px;
    z-index: 100;
    max-width: 80%;
    max-height: 80%;
    overflow-y: auto;
}

#synergy-indicator {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    font-size: 24px;
    color: #FFD700;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.synergy-hint {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: #FFD700;
    color: #000052;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

.logo-container {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 10px;
}

.logo {
    max-width: 150px;
    height: auto;
}

footer {
    text-align: center;
    padding: 10px 0;
    font-size: 8pt;
    color: #e8e8e8;
}

@media (max-width: 600px) {
    .funding-category {
        width: 100%;
    }
}
