/* .dm-serif-text-regular {
    font-family: "DM Serif Text", serif;
    font-weight: 400;
    font-style: normal;
  }
  
  .dm-serif-text-regular-italic {
    font-family: "DM Serif Text", serif;
    font-weight: 400;
    font-style: italic;
  } */

  @import url('https://fonts.googleapis.com/css2?family=DM+Serif+Text:ital@0;1&family=Lobster&display=swap');

  
*{
    padding: 0;
    
    box-sizing: border-box;
}
body{
    display: grid;
    grid-template-areas: 
    "h h"
    "m s"
    "j j";
    gap: 2px;
    grid-template-columns: 3fr 1fr;
    grid-template-rows: 25vh auto 20vh;
}

header,main,aside,footer{
    background-color: antiquewhite;
    padding: 5px;
    border-radius: 5px;
    
}


/* //header section page// */

header{

    grid-area: h;
    display: flex;
    justify-content:flex-end;
    align-items: center;
    background-image: url("../images/5.jpg");
    background-size: 100% 100%;
    
    

}
header h1{
    margin-right: auto;
    padding-left: 20px;
    font-size: 80px;
    font-family: "DM Serif Text", serif;
    font-style: italic;
}
header ul{
    display: flex;
    list-style: none;
    align-items: flex-end;
    padding-right: 50px;
    height: 20vh;
    
}
header ul li{
    padding: 10px 8px;
    text-align: center;
   
    
}
header ul li a{
    text-decoration: none;
    font-family: "DM Serif Text", serif;
    font-style: italic;
    text-align: justify;
    font-size: 20px;
    background-color: green;
    padding: 5px 10px;  
    border-radius: 50px;
    transition: 0.8s linear;
      
}
header ul li a:hover{
    background-color: #ababab;
    color: white;
    transition: 0.2s linear;
}

@media screen and (max-width: 600px) 
{

    header ul{
        display: grid;
        padding-right: 5px;
        transition: 0.2s linear;
    }
    header ul li{
        padding: 0px 8px;
        font-size: 17px
    }
    header ul li a{
        font-size: 15px;
        padding: 5px 10px;  
    }   
}


/* header section page end */


main{
    grid-area: m;
    display: grid;
}
.liveimg{
    width: 100%;
    height: 300px;
    border-radius: 10px;

}
.toimg{
    
    width: 100%;
}
.btn{
    position: absolute;
    width: 100%;
    top: 45%;
    display: flex;
    justify-content: space-between;

}
.btn{
    visibility: hidden;
}
.pic:hover .btn{
    visibility: visible;
}
.prev,.next{
    width: 40px;
    height:40px;
    border: none;
    background-color: transparent;
}
.prev{
    transform: rotate(180deg);
}

.imghead,.hidden{
    display: none;
}
.active{
    display: block;
    animation: slide 0.7s linear;
}
@keyframes slide{
    0%{
        opacity: 0;
    }
    100%{
        opacity: 1;
        transition: opacity 0.5s linear;
    }
}
.para{
    width: 100%;
    height: 320px;
    padding: 10px;
    background-color: #ababab;
    border-radius: 10px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    user-select: none;
   
}
.inpara{
    width: 300px;
    height: 300px;
    background-color: cadetblue;
    font-family: "DM Serif Text", serif;
    font-style: italic;
    text-align: justify;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    padding: 10px;
    background-color: #98b997da;


}
.pic{
    background-image: url("../images/3.jpg");
    height: 100%;
    width: 100%;
    /* background-size: 100% 100%; */
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    position: relative;

}
@media screen and (max-width: 600px) 
{
    .para{
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
        height: 650px;
    }
    .inpara{
        width: 100%;
        height: 300px;
        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
        border-bottom-left-radius: 0px;
        border-bottom-right-radius: 0px;
    }
    .pic{
        width: 100%;
        height: 330px;
        border-bottom-left-radius: 10px;
        border-bottom-right-radius: 10px;
        border-top-left-radius: 0px;
        border-top-right-radius: 0px;
    }
    
}
.cardall{
    display: grid;
    padding: 10px;
    gap: 10px;
    grid-template-columns: auto auto auto auto;
}

.card{
    width: 200px;
    height: 380px;
    border: 1px solid gray;
    display: grid;
    grid-template-rows: 2fr 1fr;
    border-radius: 10px;
    overflow: hidden;

}
.carditem{
    height: 190px;
    display: grid;
    place-items: center;
    padding: 5px;
    
}

.cardimg{
    width: 90%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0px 0px 10px 7px gray; 

}
.cardimg:hover{
    transform: scale(1.04);
    transition: 0.1s linear;
}


.cardlist{
    padding: 0px 10px;
    height: 200px;
    font-family: "DM Serif Text", serif;
    font-style: italic;
    text-align: justify;
    background-color: #ababab;
    text-size-adjust: 10px;
    
}
.cardlist button{
    width: 50px;
    height: 30px;
    border-radius: 5px;
    background-color: red;
    margin-left: 130px;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    
}
.cardlist button:hover{
    transform: scale(1.04);
    transition: 0.1s linear;
    box-shadow: 0px 0px 10px 7px gray;
}
.cardlist h2{
    color: orange;
    font-size: 30px;
}

.cardlist p{
    margin-top: -20px;
    color: blue;
    text-indent: 40px;

}

aside{
    grid-area: s;
    display: grid;
}

.apara{
    padding: 5px;
    background-color: #ababab;
    border-radius: 10px;
    font-family: "DM Serif Text", serif;
    font-style: italic;
    text-align: justify;
}
footer{
    grid-area: j;
}