
/* Universal Styles */

html {
  background-color: #132a13;
  scroll-behavior: smooth;
}

body {
  font-family: 'Oxygen', sans-serif;
  font-size: 16px;
  color: #fff;
  background-image: url(./background-image.JPG);
  background-clip: border-box;
  background-repeat: no-repeat;
  background-size: cover;
}

em {
  font-style: italic;
}

.content {
  text-align: center;
  padding: 0 1rem;
}

.spacer {
  height: 3rem;
}

/* Header */

header {
  background-color: #132a13ca;
  width: 100%;
  position: fixed;
  top: 0;
  z-index: 9999;
}

header .content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 50px;
}

header a {
  text-decoration: none;
  color: #fff;
}

header nav ul {
  display: flex;
}

nav li {
  padding-left: 3.5rem;
}

nav li:hover {
  text-decoration: underline;
}

/* Hero Section */

.hero {
  width: 100%;
  height: 100vh;
  background-image: url(./hero-pic.JPG);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.hero .content h1{
  font-family: 'Kameron', serif;
  font-size: 4rem;
  color: #fff;
  margin: auto;
  position: relative;
  top: 5.5rem;
  text-shadow: 1px 1px 2px #000;
}

/* Feature Section */

.quote {
  width: 100%;
  font-size: 3rem;
}

.my-bag {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  width: 50%;
  margin: auto;
}

.my-bag #me {
  border-radius: 50%;
  overflow: hidden;
  width: 70%;
  height: auto;
  margin: auto;
}

.my-bag article {
  line-height: 1.4;
  margin: 1rem auto;
}

.my-bag article span:first-child {
  display: block;
  width: 100%;
  font-size: 2rem;
}

/*  Rollover image styles  */

.my-bag #bag {
position: relative;
height: auto;
overflow: hidden;
margin: 1rem 0;
border-radius: 10%;
}

.img-container #closed-bag {
  min-width: 100%;
  height: auto;
}

.img-container #open-bag {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  opacity: 0;
  transition: opacity .2s;
  min-width: 100%;
  height: auto;
}

.img-container:hover #open-bag {
  opacity: 1;
}

/* How-To Section */

.how-to h2 {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 1rem;
}

.gif-how-to {
  display: flex;
  flex-wrap: nowrap;
  align-content: center;
  width: 100%;
  height: 250px;
}

.gif {
  width: 100%;
  position: relative;
  margin: 1rem;
}

.gif iframe {
  position: absolute;
}

.material-symbols-outlined {
  align-self: center;
}

/* Change arrows between mobile and desktop view */

.gif-how-to span:nth-child(3n-1) {
  display: initial;
  font-size: 3rem;
}

.gif-how-to span:nth-child(3n) {
  display: none;
  font-size: 10rem;
}

/* In The Bag Section */

.in-the-bag {
  text-align: center;
  background-color: #132a13a1;
}

.in-the-bag h2 {
  font-size: 3rem;
  padding: 1rem;
  border-bottom: 1px solid #6a6a6a;
}

.in-the-bag .item h2 {
  font-size: 2rem;
  padding: 0 0 1rem 0;
  border: 0;
}

.in-the-bag .container {
  display: flex;
  min-width: 100%;
  overflow-x: scroll;
  align-items: center;
}

.in-the-bag .item {
  margin: 2rem;
  padding: 1rem;
}

.in-the-bag .img-container {
  margin: 0 0 1rem 0;
  border-radius: 50%;
  overflow: hidden;
}

.in-the-bag .img-container img {
  min-width: 270px;
  min-height: 270px;
  object-fit: cover;
  vertical-align: middle;
}

.in-the-bag .item h3 {
  line-height: 1.4rem;
  font-weight: bold;
}

/* Cardmates Section */

.cardmates h2 {
  font-size: 3rem;
}

.cardmates .content ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.cardmates .content li {
  width: 30%;
  margin: 1rem;
  padding: 1rem;
}

.cardmates .content img {
  border-radius: 10%;
  width: 100%;
  height: auto;
}

.cardmates .content h3 {
  font-weight: 700;
  font-size: 1.5rem;
}

/*  Rollover image styles  */

.cardmates .img-container {
  position: relative;
  height: auto;
  overflow: hidden;
  }
  
  .carmates #shannon {
    min-width: 100%;
    height: auto;
  }
  
  .img-container #scary-shannon {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity .2s;
    min-width: 100%;
    height: auto;
  }
  
  .img-container:hover #scary-shannon {
    opacity: 1;
  }

/* Footer Section */

footer {
  width: 100%;
  background-color: #132a13ca;
}

footer .content {
  display: flex;
  justify-content: space-between;
  padding: 1rem 2rem;
  font-size: 0.75rem;
}

/* Mobile View */

@media only screen and (max-width: 780px) {

  header .content, header nav ul, .my-bag, .gif-how-to, .cardmates .content ul, footer .content {
    flex-direction: column;
    align-content: center;
    flex-wrap: nowrap;
  }

  header {
    position: absolute;
    height: fit-content;
  }

  header .logo {
    display: none;
  }

  header .content {
    height: auto;
    margin: 0.5rem auto;
  }

  header nav ul {
    align-content: center;
  }

  header nav li {
    padding: 0.5rem;
    text-decoration: underline;
  }

  header nav li:hover {
    text-decoration: none;
  }

  .hero .content h1 {
    top: 10rem;
  }

  .my-bag {
    width: 80%;
    line-height: 2;
  }
  .my-bag .img-container {
    max-width: 75%;
    margin: auto;
  }

  .how-to h2 {
    margin-bottom: 2rem;
  }

  .gif-how-to {
    height: auto;
    align-items: center;
  }

  .gif {
    width: 75%;
    margin: 0;
  }

  .gif iframe {
    position: unset;
    height: 15rem;
  }

  .gif-how-to span:nth-child(3n-1) {
    display: none;
  }

  .gif-how-to span:nth-child(3n) {
    display: initial;
  }

  .cardmates h2 {
    margin-bottom: 2rem;
  }

  .cardmates .content li {
    width: 75%;
    margin: auto;
  }

  .cardmates .content img {
    margin: auto;
  }

  .cardmates .content h3 {
    font-size: 2rem;
    margin: 0.5rem 0 2rem;
  }

  footer .content div {
    margin: 0.5rem;
  }
}
