/*
 * JStyle is a minimalist CSS component, utility, and layout
 * library whose primary use is efficient prototyping.
 */

 /*
  * TODO:
  * 1. add btn-outline
  * 2. add css grid (2/3/4 column)
  * 3. Responsive nav menu (toggle to mobile view)
  */

 @import url('https://fonts.googleapis.com/css2?family=Quicksand&display=swap');

 * {
   box-sizing: border-box;
   margin: 0;
   padding: 0;
 }

 body {
  font-family: 'Quicksand', sans-serif;
  /* line-height: 1.5; */
 }

 /*
  -- define colors
    - blue
    - red
    - green
    - yellow
    - white (?)
    - grey
 */
 :root {
   --primary: #333;   /* update primary and secondary colors based on theme defaults */
   --secondary: #fff; /* update primary and secondary colors based on theme defaults */
   --blue: #0d6efd;
   --red: #dc3545;
   --green: #198754;
   --yellow: #ffc107;
   --dark: #212529;
   --light: #c2c2d1;
   --white: #fff;
   --muted: #6c757d;
 }

 /* text color classes */
 .text-primary {
   color: var(--primary)!important;
 }

 .text-secondary {
   color: var(--secondary)!important;
 }

 .text-blue {
  color: var(--blue)!important;
}

.text-red {
  color: var(--red)!important;
}

.text-green {
  color: var(--green)!important;
}

.text-yellow {
  color: var(--yellow)!important;
}

.text-dark {
  color: var(--dark)!important;
}

.text-light {
  color: var(--light)!important;
}

.text-white {
  color: var(--white)!important;
}

.text-muted {
  color: var(--muted)!important;
}

/* background color classes */
.bg-primary {
  background-color: var(--primary)!important;
}

.bg-secondary {
  background-color: var(--secondary)!important;
}

.bg-blue {
 background-color: var(--blue)!important;
}

.bg-red {
 background-color: var(--red)!important;
}

.bg-green {
 background-color: var(--green)!important;
}

.bg-yellow {
 background-color: var(--yellow)!important;
}

.bg-dark {
 background-color: var(--dark)!important;
}

.bg-light {
 background-color: var(--light)!important;
}

.bg-white {
 background-color: var(--white)!important;
}

.bg-muted {
 background-color: var(--muted)!important;
}


 /*
  -- typography
    - p fonts
    - header fonts
    - table defaults
    - ul li defaults
    - a defaults
 */
a {
  text-decoration: none;
  transition: all 0.3s ease 0s;  /* smooth transition to hover state */
}

a:hover {
  opacity: 0.8;
}

.lead { /* THIS NEEDS MORE WORK */
  font-size: 1.25rem;
  font-weight: 300;
}

.subtext {
  font-size: .9rem;
  color: var(--muted);
  margin: 0;
  padding: 0;
}

.list {
  list-style: none;
}

 /*
  -- layout elements
    - container (flex, no padding margins)
    - grids
    - content? (has built-in padding/margins)
    - borders (individual sides, thickness, color)
    - shadow (?)
    - margins & padding
 */
.container {
  padding: 1em;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

.flex-row {
  display: flex;
}

.rounded {
  border-radius: 8px;
}

.shadow {
  /* box-shadow: 0 .5rem 1rem rgba(0,0,0,.15); */
  box-shadow: 0 10px 16px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19) !important;
}

.block {
  display: block;
  width: 100%;
}

.p {
  padding: .5rem;
}

.p1 {
  padding: 1rem;
}

.p2 {
  padding: 2rem;
}

.p3 {
  padding: 3rem;
}

.px-1 {
  padding: 0 1rem;
}

.px-2 {
  padding: 0 2rem;
}

.px-3 {
  padding: 0 3rem;
}

.py-1 {
  padding: 1rem 0;
}

.py-2 {
  padding: 2rem 0;
}

.py-3 {
  padding: 3rem 0;
}

.m {
  margin: .5rem;
}

.m1 {
  margin: 1rem;
}

.m2 {
  margin: 2rem;
}

.m3 {
  margin: 3rem;
}

.mx-1 {
  margin: 0 1rem;
}

.mx-2 {
  margin: 0 2rem;
}

.mx-3 {
  margin: 0 3rem;
}

.my-1 {
  margin: 1rem 0;
}

.my-2 {
  margin: 2rem 0;
}

.my-3 {
  margin: 3rem 0;
}

 /*-------------------------------------------------------------------------------------
  -- components
    - button
    - card
    - header/nav
    - inputs/forms
    - images (responsive?)
 */
.navbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  font-family: 'Quicksand', sans-serif;
  padding: .4em 2em;
  margin-bottom: 1em;
  background-color: var(--primary);
  color: var(--secondary);
}

.nav-title {
  display: flex;
  align-items: center;
}

.nav-title a {
  font-size: 22pt;
  font-weight: 300;
  cursor: pointer;
  text-decoration: none;
  color: var(--secondary);
}

.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
}

.nav-links li,
.nav-links a {
  text-decoration: none;
  font-weight: 600;
  display: inline;
  color: var(--secondary);
  margin-right: 12px;
  transition: all 0.3s ease 0s;  /* smooth transition to hover state */
}

.nav-links a:hover {
  opacity: 0.8;
}

.mobile_icon {
  display: none;
}

.btn {
  background-color: var(--primary);
  color: var(--secondary);
  padding: .5em 1em;
  font-size: 1rem;
  border: none;
  outline: none;
  cursor: pointer;
  transition: all 0.3s ease 0s;  /* smooth transition to hover state */
}

.btn:hover {
  opacity: 0.8;
}

input[type='text'] {
  padding: .4rem 1rem;
  margin-bottom: .4rem;
  font-size: 1rem;
  border: 1px solid #ccc;
}

.card {
  /* display: inline-block; */
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(0,0,0,.125);
  margin: .5em;
  background-color: var(--primary);
  color: var(--secondary);
  /* min-width: 325px; */
  width: 325px;
  /* min-height: 225px; */
}

.card-header {
  font-weight: 600;
  padding: 1em;
  border-bottom: 1px solid rgba(0,0,0,.125)
}

.card-body {
  padding: .4em 1em;
}

.card-footer {
  padding: .4em 1em;
  border-top: 1px solid rgba(0,0,0,.125)
}

.img-resize {
  max-width: 100%;
  height: auto;
}

/* Mobile Styles */
@media screen and (max-width: 600px) {
  .nav-title {
    flex-direction: row-reverse;
    justify-content: space-between;
    width: 100%;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    margin-top: .4em;
    font-size: 2rem;
  }

  .show {
    display: flex;
  }

  .mobile_icon {
    display: flex;
  }
}