/* --------------------------------------------------------------------------------- */ 
/* Base size */
body {
    font-size: 20px; 
}
/* --------------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------------- */ 
body {
    display: grid;
    grid-template-rows: 10% 1fr 15% 1fr 18% 15%;
    grid-template-columns: 75% 25%;
    height: 100vh; 
    margin: 0; 
}

/* For the ALOE containers */
#old-accounting-equation, #new-accounting-equation {
    display: flex;
    flex-direction: column;
    justify-content: flex-start; 
    align-items: center; 
    margin: 0;
}

.aloe-heading {
    font-size: 1.2rem;
    margin: 0.5rem 0;
}

.equation-container {
    display: flex;
    justify-content: center; 
    align-items: flex-start; 
    margin: 0;
    font-size: 1rem; 
    width: 100%;
    height: 100%;
}

.wide-column {
    width: 28%; 
    margin: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.narrow-column {
    width: 5%; 
    margin: 0;
    display: flex;
    justify-content: center; 
    align-items: center; 
    text-align: center; 
    height: 100%;
}

.wide-column .table-header, .wide-column .table-row {
    border: 1px solid black; 
    padding: 0.5rem; 
}

.table-header {
    font-weight: bold;
    margin: 0;
    text-align: center;
    height: auto; /* Dynamic height */
}

.table-row {
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: auto; /* Dynamic height */
}

/* --------------------------------------------------------------------------------- */ 

/* --------------------------------------------------------------------------------- */ 
/* Row 1: Columns 1 */
#game-heading {
    grid-row: 1;
    grid-column: 1; /* Span columns 1 and 2 */
    background-color: white;
    font-size: 2rem; /* Set text size to 2rem */
    font-weight: bold;
    color: black; /* Set text color to blue */
    display: flex; /* Use flexbox for centering */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    text-align: center; /* Align text to the center */
    /* font-family: "Ga Maamli", sans-serif; */
}
/* --------------------------------------------------------------------------------- */ 

/* --------------------------------------------------------------------------------- */ 
/* Row 1: Columns 2 */
#main-menu {
    grid-row: 1;
    grid-column: 2;
    display: flex; /* Use flexbox for centering */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    text-align: center; /* Align text to the center */
    font-size: 0.8rem;  
}
/* --------------------------------------------------------------------------------- */ 

/* --------------------------------------------------------------------------------- */ 
/* Row 2: Column 1 */
#old-accounting-equation {
    grid-row: 2;
    grid-template-columns: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
    text-align: center;
    height: 2rem;
    background-color: #FF66FF;
    padding-top: 50px;
}

/* .wide-column.aloe-label {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-content: center;
    text-align: center;
} */

.aloe-label {
    display: flex;
    justify-content: center;
    font-size: 2.5rem;
    height: 3rem;
}

/* --------------------------------------------------------------------------------- */ 

/* --------------------------------------------------------------------------------- */ 
/* Row 3: Column 1 */
#transaction {
    margin: 0 1rem;
    grid-row: 3;
    grid-column: 1;
    border: 1px solid black;
    background-color: #CCFFFF;
    display: flex; /* Enables flexbox layout */
    flex-direction: column; /* Stack children vertically */
    align-items: center; /* Center children horizontally */
    justify-content: flex-start; /* Align children to the top vertically */
    font-size: 1rem; /* Set font size for all elements inside */
}

#transaction-heading {
    font-weight: bold; /* Make text bold */
    text-decoration: underline; /* Underline the text */
    margin: 0.5rem 0; /* Set top and bottom margin, no side margins */
}

#transaction-text {
    margin: 0; /* Remove any default margins for the text */
    text-align: center; /* Center-align text */
}

/* --------------------------------------------------------------------------------- */ 

/* --------------------------------------------------------------------------------- */ 
/* Row 4: Column 1 */
#new-accounting-equation {
    grid-row: 4;
    grid-column: 1;
}

/* Styling for the input elements */
input[type="number"] {
    height: 100%;
    font-size: 1rem;
    text-align: center; /* Centers the content horizontally */
    display: flex;
    align-items: center; /* Centers the content vertically */
    justify-content: center;
    width: 90%; /* Ensures the input takes up the full width of its container */
}

/* --------------------------------------------------------------------------------- */ 

/* --------------------------------------------------------------------------------- */ 
/* Row 5: Column 1 */
#answers {
    grid-row: 5;
    grid-column: 1;
    display: flex; /* Use flexbox layout for alignment */
    justify-content: center; /* Center child divs horizontally */
    align-items: center; /* Center child divs vertically */
    width: 100%;
    height: 100%; /* Ensure parent container has a defined height */
    display: none;
}

.answers-wide-column, .answers-narrow-column {
    display: flex; /* Use flexbox for child alignment */
    justify-content: center; /* Center content horizontally */
    align-items: center; /* Center content vertically */
    font-size: 1rem; /* Set font size for the text */
    font-weight: bold;
}

.answers-wide-column {
    width: 28%; /* 28% of parent container's width */
    margin: 0; /* No margin */
    height: 60%; /* Full height of the parent container */
    border: 1pt solid black; /* Add a border */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.answers-narrow-column {
    width: 5%; /* 8% of parent container's width */
    margin: 0; /* No margin */
    height: 60%; /* Full height of the parent container */
    border: none; /* No border */
}

#correct-assets, #correct-liabilities, #correct-owners-equity {
    text-decoration: underline;
}

