/*
  Author: Imani Hollie
  File: Lesson 7
*/

/* --------------- CSS Reset --------------- */
body, header, nav, nav ul, main, aside, figure, figcaption, footer, img, h1, h3 {
  margin: 0;
  padding: 0;
  border: 0;
}

/* --------------- Base Styles --------------- */
body {
  background-color: #f6eee4;
  font-family: 'Lora', serif;
}
  
img {
  max-width: 100%;
  display: block;
}

/* --------------- Typography --------------- */
.emblema-one-regular {
  font-family: "Emblema One", system-ui;
  font-weight: 400;
  font-style: normal;
}

.lora-regular {
  font-family: "Lora", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

/* --------------- Header --------------- */
.mobile h1, .mobile h3 {
  padding: 2%;
  text-align: center;
}

/* --------------- Navigation --------------- */
nav {
  background-color: #2a1f14;
}

nav ul {
  list-style-type: none;
  text-align: center;
}

nav li {
  display: block;
  font-size: 1.5em;
  font-family: Geneva, Arial, sans-serif;
  font-weight: bold;
  padding: 0.5px 0 0 0;
  color: #f6eee4;
}

nav li a {
  display: block;
  color: #f6eee4;
  padding: 0.5em 2em 0.5em 2em;
  text-decoration: none;
}

/* --------------- Main Content --------------- */
main {
  padding: 2%;
}

main p {
  font-size: 1.25em;
}

main h3{
  padding: 2% 0 0 0;
}

main ul {
  list-style-type: square;
}

#info ul {
  margin-left: 10%;
}

#contact, #form h2 {
  text-align: center;
}

aside {
  text-align: center;
  font-size: 1.5em;
  font-weight: bold;
  text-shadow: 4px 4px 10px #c5a687;
}

figure {
  border: 4px solid #2a1f14;
  box-shadow: 6px 6px 10px #c5a687;
  max-width: 400px;
  margin: 2% auto;
}

figcaption {
  padding: 2%;
  border: 4px solid #2a1f14;
}

/* Style rule for form elements */
fieldset {
  margin-bottom: 2%;
  font-weight: bold;
  font-size: 1.25em;
}

input, textarea {
  margin-bottom: 2%;
}

label {
  display: block;
  padding-top: 2%;
}

#submit {
  margin: 0 auto;
  display: block;
  padding: 2%;
  background-color: #78593a;
  color: #f6eee4;
  font-size: 1.25em;
  border-radius: 10px;
}

/* --------------- Utility Classes --------------- */
.link {
  color: #4d3319;
  text-decoration: none;
  font-weight: bold;
  font-style: italic;
}

.action {
  font-size: 1.75em;
  font-weight: bold;
  text-align: center;
}

.round {
  border-radius: 6px;
}

.tel-link {
  background-color: #2a1f14;
  padding: 2%;
  width: 80%;
  margin: 0 auto;
}

.tel-link a {
  color: #f6eee4;
  text-decoration: none;
  font-weight: bold;
}

/* --------------- Footer --------------- */
footer {
  color: #f3e6d8;
  text-decoration: none;
}

#footer {
  text-align: center;
  font-size: 0.85em;
  background-color: #2a1f14;
  color: #f6eee4;
  padding: 1% 0;
  text-decoration: none;
}

/* --------------- Toggle Viewport --------------- */
/* Style rules to toggle mobile and tablet viewports */
.mobile, .mobile-tablet {
  display: block;
}

.tab-desk, .desktop {
  display: none;
}

/* --------------- Media Query: Tablet Viewport --------------- */
@media screen and (min-width: 620px), print {
  /* Style rules to toggle mobile and tablet viewports */
  .mobile, .mobile-tablet {
    display: none;
  }

  .tab-desk, .desktop {
    display: inline-block;
  }

  /* Tablet Viewport: Style rules for nav area */
  nav li {
    display: inline-block;
    font-size: 1.25em;
  }

  /* Tablet Viewport: Style rules for main area */
  /* Style rules for gallery */
  .grid {
    display: grid;
    grid-template-columns: auto auto;
    grid-gap: 10px;
  }
  
  aside {
    grid-column: 1 / span 2;
  }
  
  /* Style rules for form elements*/
  #form {
    width: auto;
  }
  
  .form-grid {
    display: grid;
    grid-template-columns: auto auto;
    grid-gap: 20px;
  }
  
  .btn {
    grid-column:1 / span 2;
  }
}

/* --------------- Media Query: Desktop Viewport --------------- */
@media screen and (min-width: 1000px), print {
  /* Style rules to toggle mobile and desktop viewports */
  .mobile, .mobile-tablet {
    display: none;
  }

  .tab-desk, .desktop {
    display: inline-block;
  }
  
  /* Desktop Viewport: Style rules for nav area */
  nav li {
    display: inline-block;
    font-size: 1.5em;
    padding: 0.5em 1.5em;
  }

  nav li a:hover {
    color: #2a1f14;
    background-color: #f6eee4;
    opacity: 0.5;
  }
  
  /* Desktop Viewport: Style rules for main area */
  #info ul {
    margin-left: 5%;
  }
  
  /* Style rules for gallery */
  .grid {
    display: grid;
    grid-template-columns: auto auto auto;
    grid-gap: 30px;
  }
  
  aside {
    grid-column: 1 / span 3;
    font-size: 2em;
  }
  
  /* Style rules for table */
  table {
    border: 1px solid #2a1f14;
    border-collapse: collapse;
    margin: 0 auto;
  }
  
  caption {
    font-size: 1.5em;
    font-weight: bold;
    padding: 1%;
  }
  
  th {
    border: 1px solid #2a1f14;
    background: #2a1f14;
    padding: 1.15em;
    color: #ffffff;
    font-size: 1.15em;
  }
  
  tr:nth-child(odd) {
    background: #deccba;
  }
  
  td {
    border: 1px solid #2a1f14;
    padding: 1.15em;
  }
  
}

/* --------------- Media Query: Large Desktop Viewport --------------- */
@media screen and (min-width: 1921px), print {
  /* Style rules to toggle mobile and large desktop viewports */
  .mobile, .mobile-tablet {
    display: none;
  }

  .tab-desk, .desktop {
    display: inline-block;
  }
  
  /* Large Desktop Viewport: Style rules for main area */
  body {
    background: linear-gradient(#f6eee4, #78593a);
  }

  #wrapper {
    width: 1920px;
    margin: 0 auto;
  }

  main {
    background-color: #f63334;
  }

  /* Style rules for gallery */
  .grid {
    display: grid;
    grid-template-columns: auto auto auto auto;
    grid-gap: 30px;
  }
  
  aside {
    grid-column: 1 / span 4;
    font-size: 3em;
  }
}

/* --------------- Media Query: Print --------------- */
@media print {
  body {
    background-color: #ffffff;
    color: #000000;
  }
}