/* Stored in /css/common.css */
:root {
  --rounded: 0.2rem;
  --rounded-md: 0.5rem;
  --rounded-full: 2rem;

  /* for buttons and ui controls */
  --p-xs: 0.2rem;
  --p-sm: 0.5rem;
  --p-md: 1rem;
}

body {
  color: var(--default-text);
  background-color: var(--bg-color);
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  height: 100vh;
  transition: background-color 0.5s, color 0.5s;
}

@keyframes slideInFromLeft {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(0);
  }
}
[data-component='router'] {
  flex-grow: 1;
  flex-basis: 200px;
  flex-shrink: 1;
  padding: var(--p-md);
}
nav {
  animation: 0.5s ease-in-out 0s 1 slideInFromLeft;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 10px 20px;
  background-color: var(--sidenav-color);
  min-width: 140px; /* Width when text is visible */

  @media (max-width: 600px) {
    & .text {
      display: none;
    }
    min-width: auto; /* Min-width when text is hidden, auto will take up necessary space */
  }
  & button {
    width: 100%;
  }
}

h1 {
  font-size: 2rem;
  margin: 20px 0;


    display: flex;
    align-items: center;
  gap: 1rem;
}

footer {
  bottom: 0;
  width: 100%;
  background: var(--primary-color);
  color: var(--default-text-inv);
  padding: var(--p-md);
  display: flex;
  justify-content: center;
  flex-shrink: 0;
  /*override button.css*/
}
body > div {
  flex: 1 0 auto;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}