/* SLIDESHOWS CODE */
/* Slideshow container */

.imgSize {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    height: 456px;

}

.slideshow-container {
    max-width: 380px;
    position: relative;
    margin: 0px auto;
    height: 480px;
    text-align: center;
    /* align-items: center; */
}
.louPics{
    max-width: 300px;
    position: relative;
    margin: 0px auto;
    height: 350px;
    text-align: center;
    /* align-items: center; */
}

/* Caption text */
.text {
    color: #f4f3ff;
    background: black;
    font-size: 15px;
    padding: 8px 0px;
    position: absolute;
    bottom: 25px;
    width: 100%;
    text-align: center;
}

/* Number text (1/3 etc) */
.numbertext {
    color: #f4f3ff;
    background: black;
    font-size: 12px;
    padding: 8px 12px;
    position: absolute;
    top: 0;
}

.active {
    background-color: #717171;
}

/* Fading animation */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {
        opacity: .4
    }

    to {
        opacity: 1
    }
}



/* ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ */


/* large screen code starts here */

@media screen and (min-width: 800px) and (max-width: 4000px) {

    #louPic {
        max-width: 100px;
        height: auto;
        margin-top: 25px;
    }

    #wrapper {
        background-color: #d9f1fa;
        margin-left: auto;
        margin-right: auto;
        padding: 0px;
        width: 1000px;
    }

    /* I created a div with a header ID to place the logo and the main titles. I assinged a lighter green background color to this element, in orer to keep a similar palette*/
    #header {
        width: 960px;
        height: 200px;
        background-color: #d9f1fa;
        color: rgb(220, 168, 128);
        font-weight: bold;
        padding: 20px;
        text-align: center;
        font-size: 20px;
    }

    /* I floated my logo to the left and added a background color to give it a little frame. To keep the logo letters' size constant when resizing, I assigned them a specific font size.  */
    .logo {
        /* float: left; */
        margin: 0px;
        background-color: #8FD0FF;
        padding: 7px;
        width: 210px;
        height: 200px;
        /* font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; */
        font-size: 15px;
        letter-spacing: .05em;
    }

  
    

    h1 {
        color: rgba(0, 11, 12, 0.605);
        float: right;
        top: -50px;
        margin-right: 50px;
        font-family: 'Exo 2', sans-serif;
        display: inline;
    }

    @font-face {
        font-family: 'Exo 2', sans-serif;
        src: url("newfont.ttf");
    }

    .newHeading {
        font-family: 'Exo 2', sans-serif;
        /* color: rgba(0, 11, 12, 0.719); */
    }

    .newHeading2 {
        color: rgba(0, 11, 12, 0.614);
        float: right;
        /* top: -50px; */
        font-family: 'Exo 2', sans-serif;
        font-size: 20px;
        margin-left: 400px;

    }

    h2 {
        font-size: 25px;
        color: #335063;
        text-align: center;
        margin: 0px;

    }

    h3 {
        color: #2b495c;
        ;

    }

    /* a:link {
    color: rgb(30, 37, 141); 
  }
  
  a:visited {
    color: #f7f6f9;
  }
  
  a:active {
    color: red;
  } */

  a:hover {
    background-color: #ddd;
    color: black;
  }
  
    #nav {
        width: 940px;
        background-color: darkgray;
        text-align: center;
        font-size: 20px;
        padding: 30px;
    }

    .flex-container {
        display: flex;
        /* flex-direction: column; */
        justify-content: center;
        background-color: #8FD0FF;
        border-radius: 1em;
        padding: 5px;
        /* overflow: hidden; */
    }

    /* This category styles the anchor elemnents in the nav page. Rounded tabs and contrasting colors were my main styling choices this week  */
    .flex-container a {
        background-color: rgb(40, 16, 130, 1);
        width: 100px;
        float: left;
        display: block;
        color: #f2f2f2;
        text-align: center;
        line-height: 25px;
        padding: 20px 15px;
        text-decoration: none;
        font-size: 17px;
        border-radius: 1em;
        margin: 0.3em;
        padding: 0.4em;
        letter-spacing: 1px;
    }

    /* Here the anchor tabs change color when user hovers. This is another example of a transition.*/
    .flex-container a:hover {
        background-color: #ddd;
        color: black;
    }


    /* This overlay shows a message on the right of the screen in the home page. The sticky position allows for that effect while scrolling down the page. I added an alpha number to the background color to style this box. I changed the z-index to 1000. In week 6, I changed the style to match the other tabs*/

    /* .overlay {
        width: 390px;
        background-color: rgba(44, 0, 148, 0.934);
        border: 2px dotted rgb(170, 0, 255);
        color: rgb(255, 255, 110);
        font-weight: bold;
        margin-top: 50px;
        margin-left: 500px;
        top: 50px;
        position: sticky;
        z-index: 1000;
        padding: 5px;
        border-radius: .5em;
        padding: 2px;
        text-align: center;
    } */

    /* here I added a gradient to all pages. I'm not sure how to do this only in one page */
    body {
        background: radial-gradient(circle at center, rgb(89, 6, 148), rgb(156, 196, 189));
        /* background-color: rgb(247, 244, 228); */
        font-size: 100%;
        margin: 10px;
        font-size: 19px;
    }

    /* this one was replaced by my gradient */
    .bkg {
        background-image: url("https://www.pixeden.com/media/k2/galleries/112/003-subtle-light-pattern-background-texture.jpg");
        height: fit-content;
    }

    /* In the page Information I floated a picture to the right and added a frame to make it more appealing. In these two columns I have text on the left and image on the right*/
    #myImage {
        float: right;
        background-color: rgb(154, 198, 197);
        padding: 5px;
        margin: 2px;
        width: 65%;
        height: auto;
    }

    .main {
        width: 960px;
        font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
        font-size: 19px;
        letter-spacing: .05em;
        margin: 2em;
        display: block;
    }

    /* Grid Container with video and text. I created two columns, one containing video, the other one links to the text. I modified the width and height of the video to have a more balanced look.  */
    .grid-container {
        display: grid;
        grid-column-gap: 20px;
        grid-template-columns: auto auto;
        /* background-color: #b6b6b6; */
        padding: 10px;
    }

    .grid-item {
        background-color: rgba(255, 255, 255, 0.4);
        /* border: 1px solid rgba(0, 0, 0, 0.8); */
        padding: 10px;
        font-size: 19px;
        text-align: center;
    }

    .grid-item video {
        width: 440px;
        height: 330px;
        object-fit: cover;
    }

    #vid {
        width: 900px;
        height: auto;
        object-fit: cover;
    }

    .multi-column {
        column-count: 1;
        column-gap: 40px;
        column-span: all;
        font-size: 19px;
    }


    /* Week 6: My attempt to sytle iframe. I created an iframe-container class in which I style elements, centered H elements, and modify height in each CSS (mobile and larger screens) to make them appear near the picture. I almost was not able to center the video itself until I removed the frameholder=0 from the html and  set margins to auto and using a display block */

    iframe {
        display: block;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        /* border: 3px dotted; */
        /* background-color: rgb(154, 198, 197); */
        padding: 5px;
        /* color: rgb(0, 255, 251); */
        padding: 0;
        text-align: center;
    }

    .iframe-container {
        margin-top: 250px;
        margin-left: auto;
        margin-right: auto;
        display: block;
    }

    .iframe-container h2,
    h3 {
        text-align: center;
    }

    /* My attempt at how to create two columns using floats is on the home page(find your car and financing.) */
    .left {
        width: 50%;
        float: left;
    }

    .right {
        width: 50%;
        float: right;
    }

    ul.ul1 {
        list-style-type: disc;
    }

    /* The footer contains the Contact and Logo2 parts. I used floats to place them on opposite sides of the page. */
    #footer {
        /* width: 1000px; */
        height: 130px;
        background-color: #8FD0FF;
        ;
        /* text-align: center; */
        font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
        font-size: 19px;
        padding: 20px;
        color: rgb(1, 23, 17);
        clear: both;
    }

    ul.contact {
        float: left;
    }

    /* I made the top margin of the log negative to make it fit in the footer area. It's also floating to the right to keep consistency. */
    svg.logo2 {
        padding: 20px;
        width: 200px;
        height: 200px;
        margin: -5em 2em;
        float: right;
    }
}

figcaption {
    font-family: Verdana, Geneva, sans-serif;
    font-style: italic;
    background: rgba(0, 0, 0, 0.4);
    font-size: 2rem;
    padding: 0.6rem;
    color: #fff;
    position: relative;
    bottom: 400px;
    transition: 2s all;
}

figure:hover figcaption {
    bottom: 340px;
}

.vid {
    display: flex;
    justify-content: center;
}