* {
  box-sizing: border-box;
}

body {
  padding: 0;
  margin: 0;
  font: 14px "Lucida Grande", Helvetica, Arial, sans-serif;
  text-align: center;
  height: 100vh;
}

a {
  color: white;
  text-decoration: none;
}

nav > a {
  font-size: 1.2rem;
}

nav > a:hover {
  color: #079cff;
}

.nav-item:not(:first-child) {
  margin-top: 1rem;
}

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

ul {
  padding: 0;
}

.navbar {
  justify-content: flex-start;
  gap: 3%;
  padding-left: 25px;
  padding-right: 25px;
}

/* Navbar Media Queries */
@media (min-width: 768px) {
  #alt-navbar {
    display: none;
  }
}

@media (max-width: 768px) {
  #main-navbar {
    display: none;
  }

  .offcanvas.offcanvas-end {
    --bs-offcanvas-width: 40vw;
  }
}

/* Landing Page Styles */

li > h5, .btn-outline-dark {
  font-size: clamp(1rem, 1.5vw, 1.5rem);
}

.form-group > p {
  text-align: center;
}

.align-center {
  justify-self: center;
  align-self: end;
}

.align-steps {
  justify-self: center;
  align-self: center;
}

.ctr-content {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
}

.content-container {
  padding: 80px 0;
}

.justify-end {
  justify-self: center;
  align-self: center;
}

.form-group {
  text-align: left;
}

.input-margin {
  margin-top: 20px;
}

.btn {
  margin: 20px auto;
  width: 100%;
}

.instruction-grid {
  display: grid;
  grid-template-columns: 10% 90%;
  grid-gap: 20px;
  padding: 2% 5%;
  margin: 0;
}

.remove-text-decoration {
  text-decoration: none;
  color: var(--bs-body-color);
}

.google-logo {
  width: 25px;
  object-fit: auto;
  margin-right: 10px;
}

#user-log-in {
  display: flex;
  flex-direction: column;
  width: clamp(300px, 75vw, 600px);
  background-color: #f2f2f2;
  padding: 20px;
  border-radius: 10px;
  box-shadow: #242121 0px 0px 10px;
}

/* Tasks Index Page Styles */
.margin-left {
  margin-left: auto;
}

ul > li {
  list-style: none;
  margin-bottom: 10px;
  text-align: left;
}

.btn {
  margin: 5px auto;
}

.btn-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-flex > .btn, 
.card-body > a,
.btn-danger {
  width: 80%;
}

.btn-close {
  background-color: lightgrey;
}

.card-body {
  background-color: rgb(255, 255, 255);
  border: 3px solid white;
}

.justify-start {
  justify-self: start;
}

.justify-card {
  justify-self: end;
}

.card-body > a {
  background-color: black;
  border: 1px solid black;
}

.card-body > a:hover {
  background-color: rgb(82, 82, 82);
}

.card-text {
  font-size: 1.5rem;
}

.span2 {
  grid-column: 1 / span 2;
}

.btn-grid {
  margin: 20px auto;
  width: 40%;
  display: grid;
  grid-template-columns: 35% 65%;
  grid-template-rows: 1fr;
  gap: 20px;
  justify-content: start;
  align-content: start;
}

.task-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: auto;
}

.max-w-75 {
  max-width: 75%;
  margin: 50px auto;
}

#avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  margin-right: 5px;
}

#task-listing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(3, 1fr);
  column-gap: 10px;
  margin: 30px auto;
  align-content: center;
  align-items: center;
  justify-content: center;
  justify-items: center;
  width: 50vw;
  max-width: 600px;
}

#task-listing > li {
  width: 100%;
}

#notes-bg {
  width: 50vw;
  max-width: 600px;
  background-color: #f2f2f2;
  margin: 0 auto;
  padding: 20px;
}

#notes-heading {
  font-size: 2.5rem;
  font-style: italic;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  #task-listing {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 75%;
  }

  #notes-bg {
    width: 75%;
  }
}

/* New Tasks Form Styles */

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: minmax(0, auto);
  column-gap: 25px;
  row-gap: 35px;
  align-items: end;
  margin-top: 10%;
}

.grid > input[type="date"] {
  grid-column: 1 / 3;  
}

.grid-span {
  grid-row: 3;
  grid-column: 1 / 3;
}

.task-margin {
  margin-top: 10px;
}

#new-tasks-form>.form-group {
  margin-top: 10px;
}

#new-nav {
  justify-content: space-between;
}

#new-tasks-form {
  width: 80vw;
  max-width: 500px;
  margin: 0 auto;
}

#submit-tasks {
  grid-row: 4;
  grid-column: 1 / 3;
  align-self: start;
}

/* Edit Form Styles */
.align-self {
  align-self: start;
}

#edit-task {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(4, 1fr);
  align-items: center;
  width: 80vw;
  max-width: 500px;
  margin: 0 auto;
}

/* Calendar Styles */
ol, li {
  padding: 0;
  margin: 0;
  list-style: none;
  font-size: clamp(.9rem, 2vw, 1.5rem);
}

.calendar-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-auto-rows: 50px;
  justify-items: stretch;
  padding: 20px 20px 0 20px;
}

.calendar-month-header {
  display: flex;
  flex-direction: column;
  padding: 0 20px;
  color: var(--bs-gray-100);
}

.calendar-month-header > h1 {
  align-self: flex-start;
  margin-bottom: 20px;
  font-size: clamp(1.5rem, 2vw, 3rem);
}

.current-month {
  font-weight: bold;
}

.day-of-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  width: 100%;
  justify-items: start;
}

.flex {
  display: flex;
  column-gap: 10px;
}

.flex-space-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.grid-bg-color {
  background-color: var(--bs-gray-600);
  margin: 30px auto;
  width: 50vw;
  padding: 20px 0;
}

.grid-panel {
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid lightsteelblue;
  font-size: clamp(.6rem, 2vw, 1rem);
  box-shadow: #242121 0px 0px 20px;
}

.grid-panel > a {
  color: black;
}

.flex-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.legend-grid {
  display: grid;
  grid-template-columns: 20% max-content;
  gap: 10px 20px;
  justify-items: start;
  justify-content: center;
  width: 50vw;
  max-width: 500px;
  margin: 50px auto;
}

.legend-green {
  background-color: limegreen;
  width: 100%;
  height: 25px;
}

.legend-red {
  background-color: lightcoral;  
  width: 100%;
  height: 25px;
}

.not-current-month {
  background-color: lightgrey;
  color: grey;
}

.success {
  background-color: limegreen;
}

.fail {
  background-color: lightcoral;
}

.success:hover, .fail:hover {
  cursor: pointer;
  border: 2px solid var(--bs-red);
  transform: scale(1.05);
}

.today {
  border: 3px solid lightcoral;
  font-weight: bold;
  text-decoration: underline;
}

/* calendar media queries */
@media (max-width: 1000px) {
  .grid-bg-color, .legend-grid {
    width: 80vw;
  }
}

@media (max-width: 576px) {
  .grid-bg-color, .legend-grid {
    width: 90vw;
    margin: 0 auto;
  }

  .legend-grid {
    margin: 50px auto;
  }
}

/* viewTask styles */
.ctr {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: clamp(300px, 50vw, 500px);
  margin: 50px auto;
  padding: 0;
  justify-items: center;
  background-color: white;
  padding: 10px;
}

.col-1 {
  grid-template-columns: 1fr;
}

.heading {
  font-weight: bold;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
}
