/* General container */
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.4;
}

.main-container {
    max-width: 60vw;
    margin: 0 auto;
    padding: 20px;
    background-color: white;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    min-height: 600px;  /* Ensure sufficient page height */
    max-height: 100vh;  /* Ensure container height doesn't exceed viewport */
    display: flex;
    flex-direction: column;
}

/* Main content container */
.game-content-container {
    display: flex;
    gap: 5px;
    align-items: stretch; /* Ensures logos and main content stretch vertically */
    justify-content: space-between;
    height: 100%;
}

.left-panel {
    flex: 1 1 35%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.game-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.right-panel {
    flex: 1 1 60%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Logos container */
.logos-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px; /* Add space between the logos */
    padding: 10px; /* Add padding to prevent logos from touching edges */
    flex: 0 0 50px; /* Fixed height for the logos container */
}

.logo-neah, .logo-game {
    height: 40px;  /* Keep the logos at the same height */
    width: auto;
}

/* Right panel content centering */
.right-panel-content {
    flex: 1;  /* Allow the content to fill the remaining space */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Right panel text */
.right-panel-content h1 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.right-panel-content p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

/* Button styles */
button {
    margin-bottom: 10px; /* Adds spacing between buttons */
    background-color: #4CAF50;
    color: white;
    padding: 12px 24px;
    font-size: 1.2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #388E3C;
}

/* Footer */
footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    margin-top: 10px;
}

.left-footer, .right-footer {
    display: flex;
    flex-direction: column;
}

footer p {
    margin: 5px 0;
}

.restart-button {
    margin-bottom: 10px; /* Adds spacing between buttons */
    background-color: #4CAF50;
    color: white;
    padding: 12px 24px;
    font-size: 1.2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.restart-button:hover {
    background-color: #388E3C;
}

.scores-container { 
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Align everything to the right */
    gap: 10px;
    margin-top: 10px;
}

.progress-bar-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    justify-content: flex-end; /* Ensure everything aligns to the right */
}

.progress-bar-label {
    font-size: 16px;
    font-weight: bold;
    text-align: right; /* Right-align the labels */
    margin: 0;
}

.sustainability-bar .progress-bar-label {
    color: #4caf50;
}

.security-bar .progress-bar-label {
    color: #1e88e5;
}

.equity-bar .progress-bar-label {
    color: #ffb300;
}

.progress-bar {
    width: 320px;
    height: 25px;
    background-color: #e0e0e0;
    border-radius: 15px;
    position: relative;
}

.progress {
    height: 100%;
    border-radius: 15px;
    position: absolute;
}

.sustainability-bar .progress {
    background-color: #4caf50;
}

.security-bar .progress {
    background-color: #1e88e5;
}

.equity-bar .progress {
    background-color: #ffb300;
}

.progress-bar span {
    position: absolute;
    right: 0;
    left: 0;
    top: 0;
    bottom: 0;
    line-height: 25px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.score-delta {
    font-weight: bold;
    font-size: 16px;
    min-width: 50px;
    text-align: left;
    padding-left: 10px;
}

.score-delta.positive {
    color: green;
}

.score-delta.negative {
    color: red;
}

.history-scroll {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 8px;
    margin-top: 20px;
  }

.log-card {
    background-color: rgb(255, 255, 255);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
}

.timestamp {
    display: block;
    margin-top: 10px;
    font-size: 0.9em;
} 

.history-page .left-panel {
    display: none;
}

.small-button {
    font-size: 0.9rem;
    padding: 8px 16px;
    margin: 4px 0;
    display: inline-block;
    text-align: center;
}
.review-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.button-row {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
}
.review-buttons a.ok-button {
    background-color: #4CAF50;
    color: white;
    border: none;
    text-decoration: none;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}
.review-buttons a.ok-button:hover {
    background-color: #388E3C;
}