@import url("https://unpkg.com/modern-css-reset@1.4.0/dist/reset.min.css");

/* Define the font */
@font-face {
  font-family: 'ApercuBold';
  src: url('/fonts/ApercuBold.otf'); /* Modern browsers */
  font-weight: normal;
  font-style: normal;
}


button, input[type="button"], input[type="submit"] {
  appearance: none;          /* Remove default styling in some browsers */
  -webkit-appearance: none;  /* Remove default styling in Safari */
  -moz-appearance: none;     /* Remove default styling in Firefox */
  background: none;          /* Remove default background */
  border: none;              /* Remove default border */
  padding: 0;                /* Remove default padding */
  margin: 0;                 /* Remove default margin */
  font: inherit;             /* Use the same font as the rest of the document */
  color: inherit;            /* Use the same text color */
  text-align: inherit;       /* Use the same text alignment */
  cursor: pointer;           /* Set cursor to pointer for better UX */
}

ul {
  margin: 0;
  padding: 0;
}

* {
  -webkit-font-smoothing: antialiased;
}

:root {
  --primary-green: #80BD1E;
  --primary-orange: #f75f5e;
  --primary-purple: #9F6ED7;
  --light-gray: #E4E4E4;
  --light-gray-2: #F5F5F5;
  --dark-gray: #5E80A8;
  --primary-dark: #0B1F3D;
  --primary-dark-2: #390821;
  --main-padding-vert: 20px;
  --main-padding-horiz: 20px;
  --main-border-radius: 6px;
  --font-size-xl: 31px;
  --font-size-lg: 21px;
  --font-size-md2: 18px;
  --font-size-md: 16px;
  --font-size-sm: 14px; /* most btns, task title, */
  --font-size-xs: 12px;
  --font-size-xxs: 10px;
  --theme-color-beige: #F0EEEC;
}
.title {
  font-size: 24px;
  color: var(--primary-dark-2);
}
body {
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings:
    "slnt" 0;
  font-size: 16px;
}
a {
  color: var(--dark-gray);
}
.flex-container {
  max-width: 725px;
  margin: auto;
  padding-left: 10px;
  padding-right: 10px;
}

ul {
  margin: 0;
  list-style: none;
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.5);
}

dialog {
  display: none;
}

dialog[open] {
  display: flex;
  border: 1px solid var(--light-gray-2);
  border-radius: 11px;
  position: fixed;
  justify-content: center;
  align-items: center;
  box-shadow: 1px 13px 29px -7px rgba(153, 147, 147, 0.5);
  animation: fade-in 0.2s ease-out;
  margin-top: auto;
}

.dialog-content {
  display: block;
  background-color: white;
  text-align: center;
}

body {
  background-color: var(--theme-color-beige);
}
header {
  margin-top: 55px;
  display: flex;
  align-items: center;
}

.header-nav {
  margin-left: auto;
}
.main {
  background-color: rgba(255,255,255, .75);
  padding: 35px;
  margin-top: 25px;
  border-radius: 7px;
}

.nav-link {
  display: flex;
  text-decoration: none;
  /* background-color: white; */
  /* border-radius: 6px; */
  padding: 7px 11px;
  font-style: italic;
  font-weight: 600;
  color: var(--primary-dark);
  /* border: 1px solid #E4E4E4; */
}
.nav-link:hover {
  text-decoration: underline;
}

.nav-link-goals-ic {
  display: flex;
  align-self: center;
  margin-right: 7px;
  height: 15px;
  width: 12px;
  background-image: url('../images/up-right-arrow.svg');
  background-size: contain;
  background-repeat: no-repeat;
  vertical-align: middle; /* Align the logo vertically with the text */
}

.nav-link-create-goal-ic {
  display: flex;
  align-self: center;
  margin-right: 7px;
  height: 15px;
  width: 12px;
  background-image: url('../images/check.svg');
  background-size: contain;
  background-repeat: no-repeat;
  vertical-align: middle; /* Align the logo vertically with the text */
}

.title {
  display: flex;
  align-items: center;
  margin: 0;
}
.title > .light{
  font-weight: 400; 
 }
.title.bold{
  font-weight: bold
}

.section-goal-description {
  position: relative;
  display: flex;
  padding-bottom: 20px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--light-gray);
}
.goal-description {
  margin-right: 100px;
}
.edit-btn {
  margin-left: auto;
  position: absolute;
  right: 0;
}

