body {
    margin:0;
    background-color: #FFFAEB;
}

article {
    display: flex;
    flex-direction: column;
    margin: 0% 15% 5% 15%;
    max-width: 1200px;
    gap: 20px;
}

@media (max-width: 768px)  {
article {
    margin: 0% 4% 0%;
    
    }
}

/* weird header thingy*/

article > h1:first-of-type {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 50vw;
    width: 100vw;
    position: relative;
    transform: translate(-50%);
    left: 50%;
    font-size: 50px;
    color: yellow ;
    margin: 0;
    text-shadow: 2px 2px #FF0000;
    font-family: Fontdiner Swanky;
    background-image: url('https://www.ft.com/__origami/service/image/v2/images/raw/https://d1e00ek4ebabms.cloudfront.net/production/53e5c05b-ec7c-45ce-9c7a-8a45757b87ae.jpg?source=css-wacky-races&amp;fit=scale-down&amp;quality=highest&amp;width=700&amp;dpr=1');
    background-size: cover;
    background-position-y: bottom;
    text-transform: capitalize;
    box-sizing: border-box;   
}

@media (max-width: 768px) { 
    article > h1:first-of-type { 
        font-size: 1.5em;
        padding: 50px;
    } 
}

@media (max-width: 320px) { 
    article > h1:first-of-type { 
        font-size: 1.3em;
        padding: 50px;
    } 
}

/* Aside Styling */

article > aside:first-of-type {
    display: flex;
    height: 400px;
    align-items: center;
    font-family: Lato-Regular;
    flex-direction: column;
    background-color: #FFE9AD;
    justify-content: space-evenly;
    gap: 10px;
    width: 100%;
    box-shadow: 0px 1px 3px 0px rgba(0,0,0,0.12),
    0px 1px 2px 0px rgba(0,0,0,0.24);
}

@media (max-width: 768px) {
    aside {
        height: 320px;
        gap: 0px;

    }
}

aside h2 {
    margin: 0;
}

aside a {
    color: black;
    text-decoration: none;
}

aside .content {
    order: 1;  
    text-align: center;
    margin: 0px 10px 0px;
}

aside .title a {
    display: none;
}

 article aside:first-of-type > img {
    width: 100%;
    order: 2;
}

body > aside:last-of-type {
    display: flex;
    height: 150px;
    align-items: center;
    font-family: Lato-Regular;
    background-color: #FFE9AD;
    justify-content: space-evenly;
    gap: 10px;
    width: 100%;
    box-shadow: 0px 1px 3px 0px rgba(0,0,0,0.12),
    0px 1px 2px 0px rgba(0,0,0,0.24);
}

@media (max-width: 768px) {
    body > aside:last-of-type {
        display: none;

    }
}

body > aside:last-of-type img {
    height: 100%;
    width: auto;
    object-fit: contain;
}


blockquote p {
    font-family: 'Fontdiner Swanky'; 
    text-align: center;
    color: #9D0645;
}

article > a:first-of-type {
    font-size: large;
}

time {
    width: 100%;
    font-style: oblique;
}


img {
    width: 100%;
    height: auto;
   /* margin-top: 10px;*/

}

/* Video Player */

wacky-video {
    display: flex ;
    flex-direction: column;
    }

video {
    max-width: 100%;
}

.controls {
    display: flex;
    justify-content: space-evenly;
    align-content: stretch;
    margin-top: 2%;
    gap: 5px;
}

.controls button { 
    order: ;
    background-color: #FFBE0A;
    border-style: none;
    border-radius: 3px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 20px;
    font-size: 14px;
    font-weight: bold;
    color: #3D2D00;
    text-transform: uppercase;
    box-shadow: 0px 3px 6px 0px rgba(0,0,0,0.16),
    0px 3px 6px 0px rgba(0,0,0,0.23);
}

.controls button:hover { 
       background-color: #E285FF;
    
}

.controls button:active {
    background-color: #E285FF;
    box-shadow: 0px 1px 3px 0px rgba(0,0,0,0.12),
    0px 1px 2px 0px rgba(0,0,0,0.24);
    transform: translateY(4px);
  }

.progress {
    width: 100%;
    order: 2;
    box-shadow: 0px 1px 3px 0px rgba(0,0,0,0.12),
    0px 1px 2px 0px rgba(0,0,0,0.24);
}

.progress progress {
   width: 100%;
   height: 100%;
   border-radius: 3px;
}


/* Carousel Number 1 */

article > div:first-of-type {
    display: flex;
    overflow-x: scroll;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    gap: 10px;
   
}

div:first-of-type img {
    scroll-snap-align: center;
    min-width: 75vw;
    height: auto;
}

/* Carousel Number 2*/

article > div:nth-of-type(2) {
    display: flex;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    align-items: center;
    height: auto;
    gap: 10px;
    
}

article > div:nth-of-type(2) img {
       object-fit: contain;
       scroll-snap-align: center;
       max-height: 480px;
       width: auto;    
        
}

@media (max-width: 768px) {
    article > div:nth-of-type(2) img {
        max-height: 60vh;
        width: auto;
        object-fit: contain;
    }
}

p {
    margin: 0px 0px 0px;
    font-family: Lato-regular;
    line-height: 1.4;
    text-align: justify;
    text-justify: inter-word;
}


@font-face {
    font-family: 'Fontdiner Swanky'; 
    src: url('./FontdinerSwanky-Regular.ttf'); 
  }

  @font-face {
    font-family: 'Lato-Regular'; 
    src: url('./Lato-Regular.ttf');
  }


  figure {
    max-width: 100%;
    margin: 0;
  }

  figcaption {
    font-family: Lato-regular;
    font-style: italic;
    font-size: small;
    padding: 2%;
    text-align: center;
  }

  article > figure:first-of-type {
    display: none;
  } 

  footer {
    display: none;
  }

  hr {
    display: none;
  }