:root {
  --animation-width: 439px;
  --animation-container-width: 480px;
  --journal-background: #0000001a;
  --journal-danger: #dc3546ea;
  --journal-info: #0895b1ea;
  --journal-gray: #6c757dea;
  --journal-blue: #0d6efdea;
  --journal-indigo: #6610f2ea;
  --journal-purple: #6f42c1ea;
  --journal-pink: #d63384ea;
  --journal-red: #dc3545ea;
  --journal-orange: #fd7e14ea;
  --journal-yellow: #ffc107ea;
  --journal-green: #198754ea;
  --journal-teal: #20c997ea;
  --journal-cyan: #0dcaf0ea;
  --journal-white: #fff;
  --journal-gray: #6c757dea;
  --journal-gray-dark: #343a40ea;
  --journal-primary: #0d6efdea;
  --journal-secondary: #6c757dea;
  --journal-success: #198754ea;
  --journal-warning: #ffc107ea;
  --journal-light: #f8f9faea;
  --journal-dark: #212529ea;
}

h1 {
  margin: 10px;
}

.page-header {
  margin: 10px 0 15px 0;
}

#main-container {
  font-family: Comfortaa;
  /* background-image: url(/img/main-background.jpg); */
  background-color: var(--journal-background);
  background-size: cover;
}

@media screen and (max-width: 450px) {
  .row {
    margin: 0;
  }
  html {
    font-size: .85em;
  }
}

/* ----------- Home page ----------- */

.frosted-background {
  background-color: rgba(255, 255, 255, .6);
  min-width: var(--animation-container-width);
  padding: 10px;
  box-shadow: 0 0 1rem 0 rgba(0, 0, 0, .2);
  border-radius: 10px;
  backdrop-filter: blur(2px);
}

.home-container {
  min-height: 93vh;
  background-size: cover;
  max-width: 101vw;
}

#home-title {
  align-self: center;
}

#home-animation {
  align-self: center;
  font-family: monospace;
  font-size: 1.3rem;
  height: 1.5rem;
  overflow: hidden;
  white-space: nowrap;
  border-right: solid 3px rgba(34, 34, 34, 0.75);
  animation: animated-text 4s steps(43, end) 2.5s 1 normal both, animated-cursor-blink 1s steps(2, end) infinite;
}

#home-animation-mobile-top, #home-animation-mobile-bottom {
  margin: 0;
  display: none;
  align-self: center;
  font-family: monospace;
  font-size: 1.3rem;
  height: 1.5rem;
  overflow: hidden;
  white-space: nowrap;
  border-right: solid 3px rgba(34, 34, 34, 0.75);
}


@media all and (-webkit-min-device-pixel-ratio:0) and (min-resolution: .001dpcm) {
  #home-animation {
    align-self: center;
    font-family: monospace;
    font-size: 1.05rem;
    height: 1.5rem;
    overflow: hidden;
    white-space: nowrap;
    border-right: solid 3px rgba(34, 34, 34, 0.75);
    animation: animated-text 4s steps(43, end) 2.5s 1 normal both, animated-cursor-blink 1s steps(2, end) infinite;
  }

  #home-animation-mobile-top, #home-animation-mobile-bottom {
    margin: 0;
    display: none;
    align-self: center;
    font-family: monospace;
    font-size: 1.05rem;
    height: 1.5rem;
    overflow: hidden;
    white-space: nowrap;
    border-right: solid 3px rgba(34, 34, 34, 0.75);
  }
}



#home-animation-mobile-top {
  margin-top: 20px;
  animation: animation-mobile-top 2s steps(18, end) 2.5s 1 normal both, animated-cursor-blink-mobile-top 1s steps(2, end) 5 forwards;
}

#home-animation-mobile-bottom {
  animation: animation-mobile-bottom 2s steps(24, end) 4.5s 1 normal both, animated-cursor-blink-mobile-bottom 1s steps(2, end) 4.5s infinite both;
}

@media screen and (min-width:451px) {
  @keyframes animated-text {
    from {
      width: 0;
    }
    to {
      width: var(--animation-width);
    }
  }
  @keyframes animated-cursor-blink {
    from {
      border-right-color: rgba(7, 8, 7, 0.75);
    }
    to {
      border-right-color: transparent;
    }
  }
}

