
 body {
 font-family: Verdana;
 background-color: #f4f4f4;
 display: flex;
 flex-direction: column;
 align-items: center;
 background-color: beige;
 }

h2{
   font-size: 1em;
}

.calculator-display{
    width: 270px;
    background-color: darkblue;
    color: lightgrey;
    text-align: right;
    font-size: 4em;
    padding: 5px 15px;
    margin: 5px;
    border-radius: 20px;
    border: none;
    font-family: 'Consolas', monospace;
    font-weight: bold;
 }

 .calculator-container{
    width: 300px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
 }
 
 .Button{
    font-size: 4em;
    padding: 5px 5px;
    margin: 5px;
    width: calc(25% - 10px);
    box-sizing: border-box;
    border-radius: 20px;
    background-color: lightblue;
    border: none;
    font-family: 'Consolas', monospace;
    font-weight: bold;
    display: flex; /* Make the button itself a flex container */
    justify-content: center; /* Center horizontally */
    align-items: stretch;
 }

 .Button:hover {
    background-color: darkcyan;
    cursor: pointer;
 }

 #buttonResult{
    background-color: rgb(67, 136, 255);
    color: black;
    width: 140px;
 }

#buttonWrong{
    width: 140px;
    font-size: 2em;
    background-color: red;
    display: flex; /* 1. Enable flex layout */
    align-items: center; /* 2. Center items vertically */
    justify-content: center; /* 3. (Optional) Center items horizontally */
 }

 #buttonReset{ 
 }

  /* --- Player name input styles start --- */
.name-entry-box {
   background: #ffffff;
   padding: 24px; 
   border-radius: 12px;
   box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); 
   width: 100%;
   max-width: 350px; 
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: 16px;
   border: 1px solid #e0e7ff; 
}

.name-label-image {
   font-size: 1.125rem;
   font-weight: bold;
   color: #1e3a8a; 
}

.name-input-image {
   padding: 10px;
   border: 2px solid #93c5fd; 
   border-radius: 0.5rem;
   width: 100%;
   text-align: center;
   font-size: 1rem;
   outline: none;
   transition: border-color 0.2s, box-shadow 0.2s;
}

.name-input-image:focus {
   border-color: #3b82f6;
   box-shadow: 0 0 0 1px #3b82f6;
}

.start-game-button-image {
   background-color: #d1d5db; 
   color: #6b7280; 
   padding: 10px 20px;
   border-radius: 0.5rem;
   font-weight: bold;
   border: none;
   cursor: not-allowed;
   width: 100%;
   box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
   transition: background-color 0.2s, color 0.2s, transform 0.1s;
}

.start-game-button-image:not(:disabled) {
   background-color: #10b981; 
   color: white;
   cursor: pointer;
}

.start-game-button-image:not(:disabled):hover {
   background-color: #059669;
   transform: translateY(-1px);
}

.name-error-styled {
   font-size: 0.875rem; 
   color: #ef4444; 
   height: 1.2em;
}

.player-display {
   font-size: 1.1rem;
   font-weight: bold;
   color: #9333ea;
   margin-bottom: 0.5rem;
   text-align: center;
}
/* --- Player name input styles end --- */