html,
body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  height: 100%;
  box-sizing: border-box;
  overflow-x: hidden; /* in case navigation menu encouters browser issues */
}
*,
*:before,
*:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
main {
  min-height: 100%; /* places footer at bottom of screen all screen sizes */
}
section h2 {
  margin: 1rem auto;
  text-align: center;

}
p {
  max-width: 600px;
  display: flex;
  flex-direction: row;
  align-content: center;
  margin: 1.5em auto;
  padding: 0 2em;
}
@media (min-width: 700px) {
  .two_col {
    max-width: 900px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2em;
  }
}
#footer {
  display: flex;
  flex-direction: column;
  max-width: 800px;
  margin: auto;
  padding: 10px;
}
footer {
  text-align: center;
  background-color: rgb(35, 40, 44);
  color: white;
}
#currentTime {
  font-style: italic;
}

.hide {
  display: none;
}
/* Mobile First type size using calc and custom properties to adjust via media queires */
/* font sizes */
:root {
  --base-size: 16px;
  --type-scale: 1.1;
  --h5: calc(var(--base-size) * var(--type-scale));
  --h4: calc(var(--h5) * var(--type-scale));
  --h3: calc(var(--h4) * var(--type-scale));
  --h2: calc(var(--h3) * var(--type-scale));
  --h1: calc(var(--h2) * var(--type-scale));
}
h1 {
  font-size: var(--h1);
  font-family: Georgia, "Times New Roman", Times, serif;
}

h2 {
  font-size: var(--h2);
  font-family: Georgia, "Times New Roman", Times, serif;
}

h3 {
  font-size: var(--h3);
  font-family: Georgia, "Times New Roman", Times, serif;
}

h4 {
  font-size: var(--h4);
  font-family: Georgia, "Times New Roman", Times, serif;
  text-align: center;
  color: green;
  font-style: italic;
  margin-bottom: 20px;
}

h5 {
  font-size: var(--h5);
  font-family: Georgia, "Times New Roman", Times, serif;
}

p,
li {
  font-size: var(--base-size);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}
input::placeholder,
textarea::placeholder {
  font-size: 14px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  opacity: 0.8;
}

small {
  font-size: 12px;
}

* {
  text-decoration: none;
  margin: 0;
}

.flex {
  display: flex;
  gap: 1rem;
}
/* ------- primary header ---------- */
.logo {
  margin-left: 3rem;
  margin-top: 26px;
  width: 120px;
}
.sr-only {
  display: none;
}
nav {
  color: white;
}
.primary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  padding: 0;
  z-index: 100;
}
.mobile-nav-toggle {
  display: none;
}
.primary-navigation {
  list-style: none;
  padding: 0;
  margin: 0;
}

.primary-navigation a {
  text-decoration: none;
  color: white;
  display: block;
  padding: 10px;
  margin: 0;
  text-align: center;
  margin-right: 2rem;
}
.primary-navigation a:hover {
  background-color: grey;
}
.primary-navigation a.active {
  color: yellow;
}

.primary-navigation a > [aria-hidden="true"] {
  font-weight: 700;
  margin-inline-end: 0.75em;
}
@media (max-width: 45em) {
  .logo {
    width: 100px;
    margin-top: 3px;
  }
  .primary-navigation {
    background-color: hsla(210, 13%, 6%, 100%);
    height: 50vh;
    width: 100vw;
    z-index: 1000;
    position: fixed;
    --gap: 1em;
    inset: 0 0 0 30%; /* margin top, right, bottom, left */
    flex-direction: column;
    padding: min(40vh, 4rem) 1rem;
    transform: translateX(100%);
    transition: transform 350ms ease-out;
  }
  .primary-navigation[data-visible="true"] {
    transform: translateX(0%);
  }
  .primary-navigation a {
    margin-right: 15rem;
  }
  .primary-navigation a:hover {
    background-color: grey;
  }

  .mobile-nav-toggle {
    display: block;
    position: absolute;
    z-index: 9999;
    background-image: url(../images/menu-white.png);
    background-repeat: no-repeat;
    background-color: transparent;
    border: none;
    width: 2rem;
    height: 4rem;
    top: 2rem;
    right: 2rem;
  }
  .mobile-nav-toggle[aria-expanded="true"] {
    background-image: url(../images/close_white.png);
  }
}
/* __________ Landing Page with Hero Image __________ */

