/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

:root {
  --navbar-height: 72px;
  --navbar-pb: 10px;
  --main-padding: 24px;
  --font-primary: 'Open Sans', Times, serif;
  --font-secondary: 'Times New Roman', Times, serif;
}

body {
  font-size: x-large;
  text-align: center;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-rows: 1fr var(--navbar-height);
  height: 100vh;
  font-family: var(--font-primary);
  font-weight: 300;
  max-width: 40rem;
  margin-inline: auto;
}

h1,h2,h3,h4,h5,h6 {
  font-weight: 300;
  margin: 0;
}

h2 {
  font-size: 1.8rem;
  color: oklch(51.1% 0.096 186.391);
  margin-bottom: 1rem;
}

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

main {
  padding: var(--main-padding);
  overflow-y: scroll;
}

.mb-s {
  margin-bottom: 30px;
}

.mb-m {
  margin-bottom: 40px;
}

.habit {
  display: block;
  background-color: rgb(228, 228, 228);
  padding: 7px 0px;
  margin: 7px 0px;
  border-radius: 2px;
  text-decoration: none;
  color: grey;
  font-size: smaller;
  min-height: 44px;
  align-content: center;
}

.habit-done {
  color: white;
  background-color: oklch(51.1% 0.096 186.391);
}

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 15px;
  padding: 0px 25px;

  & a>svg {
    height: 20px;
    width: 20px;
  }

  & a {
    color: #919191;
    text-decoration: none;
    font-size: small;
  }
}

.debug {
  color: #b1b1b1;
}
