/*
Author: Natalie Madden
Date: March 2026
File Name: styles.css
*/

/* CSS Reset */
body, header, nav, main, footer, img, h1, ul, section, aside, figure, figcaption, article, div, a, p, h2, h3, form, fieldset, input, textarea, table, tr, th, td, caption {
  margin: 0;
  padding: 0;
  border: 0;
}

/* Box sizing */
* {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  display: block;
}

/* Mobile viewport */
.tab-desk {
  display: none;
}

.mobile-nav {
  position: relative;
}

#menu-links {
  display: none;
}

header {
  text-align: center;
  font-size: 1.5em;
  color: #373684;
  padding: 2%;
}

header h1 {
  font-family: 'DM Serif Display', serif;
}

nav {
  background-color: #373684;
}

nav ul {
  list-style-type: none;
  text-align: center;
}

nav li {
  display: block;
  font-size: 2em;
  border-top: 1px solid #e5e9fc;
}

nav li a {
  display: block;
  color: #fff;
  text-align: center;
  padding: 0.5em 1em;
  text-decoration: none;
}

.mobile-nav a {
  color: #fff;
  text-align: center;
  font-size: 2em;
  text-decoration: none;
  padding: 3%;
  display: block;
}

.mobile-nav a.menu-icon {
  display: block;
  position: absolute;
  right: 0;
  top: 0;
  padding: 2%;
}

.menu-icon div {
  height: 50px;
  width: 50px;
  background-color: #373684;
  color: #fff;
}

main {
  padding: 2%;
  background-color: #e5e9fc;
  overflow: auto;
  font-family: 'Roboto', sans-serif;
}

main p {
  font-size: 1.25em;
  margin-bottom: 1em;
}

.action {
  font-size: 1.25em;
  color: #373684;
  font-weight: bold;
}

#piano,
#guitar,
#violin {
  margin: 0 2%;
}

#info {
  clear: left;
  background-color: #c0caf7;
  padding: 18px 2%;
}

#info ul {
  margin-left: 10%;
}

.round {
  border-radius: 8px;
}

/* Contact page */
#contact {
  text-align: center;
}

.tel-link {
  background-color: #373684;
  padding: 2%;
  margin: 0 auto;
  width: 80%;
  text-align: center;
  border-radius: 5px;
}

.tel-link a {
  color: #fff;
  text-decoration: none;
  font-size: 1.5em;
  display: block;
}

#contact .email-link {
  color: #4645a8;
  text-decoration: none;
  font-weight: bold;
}

.map {
  border: 5px solid #373684;
  width: 95%;
  height: 50%;
  margin: 0 auto;
}

/* Table */
table {
  border: 1px solid #373684;
  border-collapse: collapse;
  margin: 0 auto;
  width: 100%;
}

caption {
  font-size: 1.5em;
  font-weight: bold;
  padding: 1%;
}

th,
td {
  border: 1px solid #373684;
  padding: 2%;
}

th {
  background-color: #373684;
  color: #fff;
  font-size: 1.15em;
}

tr:nth-child(odd) {
  background-color: #b7b7e1;
}

footer {
  text-align: center;
  font-size: 0.65em;
  clear: left;
  padding: 2%;
}

footer a {
  color: #4645a8;
  text-decoration: none;
}

#rental h2 {
  text-align: center;
}

.social img {
  display: inline-block;
  padding: 4%;
}

/* Chapter 7 Lab 1 (Instructors) mobile rules */
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;
  background-color: #fff;
}

figure img {
  display: block;
  width: 100%;
}

figcaption {
  position: absolute;
  bottom: 0;
  background-color: rgba(55, 54, 132, 0.8);
  color: #fff;
  width: 100%;
  padding: 5% 0;
  text-align: center;
  font-family: Verdana, Arial, sans-serif;
  font-size: 1.5em;
  font-weight: bold;
}

/* Forms */
form {
  width: 100%;
}

.form-grid {
  display: grid;
  grid-template-columns: auto auto;
  grid-gap: 20px;
}

.btn {
  grid-column: 1 / span 2;
}

/* Footer layout from earlier chapter */
.copyright {
  float: left;
  width: 65%;
}

.social {
  float: right;
  width: 25%;
}

/* Tablet viewport */
@media screen and (min-width: 550px), print {

  .tab-desk {
    display: block;
  }

  .mobile-nav {
    display: none;
  }

  .grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  aside {
    grid-column: 1 / span 2;
  }

  nav ul {
    list-style-type: none;
    text-align: center;
    margin: 0;
    padding: 0;
  }

  nav li {
    border-top: none;
    display: inline-block;
    font-size: 1.5em;
    border-right: 1px solid #e5e9fc;
  }

  nav li:last-child {
    border-right: none;
  }

  nav li a {
    padding: 0.25em 0.5em;
  }

  .map {
    width: 500px;
    height: 450px;
  }

  form {
    width: 70%;
    margin: 0 auto;
  }
}

/* Desktop viewport */
@media screen and (min-width: 769px), print {

  header {
    padding: 2%;
    text-align: center;
  }

  header h1 {
    font-size: 2em;
    margin: 0;
    padding: 0;
  }

  nav ul {
    text-align: center;
    margin: 0;
    padding: 0;
  }

  nav li a {
    padding: 0.5em 1.5em;
  }

  nav li a:hover {
    color: #373684;
    background-color: #e5e9fc;
    transform: scale(1.2);
  }

  .grid {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }

  aside {
    grid-column: 1 / span 4;
  }

  figcaption {
    font-size: 1em;
  }

  #info ul {
    margin-left: 5%;
  }

  main h3 {
    font-size: 1.5em;
  }

  #piano,
  #guitar,
  #violin {
    width: 29%;
    float: left;
    margin: 0 2%;
  }
}

/* =========================
   CHAPTER 12 / STEP 9 + 10
========================= */

/* Custom purple background class */
.bg-dark-purple {
  background-color: #373684;
}

/* Custom purple text class */
.text-dark-purple {
  color: #373684;
}

.hero {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.hero {
    background-image: linear-gradient(
        rgba(255, 255, 255, 0.7),
        rgba(255, 255, 255, 0.7)
    ), url("../images/music-notes.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 500px;
}

/* GRADIENT OVERLAY */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: linear-gradient(
        rgba(255,255,255,0.7),
        rgba(255,255,255,0.7)
    );

    z-index: 1;
}

/* TEXT */
.welcome {
    position: relative;
    z-index: 2;
    margin-top: 10%;
    text-align: center;
}

.welcome {
    margin-top: 10%;
}

.bg-dark-purple {
    background-color: #373684;
}

/* CENTER TEXT PROPERLY */
.hero .container {
    text-align: center;
}

/* PURPLE COLORS (book style) */
.bg-dark-purple {
    background-color: #373684;
}

/* Welcome content inside hero */
.welcome {
  padding: 2em;
}

.welcome p {
  font-size: 1.25em;
  width: 70%;
  margin: 0 auto 1em auto;
  line-height: 1.5;
}

/* Hero button spacing */
.hero .btn {
  margin-top: 15px;
}

/* Bootstrap page image polish */
main figure img {
  margin: 0 auto;
}

/* Slight spacing for main headings in Bootstrap layout */
main h1 {
  margin-top: 0.75em;
  margin-bottom: 0.5em;
}
