body {
    /*trust the system ui fonts that are the default font of the operation system 0*/
    font-family: system-ui, sans-serif;
    /*this creates distance between copy lines like in Google docs*/
    line-height: 1.6;
    margin: 0;
    padding: 0;
}
.container {
    /*It's wide enough to accommodate complex layouts on desktop screens while not being so wide that it looks empty or sparse on larger monitors.*/
    max-width: 1200px;
    /*sets the top and bottom margins of an element to 0 and centers it horizontally within its parent element.*/
    margin: 0 auto;
    padding: 20px;
}
.work-container{
    background-color: var(--white);
    padding:32px;
    margin-top:75px;
    border-radius: 30px;
    box-shadow: 0px 10px 25px 10px hsla(0,0%,0%,0.10);
}
a{
    text-decoration: none;
}

/*intro container*/
.intro-half{
    display:flex;
    justify-content: space-between;
    margin:75px 0px 0px 0px;
}
.intro-container1{
    width:66%;
    display:grid;
    align-items: center;
}
.intro-container2{
    width:33%
}

/*top container, splits in halves*/
.top-half {
    display: flex;  
    justify-content: space-between;
}

.top-container {
    /* notice this is as close to half giving a bit of space between copy and photo*/
    width: 60%;
}

/*bottom container, splits in thirds*/
.bottom-half {
    display: flex;
    justify-content: space-between;
    margin-top:50px;
    color: var(--white);
}
.bottom-container {
    /* the bottom containers also get a bit more spacing between them*/
    width: 30%;
}
/*nav*/
nav {
    display: flex;
    align-items: center;
    gap:18px;
}
nav a {
    text-decoration: underline transparent;
    text-decoration-thickness: 1px;
    text-underline-offset: .2em;
    color: var(--white);
}
nav a:hover{
    text-decoration: underline var(--white);
    transition: text-decoration 0.3s ease;
}
#icon{
    font-size: 2em;
}
#icon:hover{
    animation: rotation-right 2s infinite linear;
    text-decoration:none;
}
@keyframes rotation-right{
    from {
      transform: rotate(0deg);
    }
    to {
      transform: rotate(359deg);
    }
  }

/*this allows us to make social media links icons that change color on hover*/
.social-icon {
    font-size: 24px;
    transition: color 0.3s ease;
}
.linkedin-icon {
    color: #333;
}
.linkedin-icon:hover {
    color: #00A0DC;
}

/*styling footer*/
footer {
    text-align: center;
    margin-top: 40px;
    padding: 50px;
    background-color: var(--white);
    color:var(--background-black);
}

footer a{
    color:var(--accent-black);
    text-decoration:underline;
    text-decoration-thickness: 1px;
    text-underline-offset: .2em;
    padding:4px 10px 4px 10px;
}

footer a:hover{
    font-weight: bold;
}
#attribute{
    padding-top:10px;
    float:center;
    font-size: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 10px;
    font-weight:400;
}
#attribute a{
    padding:0px;
    color:var(--background-black);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: .2em;
}

/*the styling here is for the image grid*/
.image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
 }

 .image-item {
    position: relative;
    padding-bottom: 10px;
}
.image-item h2 {
    margin-top: 5px;
}

 .image-item img {
    width: 100%;
    height: 300px;
    /*preserves the original aspect ratio, but the image occupies all the available space*/
    object-fit: cover;
    /*where you want the image to be positioned*/
    object-position: top;
    display: block;
    opacity:1;
    border-radius: 12px;
    margin-bottom:0px;
  }

  .image-item img:hover {
    opacity:40%;
    transition: opacity 0.3s ease; 
  }

.image-item p{
   color:var(--background-black);
    /*position tells us they want us to be absolute in the top position relative to where the copy lives on the image*/
    margin:4px 0px 0px 0px;
}

.image-item a{
    text-decoration: none;
    color: var(--background-black)
}


/*styling images*/
img {
    /*this translates to make the photo the size of the container and adjust the height accordingly*/
    max-width: 100%;
    height: auto;
}
.img-round{
    border-radius: 30px;
}

/*ANIMATIONS*/

.hidden-left{
    opacity: 0;
    filter: blur(5px);
    transform:translateX(-50%);
    transition: all 1.3s;
}
.hidden-up{
    opacity: 0;
    filter: blur(5px);
    transform:translateY(50%);
    transition: all 1.3s;
}
.show{
    opacity: 1;
    filter:blur(0);
    transform:translateX(0%);
    transform:scaleX(100%);
    transform:scaleY(100%);
    transform:translateY(0%);
    transition: all 1.3s;
}

.hidden-message{
    opacity: 0;
    transition: all 1.5s;
    transition-delay: .5s;
}

.show-message{
    opacity: 1;
    transition-delay: .3s;
}

.frame4:nth-child(2){
    transition-delay:200mx;
}
.frame4:nth-child(3){
    transition-delay:300mx;
}
.frame4:nth-child(4){
    transition-delay:400mx;
}

  /* COLORS */
  :root{
    --white: #f2f2f2;
    --accent-white: #eaeaea;
    --background-black: hsl(190, 13%, 9%);
    --accent-black: hsl(189, 8%, 17%);
    --accent:hsl(129, 39%, 29%);
 }

 /*FONTS*/

 /* <uniquifier>: Use a unique and descriptive class name
// <weight>: Use a value from 100 to 900*/

.eb-garamond{
    font-family: "EB Garamond", serif;
    font-optical-sizing: auto;
    font-weight: weight;
    font-style: normal;
  }

.display, h1{
    font-family: EB Garamond;
    font-size: 44px;
    font-style: normal;
    font-weight: 500;
    line-height: 52px;
    margin-bottom: 8px; 
 }

.heading, h2{    
    font-family: EB Garamond;
    font-size: 32px;
    font-style: normal;
    font-weight: 500;
    line-height: 48px;
    margin-bottom: 4px; 
}
    /* Label */
 .label,h3{
    font-family: EB Garamond;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
    margin-bottom: 8px; 
 }

 h4, quote-attribute{
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 13px;
    font-weight: 400;
    text-transform: uppercase;
 }

 /*this collapses everything to one column at 768px*/
 @media screen and (max-width: 768px) {
    .top-container,
    .bottom-container {
        width: 100%;
        margin-bottom: 1.3 em20px;
    }
    .container {
    /*sets the top and bottom margins of an element to 0 and centers it horizontally within its parent element.*/
    margin: 0 auto;
    padding: 12px;
    }
   .work-container{
    background-color: var(--white);
    padding:12px;
    margin-top:75px;
    border-radius: 20px;
    }
    .top-half,
    .bottom-half {
        flex-direction: column;
    }
    .intro-container1, .intro-container2{
        width: 100%;
        margin-bottom: 1.3 em;
    }
    .intro-half{
        flex-direction: column;
    }
    nav {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    nav a {
        margin: 0.4 em 0;
    }

    /*styling case study frames*/
    .case-study-frame{
        padding:50px 0px 50px 0px;
    }
    /*project details*/
    .project-detail-banner{
        grid-template-columns: repeat(2, 1fr);
        gap: 0.4 em;
    }
    .project-details{
        width:80%;
    }

    .image-grid {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: .6em;
        padding-top:0px;
     }
     .image-item {
    padding-bottom: 20px;
    }
    .image-item h2{
    font-size:28px;
    margin-bottom: -.2em;
    }
    #image-item-bottom{
        padding-bottom: 4px;
    }
    .display h1{
        font-size:32px;
    }

    .hidden-left, .hidden-up{
        transition:none;
    }


}