@import url('https://fonts.googleapis.com/css2?family=Pacifico&display=swap');

/* Slider container */
.slider{
    position: relative;
    width: 100%;
    height: 80vh;
    overflow: hidden;
    background-image: url("https://www.xovient.com/jkmaharaj/images/items/backgorund_banner_image.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

/* Title inside the slider */
.title{
    position: absolute;
    top: 6%;
    right: 63%;
    text-align: right;
    color: #88170f;
    font-size: 86px;
    width: 36%;
    font-family: 'Pacifico', cursive;
    text-shadow: 3px 5px 0px #478860;
    line-height: 1em;
    transform: rotate(-5deg);
}

/* Circular rotating image container */
.images{
    position: absolute;
    bottom: 0%;
    left: 50%;
    --rotate: 0deg;
    transform: translate(-50%, 65%) rotate(var(--rotate));
    width: 1150px;
    height: 1150px;
    border-radius: 50%;
    transition: transform 0.5s ease-in-out;
    outline: 3px dashed #fff5;
    outline-offset: -100px;
}

.images .item{
    position: absolute;
    width: 100%;
    height: 100%;
    text-align: center;
    rotate: calc(60deg * var(--i));
}

.images .item img{
    height: 280px;
}

/* Content section */
.content{
    color: #fff;
    position: absolute;
    top: 10%;
    left: 60%;
    text-align: justify;
    width: 350px;
}

.content h1{
    color: #e4b96e;
    font-size: xx-large;
    font-family: Amatic SC;
}

.content button{
    margin-top: 30px;
    padding: 10px 30px;
    border-radius: 20px;
    background-color: #88170f;
    color: #fff;
    border: none;
    float: right;
}

/* Display active content */
.content .item{
    display: none;
}

.content .item.active{
    display: block;
}

/* Animations */
@keyframes showContent{
    from{
        opacity: 0;
        transform: translateY(100px);
    }
    to{
        opacity: 1;
    }
}

.content .item.active h1{
    opacity: 0;
    animation: showContent 0.5s ease-in-out 1 forwards;
}

.content .item.active .des{
    opacity: 0;
    animation: showContent 0.5s 0.3s ease-in-out 1 forwards;
}

.content .item.active button{
    opacity: 0;
    animation: showContent 0.5s 0.6s ease-in-out 1 forwards;
}

/* Navigation arrows */
#prev, #next{
    position: absolute;
    border: none;
    top: 50%;
    font-size: 100px;
    font-family: cursive;
    background-color: transparent;
    color: #fff;
    font-weight: bold;
    opacity: 0.3;
}

#prev{
    left: 50px;
}

#next{
    right: 50px;
}

#next:hover, #prev:hover{
    opacity: 1;
}

/* Responsive for smaller devices */
@media (max-width: 1024px) {
    .title {
        font-size: 60px;
        right: 55%;
    }

    .images {
        width: 900px;
        height: 900px;
    }

    .images .item img {
        height: 200px;
    }

    .content {
        left: 60%;
        width: 300px;
    }

    .content h1 {
        font-size: x-large;
    }

    #prev, #next {
        font-size: 70px;
    }
    .slider{
        position: relative;
        width: 100%;
        height: 30vh;
        overflow: hidden;
        background-image: url("https://www.xovient.com/jkmaharaj/images/items/backgorund_banner_image.png");
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;
    }
}

/* Responsive for tablets */
@media (max-width: 768px) {
    .slider {
        height: 34vh;
        background-position: center;
    }

    .title {
        font-size: 48px;
        right: 50%;
    }

    .images {
        width: 700px;
        height: 700px;
    }

    .images .item img {
        height: 150px;
    }

    .content {
        top: 15%;
        left: 55%;
        width: 280px;
    }

    .content h1 {
        font-size: large;
    }

    #prev, #next {
        font-size: 60px;
    }
}

/* Responsive for mobile devices */
@media (max-width: 480px) {
    .slider{
        position: relative;
        width: 100%;
        height: 30vh;
        overflow: hidden;
        background-image: url("https://www.xovient.com/jkmaharaj/images/items/backgorund_banner_image.png");
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;
    }

    .title {
        font-size: 32px;
        right: 45%;
    }

    .images {
        width: 500px;
        height: 500px;
    }

    .images .item img {
        height: 120px;
    }

    .content {
        top: 6%;
        left: 64%;
        width: 220px;
    }

    .content h1 {
        font-size: medium;
    }

    button {
        padding: 8px 20px;
        font-size: 12px;
    }

    #prev, #next {
        display: none;
    }
}


