/*
  * Prefixed by https://autoprefixer.github.io
  * PostCSS: v8.4.14,
  * Autoprefixer: v10.4.7
  * Browsers: last 4 version
*/

body {
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, Arial,
    sans-serif;
  margin: 0;
  padding: 0;
  background: #ef986e; /* fallback for old browsers */
  background: -webkit-linear-gradient(
    to right,
    #ef986e,
    #f3966b
  ); /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(
    to left,
    #ef986e,
    #f3966b
  ); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
}

body::-webkit-scrollbar {
  width: 15px; /* Adjust scrollbar width */
}

body::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.65); /* Track color */
}

body::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.75); /* Thumb color */
  border-radius: 5px; /* Thumb shape */
  transition: 0.5s;
}

body::-webkit-scrollbar-thumb:hover {
  transition: 0.5s;
  background: #000000; /* Thumb hover color */
}

#menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #21212199;
  z-index: 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

#menu {
  z-index: 2;
}

header {
  position: relative;
  padding: 10px;
}

header .logo-container {
  position: relative;
  -webkit-columns: 2;
  -moz-columns: 2;
  columns: 2;
  -webkit-column-gap: 0;
  -moz-column-gap: 0;
  column-gap: 0;
  display: inline-block;
  left: 45px;
}

header .logo-container h1 {
  position: relative;
  top: 10px;
  font-family: "lora", "Courier New", Courier, monospace;
  color: #000000;
  display: inline-block;
  padding-top: 5px;
  margin: 0;
  margin-left: 5px;
}

header .logo-container img {
  margin: 0;
  padding: 0;
  max-width: 70px;
  max-height: 70px;
}

header nav {
  position: absolute;
  top: 15px;
  right: 12px;
}

header nav ul {
  margin: 0;
  padding: 0;
  list-style-type: none;
}

header nav ul li {
  display: inline-block;
  margin: 0 10px;
}

.nav-link {
  display: inline-block;
  text-decoration: none;
  color: #333;
}

.nav-link:hover .nav-text {
  -webkit-transition: 0.25s ease-in-out;
  -o-transition: 0.25s ease-in-out;
  transition: 0.25s ease-in-out;
  text-decoration: none;
  color: #005a9c;
}

.nav-icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-right: 5px;
}

.icon-more {
  width: 35px;
  height: 35px;
  margin: 0 10px;
}

.nav-text {
  -webkit-transition: 0.25s ease-in-out;
  -o-transition: 0.25s ease-in-out;
  transition: 0.25s ease-in-out;
  vertical-align: middle;
}

#menuToggle input {
  display: block;
  width: 40px;
  height: 32px;
  position: absolute;
  top: 0;
  left: 0;
  cursor: pointer;
  opacity: 0;
  z-index: 2;
  -webkit-touch-callout: none;
}

