/* styles.css */

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f7f7f7;
}

.invisible {
  display: none;
}

/* Navigation Menu */
.menu {
  background-color: #007bff;
  color: #fff;
  padding: 5px 0;
  display: flex;
  align-items: center;
  /* justify-content: space-between; */
}

.menu ul {
  list-style: none;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  width: 100%;
}

.menu li {
  margin: 0 30px;
}

.menu a {
  text-decoration: none;
  color: #fff;
  font-weight: bold;
  transition: color 0.3s;
}

.menu a:hover {
  color: #0056b3;
}

.menu li.logo {
  margin: 0;
  margin-right: auto;
  /* Pushes the logo to the left */
}

.menu .logo img {
  height: 40px;
  /* Adjust size as necessary */
  vertical-align: middle;
  margin-left: 10px;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  margin-right: 30px;
  /* Adjust as needed */
}

.hamburger span {
  background-color: #fff;
  border-radius: 2px;
  display: block;
  height: 3px;
  margin: 5px 0;
  transition: all 0.3s ease-in-out;
  width: 25px;
}

/* Create hamburger menu */
@media (max-width: 768px) {
  .menu ul {
    align-items: flex-start;
  }

  .menu-items {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #007bff;
    margin-top: 10px;
  }

  .menu-items.active {
    display: flex;
  }

  .menu li {
    margin: 15px 0;
    text-align: center;
  }

  .hamburger {
    display: flex;
  }
}

/* Context Section */
.context-section {
  background-color: #ffffff;
  padding: 20px 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.context-section .container {
  max-width: 62%;
  margin: 0 auto;
  text-align: center;
}

.context-section h1 {
  font-size: 28px;
  color: #333;
  margin-bottom: 20px;
}

.context-section p {
  font-size: 18px;
  color: #666;
  line-height: 1.8;
  margin-bottom: 15px;
}

.context-section strong {
  color: #007bff;
  font-weight: bold;
}

@media screen and (max-width: 768px) {
  .context-section .container {
    max-width: 90%;
    /* padding: 0 15px; */
    text-align: left;
  }

  .context-section h1 {
    font-size: 24px;
  }

  .context-section p {
    font-size: 16px;
  }
}

.container {
  max-width: 55%;
  margin: 0 auto;
  padding: 20px;
  background-color: #f4f4f4;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.calc-menu {
  display: flex;
}

.calc-menu-buttons {
  flex: 1;
  padding-right: 20px;
  margin: auto;
}

.menu-btn {
  padding: 10px 20px;
  margin: 20px 10px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
  font-size: 15px;
}

.menu-btn:hover {
  background-color: #0056b3;
}

.savings-display,
.spendings-display {
  margin-bottom: 20px;
  padding: 10px;
  background-color: #f4f4f4;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin: 0px 10px 20px;
}

.savings-display {
  color: #4caf50;
}

.spendings-display {
  color: #f44336;
}

.menu-text {
  flex: 1;
  /* Take twice as much space as header */
  padding-left: 20px;
  /* Add some space between image and text */
}

.menu-img {
  /* Removed flex: 1; */
  /* max-width: 150px; */
  /* Set a fixed width for the image */
  height: auto;
  /* Allow image height to adjust proportionally */
  margin-top: 10px;
  /* Optional: Add some top margin for better alignment */
  flex: 1;
  max-height: 300px;
}

.side-image {
  /* Moved styles to a separate class for better organization */
  /* Resize image to fit container while maintaining aspect ratio */
  object-fit: cover;
  /* Keep image within container */
  max-width: 100%;
  max-height: 100%;
}

.p-container {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin: 20px auto;
  padding: 20px;
  max-width: 70%;
  color: #333333;
}

h1 {
  text-align: center;
  color: #333;
  font-size: 24px;
  margin-bottom: 20px;
}

p {
  line-height: 1.6;
  margin-bottom: 16px;
}

ol,
ul {
  margin-left: 20px;
  line-height: 1.6;
}

form {
  margin-bottom: 20px;
}

ol li {
  margin-top: 1em;
}

.form-group {
  margin-bottom: 15px;
}

label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
}

input[type="number"] {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* For menu selection */
.form-group select {
  /* Additional styles for the select element */
  padding: 5px 10px;
  /* Adjust padding for spacing within the dropdown */
  border: 1px solid #ccc;
  /* Define border style */
  /* Add rounded corners */
  border-radius: 4px;
  /* Increase width */
  /* min-width: 10%; */
  width: 8em;
  /* Match color with other labels */
  background-color: white;
}

.form-group select:focus {
  /* Styles for the select element when focused */
  outline: 1px solid #007bff;
  /* Add a blue outline on focus */
}

button {
  display: block;
  width: 100%;
  padding: 10px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}

button:hover {
  background-color: #0056b3;
}

#result {
  margin-top: 20px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #f9f9f9;
}


@media screen and (max-width: 768px) {
  .container {
    max-width: 90%;
    padding: 15px;
  }

  .p-container {
    max-width: 90%;
    padding: 15px;
  }

  h1 {
    font-size: 20px;
  }

  p {
    font-size: 16px;
  }
}

/* PLANNER PAGE: */

#myProgress {
  width: 100%;
  background-color: grey;
}

#myBar {
  width: 0%;
  height: 30px;
  background-color: #04AA6D;
  text-align: center;
  /* To center it horizontally (if you want) */
  line-height: 30px;
  /* To center it vertically */
  color: white;
}

#plus-button {
  text-align: center;
  margin-top: 20px;
}

#plus-button {
  display: inline-block;
  font-size: 36px;
  background-color: #007bff;
  color: #fff;
  text-decoration: none;
  border-radius: 50%;
  padding: 10px 15px;
  transition: background-color 0.3s;
}

.plus-button:hover {
  background-color: #0056b3;
}


/* WRONG INPUT PAGE */
.back-button {
  display: inline-block;
  padding: 10px 15px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.3s;
  margin-top: 20px;
}

.back-button:hover {
  background-color: #0056b3;
}