/*
 *
 * CSS written based on SMACSS architecture.
 * To learn more, visit: http://smacss.com/
 * 
 * For simplicity, no reset or normalize is added. 
 * To learn more, visit: https://css-tricks.com/reboot-resets-reasoning/
 *
*/

/* ---- Base Rules ---- */
body {
  background: rgb(136, 203, 171);
  background: linear-gradient(
    0deg,
    rgba(136, 203, 171, 1) 0%,
    rgba(0, 13, 60, 1) 100%
  );
  margin: 0;
  font-family: "Merriweather", serif;
  color: #fff;
}

/* Typeography General*/
h1 {
  font-family: "Fira Sans", sans-serif;
  font-size: 3em;
  margin: 2em 1rem;
}

@media only screen and (min-width: 35em) {
  h1 {
    font-size: 7em;
    margin: 2em 4rem 1em;
  }
}

h2 {
  border-bottom: 1px solid #cc1;
  font-family: "Oxygen", Sans-Serif;
  font-size: 3em;
  color: #fff;
}

p {
  line-height: 1.6em;
  color: #eee;
}

/* ---- Layout Rules ---- */
main {
  margin: 10vh 1em 10vh;
}

.main-hero {
  min-height: 40vh;
  padding-top: 3em;
}

section {
  position: relative;
  min-height: 80vh;
}

/* ---- Module Rules ---- */

/* Navigation Styles*/
.logo a {
  margin-left: 0.5rem;
  color: #000;
  font-size: 1.5rem;
  font-family: "Fira Sans", sans-serif;
  font-weight: bold;
  text-decoration: none;
}
.logo:hover {
}
#navbar__list {
  display: inline-block;
  width: 60%;
}
.navbar__menu {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 1rem;
}

.navbar__menu ul {
  padding-left: 0;
  margin: 0;
  text-align: right;
}

.navbar__menu li {
  display: inline-block;
  margin-left: 2%;
}

.navbar__menu .menu__link {
  display: block;
  padding: 0.5em;
  font-weight: bold;
  text-decoration: none;
  color: #000;
}

.navbar__menu .menu__link:hover {
  background: rgb(7, 56, 88);
  color: #fff;
  transition: ease 0.3s all;
}
.active__link {
  background: rgb(7, 56, 88) !important;
  color: #fff !important;
}

.hideNoScroll {
  display: none;
  transition: all 0.5s linear;
}
.icon {
  display: none;
}

/* Header Styles */
.page__header {
  background: linear-gradient(
    75deg,
    rgb(215, 236, 245, 0.95) 10%,
    rgba(188, 227, 243, 0.95) 90%
  );
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 5;
}

/* scroll to Top button */
.scroll__top {
  display: none;
  transition: all 0.5s ease-out;
}
.scroll__top__start {
  display: flex !important;
  justify-content: center;
  align-items: center;
  position: fixed;
  right: 1%;
  bottom: 10%;
  z-index: 99;
  border-radius: 10px;
  padding: 1rem 1.5rem;
  color: white;
  background: linear-gradient(
    90deg,
    rgba(61, 56, 124) 0%,
    rgba(5, 22, 100) 100%
  );
  opacity: 1;
  transform: translateX(0);
  transition: all 0.5s linear;
  animation: animateScroll 0.5s ease-out;
  box-shadow: 0 0 5px rgb(7, 15, 92);
}

@keyframes animateScroll {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }
}
@media (max-width: 700px) {
  #navbar__list {
    width: 100%;
  }

  .navbar__menu {
    display: block;
    align-items: center;
    justify-content: space-around;
    padding: 0;
  }
  .navbar__menu li {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 1% 0;
  }
  .topnav {
    overflow: hidden;

    position: relative;
  }

  .topnav #navbar__list {
    display: none;
  }

  .topnav a {
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
    display: block;
  }

  .topnav a.icon {
    display: block;
    position: absolute;
    right: 0;
    top: 0;
  }

  .topnav a:hover {
    color: black;
  }

  .scroll__top__start {
    bottom: 5%;
    border-radius: 5px;
    padding: 0.3rem 0.6rem;
    box-shadow: 0 0 2px rgb(7, 15, 92);
  }
  .page__footer {
    padding: 5rem !important;
  }
}
/* Footer Styles */
.page__footer {
  background: linear-gradient(
      45deg,
      rgba(20, 28, 138, 0.678) 10%,
      rgba(11, 4, 70, 0.938) 100%
    ),
    url("/images/background_img.jpg");
  padding: 15rem 5rem;
  background-size: cover;
  color: #fff;
}

.page__footer p {
  color: #fff;
}

/* ---- Theme Rules ---- */
/* Landing Container Styles */
.landing__container {
  padding: 1em;
  text-align: left;
}

@media only screen and (min-width: 35em) {
  .landing__container {
    max-width: 50em;
    padding: 4em;
  }
}
#section1,
#section2,
#section3,
#section4 {
  transition: all 2s ease-in;
}
section:nth-of-type(even) .landing__container {
  margin-right: 0;
  margin-left: auto;
  text-align: right;
}

/* Background Circles */
/* Note that background circles are created with psuedo elements before and after */
/* Circles appear to be random do to use of :nth-of-type psuedo class */
section:nth-of-type(odd) .landing__container::before {
  content: "";
  background: rgba(255, 255, 255, 0.187);
  position: absolute;
  z-index: -5;
  width: 20vh;
  height: 20vh;
  border-radius: 50%;
  opacity: 0;
  transition: ease 0.5s all;
}

section:nth-of-type(even) .landing__container::before {
  content: "";
  background: rgb(255, 255, 255);
  background: linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.2) 100%
  );
  position: absolute;
  top: 3em;
  right: 3em;
  z-index: -5;
  width: 10vh;
  height: 10vh;
  border-radius: 50%;
  opacity: 0;
  transition: ease 0.5s all;
}

section:nth-of-type(3n) .landing__container::after {
  content: "";
  background: rgb(255, 255, 255);
  background: linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.2) 100%
  );
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: -5;
  width: 10vh;
  height: 10vh;
  border-radius: 50%;
  opacity: 0;
  transition: ease 0.5s all;
}

section:nth-of-type(3n + 1) .landing__container::after {
  content: "";
  background: rgb(255, 255, 255);
  background: linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.2) 100%
  );
  position: absolute;
  right: 20vw;
  bottom: -5em;
  z-index: -5;
  width: 15vh;
  height: 15vh;
  border-radius: 50%;
  opacity: 0;
  transition: ease 0.5s all;
}

/* ---- Theme State Rules ---- */
/* Section Active Styles */
/* Note: your-active-class class is applied through javascript. You should update the class here and in the index.html to what you set in your javascript file.  */
section.your-active-class {
  background: rgb(0, 0, 0);
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.2) 100%
  );
}

section.your-active-class .landing__container::before {
  opacity: 1;
  animation: rotate 4s linear 0s infinite forwards;
}

section.your-active-class .landing__container::after {
  opacity: 1;
  animation: rotate 5s linear 0s infinite forwards reverse;
}

/* Section Active Styles Keyframe Animations */
@keyframes rotate {
  from {
    transform: rotate(0deg) translate(-1em) rotate(0deg);
  }
  to {
    transform: rotate(360deg) translate(-1em) rotate(-360deg);
  }
}
