/* The breakpoint for media query will be 730px */

.projects{
      
    width:90%;
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

@media (max-width: 850px) and (min-width: 420px){
    .projects{
        width: 100%;
    }
}
@media (max-width: 419px) {
    .projects{
        width: 100%;
        margin-top: 10vh;
       
    }
}

.project{
    display: none; /* Hide all slides */
    position: absolute; /* Stack all slides */
    transition: transform 0.5s ease; /* Smooth transition */
    animation: slideInFromLeft 1s ease-out;
}

.project__leftMov {
    animation: slideInFromRight 1s ease-out;
}

.active{
    display: flex; /* Only show the active slide */
    flex-direction: row;
    /* border: 1px brown solid; */
    order: 0;
    width: 60%;
    height: 40%;
    transition: width 1s;
    
}

@media (max-width: 850px) and (min-width: 420px){
    .active{
    flex-direction: column;
    justify-content: end;
    align-items: center;
    
       
    }
  
}

@media (max-width: 419px) {
    .active{
        flex-direction: column;
        justify-content: center;
        align-items: center;
       
    }
}

.active:hover{
    width: 70%;
    height: 50%;
}


.subdivision{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 50%;
    padding: 1rem 0.5rem;
    /* background-color: #808000; */
    background-color: #4b678a;
    
 }

 @media (max-width: 850px) and (min-width: 420px){
    .subdivision{
        width: 15rem;
    }
 }

 @media (max-width: 419px) {
    .subdivision{
        width: 15rem;
        margin-bottom: 3rem;
    }
 }

.project__image {
    max-inline-size: 100%;
    object-fit: contain;
    width: 50%;
    aspect-ratio: 1;
    background-color: black;
    
}
@media (max-width: 850px) and (min-width: 420px){
    .project__image{
        width: 15rem;
    }
 }

 @media (max-width: 419px) {
     .project__image{
        width: 240px;
        height: 240px;
        aspect-ratio: none;
        max-inline-size: none;
       
     }    
 }


.project__title{
    color: #FFF8DC; 
    font-weight: 700;
    text-align: center;
    font-size: 2vh;
       
}

.project__description{
    color: white;
    text-align: center;
    font-size: 1.3vh;
}

.project__Link{
    color: green;
    text-decoration: none;
    text-align: center;
    font-size: 1.5vh;
    
}

.project__technologies{
    color: white;
    width: 100%;
    text-align: center;
    font-size: 1.3vh;
}

@keyframes slideInFromLeft {
    0% {
      transform: translateX(-100%);
    }
    100% {
      transform: translateX(0);
    }
  }

@keyframes slideInFromRight {
    0% {
      transform: translateX(100%);
    }
    100% {
      transform: translateX(0);
    }
  }

.button__subdiv{
    margin-top: 60vh;
}

@media (max-width: 850px) and (max-height:786px) {
    .button__subdiv{
        align-self: end;
        margin-top: none;
        margin-bottom: 1.5rem;
    }
}
.button{
    
    background-color: #ff7f50;
    font-weight: 700;
    color: #4b678a;
    line-height: 1.3rem;
    border-radius: 1rem;
    width: 6rem;
}

.button:hover{
    line-height: 1.5rem;
    border: 3px solid #4b678a;
}

.button__previous{
    
    background-color: #ff7f50;
    font-weight: 700;
    color: #4b678a;
    line-height: 1.3rem;
    border-radius: 1rem;
    width: 6rem;
}

.button__previous:hover{
    line-height: 1.5rem;
    border: 3px solid #4b678a;
}