@media screen and (max-width: 1115px) {
  header .logo-container {
    position: relative;
    -webkit-columns: 2;
    -moz-columns: 2;
    columns: 2;
    -webkit-column-gap: 0;
    -moz-column-gap: 0;
    column-gap: 0;
    display: inline-block;
    left: 25px;
  }

  #menuToggle {
    display: block;
    position: relative;
    top: 25px;
    left: -25px;
    z-index: 1;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }

  #menuToggle .hamburgers {
    display: block;
    width: 33px;
    height: 4px;
    margin-bottom: 5px;
    position: relative;
    background: #000000;
    border-radius: 3px;
    z-index: 1;
    -webkit-transform-origin: 4px 0px;
    -ms-transform-origin: 4px 0px;
    transform-origin: 4px 0px;
    -webkit-transition: background 0.5s cubic-bezier(0.77, 0.2, 0.05, 1),
      opacity 0.55s ease,
      -webkit-transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
    transition: background 0.5s cubic-bezier(0.77, 0.2, 0.05, 1),
      opacity 0.55s ease,
      -webkit-transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
    -o-transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1),
      background 0.5s cubic-bezier(0.77, 0.2, 0.05, 1), opacity 0.55s ease;
    -webkit-transition: background 0.5s cubic-bezier(0.77, 0.2, 0.05, 1),
      opacity 0.55s ease,
      -webkit-transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
    transition: background 0.5s cubic-bezier(0.77, 0.2, 0.05, 1),
      opacity 0.55s ease,
      -webkit-transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
    -webkit-transition: background 0.5s cubic-bezier(0.77, 0.2, 0.05, 1),
      opacity 0.55s ease,
      -webkit-transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
    transition: background 0.5s cubic-bezier(0.77, 0.2, 0.05, 1),
      opacity 0.55s ease,
      -webkit-transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
    transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1),
      background 0.5s cubic-bezier(0.77, 0.2, 0.05, 1), opacity 0.55s ease;
    transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1),
      background 0.5s cubic-bezier(0.77, 0.2, 0.05, 1), opacity 0.55s ease,
      -webkit-transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
  }

  #menuToggle .hamburgers:first-child {
    -webkit-transform-origin: 0% 0%;
    -ms-transform-origin: 0% 0%;
    transform-origin: 0% 0%;
  }

  #menuToggle .hamburgers:nth-last-child(2) {
    -webkit-transform-origin: 0% 100%;
    -ms-transform-origin: 0% 100%;
    transform-origin: 0% 100%;
  }

  #menuToggle input:checked ~ .hamburgers {
    opacity: 1;
    -webkit-transform: rotate(45deg) translate(-2px, -1px);
    -ms-transform: rotate(45deg) translate(-2px, -1px);
    transform: rotate(45deg) translate(-2px, -1px);
    background: #232323;
  }

  #menuToggle input:checked ~ .hamburgers:nth-last-child(3) {
    opacity: 0;
    -webkit-transform: rotate(0deg) scale(0.2, 0.2);
    -ms-transform: rotate(0deg) scale(0.2, 0.2);
    transform: rotate(0deg) scale(0.2, 0.2);
  }

  #menuToggle input:checked ~ .hamburgers:nth-last-child(2) {
    -webkit-transform: rotate(-45deg) translate(0, -1px);
    -ms-transform: rotate(-45deg) translate(0, -1px);
    transform: rotate(-45deg) translate(0, -1px);
  }

  #menu {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    position: fixed;
    width: 250px;
    max-width: 300px;
    margin: -50px 0 0 70px;
    padding: 10px;
    padding-top: 45px;
    border-radius: 10px;
    background: #f4a67d;
    list-style-type: none;
    -webkit-font-smoothing: antialiased;
    -webkit-transform-origin: top right;
    -ms-transform-origin: top right;
    transform-origin: top right;
    -webkit-transform: none;
    -ms-transform: none;
    transform: none;
    -webkit-transition: -webkit-transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
    transition: -webkit-transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
    -o-transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
    transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
    transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1),
      -webkit-transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
    transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1),
      -webkit-transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
    transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1),
      -webkit-transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
  }

  #menu li {
    display: inline-block;
    padding: 10px 0;
    font-size: 22px;
    white-space: nowrap;
  }

  #menu li {
    display: inline-block;
    margin-right: 20px;
  }

  .nav-link {
    text-decoration: none;
    color: #333;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
  }

  .nav-icon {
    width: 24px;
    margin-right: 8px;
  }

  .nav-text {
    font-size: 16px; /* Reduce text size */
  }

  .nav-link:hover {
    color: #666;
  }

  .nav-link.active {
    font-weight: bold;
  }

  #menuToggle input:checked ~ ul {
    -webkit-transform-origin: top right;
    -ms-transform-origin: top right;
    transform-origin: top right;
    -webkit-transform: translateX(-100%);
    -ms-transform: translateX(-100%);
    transform: translateX(-100%);
    -webkit-transition: -webkit-transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
    transition: -webkit-transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
    -o-transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
    transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
    transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1),
      -webkit-transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
    transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1),
      -webkit-transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
    transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1),
      -webkit-transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
  }

  #menu li:nth-last-child(1),
  #menu li:nth-last-child(2) {
    margin: 0 auto;
  }

  .icon-more {
    width: 35px;
    height: 35px;
    margin: 0 25px;
  }
}

@media screen and (min-width: 1116px) {
  #close_icon,
  .history,
  .privacy {
    display: none;
  }
}

main {
  padding: 30px;
  text-align: justify;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  background-color: #ef986e;
  color: #000000;
  border-radius: 15px; /* Add a subtle border-radius for a professional look */
  margin: 20px auto; /* Adjust margin for better spacing */
}

main h1,
main h2,
main h3,
main h4,
main h5,
main h6,
main p,
main p,
footer {
  font-family: "DM Sans", "Open Sans", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue",
    Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-style: normal;
}

main h2 {
  margin-bottom: 20px;
}

button {
  background-color: #005a9c;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  text-align: center;
  color: white;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 10px;
  cursor: pointer;
  max-width: 200px;
  overflow: hidden;
  -o-text-overflow: ellipsis;
  text-overflow: ellipsis;
  white-space: nowrap;
}

main a button {
  color: white;
}

main a button:hover {
  color: white;
  text-decoration: none;
}
main .upper {
  position: relative;
}

