*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body{
    font-family: "Arvo", serif;
}
img{
    width:100%;
    display: block;
}

.parent{
    display: grid;
    grid-template-columns: repeat(4,1fr);
    grid-template-rows: 0.8fr 0.8fr 0.8fr 0.5fr;
    grid-template-areas: 
    "iphone iphone learn_more learn_more"
    "keyboard imac imac icloud"
    "games ipad ipad icloud"
    "twitter popular tv tv"
    ;
}
.iphone{
    grid-area: iphone;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-top: 50px;
}
.iphone-text ,.iphone-img{
    width: 40%;
}
.learn_more{
    background-color: #F7F8F9;
    grid-area: learn_more;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
}
.keyboard{
    grid-area: keyboard;
    background-color: #F05638;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    overflow: hidden;
}
.imac{
    grid-area: imac;
    display: flex;
  
}
.imac-image{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
   
}
.imac-image div{
    padding-top: 80px;
    padding-left: 80px;
}
.imac-image img{
    width: 200%;
    transform: translateX(-200px);
}
.imac-text{
    padding-top: 80px;
    padding-inline: 50px;
}
.icloud{
    grid-area: icloud;
    background-color: #8F76BC;
    display: flex;
    padding-top: 20px;
    align-items: center;
    flex-direction: column;
    overflow: hidden;
}
.icon{
    display: flex;
    align-items: center;
    background-color: #8B72B6;
    padding: 5px;
    border-radius: 10px;
    margin-bottom: 10px;
    font-size: 10px;
}
.icloud-img{
    width: 200px;
}
.circle{
    width: 370px;
    height: 370px;
    border-radius: 50%;
    background-color: #8166B0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.icloud-text{
    text-align: center;
    padding: 20px;
    
}
.icon img{
    width: 10px;
}
.games{
    grid-area: games;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.games img{
    transform: translateX(-50px);
}
.ipad{
    grid-area: ipad;
    background-color: #93B6B7;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-top: 20px;
    padding-left: 20px;
    position: relative;

}
.ipad button{
    width: fit-content;
  
}
.ipad h3{
    text-align: center;
    position: relative;
    z-index: 1;
}
.ipad img{
    transform: translateX(-60px);
}
/* .bg{
    background-image: url(../img/UX.png);
    background-position: center;
    background-size: cover;
} */
 .ux-img{
    width: 90%;
    position: absolute;
    bottom: 0;
    left: 120px;
 }
.twitter{
    grid-area: twitter;
    background-color: #38D5F4;
    display: flex;
    justify-content: center;
    align-items: center;
   

}
.circle-twitter{
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background-color: #35CFED;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
   

}
.circle-twitter img{
width: 80px;
}
.popular{
    grid-area: popular;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;

}
.tv{
    grid-area: tv;
    background-color: #2C2C2C;
    overflow: hidden;
    display: flex;
    align-items: center;
    color: white;
}
.tv img{
    width: 300px;
}
@media screen and (max-width:990px){
    .parent{
        grid-template-columns: repeat(2,1fr);
        grid-template-rows:1fr 1fr 1fr 1fr 1fr 1fr 0.5fr 0.7fr;
        grid-template-areas: 
          "learn_more learn_more"
          "iphone iphone"
          "keyboard games"
          "imac imac"
          "twitter icloud"
          "ipad icloud"
          "popular popular"
          "tv tv"
        ;
    } 
    .ux-img{
      left: 80px;
     }
}
@media screen and (max-width:478px){
    .parent{
        grid-template-columns: 1fr;
        grid-template-rows:1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
        grid-template-areas: 
          "learn_more"
          "iphone"
          "keyboard"
          "games"
          "imac"
          "imac"
          "twitter"
          "ipad"
          "icloud"
          "icloud"
          "popular"
          "tv"
        ;
    } 
    .imac{
      flex-direction: column;
      
    }  
    .imac-image img{
        width: 200%;
        transform: translateX(-500px);
    }
    .tv{
       flex-direction: column;
    }
    
}
