@import url('https://fonts.googleapis.com/css2?family=Freckle+Face&display=swap');

body{
    margin: 0;
    font-family: "Freckle Face";
    overflow-x: hidden;
    width: 100%;
}

.container{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100vh;
    background: linear-gradient(to bottom left, green, red );
}


.imageDiv{

    background-color: aliceblue;
    width: 500px;
    height: 700px;
    border-radius: 24px;
    position: relative;
}


.img{

    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    transition: 4s ease-in-out;
    z-index: 1;
    
    
}

.img:hover{
    z-index: 4;
    transform: scale(1.3);
    box-shadow: 7px 7px 7px 7px rgba(0,0,0, 0.4);
}

.textObject{
    color: white;
    z-index: 2;
    transition: 2s ease-in-out;
    animation: scaleRise 20s infinite ease-in-out;
}

.logo{
    width: 400px;
    height: 400px;
    margin-right: 1200px;
    position: absolute;
    animation: leftToRight 12s infinite ease-in-out;
    transition: all 2s ease-in-out;
}



@keyframes scaleRise {

   25%{
    transform: scale(1.4);
    
   }

   50%{

    transform: translateY(-4000%) scale(2);
   }

   75%{
    transform: scale(4);
    
   }

   100%{
    transform: translateY(-900%) scale(8);
   }

    
}


@keyframes leftToRight {

    from{
        transform: translateX(0) rotate(0);
    }
    to{
        transform: translateX(300%) rotate(360deg);
    }
}


/* create the menu bar  and hamMenu*/


.offScreenMenu2{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: orange;
    width: 100%;
    max-width: 400px;
    height: 400px;
    transform: translateX(158%);
    position: fixed;
    margin-top: 170px;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    right:-400px;
    transition: 2s ease-in-out;
    z-index: 4;
}

.offScreenMenu2.active {
    right: 600px;
}



nav{
    padding: 20px;
    display: flex;
    background-color: rgb(20, 56, 71);
    position: relative;
    
}


.hamMenu2{

    height: 50px;
    width: 50px;
    margin-left: auto;
    margin-right: 50px;
    margin-top: 60px;
    position: relative;
}

.hamMenu2 span {
    position: absolute;
    height: 5px;
    width: 100%;
    background-color: white;
    border-radius: 25px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: 2s cubic-bezier(0.455, 0.03, 0.515, 0.955);

}


.hamMenu2 span:nth-child(1){
    top: 25%;
}

.hamMenu2 span:nth-child(3){
    top: 75%;
}


/* hamMenu in active state */

.hamMenu2.active span:nth-child(1){
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
}

.hamMenu2.active span:nth-child(2){
    opacity: 0;
}

.hamMenu2.active span:nth-child(3){
    top: 50%;
    transform: translate(-50%, 50%) rotate(-45deg);
}

ul{

    list-style-type: none;
    background-color: orange;
    width: 100%;
    padding: 0;
    margin: 0;
    
}

.offScreenMenu2 a{
    text-align: center;
    display: block;
    text-decoration: none;
    padding: 15px;
    align-items: center;
    justify-content: center;
}

.offScreenMenu2 a:hover{
    background-color: skyblue;
    
}


.navLogo{
    width: 200px;
    height: auto;
   
}





@media (max-width: 320px) {      /* XS phones (≤320px) */
    
    .imageDiv{transform: scale(50%);}
    .textObject{transform: scale(70%);}
}

@media (min-width: 321px) and (max-width: 375px) {  /* S phones (321–375px) */
    
    .imageDiv{transform: scale(50%);}
    .textObject{transform: scale(70%);}
}

@media (min-width: 376px) and (max-width: 414px) {  /* M phones (376–414px) */
    
    .imageDiv{transform: scale(50%);}
    .textObject{transform: scale(70%);}
}

@media (min-width: 415px) and (max-width: 480px) {  /* L phones (415–480px) */
   
   .imageDiv{transform: scale(50%); z-index: 3;}
   .textObject{transform: scale(70%);}
}

@media (min-width: 481px) and (max-width: 767px) {  /* XL phones / small tablets */
    
    .imageDiv{transform: scale(50%); z-index: 3;}
    .textObject{transform: scale(70%);}


}