body {
  font-family: nyt-franklin, helvetica, arial, sans-serif;
}

/* Navigation section */
nav {
  z-index: 1;
  display: flex;
  justify-content: end;
  padding: 3px 7px 3px 7px;
  border-bottom: 1px solid #e2e2e2;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background-color: white;
}

nav .nav-left {
  display: flex;
  flex: 1;
  align-items: center;
  margin-left: 7px;
}

nav span {
  margin-right: 10px;
  font-size: 14px;
  cursor: pointer;
  padding: 5px;
}

nav a {
  margin-right: 10px;
  margin-left: 10px;
  text-decoration: none;
  color: black;
}

nav img {
  width: 200px;
}

nav .logo {
  display: flex;
  flex: 1;
  justify-content: center;
}

nav .nav-right {
  display: flex;
  flex: 1;
  justify-content: flex-end;
  margin-right: 20px;
}

.nav-right button {
  font-size: 11px;
  font-weight: bolder;
  background-color: #567b95;
  color: white;
  border: none;
  border-radius: 3px;
  cursor: pointer;
}

.subs {
  width: 120px;
  margin-right: 8px;
}

.login {
  width: 65px;
}

/* Main Content */
main {
  position: relative;
  top: 50px;
  width: 60%;
  margin: 0 auto;
}

main p,
main h1 {
  width: 70%;
  margin: 0 auto;
  font-family: nyt-imperial, georgia, 'times new roman', times, serif;
}

main p {
  color: #333;
  font-size: 20px;
  line-height: 30px;
  margin-top: 15px;
}

main h2 {
  width: 70%;
  margin: 0 auto;
  font-family: nyt-cheltenham, georgia, 'times new roman', times, serif;
  margin-top: 15px;
}

main img {
  width: 100%;
}

aside {
  display: flex;
  flex-direction: column;
  width: 15%;
  position: absolute;
  top: 200vh;
  right: 5%;
}

.asideimage {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin: 10px 0 5px 0;
  flex: 1;
}

.asideimage img {
  width: 77px;
  height: 77px;
  flex: 1;
}

.asideimage a {
  flex: 2;
  margin-left: 10px;
  font-size: 13px;
  text-decoration: none;
  color: #333;
}

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

.asidetext a {
  flex: 1;
  margin-left: 5px;
}

.asidetext h6 {
  margin: 0 0 0 5px;
  flex: 1;
}

.h5 {
  font-weight: bolder;
  border-style: solid;
  border-width: 0 0 1px 0;
  border-color: #e2e2e2;
}

.h5 h5 {
  margin-bottom: 10px;
}

/* Theories Section */
.theory-h {
  width: 100%;
  font-weight: 700;
  font-style: normal;
  font-size: 1.25rem;
}

.theory-p {
  font-size: 13px;
  line-height: normal;
  width: 100%;
  margin-top: 5px;
  margin-bottom: 12px;
  color: #787878;
}

.theory-img {
  height: 570px;
}

.theories {
  display: grid;
  width: 100%;
  height: 570px;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-auto-rows: 1fr 1fr 1fr 1fr;
  position: absolute;
  background-color: rgba(red, green, blue, 0);
  grid-column-gap: 15px;
}

.theories p {
  font-size: 12px;
  line-height: normal;
  width: 100%;
}

.theories .item-a {
  grid-row: 2/3;
}

.theories .item-b {
  grid-row: 4/5;
}

.theories span {
  font-weight: bolder;
}

iframe {
  margin: 40px 15% 10px 15%;
  width: 70%;
}

.videotext {
  color: #666;
  font-size: 15px;
  line-height: 20px;
  margin-top: 0;
}

.videospan {
  color: #9e9e9e;
}

figure {
  margin: 40px 15% 10px 15%;
  width: 70%;
}

figcaption {
  color: #666;
  font-size: 15px;
  line-height: 20px;
  margin-top: 0;
}

/* Bottom */
.bottom {
  width: 90%;
  margin: 0 auto;
  margin-top: 100px;
  border-bottom: 1px solid #e2e2e2;
  margin-bottom: 15px;
}

.bottom h4 {
  color: #333;
  font-size: 13px;
  font-weight: bolder;
  margin: 0;
  line-height: 20px;
}

.bottomhead {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
  border-top: 5px double #e2e2e2;
  padding-top: 10px;
  width: 100%;
}

.bottom img {
  width: 200px;
}

.bottom-home {
  display: flex;
  justify-content: end;
}

.bottom-home a {
  font-size: 11px;
  color: #567b95;
  text-decoration: none;
}

.bottom-main {
  display: flex;
  flex-direction: row;
  width: 100%;
  padding-bottom: 15px;
}

.bottom-section {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.bottom-section a {
  text-decoration: none;
  color: black;
  font-size: 13px;
  line-height: 20px;
}

.subscribe {
  display: flex;
  flex-direction: column;
  flex: 1;
  border-left: 0.5px solid #e2e2e2;
  padding-left: 10px;
}

.main_sub a,
.sub-two a {
  text-decoration: none;
}

.main_sub {
  flex: 2;
  display: flex;
  flex-direction: column;
  border-bottom: 0.5px solid #e2e2e2;
  padding-bottom: 5px;
}

.sub-two {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-top: 10px;
}

.first {
  font-size: 14px;
  color: black;
  font-weight: bolder;
  line-height: 25px;
}

.second {
  font-size: 11px;
  line-height: 20px;
  color: black;
}

.space {
  visibility: hidden;
  height: 15px;
  margin: 0;
  padding: 0;
}

.terms {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  width: 80%;
  margin: 0 auto;
  margin-bottom: 100px;
}

.terms a {
  text-decoration: none;
  font-size: 11px;
  color: #666;
}

footer {
  width: 100%;
  height: 60px;
  background-color: white;
  border-top: 1px solid black;
  position: fixed;
  bottom: 0;
  display: flex;
}

.footer-span {
  align-self: center;
  flex: 3;
  justify-content: flex-end;
  display: flex;
  margin-right: 80px;
}

.footer-buttons {
  align-self: center;
  flex: 1;
  justify-content: flex-end;
  display: flex;
  margin-right: 70px;
}

.footer-buttons a {
  margin-right: 30px;
  text-decoration: none;
  font-size: 13px;
  color: black;
  font-weight: bolder;
}

/* hovers */
nav span:hover {
  background: rgba(165, 184, 196, 0.185);
}

nav a:hover,
.asideimage a:hover,
.bottom-section a:hover,
.main_sub a:hover,
.sub-two a:hover,
.terms a:hover {
  text-decoration: underline;
}
