@import url("https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Source+Sans+Pro&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Source+Code+Pro&display=swap");

html {
  scroll-behavior: smooth;
}

body {
  width: 100%;
  height: 100%;
  margin: 0;
  font-family: "Source Sans Pro", sans-serif;
  color: #17201f;
  background: #eee;
}

p {
  font-size: 1.2rem;
}
/* GRIDS */

.container {
  display: grid;
  grid-template-columns: 12vw auto 12vw;
  grid-template-rows: 120px calc(100vh - 120px) auto auto;
}
.subpage-container {
  display: grid;
  grid-template-columns: 12vw auto 12vw;
  grid-template-rows: 120px auto;
}

.grid {
  --auto-grid-min-size: 20rem;
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(var(--auto-grid-min-size), 1fr)
  );
  grid-gap: 1rem;
  justify-content: center;
}

header {
  padding: 0 12vw 0;
  background-color: #17201f;
  grid-column-start: 1;
  grid-column-end: 4;
  grid-row: 1;
  color: #fff;
  display: flex;
  align-items: center;
}

main {
  grid-column-start: 2;
  grid-column-end: 3;
  grid-row-start: 3;
  grid-row-end: 4;
  margin-bottom: 1rem;
}

footer {
  grid-column-start: 1;
  grid-column-end: 4;
  background: linear-gradient(
    45deg,
    rgba(23, 32, 31, 1) 40%,
    rgba(22, 45, 32, 1) 100%
  );
  background-color: #17201f;
  padding: 1.5rem 12vw 0.5rem 12vw;
  color: #ccc;
  align-items: center;
  justify-items: center;
}

h1 {
  font-family: "Lato", sans-serif;
  font-size: 2rem;
  margin: 0;
}

h2 {
  font-family: "Lato", sans-serif;
}

h3 {
  font-family: "Lato", sans-serif;
}

q {
  font-style: italic;
}

footer h3 {
  margin: 0;
  margin-bottom: 0.6rem;
  color: #fff;
}

footer p {
  font-size: 1rem;
}

a {
  text-decoration: none;
}

a:visited {
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}
a:active {
  text-decoration: none;
}

footer a {
  color: #ccc;
}

footer a:visited {
  color: #ccc;
}

footer a:hover {
  color: #fff;
  transition: 0.2s;
}

footer a:active {
  color: #ccc;
}

header a {
  color: #fff;
}

header a:visited {
  color: #fff;
}

header a:hover {
  color: #a8ffbe;
  text-shadow: 0 0 5px #48e06e;
  transition: 0.2s;
}

header a:hover i {
  color: #a8ffbe;
  text-shadow: 0 0 5px #48e06e;
  transition: 0.2s;
}

header a:active {
  color: #fff;
}
header a i {
  color: #fff;
  font-size: 2rem;
}
header svg {
  fill: #fff;
  width: 32px;
  height: 32px;
}
header svg:hover {
  filter: drop-shadow(0px 0px 2px rgba(72, 224, 110, 1));
}
header svg path {
  transition: 0.3s ease-in-out;
}
header svg:hover path {
  fill: #a8ffbe;
}
ul {
  list-style: none;
  margin: 0;
  padding: 0;
  margin-block-start: 0;
  margin-block-end: 0;
}
header ul li {
  float: left;
  margin: 0 1rem;
  font-size: 1.3rem;
}

footer ul li {
  margin: 0;
  padding: 0;
}

em {
  font-weight: bold;
  font-style: normal;
}
.navbar-desktop ul {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: center;
  justify-items: center;
}

.full-width {
  height: fit-content;
  grid-column-start: 1;
  grid-column-end: 4;
  padding: 2rem 24vw;
  background: linear-gradient(
    45deg,
    rgba(23, 32, 31, 1) 40%,
    rgba(22, 45, 32, 1) 100%
  );
  background-color: #17201f;
  color: #fff;
  align-items: center;
  text-align: center;
  margin-bottom: 4rem;
  font-size: 1.2rem;
}

.header-logo {
  display: flex;
  margin-left: 1rem;
  margin-right: 1rem;
  padding: 1rem;
  width: fit-content;
  height: fit-content;
}

.header-logo svg {
  height: 80px;
  width: 80px;
  transition: all 0.3s ease-in-out;
}

.header-logo svg:hover {
  filter: drop-shadow(0px 0px 4px rgba(72, 224, 110, 1));
}
.header-logo svg path {
  transition: 0.3s ease-in-out;
}
.header-logo svg:hover path {
  fill: #a8ffbe;
}

.footer-socials svg {
  fill: #ccc;
  height: 32px;
  width: 32px;
  transition: 0.3s ease-in-out;
}

.footer-socials svg:hover {
  fill: #fff;
  height: 32px;
  width: 32px;
}

.navbar-desktop {
  margin: auto;
  display: flex;
  align-items: center;
  align-content: center;
}
.navbar-mobile {
  display: none;
}

