html {
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
}

body {
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle, rgb(241, 243, 242), rgb(1, 86, 138));
    margin: 0;
}

.img-carousel {
    width: 90%;
    max-width: 600px;
    height: 60vw;
    max-height: 400px;
    margin: 0 auto;
    position: relative;
    border-radius: 7px;
    box-shadow: 3px 3px 20px black;
    overflow: hidden;
}

.img-item {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 1s;
}

.img-item>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.change__btn {
    position: absolute;
    top: 50%;
    z-index: 10;
    border: none;
    background: rgba(255, 255, 255, 0.7);
    font-family: inherit;
    color: #333333;
    border-radius: 50%;
    height: 3rem;
    width: 3rem;
    font-size: 2rem;
    cursor: pointer;
    transform: translateY(-50%);
}

.change__btn--left {
    left: 5%;
}

.change__btn--right {
    right: 5%;
}

.dots {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
}

.dots__dot {
    border: none;
    background-color: #b9b9b9;
    opacity: 0.7;
    height: 1rem;
    width: 1rem;
    border-radius: 50%;
    margin-right: 1.75rem;
    cursor: pointer;
    transition: all 0.5s;
    box-shadow: 0 0.6rem 1.5rem rgba(0, 0, 0, 0.7);
}

.dots__dot:last-child {
    margin: 0;
}

.dots__dot--active {
    background-color: #ffffff;
    opacity: 1;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .img-carousel {
        width: 100%;
        height: 70vw;
    }

    .change__btn {
        height: 2.5rem;
        width: 2.5rem;
        font-size: 1.5rem;
    }

    .dots__dot {
        height: 0.75rem;
        width: 0.75rem;
        margin-right: 1rem;
    }
}

@media (max-width: 480px) {
    .img-carousel {
        height: 80vw;
    }

    .change__btn {
        height: 2rem;
        width: 2rem;
        font-size: 1.25rem;
    }

    .dots__dot {
        height: 0.5rem;
        width: 0.5rem;
        margin-right: 0.5rem;
    }
}