/* The following styles are for the container of the game and general styles */
*,
*::before,
*::after {
  box-sizing: border-box;
}


.main-container {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  margin: 0 auto;
  border-radius: 15px;
  text-align: center;
  border: 0.5rem ridge black;
  background-color: seashell;
  outline: 0.5rem ridge lightgray; 
  overflow: hidden;
  width: 100%;
}

.notification-bar {
  display: flex;
  background: black;
  width: 100%;
  color: white;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  flex: 0 0 auto;
}

.logo {
  margin: 0;
}

.score {
  margin: 0;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.hide {
  display: none !important;
  pointer-events: none;
  opacity: 0;
}

/* The following styles are for the structure of the pages */
.welcome-page {
  position: relative;
  width: 50vh;
  /* height: calc(100% - 50px); */
  height:65vh !important;
  z-index: 1;
  padding: 10px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
}

.main-page {
  position: relative;
  width: 50vh;
  height: calc(100% - 50px);
  /* height:65vh !important; */
  z-index: 1;
  padding: 10px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
}

.instruction-page,
#end-screen {
  position: relative;
  width: 100%;
  height: calc(100% - 50px);
  z-index: 1;
  padding: 10px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
}

.welcome-page::before,
.main-page::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.8;
  z-index: -1;
}

/* The following styles are for the welcome page */
.welcome-page{
  align-items: center;
  color: white;
}
.welcome-page::before {
  background-image: url("https://www.myfili.com/wp-content/uploads/2025/08/welcome-image.png");
}

.game-title{
  color: rgb(9, 74, 194);
  font-size: 2em;
}

.welcome-page h2 {
  position: absolute;
  top: 10%;
  width: 100%;
  text-align: center;
  margin: 0;
}

.welcome-page p {
  position: absolute;
  top: 20%;
  width: 90%;
  text-align: center;
  font-size: 14px;
  margin: 0;
}

/* The following styles are for the instruction page */
.how-to-play {
  border: 2px solid #434242; 
  padding: 1em;
  border-radius: 10px;
  background-color: rgba(250, 247, 247, 0.609); 
  max-width: 80%;
  margin: 1em auto;
  list-style-position: inside; 
}

/* The following styles are for the main page */

.main-page::before {
  background-image: url("images/clipboard.svg");
  background-color: #FAF8F5;
}

.main-page {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.nav {
  flex: 0 0 auto;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1.5rem 1rem 1.5rem;
  width: 100%;
  z-index: 5;
}

.progress-bar {
  width: 90%;
  background-color: #eee;
  height: 20px;
  border-radius: 5px;
  overflow: hidden;
  margin: 0 auto;
}

.bar {
  height: 100%;
  width: 0%;
  background-color: #2E588D;
  transition: width 0.3s ease;
}

.first-row {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.budget {
  text-align: center;
  font-size: 1.5em;
}

/* The following styles are for the activities */
.activites {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 0 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.row {
  background-color: white;
  border-radius: 8px;
  padding: 10px;
  border: 1px solid lightgray;
  text-align: center;
  width: 100%;
}

.choice-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.choice {
  flex: 1 1 45%;
  max-width: 140px;
  min-width: 100px;
  padding: 10px 5px 5px 0px;
  background-color: #f7f7f7;
  border-radius: 10px;
  border: 1px solid lightgray;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

input[type="number"] {
  padding: 5px;
  margin-top: 5px;
  max-width: 15%;
}

.button-selected {
  border: 3px solid #2E588D;
}

/* The following styles are for the buttons */
.start-button {
  font-size: 1.5em;
  font-weight: bold;
  background-color: #499F36;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 500px;
  cursor: pointer;
  font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
  align-self: center;
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
}

.game-button {
  font-size: 1.5em;
  font-weight: bold;
  background-color: #499F36;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 500px;
  cursor: pointer;
  font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
  align-self: center;
}

.game-button:hover {
  background-color: #66B957;
  transform: scale(1.05);
}

.game-button-active {
  transform: scale(0.95);
}



img {
  max-width: 100%;
  height: auto;
  display: block;
}

.end-screen-title{
  font-size: 32px;
  color: rgb(163, 13, 13);
  text-shadow: 2px 2px #ed6a13;
}

#final-img{
display: block;       
  max-width: 300px;    
  width: 100%;          
  height: auto;         
  margin: 0 auto; 
}