@media screen and (max-width: 450px) {
  #home-animation-mobile-top, #home-animation-mobile-bottom {
    display: inline;
  }
  #home-animation {
    display: none;
  }
  @keyframes animation-mobile-top {
    from {
      width: 0;
    }
    to {
      width: 158px;
    }
  }
  @keyframes animated-cursor-blink-mobile-top {
    from {
      border-right-color: rgba(7, 8, 7, 0.75);
    }
    to {
      border-right: none;
    }
  }
  @keyframes animation-mobile-bottom {
    from {
      width: 0;
    }
    to {
      width: 210px;
    }
  }
  @keyframes animated-cursor-blink-mobile-bottom {
    from {
      border-right: none;
    }
    to {
      border-right-color: rgba(7, 8, 7, 0.75);
    }
  }
  .frosted-background {
    min-width: 85vw;
  }
}

/* ----------- Navbar ----------- */

nav {
  height: 7vh;
  padding: 5px;
}

@media screen and (max-width: 450px) {
  nav {
    height: 7vh;
    font-size: small;
  }
  ul.mb-2 {
    margin-bottom: 0;
    margin: auto;
  }
  ul.me-auto {
    margin-top: auto!important;
    margin-bottom: auto!important;
    padding: 0;
  }
  .navbar-brand {
    font-size: 1em;
  }
}

/* ----------- Flashes ----------- */

.flashes {
  /* position: absolute;
  width: 25vw; */
  /* max-height: 10px; */
}

#flashes-under {
  display: none;
  text-align: center;
}

@media screen and (max-width: 450px) {
  #flashes-under {
    display: inline;
  }
  #flashes-nav {
    display: none;
  }
}

/* ----------- User ----------- */

#delete-account-link {
  color: rgba(17, 29, 29, 0.9);
}

.delete-project-button {
  font-size: x-small;
  background-color: #dc3546ea;
}

#new-user-container {
  min-height: 60vh;
}

#new-user-form {
  margin: auto;
  width: 25vw;
}

#new-user-to-login-link {
  margin-top: 15px;
  color: var(--journal-gray);
  text-decoration: underline;
}

#user-delete-account-div {
  max-width: 50vw;
  text-align: center;
}

#user-delete-account-header {
  color: var(--journal-danger);
}

.user-profile-delete-project-col {
  text-align: center;
}

#user-profile-title {
  margin-bottom: 20px;
}

#user-profile-container {
  margin: 0;
  max-width: 100vw;
  padding: 50px;
}

#user-profile-options-col {
  text-align: center;
}

.user-profile-project-details {
  font-size: 1.2rem;
}

.user-profile-project-link {
  color: rgba(17, 29, 29, 0.9);
}

#user-profile-project-row {
  margin-top: 10px;
}

@media screen and (max-width: 450px) {
  #new-user-form {
    width: 100%;
  }
  #user-profile-container {
    padding: 15px;
  }
  #user-profile-title {
    text-align: center;
  }
}

/* ----------- Login ----------- */

#forgot-password-link-div {
  margin: 15px;
  text-align: center;
}

#forgot-password-link {
  max-width: 66%;
}

#login-container {
  min-height: 93vh;
  background-size: cover;
  max-width: 101vw;
}

#login-title {
  margin-bottom: 30px;
  font-size: 3rem;
}

#login-form {
  margin: auto;
  max-width: 50vh;
}

#login-new-user-link {
  text-align: center;
  padding-top: 10px;
  color: rgba(17, 29, 29, 0.9);
  text-decoration: none;
}

#password-recovery-form {
  max-width: 33vw;
}

@media screen and (max-width: 450px) {
  #login-form {
    width: 75vw;
  }
}

/* ----------- Projects ----------- */

#confidence-range-label {
  margin: 10px 10px 0px 10px;
}

.project-card {
  margin: 10px;
  /* min-height: 40vh; */
  max-width: 45vw;
}

.project-card-image {
  text-align: center;
  justify-content: center;
  margin: 10px;
  /* min-height: 40vh; */
  max-width: 45vw;
}

#project-container {
  margin: 0;
  min-width: 100vw;
}

.project-image {
  max-width: 45vw;
  max-height: 45vh;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.entry-card {
  margin: 20px;
}

#entry-description, #description {
  margin: 10px;
  width: 95%;
  height: 100px;
  resize: none;
}

#entry-title, #title {
  margin: 10px;
  width: 75%;
}

#entry-range, #mood-range {
  margin: 10px;
  width: 95%;
}

