:root {
  --primary_bg: mediumturquoise;
  --primary_color: black;
  --accent_bg:;
  --accent_color: white;
  --primary_font: 'charter';
}

/* Some Global Variables to clear out built-in margins */
body, html, a, li, p, div, ol, ul, section {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* if yr list only got one item...don't make it look
   like a list!
*/
li:only-of-type {
  list-style-type: none;
}

/* Give the same font and default font size to everything. */
body {
  font-family: var(--primary_font);
  font-size: 22px;
}

/* make links not so garish. */
a {
  font-weight: 700;
  color: var(--accent_color);
  text-decoration: none;
}
a:hover {
  border-bottom: 1px solid var(--accent_color);
}

nav {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/*
You can have pages for each 'section', if there is more than one. Each page will have a matching ID, so we can style each one separately, if we'd like.
eg: body#home or body#kirtan-kriya.

Right now, they all have the same colors, so I'm setting them
all at once below

*/

body#home ,
body#movement-section ,
body#steps
{
  background: var(--primary_bg);
  color: var(--primary_color);
}

/*
styling for the homepage
*/

#home header {
  text-align: center;
  padding: 1rem;
}

#home h1 {
  font-size: 3rem;
  text-transform: uppercase;
  margin-bottom: 0;
  margin-top: 0;
}

#home h2 {
  font-size: 3rem;
  margin-top: 0;
  margin-bottom: 0;
  color: var(--accent_color);
  text-transform: lowercase;
}

#home ul#ongnamo {
  position: relative;
  width: 80%;
  margin: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
}

#home ul#pages {
  position: relative;
  width: 80%;
  margin: auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
}

#home ul#pages li {
  flex: 1 1 160px;
  width: 20%;
  list-style-type: none;
  margin: 1rem;
}

#home ul#pages a {
  color: var(--primary_color);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

#home ul#pages a > img {
  min-width: 200px;
  margin-bottom: 0.5em;
}

/*
styling for subpages
*/

body#steps {
  padding: 0 2rem 0 2rem;
  position: relative;
}

#steps header {
  border-bottom: 1px dashed var(--accent_color);
  color: var(--accent_color);
  font-size: 0.75em;
  padding: 1rem;
  letter-spacing: 0.5em;
  text-align: center;
}

main.one-col section.exercise {
  display: flex;
  flex-flow: column;
  justify-content: center;
  align-items: center;
  width: 66%;
  margin: auto;
}

main.two-col section.exercise {
  display: grid;
  grid-template-columns: minmax(25%, 500px) 1fr;
  grid-gap: 1em;
  padding: 1em;
  border-bottom: 1px dashed var(--accent_color);
  margin-bottom: 0.5em;
}


main.two-col div.figure-and-timer {
  grid-column: 1;
}

main.two-col div.instructions {
  grid-column: 2;
  padding-top: 1em;
}

#steps h1 {
  color: var(--accent_color);
  font-size: 2em;
  text-align: center;
  text-transform: uppercase;
}

div.instructions li {
  margin-bottom: 0.5em;
}

button.timer {
  background: var(--accent_color);
  font-size: 2em;
  font-weight: 700;
  border-radius: unset;
  border: unset;
  color: var(--primary_bg);
  outline-color: var(--accent_color);
}

button.timer:hover {
  cursor: pointer;
}

a.breadcrumb {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 1em;
  color: var(--accent_color);
  text-decoration: none;
}

#steps div#yogis-note  {
  padding: 1em 0 1em 0;
  border-bottom: 2px solid var(--primary_color);
}

#steps main#exercises {
  margin-top: 1em;
}

#steps section.exercise:last-of-type {
  border-bottom: none;
}

#steps section.single-exercise {
  grid-column: span 4;
  align-items: center;
}

#steps div.figure-and-timer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  grid-row: 1 / 4;
}

section#the-mantra div.figure-and-timer figure ,
section#the-mantra div.figure-and-timer img {
  width: 90%
}

#steps header h1 {
  grid-column-start: 2;
  font-size: 3em;
  margin-bottom: -1em;
}

/* media queeeeeeries */
@media (max-width: 667px) {
  body#steps ,
  body#steps main {
    padding: 0.5em;
  }
  #steps h1 {
    font-size: 2em;
  }
  #steps section.exercise {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  #steps ol.sequence {
    padding: 0;
    margin: 0;
    margin-top: 2em;
  }
  #steps ul.sequence > ul {
    padding-left: 0.5em; 
  }
}

#steps nav ul {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  list-style-type: none;
  margin: auto;
  width: 66%;
}

#steps nav li {
  width: 33%;
  text-align: center;
}

#steps main.one-col {
  display: flex;
  flex-flow: column;
  justify-content: center;
  align-items: center;
}

main.one-col figure {
  display: flex;
  justify-content: center;
  align-items: center;
}

footer {
  margin-top: 1.5em;
  padding: 1em;
  border-top: 1px dashed var(--accent_color);
}

@font-face {
  font-family: charter;
  src: url('./fonts/charter/charter_regular-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: charter;
  src: url('./fonts/charter/charter_bold-webfont.woff') format('woff');
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: charter;
  src: url('./fonts/charter/charter_bold_italic-webfont.woff') format('woff');
  font-weight: 700;
  font-style: italic;
}
@font-face {
  font-family: charter;
  src: url('./fonts/charter/charter_italic-webfont.woff') format('woff');
  font-weight: normal;
  font-style: italic;
}
