/*
Author: Student
File Name: styles.css
Date: 02/26/2026
*/

/* CSS Reset */
body, header, nav, main, footer, img, h1, ul, section, aside, figure, figcaption {
  margin: 0;
  padding: 0;
  border: 0;
}

/* Style rule for images */
img {
  max-width: 100%;
  display: block;
}

/* Style rule for box sizing applies to all elements */
* {
  box-sizing: border-box;
}

/* Style rules for mobile viewport */
body {
  background-color: #e5e9fc;
  color: #000;
}

/* Hide tab-desk class and menu links by default */
.tab-desk, #menu-links {
  display: none;
}

/* Mobile navigation */
nav {
  background-color: #373684;
}

.mobile-nav a {
  color: #fff;
  text-align: center;
  font-size: 2em;
  text-decoration: none;
  padding: 3%;
  display: block;
  font-family: 'Roboto', sans-serif;
}

.mobile-nav a.menu-icon {
  display: block;
  position: absolute;
  right: 0;
  top: 0;
}

.menu-icon div {
  height: 50px;
  width: 50px;
  background-color: #373684;
}

header {
  text-align: center;
  font-size: 1.5em;
  color: #373684;
  background-color: #fff;
}

header h1 {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: 1.5em;
  padding: 4%;
  margin-right: 0;
}

nav ul {
  list-style-type: none;
  text-align: center;
}

nav li a {
  display: block;
  color: #fff;
  text-decoration: none;
  padding: 0.75em 1em;
  font-size: 1.2em;
  font-family: 'Roboto', sans-serif;
}

main {
  padding: 2%;
  overflow: auto;
  font-family: 'Roboto', sans-serif;
  background-color: #e5e9fc;
}

main p {
  font-size: 1.25em;
}

section {
  margin: 0 2% 4%;
}

section h2, section h3 {
  color: #373684;
  margin-bottom: 0.5em;
}

aside {
  text-align: center;
  font-size: 1.5em;
  font-weight: bold;
  color: #373684;
  text-shadow: 3px 3px 10px #8280cb;
}

figure {
  position: relative;
  max-width: 275px;
  margin: 2% auto;
  border: 8px solid #373684;
}

figcaption {
  position: absolute;
  bottom: 0;
  background: rgba(55, 54, 132, 0.7);
  color: #fff;
  width: 100%;
  padding: 5% 0;
  text-align: center;
  font-family: Verdana, Arial, sans-serif;
  font-size: 1.5em;
  font-weight: bold;
}

footer {
  text-align: center;
  font-size: 0.8em;
  padding: 1.25em 1em;
  background-color: #e5e9fc;
}

footer a {
  color: #373684;
  text-decoration: none;
  font-weight: bold;
}

/* Media Query for Tablet Viewport */
@media screen and (min-width: 550px), print {
  /* Tablet Viewport: Show tab-desk class, hide mobile nav */
  .tab-desk {
    display: block;
  }

  .mobile-nav {
    display: none;
  }

  span.tab-desk {
    display: inline;
  }

  nav li a {
    padding: 0.5em 1em;
    font-size: 1.1em;
  }

  nav li {
    display: inline-block;
    border-right: 1px solid #e5e9fc;
  }

  nav li:last-child {
    border-right: none;
  }

  .grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 20px;
  }

  aside {
    grid-column: 1 / span 2;
  }
}

/* Media Query for Desktop Viewport */
@media screen and (min-width: 769px), print {
  header {
    padding: 2%;
  }

  nav li a {
    padding: 0.5em 1.5em;
  }

  nav li a:hover {
    color: #373684;
    background-color: #e5e9fc;
  }

  .grid {
    grid-template-columns: repeat(4, 1fr);
  }

  figcaption {
    font-size: 1em;
  }

  aside {
    grid-column: 1 / span 4;
  }
}