.header-menu {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  margin: auto;
}

.socials {
  display: block;
  margin: auto;
  font-size: 2rem;
  margin-right: 1rem;
}

.socials a {
  padding: 0 2rem;
}

.footer-logo svg {
  height: 10vh;
  opacity: 0.7;
  transition: all 0.3s ease-in-out;
  fill: #fff;
  padding: 1rem;
}

.footer-logo svg:hover {
  opacity: 1;
}

.footer-socials {
  margin-right: auto;
  margin-right: 1rem;
}

.hero-textbox {
  color: #fff;
  width: 50%;
  font-size: 1.2rem;
  line-height: 1.8rem;
}

.hero-wrapper {
  grid-column-start: 2;
  grid-column-end: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-content: center;
}

.hero-background {
  width: 100%;
  height: 100vh;
  position: absolute;
  z-index: -5;
  background-image: url(../images/main-bg.jpg);
  background-repeat: no-repeat, repeat;
  background-position: center;
  background-size: cover;
  background-color: #17201f;
}

.hero-button {
  position: absolute;
  fill: #fff;
  left: 50%;
  bottom: 0;
  margin-bottom: 1rem;
  width: 3rem;
  height: 3rem;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  opacity: 0.3;
  transition: all 0.3s ease-in-out;
}
.hero-button path {
  transition: all 0.3s ease-in-out;
}

.hero-button:hover {
  opacity: 1;
  filter: drop-shadow(0px 0px 3px #48e06e);
}
.hero-button:hover path {
  fill: #a8ffbe;
}

.card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-content: space-between;
  justify-content: center;
  background-color: #fff;
  text-align: center;
  padding: 2rem;
  box-shadow: 4px 4px 3px #ccc;
  transition: all 0.5s ease-in-out;
}

.card p {
  font-size: 1rem;
}

.cards {
  margin-top: 1rem;
}

.card:hover {
  background-color: #17201f;
  color: #fff;
  box-shadow: 4px 4px 3px #aaa;
}

.card h2 {
  height: 2rem;
  transition: all 0.3s ease-in-out;
}

.card p {
  margin-bottom: 2rem;
  bottom: 0;
}

.button {
  display: inline-block;
  font-family: "Lato", sans-serif;
  font-size: 1.2rem;
  border: none;
  background-color: #17201f;
  color: #fff;
  border-radius: 0.5rem;
  transition: all 0.3s ease-in-out;
  box-sizing: border-box;
  font-weight: bold;
  padding: 1rem 2rem;
}

.button a {
  color: #fff;
  transition: all 0.3s ease-in-out;
  display: block;
  height: inherit;
}

.button a:visited {
  color: #fff;
  transition: all 0.3s ease-in-out;
}

.button a:active {
  color: #fff;
  transition: all 0.3s ease-in-out;
}

.card:hover .button {
  background-color: #fff;
  color: #17201f;
}

.card:hover .button a {
  color: #17201f;
}
.card .button:hover {
  background-color: #48e06e;
  box-shadow: 0 0.25rem #2a9c46;
}

.card .button:active {
  background-color: #2a9c46;
  color: #fff;
}

.card:hover h2 {
  color: #48e06e;
}

