:root {
    --primary-color: #652D90;
    --secondary-color: #077187;
    --dark-color-1: #0F1808;
    --dark-color-2: #29252D;
    --dark-color-3: #5C5365;
    --dark-color-4: #96909B;
    --light-color-1: #D0CCD0;
    --light-color-2: #E6E4E8;
    --lightest-color: #FBFCFF;
}

/* Universal Slector */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-size: 18px;
  }
  
  /* Body Styles */
  body {
    background-color: var(--dark-color-4);
    color: var(--lightest-color);
    font-family: Verdana, Helvetica, sans-serif;
    font-size: 1.5rem;
  }

   /* Dark Mode Body Styles */
  body.dark-mode {
    background-color: var(--dark-color-3);
    color: var(--light-color-1);
  }

  /* Navigation Styles */
  nav {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: 125px;
    width: 100%;
    z-index: 10;
  }

  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    justify-content: space-between;
    background: var(--lightest-color);
  }

  /* Dark Mode Navbar */
  .dark-mode .navbar {
    background: var(--dark-color-2);
  }

  .navbar .nav-menu {
    display: flex;
    align-items: center;
  }
  
  .navbar .nav-link {
    margin: 1.25em;
    padding: 10px;
    display: inline;
    font-weight: bold;
    border: var(--dark-color-2);
    border-width: 3px;
    border-style: solid;
    border-radius: 8px;
    box-shadow: 3px 3px 5px 1px var(--dark-color-1);
  }

  /* Dark Mode Nav Button Styles */
  .dark-mode .navbar .nav-link {
    background-color: var(--light-color-1);
  }

  /* Toggle Button Styles */
  #toggle {
    margin: auto;
    padding: 5px;
    color: var( --primary-color);
    font-size: 24px;
    font-weight: bold;
    border: 3px, solid, var(--dark-color-1);
    border-radius: 8px;
    box-shadow: 3px 3px 5px 1px var(--dark-color-1);
  }

  #toggle:hover {
    color: var(--secondary-color)
  }

  /* Link Styles */
  a {
    color: var( --primary-color);
    font-size: 24px;
  }

  a:hover {
    color: var(--secondary-color);
  }

  h4 a {
    color: var( --lightest-color);
    font-size: 18px;
  }

  /* Image Styles */
  figure {
    display: block;
    color: var(--primary-color);
    font-weight: bold;
  }

  figure img {
    display: block;
    color: var(--primary-color);
    width: 125px;
  }

  /* Header Container */
  .header-container {
    background: var(--primary-color);
    padding: 15px;
    margin-top: 125px;
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

/* H1 Header Styles */
  h1 {
    font-size: 2em;
    padding: 10px;
    margin: 10px;
    text-transform: uppercase;
  }

/* H2 Header Styles */
  h2 {
    padding: 25px;
    background-color: var(--primary-color);
    border-radius: 25px;
    border: 3px solid var(--dark-color-1);
    text-align: center;
    line-height: 2em;
    width: 45%;
  }

/* H3 and H4 Header Styles */
  h3, h4 {
    margin: 30px;
    padding: 20px;
    background-color: var(--primary-color);
    border-radius: 25px;
    border: 3px solid var(--dark-color-1);
    text-align: center;
  }

/* Container Style Setups */
  .container, .subcontainer {
    margin: auto;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    width: 90%;
    text-align: center;
  }


/* Top Footer Styles */
  #topfooter {
    background-color: var(--light-color-1);
    margin-top: 20px;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    height: 100px;
    line-height: 1.5em;
  }

  /* Dark Mode Top Footer Styles */
  .dark-mode #topfooter {
    background-color: var(--dark-color-2);
  }

  /* Footer Styles */
  #footer {
    background-color: var(--primary-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 150px;
    line-height: 1.5em;
  }

  footer p {
    text-align: center;
  }


  /* Responsive Web Design */

/* Tablet Screen Size */
@media screen and (max-width: 786px) {
  :root {
    scroll-padding-top: 275px;
  }
  nav {
    flex-direction: column;
    height: 265px;
  }

  figure img {
    width: 175px;
    margin: auto;
  }

  .header-container {
    margin-top: 250px;
    padding: 10px;
  }

  .subcontainer {
    flex-direction: column;
    flex-wrap: wrap;
  }
}

/* Mobile Screen Size */
@media screen and (max-width: 480px) {
  .navbar .nav-link {
    margin-left: .2em;
    margin-right: .2em;
  }
  
}