.section-date {
  display: flex;
  align-items: center;
}
.goal-date {
  display: flex;
  align-items: center;
}
.goal-date-text {
  font-size: var(--font-size-lg);
}
.goal-date-icon {
  margin-right: 5px;
}
.days-remaining {
  color: var(--primary-dark-2);
  text-decoration: underline;
  margin-left: auto;
}


/* Animation keyframes */
@keyframes fade-in {
  0% {
    opacity: 0;
    display: none;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    display: block;
    transform: translateY(0);
  }
}

@keyframes fade-out {
  0% {
    opacity: 1;
    display: block;
  }

  100% {
    opacity: 0;
    display: none;
  }
}

.font-sm {
  font-size: var(--font-size-sm);
}
.color-gray {
  color: var(--dark-gray);
}
.primary-dark-2 {
  color: var(--primary-dark-2);
}
.bold {
  font-weight: 500;
}
.primary-btn {
  background-color: #fff0ec;
  border: 3px solid #f75f5e;
  border-radius: 7px;
  font-weight: 700;
  /* box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, .25); */
  color: #f75f5e;
  text-align: center;
  font-size: var(--font-size-sm);
  padding: 8px;
}
.primary-btn:active {
  box-shadow: none;
  transform: translateY(1px);
}
.secondary-btn {
  font-family: 'ApercuBold';
    font-weight: normal;
    font-style: normal;
    background-color: #FFF;
    border: 1px solid var(--primary-dark-2);
    color: var(--primary-dark-2);
    text-align: center;
    padding: 10px 15px;
    /* font-weight: 700; */
    font-style: normal;
    border: 3px solid #2b1c1c;
    border-radius: 7px;
    text-align: center;
    font-size: var(--font-size-sm);
    padding: 8px;
}
/* .btn-outline {
  border: 1px solid var(--primary-dark-2);
} */
.btn-sm {
  /* border: 1px solid var(--light-gray);
  text-decoration: none;
  border-radius: 50px;
  font-size: var(--font-size-xs);
  padding: 3px 10px;
  color: var(--primary-black); */

  border: 1px solid #d6c6b56b;
  text-decoration: none;
  border-radius: 9px;
  font-size: var(--font-size-xs);
  padding: 5px 10px;
  color: var(--primary-black);
  box-shadow: 0 1px 2px #debea273;
}
.btn-sm:hover {
  background-color: var(--light-gray-2);
}
.rounded-100 {
  border-radius: 100%;
}
.underlined {
  text-decoration: underline;
}
input[type="text"], input[type="email"], textarea, input[type="date"], input[type="password"] {
  width: 100%;
  border: 1px solid var(--light-gray);
  padding: 8px;
  border-radius: var(--main-border-radius);
} 
label {
  margin-bottom: 6px;
  font-size: var(--font-size-sm);
  color: var(--primary-dark-2);
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  /* font-weight: 500; */
}

.underline {
  text-decoration: underline;
}
button:disabled {
  cursor: not-allowed;
}

/* CHECKBOX */

/* Hide the default checkbox */
.custom-checkbox {
  position: absolute;
  opacity: 0;
}

.checkbox-boundary {
  border: 1px solid var(--light-gray);
  border-radius: 50px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-items: center;
}

/* Style the custom checkbox container */
.custom-checkbox-label {
  border-radius: var(--main-border-radius);
  border: 1px solid var(--light-gray);
  padding: 8px;
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  font-size: 16px;
  margin: 0;
  width: 100%;
}

.custom-checkbox-label:hover {
  border-color: #bab9b9;
}
.custom-checkbox-label:hover .checkbox-boundary {
  border-color: #bab9b9;
}
/* Hide the checked SVG by default */
.custom-checkbox-label .checked {
  display: none;
}

/* Show the checked SVG when the checkbox is checked */
.custom-checkbox:checked+.custom-checkbox-label .checked {
  display: block;
  width: 100%;
}
.task-list-item .custom-checkbox:checked+.custom-checkbox-label {
  text-decoration: line-through;
}

/* Hide the unchecked SVG when the checkbox is checked */
.custom-checkbox:checked+.custom-checkbox-label .unchecked {
  display: none;
}

.mb-15 {
  margin-bottom: 15px;
}

fieldset {
  margin: 0;
  outline: 0;
  border: none;
  padding: 0;
}