#entry-submit {
  margin: 10px;
}

#new-entry-card {
  margin: 50px;
  width: 50vw;
  margin: auto;
}

#new-project-card {
  padding: 15px;
}

#new-entry-div {
  padding: 0;
  margin: 0;
  text-align: left;
}

#prev-entries-row {
  justify-content: center;
}

#project-first-row {
  text-align: center;
}

#project-page-title {
  margin: auto;
  margin: 10px 0 15px 0;
}

#project-second-row {
  text-align: center;
}

#start-new-project-button {
  margin: auto;
  margin-top: 10px;
  max-width: 75vw;
}

@media screen and (max-width: 450px) {
  #delete-project-form {
    min-width: 75vw;
  }
  div.w-50 {
    width: 95vw!important;
  }
  #confidence-tracker-btn {
    margin-top: 15px;
  }
  form.w-50 {
    width: 95vw!important;
  }
  .entry-card {
    margin: 10px;
  }
  #entry-description {
    margin: 0;
  }
  #entry-range {
    margin: 15px 0 0 0;
  }
  #entry-submit {
    margin-top: 25px;
    min-width: 33%;
  }
  #entry-title {
    margin: 0;
    width: 85%;
  }
  #new-entry-card {
    width: 95vw;
    margin: auto;
  }
  .project-card {
    max-width: 95vw;
  }
  #start-new-project-button {
    max-width: 90vw;
    margin: auto;
    margin-top: 10px;
  }
}

/* ----------- Edit Entry Page ----------- */

#edit-entry {
  margin-top: auto!important;
  margin-bottom: auto!important;
}

#edit-entry-confidence-label {
  margin: 10px 10px 0px 10px;
}

/* ----------- Confidence Tracker ----------- */

#confidence-tracker-container {
  text-align: center;
}

g {
  font-family: Comfortaa;
}

g.tick {
  font-size: 1rem;
}

@media (max-width:1200px) {
  g.tick {
    font-size: .5rem;
  }
}

/* 
@media (max-width:450px) {
  .chartContainer{
    min-width: 95vw;
  }

  svg{
    width: 100%
  }
} */

path.domain {
  stroke: none;
}

/* ----------- About ----------- */

#about-page-body {
  background-size: cover;
  background-image: url('/img/main-background.jpg');
  max-width: 100vw;
}

#about-page-container {
  margin: 0;
  padding: 20px;
  max-width: 100vw;
  background-color: rgba(255, 255, 255, 0.95);
}

#about-page-steps {
  margin: 20px
}

#about-warning {
  color: var(--journal-danger);
}

.about-page-img-desktop {
  max-width: 600px;
  padding: 20px;
  border-radius: 20px;
  background-color: white;
}

.about-page-img-mobile {
  display: none;
  max-width: 85vw;
  padding: 20px;
  border-radius: 20px;
  background-color: white;
}

.about-paragraph {
  margin-left: 30px;
}

.about-row {
  max-width: 90vw;
  margin-top: 20px;
}

#contact-email {
  max-width: 50%;
  margin-top: 10px;
  margin-bottom: 10px;
}

#contact-description {
  margin-top: 10px;
  margin-bottom: 10px;
}

#contact-form {
  margin-bottom: 30px;
  max-width: 50vw;
}

#contact-submit {
  margin: auto;
  min-width: 25%;
}

.credit-list {
  list-style: none;
}

.credit-list-link {
  text-decoration: none;
  color: var(--journal-info);
}

@media screen and (max-width: 450px) {
  #about-page-container {
    padding: 15px;
    text-align: center;
  }
  #about-page-steps {
    margin: 0;
    margin-top: 15px;
  }
  .about-paragraph {
    margin-left: 0;
  }
  .about-page-img-desktop {
    display: none;
  }
  .about-page-img-mobile {
    display: inline;
  }
  .about-row {
    max-width: 100vw;
  }
  #contact-email {
    max-width: 100%;
  }
  #contact-description {
    margin-top: 10px;
    margin-bottom: 10px;
  }
  #contact-form {
    margin-bottom: 30px;
    max-width: 95vw;
  }
  #contact-submit {}
  .radio-left {
    text-align: left;
  }
}

/* ----------- Change Password Page ----------- */

#change-password-container {
  min-height: 60vh;
}

#matchPassWarn {
  padding: 0;
  font-size: small;
}