.item-answer {
    font-weight: normal;
}
/* --------------------------------------------------------------------------------- */ 

/* --------------------------------------------------------------------------------- */ 
/* Row 6: Column 1 */
#submit {
    grid-row: 6;
    grid-column: 1;
    display: flex; /* Centering container */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
}

#submit button {
    font-size: clamp(1rem, 2.5vw, 1.5rem); /* Dynamic text sizing */
    font-weight: bold;
    height: 90%; /* 90% of parent div height */
    width: 25%; /* 25% of parent div width */
    border: 1px solid black;
    border-radius: 0.5rem; /* Slightly rounded corners */
    cursor: pointer; /* Change cursor on hover */
    text-align: center; /* Center text horizontally */
    justify-content: center; /* Center text horizontally */
    align-items: center; /* Center text vertically */
    overflow: hidden; /* Prevent text overflow */
    white-space: wrap; /* Prevent wrapping of text */
}

#submit button:hover {
    cursor: pointer; /* Pointer cursor when hovering */
}

#submit-button {
    background-color: #0070C0; 
    color: white;
    display: flex; /* Flexbox for vertical centering */
    margin-right: 2%;
}

#next-button {
    background-color: yellow; 
    color: black;
    display: flex;
    margin-left: 2%;
    visibility: hidden;
}
/* --------------------------------------------------------------------------------- */ 

/* --------------------------------------------------------------------------------- */ 
/* Row 2: Column 2 */
#points {
    grid-row: 2;
    grid-column: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; 
    margin: 0;
    border-left: 3pt solid black;
}

#points-label {
    margin: 0.5rem 0;
    font-weight: bold;
    font-size: 1rem;
}

#score-label {
    display: flex;
    height: 50%;
    width: 50%;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: black;
    border: 1px solid black;
    border-radius: 0.5rem; /* Slightly rounded corners */
    background-color: #FF66FF; /* Match parent background */
    font-size: 3rem;
}
/* --------------------------------------------------------------------------------- */ 

/* --------------------------------------------------------------------------------- */ 
/* Row 2-5: Column 2 */
#time-left {
    grid-row: 3 / 6;
    grid-column: 2;
    border-left: 3pt solid black;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-direction: column;
    height: 100%;
}

#time-label {
    font-size: 1rem;
    font-weight: bold;
    height: auto;
}

#time-bin {
    width: 90%;
    height: 95%;
    display: flex;
    justify-content: center;
    background-color: #66FF66;
    border: 3pt solid black;
}
/* --------------------------------------------------------------------------------- */ 

/* --------------------------------------------------------------------------------- */ 
/* Row 6: Column 2 */
#time-result {
    grid-row: 6;
    grid-column: 2;
    border-left: 3pt solid black;
    display: flex;
    justify-content: center;
    align-items: center;
} 

#time-increase-display {
    font-weight: bold;
    font-size: 1.5rem; /* Still relative to the root font size */
    display: flex; /* Enable flexbox for centering text */
    justify-content: center; /* Center text horizontally */
    align-items: center; /* Center text vertically */
    height: 75%;
    width: 75%;
    background-color: #66FF66;
    color: black;   
    border-radius: 0.5rem;
    display: none;
}


/* --------------------------------------------------------------------------------- */ 
/* Rules Dialog */
#rules-dialog {
    background-color: lightgrey;
    height: 90%;
    width: 70%;
    padding-left: 1rem;
    padding-right: 1rem;
    font-size: 1rem;
    border: 3pt solid black;
    border-radius: 10px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#rules-dialog h2 {
    font-size: 1.2rem;
}

#rules-dialog li {
    margin-bottom: 1rem;
}

.light-green {
    background-color: #66FF66;
}

.pink {
    background-color: #FF66FF;
}

.red {
    background-color: red;
    color: white;
}

.light-blue {
    background-color: #CCFFFF;
}

.green {
    background-color: green;
    color: white;
}

.teal {
    background-color: #0070C0;
    color: white;
}

.yellow {
    background-color: yellow;
}

#level-label {
    width: 50px;
    margin-left: 10px;
    background-color: #66FF66;
}

.level-box {
    display: flex;
    margin-bottom: 10px;
}

.level-btn {
    width: 10rem;
    height: 3rem;
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    margin-right: 10px;
}


/* --------------------------------------------------------------------------------- */ 
/* End Game Dialog */
#endGameDialog {
    background-color: lightgrey;
    height: 80%;
    width: 30%;
    padding-left: 1rem;
    padding-right: 1rem;
    font-size: 1rem;
    border: 3pt solid black;
    border-radius: 10px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;

}

#endGameDialog h2 {
    font-size: 1.2rem;
    text-align: center;
}

#end-points {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin: 0;
}

#end-points-label {
    margin: 0.5rem 0;
    font-weight: bold;
    font-size: 1rem;
}

#end-score-label {
    display: flex;
    height: 4rem;
    width: 10rem;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: black;
    border: 1px solid black;
    border-radius: 0.5rem;
    background-color: #FF66FF;
    font-size: 3rem;
    margin-bottom: 3rem;
}

#end-game-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
}

#endGameDialog button {
    width: 10rem;
    height: 5rem;
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
}

#playAgainButton {
    margin-right: 2%
}

#closeWindowButton {
    margin-left: 2%;
}
