/* style.css */

/* Basic Reset & Body */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Body styles might be overridden by theme, rely on wrapper */
body {
    font-family: sans-serif;
    color: #fff; /* Default text color */
    /* overflow: hidden; */ /* REMOVED - Allow page scroll */
    /* background-color handled by theme or wrapper */
}


/* Wrapper added by the PHP shortcode */
#deal-dynamo-plugin-wrapper {
    position: relative; /* Allow absolute positioning of children */
    width: 100%;      /* Take full width of its container (theme content area) */
    max-width: 1000px; /* Optional: Limit max width */
    height: 750px;    /* <<< SET A SPECIFIC HEIGHT (Adjust this value!) */
    margin: 20px auto; /* Optional: Center the block and add space */
    background-color: #111; /* Dark background for the game area */
    overflow: hidden; /* Hide anything spilling out of this container */
    color: #fff; /* Default text color inside wrapper */
    border: 1px solid #333; /* Optional: Subtle border */
}

/* Ensure the game UI and 3D container fill the wrapper */
#deal-dynamo-plugin-wrapper #threejs-container,
#deal-dynamo-plugin-wrapper #game-ui {
    position: absolute; /* Position relative to the wrapper */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Will fill the height set on the wrapper */
}

#deal-dynamo-plugin-wrapper #threejs-container {
    z-index: 1; /* Ensure 3D is behind UI */
}

#deal-dynamo-plugin-wrapper #game-ui {
    z-index: 2; /* Ensure UI is on top of 3D */
    background: rgba(0, 0, 0, 0.3); /* Keep overlay */
     /* Flex properties to center content vertically/horizontally */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
}


/* Screen Visibility */
.screen {
    width: 100%;
    max-width: 600px; /* Limit width of actual content within screens */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px; /* Spacing between elements within a screen */
}

.hidden {
    display: none;
}

/* Component Styling */
#brand-info {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff; /* Ensure text inside inherits white */
}

#brand-name {
    font-size: 1.8em;
    margin-bottom: 5px;
    color: #fff; /* Explicitly white */
}

#work-scope {
    font-style: italic;
    color: #fff; /* White */
}

#offer-display {
    margin-bottom: 20px;
}

/* Specific fix for "Current Offer:" heading color */
#offer-display h3 {
    color: #fff; /* Explicitly set to white */
    font-weight: normal; /* Optional: Make it less bold */
    margin-bottom: 5px; /* Optional: Adjust spacing */
}


#current-offer {
    font-size: 2.5em;
    font-weight: bold;
    color: #4CAF50; /* Green for money */
}

#brand-dialogue {
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 5px;
    min-height: 50px;
    border: 1px solid #555;
    color: #fff; /* Ensure text inside is white */
}

#player-choices {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

/* General Button Styling */
#player-choices button,
#intro-screen button,
#outcome-screen button,
#summary-screen button {
    padding: 12px 20px;
    font-size: 1em;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    background-color: #007bff;
    color: white; /* Keep button text white */
    transition: background-color 0.2s ease;
    min-width: 150px;
}

#player-choices button:hover,
#intro-screen button:hover,
#outcome-screen button:hover,
#summary-screen button:hover {
    background-color: #0056b3;
}

#player-choices button:disabled {
    background-color: #555;
    cursor: not-allowed;
}

/* Outcome Screen Specifics */
#outcome-screen {
    padding: 25px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
}

#outcome-title {
    margin-bottom: 15px;
    color: #ffc107; /* Keep Yellowish for outcome title */
}

#outcome-details {
     color: #fff; /* Ensure outcome details text is white */
     margin-bottom: 10px;
}

#outcome-feedback {
    font-style: italic;
    color: #fff; /* White */
    margin-bottom: 20px;
}

/* Mute Toggle Button Styling (Relative to Wrapper) */
#deal-dynamo-plugin-wrapper .mute-button {
     position: absolute; /* Position relative to wrapper */
     top: 15px;
     left: 15px;
     z-index: 100; /* Keep on top of game UI within wrapper */
     /* Copied styles from previous fixed version */
     padding: 8px 12px;
     font-size: 0.9em;
     cursor: pointer;
     border: 1px solid #ccc;
     border-radius: 5px;
     background-color: rgba(0, 0, 0, 0.5);
     color: #fff;
     transition: background-color 0.2s ease;
}
#deal-dynamo-plugin-wrapper .mute-button:hover {
    background-color: rgba(0, 0, 0, 0.7);
}
#deal-dynamo-plugin-wrapper .mute-button.muted {
     text-decoration: line-through;
}


/* Summary Screen Styling */
#summary-screen {
    padding: 25px;
    background: rgba(20, 20, 80, 0.7);
    border-radius: 10px;
    border: 1px solid #aaa;
    color: #fff;
}

#summary-screen h2 {
    color: #ffc107;
    margin-bottom: 20px;
}

#summary-details {
    margin: 20px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    text-align: left;
    display: inline-block;
    color: #fff;
}

#summary-details p {
    margin-bottom: 8px;
}

#summary-details span {
    font-weight: bold;
    color: #4CAF50;
}
#summary-details #summary-increase {
     color: #ffeb3b;
}


#summary-feedback {
    font-style: italic;
    color: #fff; /* White */
    margin-top: 15px;
    margin-bottom: 25px;
    max-width: 80%;
    line-height: 1.4;
}

/* Container for summary buttons */
.summary-buttons {
    display: flex; /* Arrange buttons side-by-side */
    justify-content: center; /* Center buttons */
    gap: 15px; /* Space between buttons */
    margin-top: 25px; /* Space above buttons */
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

/* Style the share button like other buttons */
#summary-screen #share-results-button {
    background-color: #28a745; /* Green color for sharing maybe? */
    /* Inherits padding, font-size etc from general button rules */
}
#summary-screen #share-results-button:hover {
    background-color: #218838; /* Darker green on hover */
}

#summary-screen #play-again {
    padding: 14px 28px;
    font-size: 1.1em;
}

/* Styling for Intro Screen Additions */
#intro-screen h1 {
    margin-bottom: 8px;
    color: #fff;
}

#intro-screen .byline {
    font-size: 0.9em;
    color: #fff; /* White */
    margin-bottom: 30px;
    font-style: italic;
}

#intro-screen .explanation {
    font-size: 1em;
    color: #fff; /* White */
    line-height: 1.5;
    max-width: 85%;
    margin-bottom: 35px;
    text-align: center;
}