/*------------------Fonts---------------*/
/*---This css is a shitshow---*/

@font-face {
  font-family: 'Work Sans';
  src: url('../media/fonts/WorkSans-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Work Sans';
  src: url('../media/fonts/WorkSans-Bold.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "Le Murmure";
  src: url('../media/fonts/le-murmure.woff2') format('woff2');
}

@font-face {
  font-family: "Sporting Grotesque";
  src: url('../media/fonts/SportingGrotesque-regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Sporting Grotesque";
  src: url('../media/fonts/SportingGrotesque-bold.woff2') format('woff2');
  font-weight: bold;
  font-style: normal;
}

/*------------------basic---------------*/

html {
    background-color: black;
    font-family: "Work Sans", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: white;
}

@media (min-width: 700px) {
    html {
        font-size: 18px;
    }
}

body {
    overflow-x: hidden;
}

p {
    margin: 0;
}

p + p {
    margin-top: 1rem;
}

.container {
    margin: 0 auto;
    padding: 20px;
}

h1, h2, h3, h4 {
    line-height: 1.3;
}

#part0 {
    overflow: hidden;
    padding: 0;
}

/*------------------flex grid---------------*/

.row {
    display: flex;
    flex-wrap: wrap;
    align-content: space-between;
}

.column {
    flex-direction: column;
}

.item {
    align-items: center;
    flex-grow: 1;
    padding: 40px 0;
}

img {
    display: block;
    margin: 20px auto;
    pointer-events: none;
    max-width: 100%;
}

/*------------------nav---------------*/

nav, footer {
    font-family: "Sporting Grotesque";
    padding: 10px 40px;
}

nav {
    position: sticky;
    top: 0px;
    background-color: black;
    z-index: 1;
}

nav a, footer a {
    color: white;
    font-size: 26px;
    text-decoration: none;
    text-align: right;
}

nav a:hover, footer a:hover {
    text-decoration: underline;
}

footer p{
    font-size: 16px;
    font-family: "Work Sans";
    max-width: 600px;
}


.hover {
    text-decoration: underline;
    color: red;
}

/*------------------sections---------------*/

summary:focus {
    outline: none;
}

summary:hover {
    cursor: pointer;
}

#opener {
    height: 300px;
    background-image: url(../media/images/chpt1/desert.jpg);
    background-size: contain no-repeat;
    background-color: red;
    background-size: 100%;
    display: flex;
    align-self: end;
    animation: 2s redblue ease infinite;
    background-blend-mode: screen;
    transition: background-color 1000ms linear;
}

#part1 {
    transition: background-color 1000ms linear;
    animation: 10s redblue ease infinite;
    background-size: 100%;
    padding: 40px 10px;
    margin: 0 auto;
    overflow: hidden;
}

#part1 h1 {
    font-family: "Sporting Grotesque", "Work Sans", sans-serif;
    text-align: center;
    font-size: 40px;
    text-transform: uppercase;
}

#part1 h2 {
    margin-bottom: 3em;
}


@keyframes redblue {

    0% {
        background-color: red;
    }

    50% {
        background-color: blue
    }

    100% {
        background-color: red;
    }
    
}

@keyframes rainbow {

    0% {
        background-color: red;
    }

    12.5% {
        background-color: orange;
    }

    25% {
        background-color: yellow;
    }

    37.5% {
        background-color: green;
    }

    50% {
        background-color: cyan;
    }

    62.5% {
        background-color: blue
    }

    75% {
        background-color: pink;
    }

    100% {
        background-color: red;
    }
    
}

#part2 {
    background-color: #00ff00;
}

#part3 {
    background-color: #FF8700;
}

#part4 {
    background-color: yellow;
    transition: background-color 1000ms linear;
    animation: 10s rainbow ease infinite;
    padding: 40px 20px;
    align-items: center;
    overflow: hidden;
}

#part4 img {
    animation-duration: 2s;
}


#part5 {
    background-size: 100%;
    flex-direction: column;
    max-width: 600px;
    margin: 32px auto;
}

#part5 p {
    max-width: 800px;
}

.genericText {
    flex-direction: column;
    max-width: 60ch;
    margin: 0 auto;
    padding: 32px 16px;
}

#part7 {
    width: 100%;
    margin-top: 2rem;
}

.brown {
    background-color: #a01201;
}

.phone {
    max-width: 600px;
    width: 100%;
    animation-duration: 2s;
    margin: 40px auto;
}

.phone #img {
    animation-duration: 10s;
}

#thetrunk {
    outline: white 1px dashed ;
    padding: 10px;
    margin: 1.5rem 0;
}

#rollingstones {
    background-image: url(../media/images/chpt1/rollingstones.jpg);
    display: flex;
    align-items: center;
    -webkit-animation: marquee 5s infinite linear;
}

.script {
    padding: 20px;
    background-color: white;
    color: black;
}

#part8 {
    background-color: #00ff00;
    width: 100%;
}


#part9 {
    background-color: #00ff00;
}


#part10 {
    background-color: #00ff00;
}


#part12 {
    background-color: #FFC417;
    color: black;
}

#part13 {
    background-color: #00FFC0;
    padding: 20px;   
    color: black;
    padding-bottom: 80px;
}

#part13 img {
    max-height: 600px;
}

#part13 p, h1, h2, h3 {
    max-width: 600px;
    margin: 20px auto;
}

#blend {
    background-image: url(../media/images/chpt1/hotel.jpg);
    background-color: pink;
    background-blend-mode: darken;
    background-position: center;
    height: 400px;
    max-width: 800px;
    background-size: cover;
    background-repeat: no-repeat;
    margin: 0 auto 2rem auto;
}

#blackshadow {
    background-image: url(../media/images/chpt1/blackshadow.jpg);
    background-color: pink;
    background-blend-mode: darken;
    background-position: center;
    height: 400px;
    max-width: 800px;
    background-size: cover;
    background-repeat: no-repeat;
    margin: 2rem auto;
}

#part14 {
    background-color: pink;
    padding: 80px 0;
    overflow: hidden;
}

#part14 p, h1, h2, h3 {
    color: black;
    max-width: 600px;
    margin: 20px auto;
    padding: 0 16px;
}

/*------------------Chapter opener---------------*/

.ChapterOpener {
    margin: -400px auto 0 auto;
    display: flex;
    align-self: flex-end;
    overflow: hidden;
    max-height: 800px;
    max-width: 100%;
    position: static;
    z-index: -100;
}

/*------------------Chapter opener---------------*/

.marquee {
  background-image: url(../media/images/chpt1/marquee.jpg);
  width: 100%;
  height: 380px;
  -webkit-animation: marquee 20s infinite linear;
}

@-webkit-keyframes marquee {
  0% {
    background-position: 0;
  }

  100% {
    background-position: -1190px;
  }
}