.footer-info {
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-socials {
  display: flex;
  justify-content: center;
  align-items: center;
}

.copyright {
  width: fit-content;
  margin: auto;
  margin-top: 1rem;
}

/* CODE FOR SUBPAGES */
.landing {
  width: 100%;
  margin-bottom: 1em;
  grid-column: 2;
  margin: 5rem 0;
}

.introduction-container {
  grid-column: 2;
  background-color: #fff;
  box-shadow: 4px 4px 3px #ccc;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0px 0px;
  align-content: center;
  align-items: center;
}

.introduction-image {
  background-repeat: no-repeat, repeat;
  background-position: center;
  background-size: cover;
  background-color: #17201f;
  width: 100%;
  min-height: 480px;
}

.history-image {
  background-image: url(../images/introduction-2.jpg);
}

.usage-image {
  background-image: url(../images/commodore.jpg);
}

.software-image {
  background-image: url(../images/C64_startup.gif);
}

.my-computer-image {
  background-image: url(../images/its-now-safe.jpg);
}

.introduction-image img {
  max-width: 100%;
}

.introduction-text {
  padding: 2rem 3rem;
  font-size: 1.2rem;
  grid-column: auto;
}

.text-box {
  background: 0px;
  float: left;
}
.section-content-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

figure {
  margin: 0;
  padding: 1rem;
}

figcaption {
  font-size: 1rem;
  text-align: center;
  padding: 1rem;
  font-family: "Lato", sans-serif;
}

.gallery {
  height: 10rem;
  background: #fff;
}
article {
  grid-column: 1/5;
  background: #fff;
  padding: 3rem;
  box-shadow: 4px 4px 3px #ccc;
  display: grid;
}

article h2 {
  text-align: center;
}

article img {
  width: 100%;
  margin: auto;
  min-width: 100px;
  font-weight: bold;
}

.introduction-button {
  display: block;
  font-family: "Lato", sans-serif;
  font-size: 1.2rem;
  border: none;
  background-color: #17201f;
  color: #fff;
  border-radius: 0.5rem;
  transition: all 0.3s ease-in-out;
  box-sizing: border-box;
  font-weight: bold;
  padding: 1rem 2rem;
  width: fit-content;
}

.introduction-button a {
  color: #fff;
  transition: all 0.3s ease-in-out;
  display: block;
  height: inherit;
}

.introduction-button a:visited {
  color: #fff;
  transition: all 0.3s ease-in-out;
}

.introduction-button a:active {
  color: #fff;
  transition: all 0.3s ease-in-out;
}
.introduction-button:hover {
  background-color: #48e06e;
  color: #17201f;
}
.commodore-screen {
  font-family: "Source Code Pro", monospace;
  position: absolute;
  color: #fff;
  margin-left: 7.5vw;
  margin-top: 10vh;
}

/*BLINKING CURSOR ANIMATION*/
.cursor {
  font-weight: bold;
  animation: blinker 0.7s linear infinite;
}
@keyframes blinker {
  to {
    opacity: 0;
  }
}

.section-content-wrapper ul li {
  list-style-type: disc;
  margin-left: 1em;
  padding-left: 1em;
  font-size: 1.1em;
}

.section-content-wrapper ul li a {
  color: #2a9c46;
  transition: 0.3s;
}
.section-content-wrapper ul li a:hover {
  color: #48e06e;
}

.section-content-wrapper a {
  color: #2a9c46;
  transition: 0.3s;
}
.section-content-wrapper a:hover {
  color: #48e06e;
}

/* MEDIA QUERIES FOR LANDSCAPE TABLET AND BELOW*/
@media only screen and (max-width: 1024px) {
  .container {
    display: grid;
    grid-template-columns: 12vw auto 12vw;
    grid-template-rows: 140px calc(100vh - 140px) auto auto;
  }

  .introduction-container {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 1.4rem;
  }

  header {
    display: flex;
    background-color: #17201f;
    padding: 0;
    border-bottom: solid 2px #fff;
    flex-direction: row;
    flex-wrap: wrap;
    height: 112px;
  }

  header ul li {
    width: 100%;
    margin: auto;
    font-size: 1.5rem;
    float: none;
  }

  article img {
    display: block;
    width: 100%;
    min-width: 200px;
  }

  .header-menu {
    margin: auto;
  }

  .socials a {
    margin: 0 2rem;
    width: 100%;
    padding: 0;
    margin-top: 1rem;
  }
  .hero-textbox {
    color: #fff;
    width: 100%;
    font-size: 1rem;
    line-height: 1.2rem;
    z-index: 0;
  }
  .full-width {
    padding: 2rem 12vw;
  }
  .section-content-wrapper {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
  }
  .section-content-wrapper figcaption {
    text-align: center;
  }

  .introduction-button {
    margin: 2rem auto 1rem auto;
  }
  .socials {
    margin: auto;
  }
  .footer-socials {
    margin: auto;
  }

  /*Mobile Menu*/
  .navbar-desktop {
    display: none;
  }
  .navbar-mobile {
    display: initial;
    width: 100%;
  }
  .navbar-mobile ul {
    border-top: solid 2px #fff;
    text-align: center;
    border-bottom: solid 2px #fff;
    z-index: 1;
  }
  .nav-links li {
    background-color: #17201f;
    font-size: 1.4rem;
    padding: 0.2rem 0;
    z-index: 1;
  }
  .nav-links {
    display: none;
    overflow: hidden;
    height: 0;
  }
  .navbar-mobile svg {
    height: 40px;
    width: 40px;
  }

  #toggle:checked ~ .nav-links {
    display: block;
    height: fit-content;
  }
  #toggle {
    display: none;
  }
  .navbar-mobile label {
    font-size: 48px;
    position: absolute;
    right: 0;
    top: 0;
    margin-right: 24px;
    margin-top: 28px;
    z-index: 2;
    overflow: hidden;
  }
  .nav-links {
    clear: both;
  }
  .navbar-mobile label:hover {
    color: #a8ffbe;
    text-shadow: 0 0 5px #48e06e;
  }
  .hero-wrapper {
    z-index: -1;
  }
  .hero-background-mobile {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(
      45deg,
      rgba(23, 32, 31, 1) 40%,
      rgba(22, 45, 32, 1) 100%
    );
    z-index: -2;
    opacity: 0.75;
  }
  .landing {
    z-index: -1;
  }
  /*MOBILE MENU END*/
  footer .grid {
    grid-template-columns: 1fr;
  }
}
