@charset "utf-8";
/* CSS Document */
/* Root Variables */ :root {
  --font-body: "Open Sans", sans-serif;
  /* For index.php */
  --font-title: "Playfair Display", serif;
  /* For specs.php */
  --font-specs: "Jersey 15", sans-serif;
  --color-bg-main: rgba(60, 3, 7, 1);
  --color-bg-header: rgba(0, 0, 0, 1);
  --color-bg-nav: rgba(125, 8, 19, 0.9);
  --color-bg-footer:rgba(125, 8, 19, 1);
  --color-text: rgba(230, 230, 230, 1);
  --color-hover: rgba(225, 247, 249, 0.85);
  /* For upgrades.php */
  --color-linkfocus: rgba(50, 167, 220, 0.75);
  --color-border: rgba(186, 16, 33, 0.75);
  --color-border-light: rgba(186, 17, 33, 0.4);
  --shadow-text: #3ea8dd;
  /* For Background of Back To Top */
  --color-back-to-top: rgba(60, 3, 7, 0.1);
}
/* General CSS Rules for Body and Anchor Selectors */
body {
  display: flex;
  flex-direction: column;
  background-color: var(--color-bg-main);
  font-family: var(--font-body);
  color: var(--color-text);
  min-height: 100vh;
}
a {
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--color-text);
}
/* CSS Rules for Header and Navigation Bar */
header {
  display: flex;
  background-color: var(--color-bg-header);
  height: 10.625rem;
  padding: 0 max(calc((100vw - 62.5rem) / 2), 0rem);
  justify-content: space-around;
  align-content: center;
  align-items: center;
}
#large_logo {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  align-content:space-between;
}
#small_logos_and_slogan {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  align-content: space-between;
}
#small_logos {
  display: flex;
  justify-content: space-between;
  align-items: center;
  align-content: space-between;
  margin-left: 55px;
  margin-right: 55px;
}
#slogan {
  display: flex;
  justify-content: center;
  align-items: baseline;
  align-content: flex-end;
  margin-top: 2.5rem;
}
h1 {
  color: var(--color-text);
  font-size: 1.71875rem;
  text-align: center;
}
nav {
  background-color: var(--color-bg-nav);
  height: 2.8125rem;
  padding: 0 max(calc((100vw - 62.5rem) / 2), 0rem);
  display: flex;
  justify-content: center;
}
nav #menu {
  width: 86%;
  display: flex;
  justify-content: space-around;
  align-items: center;
  align-content:flex-start;
}
nav .icons {
  display: none;
}
#menu a {
  text-decoration: none;
  font-size: 1rem;
  text-align: center;
}
#menu a:hover, #menu a:focus, #menu a:active {
  color: var(--color-hover);
  transition: 0.1s ease-in-out;
}
#smallwebicons {
  display: flex;
  justify-content: space-around;
  align-items: center;
  align-content: flex-end;
}
#smallwebicons a {
  height: 2.75rem;
  position: relative;
}
#smallwebicons a.smallwiki {
  width: 3.5625rem;
}
#smallwebicons a.smallforza {
  width: 4.625rem;
  height: 2.5625rem;
}
#smallwebicons a::before, #smallwebicons a::after {
  content: "";
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transition: opacity 0.1s ease-in-out;
}
#smallwebicons a::before {
  opacity: 1;
}
#smallwebicons a::after {
  opacity: 0;
}
#smallwebicons a:hover::after, #smallwebicons a:focus::after, #smallwebicons a:active::after {
  opacity: 1;
}
/* Assign images */
.smallwiki::before {
  background-image: url("../images/small_wikipedia_icon.svg");
}
.smallwiki::after {
  background-image: url("../images/small_wikipedia_icon_effect.svg");
}
.smallforza::before {
  background-image: url("../images/small_forza_icon.svg");
}
.smallforza::after {
  background-image: url("../images/small_forza_icon_effect.svg");
}
/* General styles for all pages */
main {
  padding: 0 max(calc((100vw - 62.5rem) / 2), 0rem);
  flex: 1;
}
/*CSS Rules for Home Page*/
#keyvisual {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: nowrap;
}
/*
#acura img, #chevy img, #bmw img {
  max-width: 100%;
  max-height: 100%;
}
*/
#acura {
  margin-top: 5.578125rem;
  max-width: 19.375rem;
}
#chevy, #bmw {
  margin-top: 2.23125rem;
  max-width: 19.375rem;
}
#keyvisual, #desc {
  font-family: var(--font-title);
  color: var(--color-text);
  text-align: center;
}
#keyvisual p {
  font-weight: 700;
  font-size: 0.8125rem;
  margin-top: 0.5rem;
}
#desc {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  margin-bottom: 3.75rem;
}
#desc img {
  margin: 60px auto 35px auto;
}
#desc p {
  font-size: 17px;
  font-weight: 500;
  line-height: 150%;
  text-align: left;
  width: 80%;
  margin: 0 auto;
}

