* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

body {
  background-color:F9FBE7;
  display: flex;
  flex-flow: column wrap;
  justify-content: center;
}
#header{
  background-color: FEA1A1;
}
#heading {
  height: 5%;
  width: 30%;
  font-family: "Librebaskervile";
  font-size: 40;
  text-align: center;
  font-style: bold;
  margin: 1em auto;
}

#input-section {
  width: 30%;
  height: 10%;
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  margin: 1em auto;
  column-gap: 1em;
}

#input-section * {
  height: 30px;
}

#guess-button {
  border-radius: 1.5em;
  background-color: D9D9D9;
  font-family: "Average Sans";
  font-size: 15;
  font-weight: 400;
  border-color: black;
  width:15%;
  height:40%;
}

#guess-area {
  width: 40%;
  height: 40%;
  padding-left: 1em;
  text-transform: uppercase;
}

#guess-area:focus{
  outline: 2px solid lightgreen;
}

#status {
  width: 40%;
  height: 60%;
  margin: 0 auto;
  display: flex;
  flex-flow: column wrap;
  row-gap: 1em;
  justify-content: flex-start;
  align-items: center;
}

#guess-history {
  line-height: 2em;
  margin-bottom: 1em;
  display: flex;
  flex-flow: column;
  row-gap: 1em;
}

.flex-row {
  display: flex;
  flex-flow: row wrap;
  column-gap: 1em;
}

.box {
  height: 50px;
  width: 50px;
  text-align: center;
  justify-content: center;
  align-items: center;
  border: 1px solid black;
  border-radius: 0.6em;
  font-weight: 500;
}

.green {
  background-color: rgb(171, 220, 153);
}

.yellow {
  background-color: hsl(42, 98%, 77%);
}

#color-meaning {
  font-family: "Sansation Light";
  font-size: 15;
  font-weight: 300;
  display: block;
  border: 1px solid black;
  background-color: F6FAD0;
  border-radius: 3em;
  width: 25%;
  padding: 3%;
  position: absolute;
  top: 20%;
  left:70%;
}

#color-meaning * {
  align-items: center;
  margin-bottom: 1em;
}

/* CSS for the buttons */
.top-right-container {
  position: absolute;
  top: 20px; /* Distance from the top of the page */
  right: 20px; /* Distance from the right side of the page */
  display: flex;
  gap: 10px; /* Space between the buttons */
}

button {
  background-color: #f0f0f0; /* Light grey background to match the page */
  border: 1px solid #8a8a8a; /* Slightly darker border */
  border-radius: 5px; /* Rounded corners */
  padding: 10px 15px; /* Padding for a comfortable button size */
  font-family: 'Arial', sans-serif; /* Simple, clean font */
  font-size: 16px; /* Readable font size */
  color: #333; /* Dark grey text color */
  cursor: pointer; /* Pointer cursor on hover */
  transition: background-color 0.3s, border-color 0.3s; /* Smooth transition for hover effects */
  margin-right: 10px; /* Space between buttons */
}

/* Hover effect for buttons */
button:hover {
  background-color: #d9d9d9; /* Slightly darker grey on hover */
  border-color: #707070; /* Darker border on hover */
}

/* Focus effect for accessibility */
button:focus {
  outline: none; /* Remove default outline */
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3); /* Add subtle shadow for focus */
}

/* Additional styling for Withdraw button (optional) */
button#Withdraw {
  background-color: #f8d7da; /* Light pink background for contrast */
  border-color: #d9534f; /* Matching border color */
  color: #721c24; /* Darker text color for readability */
}

/* Hover effect for Withdraw button */
button#Withdraw:hover {
  background-color: #f5c6cb; /* Slightly darker pink on hover */
  border-color: #c9302c; /* Darker border on hover */
}