@import "/variables.css";

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-family: var(--font-family);
}

body{
    background-color: var(--background-color);
}

.carousel{
    height: 100%;
    position: relative;
    height: 600px;
    width: 80%;
    margin: 0 auto;
    margin-bottom: 200px;
}

.title{
    margin-top: 10px;
    margin-bottom: 20px;
}

.carousel__track-container{
  height: 100%;
  position: relative;
  overflow: hidden;
}

.carousel__track{
    padding: 0;
    margin: 0;
    list-style: none;
    position: relative;
    height: 100%;
    transition: transform 250ms ease-in;
}

.carousel__slide{
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
}

.carousel__button{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    cursor: pointer;
    color: black;
}

/* This moves the button to the left */
.carousel__button--left{
    left: -30px;
    border: 2px solid #000;
    border-radius: 3px;
    background-color: var(--service-color);
}

/* This moves the button to the right */
.carousel__button--right{
    right: -30px;
    border: 2px solid #000;
    border-radius: 3px;
    background-color: var(--service-color);
}

.carousel__button svg{
    width: 20px;
}

.carousel__nav{
    margin-top: 20px;
    display: flex;
    justify-content: center;
    padding: 10px;
}

.carousel__indicator{
    border: 0;
    border-radius: 50%;
    width: 15px;
    height: 15px;
    background: rgba(0,0,0,0.3);
    margin: 0 12px;
    cursor: pointer;
}

.carousel__indicator.current-slide{
    background: rgba(0,0,0, 0.75);
}

/* Card style*/
.carousel__content
{
    border: 4px solid #000;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    background-color: var(--service-color);
    width: 100%;
    height: 100%;
    padding: 15px;
    gap: 10px;
    margin: 0 auto;
}

.title
{
    text-align: center;  
    padding-bottom: 10px; 
}

/* The text in the card */
.from, from a{
    margin: 0;
    padding: 0;
    color: #000;
    font-size: var(--carousel-text-size);
}

.is-hidden{
    display: none;
}

/* =======================
   Tablet styles (iPads)
   ======================= */
   @media (min-width: 768px) and (max-width: 1023px)
   {
    .carousel__content
    {
        padding: 20px;
        gap: 20px;
    }

    .carousel{
        width: 70%;
    }
   }

   /* =======================
     Laptop & desktop styles
     ======================= */
@media (min-width: 1024px) 
{
    .carousel__button{
    top: 60%;
    transform: translateY(-60%);
    }

    .carousel__content
    {
        gap: 20px;
    }
    .carousel{
        width: 40%;
    }
}