* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar {
  display: none;
}

a:focus,
a:active {
  outline: none;
  box-sizing: none;
}

body {
  font-family: "Outfit", Sans-Serif;
  background-color: #151515;
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: row;
  user-select: none;
}

html.sr .load-hidden {
  visibility: hidden;
}

.navbar {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  color: black;
  background: rgba(95,95,95,0.65);
  box-shadow: 0 4px 30px rgba(0, 0, 0 ,0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  top: 0;
  z-index: 1000;
  flex: 1;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo img {
  height: 4rem;
  margin-top: 0.2rem;
  pointer-events: none;
  user-select: none;
  filter: invert(100%);
}

.logo-container span {
  color: white;
  font-size: 1.7rem;
  font-weight: bold;
}

.logo-container {
  gap: 0.15rem;
}

.menu {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  height: 100%;
  width: 100%;
  padding-top: 1rem;
}

.menu a {
  color: black;
  text-decoration: none;
  font-weight: 500;
  padding: 0.4rem;
  margin: 0rem 1rem;
  border-radius: 0px;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.7);
  border: 2px solid #000;
  box-shadow: 2px 2px #000;
  display: inline-block;
}

.menu a:hover {
  border: 2px solid rgba(255, 255, 255, 0.7);
  box-shadow: none;
  background: none;
  color: white;
}

.menu a:last-child {
  border-radius: 0px;
  text-decoration: none;
  background: #3cb371;
  box-shadow: 2px 2px #000;
  padding: 0.4rem 0.6rem;
  text-align: center;
  display: inline-block;
  border: 2px solid #000;
  transition: all 0.2s ease;
}

.menu a:last-child:hover {
  background: none;
  box-shadow: none;
  color: white;
  border: 2px solid #2e8b57;
}

.burger-container {
  display: none;
  position: fixed;
  top: 0.4rem;
  left: 0.6rem;
  font-size: 5rem;
  z-index: 1000;
}

.burger {
  display: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
}

.burger.open {
  animation: burgerAction 0.2s infinite;
}

@keyframes burgerAction {
  from {
    transform: rotate(0deg);
  }
  
  to {
    transform: rotate(180deg);
  }
}

main {
  flex: 4.5;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.chat-input-container {
  width: 80%;
  height: 5rem;
  background: rgba(70,70,70,0.65);
  padding: 0.1rem;
  margin-bottom: 4rem;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

.chat-input-container form {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100%;
}

#chatInput {
  width: 100%;
  font-size: 1.2rem;
  color: white;
  background: none;
  border: none;
  padding: 0rem 0.4em;
}

#chatSubmit {
  width: 5rem;
  font-size: 1.1rem;
  color: white;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 6px;
}

.chat-window-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  user-select: auto;
  gap: 1rem;
  padding: 2rem 1rem;
  padding-top: 4rem;
  overflow-y: auto;
  overflow-x: hidden;
}

.chat-window-placeholder {
  width: 20%;
  color: rgba(255, 255, 255, 0.8);
  align-self: center;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  word-break: keep-all;
  user-select: none;
}

.chat-window-placeholder img {
  width: 14rem;
  filter: invert(50%);
}

.chat-window-placeholder h1 {
  font-size: 2.1rem;
  white-space: nowrap;
}

.bubble {
  color: white;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 90%;
  font-size: 1.1rem;
}

.bubble-user {
  align-self: flex-end;
}

.bubble-ai {
  align-self: flex-start;
}

.navbar.show {
  display: flex !important;
}

.journals-manager, .journals-list, .exercises-manager, .exercises-list {
  width: 100%;
}

.journals-manager, .exercises-manager {
  margin-bottom: 2rem;
  padding-top: 1rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.journals-manager, .journals-manager form, .exercises-manager, .exercises-manager form {
  font-size: 1.1rem;
  width: 100%;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.journals-manager form, .journals-advanced, .exercises-manager form {
  width: 80%;
}

.journals-manager form input, .journals-manager form button, .exercises-manager form input, .exercises-manager form button, .exercises-manager form select {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: none;
}

.journals-manager form label, .exercises-manager form label {
  text-align: left;
  align-self: flex-start;
}

.journals-list, .exercises-list {
  margin-top: auto;
  height: 100%;
  max-height: 100%;
  background: rgba(255, 255, 255, 0.1);
  overflow-y: auto;
}

.journals-advanced {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.journals-advanced button {
  width: 100%;
}

#journalsSubmit, .journals-advanced button, #exercisesSubmit {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: none;
  margin-top: 1.2rem;
  font-size: 1.2rem;
  background: rgba(20, 180, 100, 0.8);
  transition: all 0.2s ease;
}

#journalsSubmit:hover, .journals-advanced button:hover, #exercisesSubmit:hover {
  background: rgba(20, 180, 100, 0.5);
}

.journal, .exercise, .exerciseFound {
  color: white;
  margin: 0.6rem;
  padding: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.journal h3, .exercise h3 {
  font-size: 1.4rem;
}

.journal button {
  margin-top: 0.4rem;
  border: none;
  font-size: 1.1rem;
  padding: 0.2rem 0.8rem;
  background: rgba(250,71,71,0.8);
}

.journal button:hover {
  background: rgba(250,71,71,0.6);
}

.exercise {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: center;
  justify-content: center;
}

.exercise-head {
  width: 100%;
  display: flex;
  flex-direction: row;
  gap: 0.6rem;
}


.exercise-info {
  width: 40%;
}

.exercise-info img {
  width: 100%;
}

.exercise-data-container {
  width: 100%;
  height: 80%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
}

.exercise-data {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.6rem;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.exercise-data p {
  font-size: 1.4rem;
}

.exercise-title {
  font-size: 2.1rem;
  align-self: flex-start;
  margin-bottom: 1rem;
}

.exercise-label {
  font-size: 1.6rem !important;
  font-weight: bold;
  align-items: center;
}

.exercise-instructions {
  width: 100%;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  max-width: 100%;
  word-break: break-word;
}

.exercise-instructions p {
  font-size: 1.4rem;
}

#formInfo {
  font-size: 1.1rem;
  margin-top: 0.4rem;
}

@media (max-width: 768px) {
  body, main {
    height: 100dvh;
  }
  
  .logo img {
    height: 2.2rem;
  }
  
  .logo-container {
    padding-left: 0;
    gap: 0;
  }
  
  .menu {
    padding-left: 0;
  }
  
  .logo-container span {
    font-size: 1.5rem;
  }
  
  .navbar {
    display: none;
    width: 100%;
    position: fixed;
  }
  
  .burger-container, .burger {
    display: block;
  }
  
  .chat-input-container {
    width: 90%;
    margin-bottom: 1rem;
  }
  
  #chatInput {
    font-size: 1rem;
  }
  
  .chat-window-placeholder img {
    width: 8rem;
  }
  
  .chat-window-placeholder h1 {
    font-size: 1.4rem;
  }
  
  .exercise-head {
    flex-direction: column;
  }
  
  .exercise-info {
    width: 100%;
    padding: 0.2rem 2rem;
  }
  
  .exercise-label {
    font-size: 1.1rem !important;
  }
  
  .exercise-data p, .exercise-instructions p {
    font-size: 1rem;
  }
}
