/* Source Lexend Deca Font */
.lexend-deca-font {
  font-family: "Lexend Deca", sans-serif;
  font-optical-sizing: auto;
  font-weight: 100;
  font-style: normal;
}

/* Sensible defaults */
* {
  margin: 0;
  padding: 0;
  border: 0;

  box-sizing: border-box;
}

html {
  background-color: #222222;
  font-family: "Lexend Deca", sans-serif;
  color: #eeeeee;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Sticky Footer Rules */

html,
body {
  box-sizing: border-box;
}

.sticky-footer-wrapper {
  box-sizing: border-box;
  min-height: 100vh;

  display: flex;
  flex-direction: column;
}

main {
  flex-grow: 1;
}

header,
footer {
  flex-grow: 0;
  flex-shrink: 0;
}

/* Cap width and add shadows for wider screens */
/* Mobile Devices should only see main column without decor */

body {
  width: 100%;
}

/* Set width of elements in main to be smaller for smaller devices */

@media only screen and (max-width: 768px) {
  main > * {
    width: 85%;
  }
}

/* Tablets and smaller laptops should see body take up 75% of viewport */ 

@media only screen and (min-width: 768px) and (max-width: 1440px) {
  body {
    width: 75%;

    box-shadow: 0 0 32px 0 rgba(0, 0, 0, 0.9);
  }

  main > * {
    width: 85%;
  }
}

/* Larger devices should see body take up 50% of viewport and see larger fontsize */

@media only screen and (min-width: 1440px) {
  html {
    font-size: 1.2rem;
  }

  body {
    width: 50%;

    box-shadow: 0 0 32px 0 rgba(0, 0, 0, 0.9);
  }

  main > * {
    width: 75%;
  }
}

/* Page Structure */

header {
  background-image: url(/images/rho-ophiuchi-cloud-complex-header.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;

  height: 10vh;

  font-size: 3vh;

  display: flex;
  justify-content: center;
  align-items: center;
}

nav {
  text-align: center;

  padding: 10px;

  background-color:#1b1b1b;

  position: sticky;
  top: 0;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
}

h1 {
  text-align: center;
  margin: 30px 0;
}

h2 {
  margin: 20px 0;
}

p {
  text-indent: 3rem;
  line-height: 1.5rem;
  margin: 10px 0;
}

figcaption {
  text-align: center;
  font-style: italic;
  margin: 10px;
}

footer {
  background-color: #1b1b1b;

  padding: 15px;
  margin: 50px 0 0 0;
}

/* Miscellaneous Elements */

/* Link Styling */

header a {
  text-decoration: none;
}

a {
  color: #eeeeee
}

a:hover {
  color: rgb(212 66 111);
}

a:active {
  color: rgb(106 64 125);
}

img {
  width: 100%;
}

li {
  margin: 0 2.5rem;
  line-height: 1.5rem;
}

/* Fix Superscript and Subscript changing line height */

sup,
sub {
  line-height: 0;
}

/* Left to right text */

:lang(ar),
:lang(fa) {
  writing-mode: vertical-rl;
}