#desc p::first-letter {
  font-size: 2.2em;
  font-weight: bold;
  vertical-align: bottom;
  line-height: 1;
  padding-right: 4px;
}

#attribution {
  display: flex;
  justify-content: center;
  align-items: center; /* more stable than baseline */
  gap: 0.5rem; /* adds spacing between <p> and <a> */
  padding-top: 0.3125rem; /* gives breathing room */
  font-size: 0.75rem;
}
#attribution p {
  font-weight: 700;
  color: var(--color-text);
}
#attribution a {
  text-decoration: underline;
  color: inherit;
}
/*CSS Rules for Technical Specs */
#animation_container {
  margin: 1.875rem auto;
}
.sTitle {
  text-transform: uppercase;
  font-size: 2.5rem;
  text-align: center;
}
.specs {
  display: flex;
  justify-content: space-between;
  margin: 3.125rem auto;
}
.specs div {
  font-family: var(--font-specs);
  font-weight: 400;
  font-size: 2.1875rem;
  color: var(--color-text);
  flex-direction: column;
}
.power {
  margin-bottom: 1.25rem;
}
.lateral {
  margin-bottom: 3.125rem;
}
/*CSS Rules for Official Desc*/
.desc {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  align-content: space-between;
  margin: 50px auto 100px auto;
  position: relative;
}
.imgdesc {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
}
.imgdesc h2 {
  text-transform: uppercase;
  font-size: 36px;
  text-align: left;
}
.imgdesc img {
  width: 700px;
}
.pdesc p {
  width: 250px;
  font-size: 20px;
  line-height: 130%;
}
/*CSS Rules for Avail Upgrades*/
#gallery {
  margin: 3.125rem 2.97rem 1.25rem 2.97rem;
}
#faq {
  margin: 2.5rem 1.25rem 3.125rem 1.25rem;
  width: 96%;
  text-align: center;
}
#faq h2 {
  font-size: 2em;
  margin-bottom: 1.563rem;
  font-weight: 700;
  text-align: center;
}
#faq h3 {
  font-size: 1.5em;
  margin: 2.5rem;
  font-weight: 700;
  text-align: center;
}
#faq p {
  font-size: 1.3em;
  margin-bottom: 2.3rem;
  text-align: center;
}
#faq li {
  border-top: dotted 1px var(--color-border);
  border-bottom: dotted 1px var(--color-border);
  padding: 1.5625rem 0;
  width: 65%;
  margin: 0 auto;
  text-align: center;
}
#faq .q {
  cursor: pointer;
  text-shadow: 0px 0px 2px var(--shadow-text);
  font-size: 1.25em;
}
#faq .q:hover, #faq .q:focus, #faq .q:active {
  color: var(--color-linkfocus);
  font-weight: 700;
}
#faq .a {
  margin-top: 1.3rem;
  line-height: 150%;
  font-size: 1.3em;
}
/* CSS Rules for Back To Top Button*/
#back-to-top {
  appearance: none;
  display: none;
  position: fixed;
  right: 1em;
  bottom: 5em;
  z-index: 9000;
  border: none;
  outline: none;
  background-color: var(--color-back-to-top);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 300;
  cursor: pointer; /* Add a mouse pointer on hover */
  font-size: 1.81em; /* Increase font size */
}
#back-to-top:hover, #back-to-top:focus, #back-to-top:active {
  color: var(--color-hover);
}
/* CSS Rules for Footer */
footer {
  display: flex;
  background-color: var(--color-bg-footer);
  height: 2.8125rem;
  padding: 0 max(calc((100vw - 62.5rem) / 2), 0rem);
  font-size: 0.6875rem;
  justify-content: space-between;
  align-items: center;
  align-content: space-between;
}
#date {
  display: flex;
  width: 43.75rem;
  justify-content: center;
  align-items: center;
  align-content: space-between;
  text-align: center;
}
#endnote, #welcome {
  display: flex;
  width: 9.375rem;
  justify-content: flex-start;
  align-items: center;
  align-content: space-between;
}
#endnote img {
  height: 1rem;
  margin-left: 0.5rem;
}
/* Responsive Styles - Media Queries */
@media screen and (max-width: 540px) {
  main {
    padding: 0;
  }
  /* CSS Rules for Header and Navigation Bar */
  header {
    justify-content: center;
  }
  #large_logo {
    justify-content: center;
  }
  #small_logos_and_slogan {
    display: none;
  }
  nav {
    height: auto;
    display: block;
  }
  #smallwebicons {
    display: none;
  }
  nav .icons img {
    height: 2.5rem;
    display: block;
    margin: 0 auto;
  }
  nav .icons {
    display: block;
    text-align: center;
  }
  nav .icons .closeicon {
    display: none;
  }
  nav #menu {
    display: none;
    width: 55%;
    padding-bottom: 15px;
    margin: 15px auto;
  }
  #menu a {
    display: block;
    border-top: dashed 2px var(--color-border-light);
    font-size: 1.2em;
    text-shadow: 0px 0px 7px var(--shadow-text);
    text-align: center;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  /*CSS Rules for Home Page */
  #chevy img {
    content: url("../images/chevylandscape.jpg");
  }
  #acura img {
    content: url("../images/acuralandscape.jpg");
  }
  #bmw img {
    content: url("../images/bmwlandscape.jpg");
  }
  #keyvisual {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    align-content: space-between;
  }
  #chevy, #acura, #bmw {
    width: 100%;
    max-width: none;
    margin-top: 0;
  }
  #chevy img, #acura img, #bmw img {
    width: 100%;
	max-width: none;
    height: auto;
    display: block;
  }
  #keyvisual p {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
  }
  #desc p {
    font-size: 1rem;
    margin: 0 auto 5px auto;
  }
  #attribution {
    display: none;
  }
  /*CSS Rules for Technical Specs Page*/
  #animation_container {
    width: 100%;
    margin: 1rem auto;
  }
  .sTitle {
    font-size: 1.7rem;
  }
  .specs {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-direction: column;
  }
  .specs div {
    flex-direction: column;
  }
  .specs p {
    text-align: center;
  }
  .composite_title {
    font-size: 1.7rem;
    line-height: 130%;
  }
  .power, .braking, .lateral {
    margin-bottom: 0.5rem;
  }
  .power, .braking, .lateral, .acceleration {
    font-size: 1.7rem;
    padding-bottom: 1rem;
  }
  /*CSS Rules for the Official Desc Page*/
  .desc {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    margin: 4rem 2rem;
    position: initial;
  }
  .imgdesc h2 {
    display: inherit;
    position: initial;
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  .imgdesc img {
    display: block;
    width: auto;
    height: auto;
    margin: 1rem auto;
    position: initial;
  }
  .pdesc p {
    display: block;
    width: 95%;
    font-size: 1.4rem;
    line-height: 140%;
    margin-top: 2rem;
    margin-left: auto;
    margin-right: auto;
  }
  #nsxpic, #bmwpic {
    margin-top: 2rem;
  }
  /*CSS Rules for the Available Upgrades Page*/
  #faq {
    margin: auto;
  }
  #faq h2 {
    font-size: 2rem;
  }
  #faq h3 {
    font-size: 1.5rem;
  }
  #faq p {
    font-size: 1.1rem;
    line-height: 150%;
  }
  #faq .q {
    font-size: 1.25rem;
    font-weight: 700;
  }
  #faq .a {
    font-size: 1.2rem;
  }
  #faq .q:hover, #faq .q:focus, #faq .q:active {
    color: inherit;
    font-weight: 700;
  }
  /* CSS Rules for Back To Top Buttons on All Pages Except Homepage */
  #back-to-top {
    font-size: 1.5rem;
  }
}