/* Combined CSS Document with media queries for two layouts*/

/* Added CSS variable assignments for the header and footer background color, the wrapper background color and titles h2 and h3*/

/*Week 8: I modified the --headerAndFooterBckColor, --colorWrapper and, titlesH2H3, in order to get contranst that is compiant with the AAA regulation I also change the overlay to be a paragraph instead of an h3 to help with accessibility s.

I also added */

/* :root {
    --headerAndFooterBckColor: rgba(235, 255, 242, 0.975);
    --colorWrapper: rgb(250, 250, 242);
    --titlesH2H3: rgba(53, 143, 142);
} */


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


    /* On smaller screens, decrease text size and picture size */

    .text {
        font-size: 19px
    }
.louPics{
    width: 400px;
    position: relative;
    margin: 0px auto;
    height: 350px;
    text-align: center;
    /* align-items: center; */
}
    /* .louPic {
        width: 150%;
        margin-left:
            -100px;
        margin-top: 25px;
    } */


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

    #header {
        width: 640px;
        height: 200px;
        /*I replaced background-color of both header and footer for the variable for variable; */
        background-color: #d9f1fa;
        color: rgb(220, 168, 128);
        font-weight: bold;
        padding: 20px;
        text-align: center;
        font-size: 20px;
    }

    .logo {
        /* float: left; */
        margin: 0px;
        /* background-color: rgb(78, 162, 161); */
        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;
        font-family: 'Exo 2', sans-serif;
        font-size: 30px;
    }

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

    }

    @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.605);
        float: right;
        /* top: -50px; */
        font-family: 'Exo 2', sans-serif;
        font-size: 20px;
    }

    h3 {
        color: #335063;
    }

    ol.ol1 {
        list-style-type: upper-roman
    }

    /* Text is alligned in the center to make it more balanced. I prefer the nav tabs to be on top so the width is almost as large as the wrapper, excluding the padding. */
    #nav {
        width: 660px;
        background-color: darkgray;
        text-align: center;
        font-size: 20px;
        padding: 20px;
    }

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

    /* This category styles the anchor elemnents in the nav page. Rounded tabs and contransting 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;
    }
    .flex-container a:link {
        color: white;
    }
    /* Here the anchor tabs change color when user hovers */
    .flex-container a:hover {
        background-color: #ddd;
        color: black;
    }
/* 
    .flex-container a:visited {
        background-color:rgb(108, 85, 187);
        color: rgb(184, 57, 57);
    } */

/* color of all a links except the nav a tags */
    /* a:link {
        color: rgb(30, 37, 141); 
      }
      
      a:visited {
        color: #6600FF;
      }
      
      a:active {
        color: red;
      }
       */
    
       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: #556FFA;
        border: 2px dotted rgb(170, 0, 255);
        color: rgb(255, 232, 55);
        font-weight: bold;
        margin-top: 50px;
        margin-left: 200px;
        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(135, 6, 228), rgb(25, 231, 197));
        /* background-color: rgb(247, 244, 228); */
        font-size: 100%;
        margin: 10px;
    }

    /* In the page Information I floated a picture to the right and added a frame to make it more appealing. I'm not sure this could count as my two columns since I have text on the left and image on the right*/
    #myImage {
        float: right;
        background-color: rgb(63, 200, 215);
        padding: 5px;
        margin: 2px;
        width: 65%;
        height: auto;
    }

    .main {
        width: 660px;

        font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
        font-size: 19px;
        letter-spacing: .05em;
        margin: 2em;
        display: block;
        /* border-top: solid 0.2em #d3d3d3; */
        /* border-bottom: solid 1em #d3d3d3; */
    }

    /* 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 auto;
        /* background-color: #b6b6b6; */
        padding: 0px;

    }

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

    }

    .grid-item video {
        width: 560px;
        height: 315px;
        /* object-fit: cover; */
    }

    #vid{
        width: 640px; 
        height: 480px;
    }
    /* In week 6, I created multicolumns in the future page. I still think I prefer the one paragrahp style I had before but I did it to satisfy the requirement this week. There is a strange start in the first column (a little lower than the second column but did not find a way to fix this issue */
    .multi-column {
        column-count: 1;
        column-gap: 40px;
        column-span: all;
        font-size: 17px;
    }

    /* 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. The width is 70% in mobile apps and 50% in large screens*/

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

    .iframe-container {
        margin-top: 0px;
        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: 10%;
        float: left;
    }

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

    /* ul .multi-column{
        list-style: url('images/book.png');
    } */
    /* ul{
    list-style-image: url('images/book.png');
    } */

    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: 660px;
        height: 150px;
        background-color: #8FD0FF;
        font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
        font-size: 19px;
        padding: 20px;
        color: rgb(1, 23, 17);
        clear: both;
        margin-right: 0;
        margin-left: 0;
        align-items: center;
    }


    /* Week 6: I made the top margin of the logo negative to make it fit in the footer area. It's also floating to the right to keep consistency. */
 

}


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


/* large screen code starts here */