main .center {
  position: relative;
  top: 100%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 750px;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

main .lower {
  margin-bottom: 50px;
}

.form-container {
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}
.form-container div {
  padding-top: 20px;
  font-size: large;
  color: inherit;
}

.form-container div label {
  font-size: 22px;
}

.form-container div label {
  font-size: 22px;
}

.form-container div input {
  display: inline-block;
  width: 100%;
  max-width: 350px;
  padding: 8px 15px;
  background-color: transparent;
  border: 2px solid black;
  color: black;
  border-radius: 10px;
  margin-right: 0;
  margin-top: 15px;
}

.form-container div input::-webkit-input-placeholder {
  color: rgba(0, 0, 0, 0.5);
}

.form-container div input::-moz-placeholder {
  color: rgba(0, 0, 0, 0.5);
}

.form-container div input:-ms-input-placeholder {
  color: rgba(0, 0, 0, 0.5);
}

.form-container div input::-ms-input-placeholder {
  color: rgba(0, 0, 0, 0.5);
}

.form-container div input::placeholder {
  color: rgba(0, 0, 0, 0.5);
}

.form-container div select {
  background-color: transparent;
  border: 2px solid black;
  border-radius: 15px;
  padding: 3px 10px;
  margin: 0;
  color: #333;
  display: inline-block;
  width: 100%;
  max-width: 150px;
  overflow: hidden;
  -o-text-overflow: ellipsis;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-right: 0;
  margin-top: 15px;
}

.form-container div select option {
  font-size: 20px;
  margin: 2px;
  color: black;
  background-color: #33333369;
  text-align: center;
}

#loading-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background-color: #ef986e;
}

.progress {
  background-color: black;
  height: 100%;
  -webkit-transition: width 0.5s ease-in-out;
  -o-transition: width 0.5s ease-in-out;
  transition: width 0.5s ease-in-out;
}

.apology_text {
  font-size: 20px;
}

/* Animation for progress bar filling */
.progress.filling {
  -webkit-animation: fill-progress 1s ease-in-out forwards;
  animation: fill-progress 1s ease-in-out forwards;
}

@-webkit-keyframes fill-progress {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes fill-progress {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

/* Hide progress bar after animation */
.progress.filling.completed {
  -webkit-animation: hide-progress 0.5s ease-in-out forwards;
  animation: hide-progress 0.5s ease-in-out forwards;
}

@-webkit-keyframes hide-progress {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes hide-progress {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

/* Style for the textarea */
.form-group #addNote {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  margin: 0 5px;
  border: 1px solid #ccc;
  background-color: transparent;
  border: 2px solid black;
  color: black;
  border-radius: 5px;
  resize: none; /* Allow vertical resizing */
}

/* Optional: Add focus styles for better user interaction */
.form-group #addNote:focus {
  border-color: #000000;
  -webkit-box-shadow: 0 0 5px rgba(52, 152, 219, 0.7);
  box-shadow: 0 0 5px rgba(52, 152, 219, 0.7);
}

#addNote::-webkit-input-placeholder {
  color: rgba(0, 0, 0, 0.5);
}

#addNote::-moz-placeholder {
  color: rgba(0, 0, 0, 0.5);
}

#addNote:-ms-input-placeholder {
  color: rgba(0, 0, 0, 0.5);
}

#addNote::-ms-input-placeholder {
  color: rgba(0, 0, 0, 0.5);
}

#addNote::placeholder {
  color: rgba(0, 0, 0, 0.5);
}

.icon-card-alert {
  background-color: rgba(0, 0, 0, 0.355);
  padding: 20px;
  margin: 10px auto;
  border-radius: 5px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap; /* Allows items to wrap to the next line */
  -ms-flex-pack: distribute;
  justify-content: space-around; /* Adjust as needed */
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.icon-card-alert .icon {
  margin: 5px;
}

.relaxed-confirm-button {
  margin-right: 30px;
}

.custom-cancel-button {
  margin-left: 30px;
}

#install_app {
  opacity: 0;
  -webkit-transition: opacity 0.3s ease-in-out;
  -o-transition: opacity 0.3s ease-in-out;
  transition: opacity 0.3s ease-in-out;
  -webkit-animation: slide-in 0.5s ease-in-out forwards;
  animation: slide-in 0.5s ease-in-out forwards;
}

@-webkit-keyframes slide-in {
  from {
    opacity: 0;
    -webkit-transform: translateX(20px);
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }
}

@keyframes slide-in {
  from {
    opacity: 0;
    -webkit-transform: translateX(20px);
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }
}

/* CSS for small screens */
@media (max-width: 390px) {
  body > header > div > a > h1 {
    font-size: xx-large;
  }
}

/* CSS for large screens */
@media (min-width: 1500px) {
  header,
  main {
    max-width: 1500px;
    margin: 0 auto;
  }
}

footer {
  background-color: #333;
  color: white;
  padding: 10px;
  text-align: center;
  position: fixed;
  bottom: 0;
  width: 100%;
}

footer a {
  color: #60b8f7;
  text-decoration: none;
  font-weight: bold;
  margin: 0 5px;
  -webkit-transition: ease 0.3s;
  -o-transition: ease 0.3s;
  transition: ease 0.3s;
}

footer p {
  margin: unset;
}

footer a:hover {
  color: #0a63ac;
}
