*,
*::before,
*::after {
  box-sizing: border-box;
}


body {
  font-family: 'Trebuchet MS', Arial, sans-serif;
  margin: 5px;
  padding: 5px;
  /*background-color: rgba(223, 210, 20, 0.5); */
  background-color: #f4f6f8;
}

.container {
  max-width: 550px;
  padding: 20px;
  margin: 0 auto;
  border-radius: 5px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
  background-color: #ffffff; /* Alternative Color*/

}

h1 {
  text-align: center;
  color: rgb(255, 255, 255);
  font-size: 2rem;
}

.balance-box {
  border: 1px solid #eeeceb;
  background-color: #00000056;
  padding: 5px;
  border-radius: 3px;
  margin-bottom: 10px;
  width: 40%;
  text-align: center;
  color: white;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}

.bal-container {
  display: flex;
  justify-content: space-between;
}

form {
  display: grid;
  grid-gap: 10px;
  color: white;
}

label {
  font-weight: bold;
}

input[type="text"],
input[type="number"],
input[type="date"],
select {
/*  width: calc(100% - 20px); */
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}


.link-container {
  display: flex;
  justify-content: center;
  gap: 15px;

}




.link-container .Budget_Planner,
.link-container .todaysread {
  color: #ffffff;
  text-align: center;
  text-decoration: none;

}

.link-container .mini_games {
  color: #e1f012;
  text-align: center;
  text-decoration: none;
  background-color: black;
  padding: 3px;
  border-radius: 2px;
}

 .link-container .todaysread:hover,
 .link-container .Budget_Planner:hover,
 .link-container .mini_games:hover {
  text-decoration: underline;
}


input[type="submit"],
button[type="button"] {
  /*width: calc(100% - 3px); */
  padding: 10px;
  color: #fff;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: bold;
  /*  background: linear-gradient(to bottom, #d16c44, #c91a1a);*/

  background: linear-gradient(135deg, #d16c44, #c91a1a);




  transition: 0.3s ease-in;
}



input[type="submit"]:hover,
button[type="button"]:hover {
  transform: scale(1.02);
  transition: all 0.3s ease;
  background: linear-gradient(135deg, #f7b88c, #b23e2a);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}




.past-expenses-btn {
  display: block;
 /* width: calc(100% - 3px); */
  padding: 10px;
  /*color: #af7a28; */
  border: none;
  color: rgba(0, 0, 0, 0.877);
  border-radius: 3px;
  cursor: pointer;
  text-align: center;
  background-color: #ffffff;
  font-weight: bold;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
  width: 100%;
  
}

.past-expenses-btn:hover {
  background-color: #dfd9d9;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}


.button-wrapper {
  position: relative;
  width: 100%;
}

.settings-button-wrapper2 {
  position: relative;
  width: 100%;


}



#settingsButton {
  position: absolute;
  border: none;
  top: -19px;
  right: -19px;
  background-color: rgba(0, 0, 0, 0.815);
  color: white;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 3px;
}





#toggleButton {
  position: absolute;
  border: none;
  top: -19px;
  left: -19px;
  background-color: rgba(0, 0, 0, 0.815);
  color: white;
  padding: 5px 10px;
}



#toggleButton.locked {
  background-color: rgba(255, 0, 0, 0.822);
  padding: 1px;

  color: white;
}

#toggleButton.unlocked {
  background-color: rgba(0, 128, 0, 0.801);
  padding: 1px;

  color: white;
}



.awesome-month {
  text-decoration: dashed;
  display: block;
  text-align: center;
  color: white;
  background-color: rgb(52, 54, 47);
  transition: background-color 0.3s ease;
}

.awesome-month:hover {
  background-color: black;
}


#success-message {
  display: none;
  text-align: center;
  color: rgb(238, 238, 238);
}


@media (max-width: 768px) {

    body {
    padding: 0;
  }


  .bal-container {
    flex-direction: row;
    gap: 5px;
  }

  .link-container {
    gap: 10px;
  }

  .link-container .Budget_Planner,
  .link-container .todaysread {
    font-size: 14px;
  }


  .link-container .mini_games {
    font-size: 14px;
    padding: 0;
  }

}