html {
    font-size: 10px;
    color: #DDD;
}

body {
    background-color: #14153d;
}

#info {
    margin-bottom: 2rem;
    font-weight: 600;
}

h1 {
    font-family: "Outfit", sans-serif;
    font-size: 3rem;
    font-weight: 600;
    grid-column: 1/-1;
    align-self: center;
}

p {
    font-family: "Outfit", sans-serif;
    font-size: 1.8rem;
    line-height: 1.3;
}

#contain {
    display: grid;
    grid-template-columns: 500px 1fr;
    grid-template-rows: 45px 1fr;
    gap: 2rem;
    height: 100vh;
    max-width: 1000px;
    padding: 3rem 2rem 0;
    margin: 0 auto;
}

#large-imgs {
    width: 100%;
    height: 100%;
}

#image1, #image2 {
    position: absolute;
    height: 500px;
    width: 500px;
}

#image1 {
    z-index: 2;
    cursor: pointer;
}

#image2 {
    z-index: 1;
}

a {
    display: block;
    text-decoration: none;
}

#prev, #next {
    background-image: url(../images/arrow2.svg);
    background-repeat: no-repeat;
    background-position: center;
    width: 40px;
}

#next {
    background-image: url(../images/arrow.svg);
}

#next:hover {
    background-image: url(../images/arrow-hover.svg);
}

#prev:hover {
    background-image: url(../images/arrow2-hover.svg);
}

#arrows {
    position: absolute;
    display: flex;
    justify-content: space-evenly;
    flex-direction: row-reverse;
    top: 710px;
    gap: 1rem;
    height: 68px;
    justify-self: center;
}

#thumbnails {
    position: absolute;
    top: 605px;
    height: 100px;
    width: 500px;
}

.thumbs {
    cursor: pointer;
    width: 100px;
    height: 100px;
    position: absolute;
    border: 2px solid #14153d;
} 

.active {
    border: 6px solid #14153d;
}

#thumb2 {
    left: 100px;
}

#thumb3 {
    left: 200px;
}

#thumb4 {
    left: 300px;
}

#thumb5 {
    left: 400px;
}

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

    #contain {
        grid-template-columns: 400px 1fr;
    }
    
    #image1, #image2 {
        height: 400px;
        width: 400px;
    }
    
    #arrows {
        top: 580px;
    }
    
    #thumbnails {
        top: 505px;
        height: 80px;
        width: 400px;
    }
    
    .thumbs {
        width: 80px;
        height: 80px;
    }

    #thumb2 {
        left: 80px;
    }

    #thumb3 {
       left: 160px;
    }

    #thumb4 {
       left: 240px;
    }

    #thumb5 {
        left: 320px;
    }
    
    p {
        font-size: 1.6rem;
    }
    
}

@media screen and (max-width: 650px) {
    #contain {
        grid-template-columns: 300px 1fr;
    }
    
    #image1, #image2 {
        height: 300px;
        width: 300px;
    }
    
    #arrows {
        top: 460px;
    }
    
    #thumbnails {
        top: 405px;
        height: 60px;
        width: 300px;
    }
    
    .thumbs {
        width: 60px;
        height: 60px;
    }

    #thumb2 {
        left: 60px;
    }

    #thumb3 {
        left: 120px;
    }

    #thumb4 {
        left: 180px;
    }

    #thumb5 {
        left: 240px;
    }
    
}

@media screen and (max-width: 520px) {
   
    h1 {
        font-size: 2.5rem;
    }
    #contain {
        grid-template-columns: 300px;
        grid-template-rows: 30px 370px 1fr;
        justify-content: center;
    }
    
    #thumbnails {
        top: 390px;
    }
    
    #arrows {
        top: 670px;
    }
    
    .thumbs {
        border: 1px solid #14153d;
    } 

    .active {
        border: 4px solid #14153d;
    }

    #next, #prev {
        width: 25px;
        background-size: contain;
    }
}













