/* 
 Student Name: Hope Phillips
 File Name: styles1.css
 Date: 04/11/2023
-->


/* CSS Reset */
body, header, nav, main, footer, h1, div, img, ul {
    margin: 0;
    padding: 0;
    border: 0;
}

/* Style rule for body and images */
body {
    background-color: #faf7f6;
}


/*Style rules for mobile viewport*/


/*Style rule to hide tablet-desk class*/
.tablet-desk {
    display: none;
}

/* Style rule for header */
header {
    font-family: 'Antic Slab', serif;
    background-color: #faf7f6;
    text-align: center;
    padding: 30px 10%;
    color: black;
    font-size: 30px;
    display: flex; 
    justify-content: flex-end;
    align-items: center;
}

.logo {
    margin-right: auto;
    
}

/* Style rules for nav */
nav {
    font-family: 'Antic Slab', serif;
    padding: 0px 20px;
    background-color: #faf7f6;
    text-align: center;
    font-size: 15px; 
}

nav a {
    color: black;
    text-decoration: none;
    margin: 0px ;
    transition: 0.2s;
    display: inline-block;
    padding: 0px 10px
}

nav a:hover {
    color: #ffa800;
}

.social-icon {
    color: black;
    text-decoration: none;
    transition: 0.2s;
    display: inline-block;
    padding: 0px 10px;
    font-size: 18px; 
    transition: transform 0.5s;
}

.social-icon:hover {
    color: #ffa800;
    transform: scale(1.3);
}

/* Style rules for main content  */
main {
    background-color: #faf7f6;
    font-family: 'Antic Slab', serif;
}

.container {
    position: relative;
    text-align: center;
}

img {
    max-width: 100%; 
    max-height: 100%;
}

.centered {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white; 
    text-align: center; 
}

.icon {
    color: black;
    background-color: #faf7f6;
    font-size: 50px; 
    cursor: pointer; 
}

.icon:hover {
    color: #ffa800; 
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    padding: 0px 100px 0 100px;
}

.img-wrapper {
    position: relative;
    overflow: hidden;
    padding: 50px;
    transition: transform 0.5s;
}

.img-wrapper > img {
    display: block;
    width: 100%;
    aspect-ratio: 1/1; 
    object-fit: cover; 
    object-position: center; 
}

.img-wrapper > .content {
    position: absolute; 
    inset: 0;
    font-size: 2rem;
    padding: 1rem;
    background: rgba(255, 255, 255, .4);
    display: flex;
    justify-content: center;
    align-items: center; 
}

.img-wrapper > .img,
.img-wrapper > .content {
    transition: 200ms ease-in-out;
}

.img-wrapper:hover > img.blur {
    filter: blur(1px);
}

.img-wrapper:hover > img.zoom {
    transform: scale(1.1);
}

.img-wrapper > .content.fade {
    opacity: 0;
}

.img-wrapper:hover > .content.fade {
    opacity: 1;
}

a:link, a:visited, a:active {
    color: black; 
}

/* Style rule for footer */
footer {
    font-family: 'Antic Slab', serif;
    font-size: .70em;
    text-align: center;
    margin-top: 2em;
}