/* The hero image */
.hero-image {
  /* Use "linear-gradient" to add a darken background effect to the image (photographer.jpg). This will make the text easier to read */
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url(../images/hero480x320.jpg);

  /* Set a specific height */
  height: 100vh;

  /* Position and center the image to scale nicely on all screens */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

/* Place text in the middle of the image */
.hero-text {
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
}
.hero-portfolio-text,
.hero-pricing-text,
.hero-contact-text {
  text-align: center;
  position: absolute;
  top: 70%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
}
.hero-text h1 {
  font-size: 18px;
  margin-bottom: 16px;
}
.hero-text p {
  font-size: 15px;
}
@media only screen and (min-width: 480px) {
  .hero-text h1 {
    font-size: 22px;
  }
  .hero-text p {
    font-size: 16px;
  }
}
@media only screen and (min-width: 480px) {
  .hero-text h1 {
    font-size: 26px;
  }
  .hero-text p {
    font-size: 18px;
  }
}
/* ---------- Home Page Hero image --------- - end */
/* ---------- Home Page Main Section Layout --------- - start */

.resources h5 {
  margin-left: 2rem;
}

.resources ul li {
  padding: 0.2em;
}

/*spiral staircase image by curved staircase Free-Photos from Pixabay   */
.parallax_image {
  display: none;
}

/* ---------- Home Page Main Section Layout --------- - End */

/* ---------- Layout changes with larger screen size --------- - start */
@media (min-width: 515px) {
  :root {
    --type-scale: 1.12;
  }

  .parallax_image {
    display: block;
    background-image: url(../images/spiral-1200.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: 100px;
    color: rgb(35, 40, 44);
  }
}

@media only screen and (min-width: 800px) {
  :root {
    --type-scale: 1.15;
  }
  .resources {
    display: none;
  }
}

@media only screen and (min-width: 1000px) {
  :root {
    --type-scale: 1.13;
  }
  .resources {
    display: block;
    margin-top: 2rem;
  }
}

/* portfolio page */
.hero-image-portfolio,
.hero-image-pricing,
.hero-image-contact {
  /* Use "linear-gradient" to add a darken background effect to the image (photographer.jpg). This will make the text easier to read */
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url(../images/hero480x320.jpg);

  /* Set a specific height */
  height: 30vh;

  /* Position and center the image to scale nicely on all screens */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

/* Pricing Page - small screens */

.price-content,
.portfolio-content {
  margin: auto;
  padding: 1em 0px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  min-height: 100%;
  width: 95%;
  margin-bottom: 30px;
}
.category,
.category-m {
  align-self: center;
  justify-self: center;
  text-align: center;
  margin: 2em 0px;
}
.inner-card {
  padding: 30px;
}
.second-list {
  margin-left: 20px;
}
.third-list {
  margin-left: 20px;
}
@media only screen and (min-width: 780px) {
  .portfolio-content {
    margin-top: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
  .price-content {
    display: block;
  }
  .design,
  .maintenance {
    display: flex;
    gap: 10px;
    justify-content: center;
  }
}

@media only screen and (min-width: 1140px) {
  .portfolio-content {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.price_card,
.portfolio_card {
  width: 90vw;
  max-width: 350px;
  margin: auto;
  border: 1px solid black;
  margin-top: 10px;
  /* Add shadows to create the "card" effect */
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  transition: 0.3s;
  border-radius: 5px; /* 5px rounded corners */
}

/* On mouse-over, add a deeper shadow */
.price_card:hover,
.portfolio_card {
  box-shadow: 0 8px 20px 0 rgba(8, 4, 4, 0.2);
}

.portfolio_card h2 {
  font-size: 22px;
  display: block;
  text-align: center;
}
.price_card h2 {
  font-size: 18px;
  display: block;
  text-align: center;
}
.price_card h3 {
  font-size: 16px;
  display: block;
  text-align: center;
  margin-bottom: 2rem;
}
/* contact page style */

/* ---------- Contact Form Layout --------- - Start */

.required {
  color: red;
}
.center {
  text-align: center;
}
.mini-form-group {
  display: flex;
}

.contact-form {
  background-color: rgb(243, 237, 230);
  border: 2px double #3f3e42;
  max-width: 900px;
  margin: auto;
  margin-top: 2rem;
  margin-bottom: 4rem;
  color: rgb(46, 43, 43);
  padding: 1rem;
}
.text-center {
  margin: auto;
  text-align: center;
}

.actualForm {
  margin: auto;
  width: 90%;
  padding-top: 1rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 80%;
  outline: none;
  padding: 0.7em 1em;
  border: 1px solid #0d041f;
  display: block;
  margin-top: 1em;
  margin-bottom: 1.2em;
}

.contact-form input[type="submit"] {
  outline: none;
  color: #ffffff;
  padding: 0.5em 0;
  font-size: 1em;
  margin: 1em 0 0 0;
  background: #0d041f;
  transition: 0.5s all;
  border: 2px solid #0d041f;
  -webkit-transition: 0.5s all;
  transition: 0.5s all;
  -moz-transition: 0.5s all;
  width: 50%;
  cursor: pointer;
}
.contact-form input[type="submit"]:hover {
  background: #9370db;
}
.fax {
  display: none;
}

.err-msg {
  color: red;
}

.text-success {
  color: #008000;
  text-align: center;
}
@media (min-width: 515px) {
  .contact-form input[type="submit"] {
    width: 27%;
  }
  .actualForm {
    width: 100%;
  }
}

/* ------  page setup for printing  ------- */
@media print {
  nav,
  .hero-image,
  .sec3 {
    display: none;
  }
  body {
    font-family: Georgia, "Times New Roman", Times, serif;
  }
  :root {
    --base-size: 0.8em;
    --type-scale: 1.25;
  }
  img {
    max-height: 0.5in;
    margin: 0 0.25in 0.25in 0;
  }
  a[href]::after {
    content: " (" attr(href) ")";
    font-size: var(--base-size);
  }
  article {
    /* columns: 2; */
    widows: 3; /* reduce number of sentences widowed to paragraph */
    margin-bottom: 0;
  }
}
