/* || General setup */

html, body {
  margin: 0 10px 0 10px;
  padding:  0 10px 0 10px;
}

.navbar .navbar-brand {padding-left: 5px;}

/* Changed background-color to white */
html {
  font-size: 10px;
  background-color: #FFF;
}

/*body {
  width: 100%;
  min-width: 1024px;
  margin: 0 auto;
} */

/* || typography */

/* Gave all of the headers a green color */

/* changed fontsize6 to h1 so needs new css */
h1 {
  font-family: 'Sonsie One', cursive;
  color: #008000;
  font-size: 3.5rem;
}

h2 {font-family: 'Sonsie One', cursive;
  color: #008000;
  font-size: 2.5rem;
  padding-bottom: 0px;
  }


/* font[size="7"], font[size="6"], font[size="5"] {
  font-family: 'Sonsie One', cursive;
  color: #008000;
} */

p, input, li, table, label {

/* Changed font-size to 12px for paragraphs */

  font-size: 12px;
  font-family: 'Raleway', sans-serif;
  color: #2a2a2a;
}

/* Changed the header color to green, changed shadowing, centered */
/* font[size="7"] {
  font-size: 4rem;
  text-align: center;
  color: #008000;
  text-shadow: 2px 2px 0px grey;
} 

font[size="6"] {
  font-size: 3rem;
  text-align: center;
}

font[size="5"] {
  font-size: 2.2rem;
} */

/* changed the fontsize to 1.8rem */
p, li, table {
  font-size: 1.8rem;
  line-height: 1.5;
}

/* || header layout */

/* changing background-color from green to light green */

a {
  color: black;
}

a:hover {
  color: #FFFFFF;
}

article, footer, .secondary {
  background-color: #8BDB77;
} 

article, footer, .secondary {
  padding: 10px 30px;
}

article {
  margin-right: 10px;
}

/* changed div='nav' to nav 
changed background color to light green 
added margin-top to 10px */
nav {
  height: 50px;
  background-color: #8BDB77;
 display: flex;
  padding: 1% 0;
  margin-top: 10px;
  margin-bottom: 10px;
}

nav a .active {color: #FFF;}

/* changed div='nav' to nav */
nav ul {
  padding: 0;
  list-style-type: none;
  flex: 2;
 /* display: flex; */
}

/* changed div='nav' to nav */
nav li {
  display: inline;
  text-align: center;
  flex: 1;
}

/* changed div='nav' to nav */
nav a {
  display: inline-block;
  font-size: 2rem;
  text-transform: uppercase;
  text-decoration: none;
  color: black;
  text-align: center;
  padding-right: 10px;
}

/* changed div='nav' to nav */
nav .search {
  flex: 1;
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 2em;
}

.search input {
  font-size: 1.6rem;
  height: 32px;
}

.search input[type="search"] {
  flex: 3;
}

.search input[type="submit"] {
  flex: 1;
  margin-left: 1rem;
  background: #333;
  border: 0;
  color: white;
}

/* || main layout */

main {
  display: flex;
}

article {
  flex: 5;
}

.secondary {
  flex: 2;
}

/* added text-align to center */
footer {
  margin-top: 10px;
  text-align: center;
}

/* Table styling */

/* Changed background-color to white */
table {
  width: 100%;
  background-color: #FFF;
  border-collapse: collapse;
}

th, td {
  padding: 10px;
}

td {
  text-align: center;
}

th[scope="col"] {
  border-bottom: 1px solid black;
}

tbody tr:nth-child(odd) {
  background-color: #def;
}

/* styling content images and audio */

img, audio {
  display: block;
  margin: 0 auto;
}

audio {
  width: 500px;
}

/* Comments styling */

/* changed background-color to white */
.comments {
  background-color: #FFF;
  padding: 10px;
}

.show-hide {
  cursor: pointer;
}

/* changed to h3 */
.comments h3 {
  font-size: 2rem;
}

/* .comments font[size="6"] {
  font-size: 2rem;
} */

.comments font[size="6"]:nth-of-type(2) {
  margin-bottom: 0;
}

.comment-form {
  margin-bottom: 3rem;
}

/* made the font-size larger for Your Name/Your comment */
.comment-form .flex-pair {
  display: flex;
  padding: 0 3rem 1rem;
  font-size: 15px;
}

.comment-form label {
  align-self: center;
  flex: 2;
  text-align: right;
}

.comment-form input {
  margin-left: 1rem;
  flex: 6;
}

.show-hide {
  text-align: center;
  width: 150px;
}

.comment-form input, .comment-form label, .show-hide {
  font-size: 1.6rem;
  line-height: 32px;
}

.comment-form input[type="submit"], .show-hide {
  background: #333;
  border: 0;
  color: white;
}

.comment-form input[type="submit"] {
  width: 30%;
  display: block;
  margin: 0 auto;
}

.comment-container {
  margin-top: 0;
}

.comment-container li {
  list-style-type: none;
  display: flex;
}

.comment-container li p:nth-child(1) {
  flex: 1;
  font-weight: bold;
}

.comment-container li p:nth-child(2) {
  flex: 5;
}


/* new audio transcript accordian button */

.accordion {
  background-color: #eee;
  color: #444;
  cursor: pointer;
  padding: 18px;
  width: 50%;
  text-align: left;
  border: none;
  outline: none;
  transition: 0.4s;
  text-align: center;
 /* margin-left: 200px; */
  margin-top: 10px;
}

/* Gives a color of the background when hovered */
.active, .accordion:hover {
  font: #FFF;
}

/* Style the accordion panel. Note: hidden by default */
.panel {
  padding: 0 18px;
  background-color: white;
  display: none;
  overflow: hidden;
  width: 75%;
  margin-left: 150px;
  margin-top: 10px;
}

/********************************************* media queries ********************************/

/*mobile view */
@media only screen and (max-width: 768px) {
          /* moves the nav to the bottom above footer adjusting order from 1 to 0 */
          .secondary ul { -webkit-order: 1;
                 order: 0;
                 }

                 nav ul {-webkit-flex-wrap: wrap;
                   flex-wrap: wrap; }
  
                article h2 {margin-top: 40px;} 
  
 header, main, nav, footer, figure, figcaption { display: block; }
                } 

     
