/*Css for diplay flex ( mobile one)*/

*,
*::before,
*::after{
    box-sizing: border-box;
}

* {margin: 0;padding: 0;box-sizing: border-box;font-family: "Anton SC", serif;font-weight: 400;font-style: normal;box-sizing: border-box;}

body {
    background-color: #0C0706;

}




header {
    margin-top: 10px;
        text-align:right;

}



nav ul {
    list-style: none;
    text-decoration: none;
}




nav ul li {
    display: inline;
    margin: 15px;

}

a {
    color: #101E34;

    text-decoration: none;


}

nav ul li a {

    color: #101E34;
    font-weight: bold;
    padding: 10px;


}


nav ul li a:hover {
    color: #d9ce00;
    transition: .5s;

}

.navbar {
    background-color: #B2250A;
    padding: 5px;
    font-weight: 100;
    font-style: normal;
}


/*the animation*/


.banner{
    width:90%;
    max-width:1920px;
    margin-inline: auto;
    position: relative;
    height: 100px;
    margin-top: 3rem;
    margin-bottom: 2rem;
    overflow: hidden;
    mask-image: linear-gradient(to right,
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 1) 20%,
    rgba(0, 0, 0, 1) 80%,
    rgba(0, 0, 0, 0));
     
}


.itemLeft,
.itemRight {
    width:200px;
    height: 100px;
    background-color: #B2250A;
    border-radius: 6px;
    position: absolute;
    animation-duration: 30s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;

}

.itemLeft {
    left: max(calc(200px * 6), calc(100% + 200px));
    animation-name: scrollLeft;
}

.itemRight{
    right: max(calc(200px * 6), calc(100% + 200px));
    animation-name: scrollRight;
}

.itemLeft img,
.itemRight img{
    width:200px;
    height: 100px;
}


/*different delays*/


.item1 {
    animation-delay: calc(30s / 6 * ( 6 - 1) * -1 );
    
}

.item2 {
    animation-delay: calc(30s / 6 * ( 6 - 2) * -1 );
}

.item3 { 
    animation-delay: calc(30s / 6 * ( 6 - 3) * -1 );
}

.item4 {
    animation-delay: calc(30s / 6 * ( 6 - 4) * -1 );
}

.item5 {
    animation-delay: calc(30s / 6 * ( 6 - 5) * -1 );
}
.item6 {
    animation-delay: calc(30s / 6 * ( 6 - 6) * -1 );
}

/*animation keyframes*/ 
@keyframes scrollLeft {
    /*from{}*/

    to{
left: -200px;
    }
}

@keyframes scrollRight{
    to{
        right: -200px;
    }
}

.redbox {
    background-color: #B2250A;
    height: 30px;
    width: 270px;
    color: #101E34;
    text-align: center;
    place-content: center;
    margin: auto;
    border-radius: 10px;
    margin-top: 50px;
    font-size: 0.7rem;
    border: 3px solid #101E34;
}

.redbox:hover{
   border: 3px solid #d9ce00;
    transition:0.5s;
}


.wrapper {
    display: grid;
    grid-template-columns: repeat(8,1fr);
    gap: 20px;
    overflow-x: auto;
    margin: auto;
    padding:40px;
}

.wrapper::-webkit-scrollbar {
    width: 4px;
    background-color: #101E34;
}

.wrapper::-webkit-scrollbar-thumb {

    background-color: #B2250A;
  

}

.card{
    display:inline;
    box-sizing:border-box;
    width: clamp(175px, 25vw, 450px);
    text-align:center;
    padding-left: 5px;
    margin:auto;
}

.card .user-image {
    width: 100%;
    border-radius: 15%;
    margin-bottom: 20px;
    border: 3px solid #B2250A;
}

.card .user-image:hover {
    transform: scale(110%);
    border: 3px solid #d9ce00;
    transition:0.5s;
}



.card .learn-button {

    font-size: 1.25rem;
    padding: 10px 35px;
    color: #B2250A;
    border-radius: 6px;
    font-weight: 200;
    cursor: pointer;
    border: 1px solid #B2250A;
    background-color: transparent;
    opacity: 50%;
    font-family: "Labrada", serif;
    font-optical-sizing: auto;
    font-style: normal;

}

.card .learn-button:hover {
    opacity: 100%;
    border: 1px solid #d9ce00;
    transition: 0.5s;

}

.boxer {
    display: grid;
    grid-template-columns: repeat(7,1fr);
    overflow-x: auto;
    margin: 0 auto;
    padding:20px;
    grid-gap:15px;
}
.boxer::-webkit-scrollbar {
    width: 4px;
    background-color: #101E34;
 
}


.boxer::-webkit-scrollbar-thumb {

    background-color: #B2250A;
  
}

.rectangle{
   display:inline;
   box-sizing:border-box;
   width: clamp(290px, 25vw, 440px);
   text-align:center;
   padding-left: 5px;
   margin: 0 auto;
   padding: 1rem;
}


.rectangle .user-image {
    width: 100%;
    border-radius: 15%;
    margin-bottom: 20px;
    border: 3px solid #B2250A;
    /* margin: 15px; */
}


.rectangle .learn-button {
    font-size: 1.25rem;
    padding: 10px 35px;color: #B2250A;
    border-radius: 6px;font-weight: 200;
    cursor: pointer;border: 1px solid #B2250A;
    background-color: transparent;
    opacity: 50%;
    font-family: "Labrada", serif;
    font-optical-sizing: auto;
    font-style: normal;}

.rectangle .learn-button:hover {
    opacity: 100%;
    transition: 0.5s;

}


/* the hover over text effect */

.rectangle .user-image:hover {
    opacity: 50%
    
}



.rectangle h3 {
    color: #fff;
    position: relative;
    font-optical-sizing: auto;
    font-style: normal;
    opacity: 0;
    font-size:1.5rem;
    transition: .4s ease-in-out;


}

.rectangle p {
    position: relative;
    color: white;
    font-family: "Labrada", serif;
    font-optical-sizing: auto;
    font-style: normal;
    opacity: 0;
    transition: .4s ease-in-out;
    font-size:1.2rem;


}

.rectangle:hover h3 {
    transform: translateY(-11rem);
    opacity: 100%
}

.rectangle:hover p {
    transform: translateY(-10rem);
    opacity: 100%
}


footer{
    background-color: #B2250A;
    margin-top:20px;
  text-align: center;
    
}

footer p{
    color: #101E34;
    font-family: "Labrada", serif;
    font-optical-sizing: auto;
    font-style: normal;
    margin: auto;
}

footer p:hover{
    color: #d9ce00;
}

footer a{
    cursor: pointer;
}



/*media things

@media (min-width: 480px) {
    .rectangle h3 {
     font-size:1rem;
  }
  
  .rectangle p {
     font-size:0.5rem;
  
  }
  
  .rectangle:hover h3 {
      transform: translateY(-9rem);
     
  }
  
  .rectangle:hover p {
      transform: translateY(-8rem);
     
  }
  
} 
*/

@media (min-width: 540px) {

    .redbox {

        height: 50px;
        width: 450px;
        border-radius: 20px;
        margin-top: 30px;
        font-size: 1.05rem;
        margin-bottom: 20px
    }

    .rectangle .user-image {
        width: 100%;
        /* height: 270px; */
    }
   
   
}

@media (min-width: 640px) {
    .redbox {

        height: 50px;
        width: 450px;
        border-radius: 20px;
        margin-top: 30px;
        font-size: 1.05rem;
        margin-bottom: 20px
    }

    
}

@media (min-width: 768px) {

    
    .redbox {

        height: 50px;
        width: 450px;
        border-radius: 20px;
        margin-top: 30px;
        font-size: 1.1rem;
        margin-bottom: 20px
    }
   

}



@media (min-width: 1024px) {

    
       
   
       .redbox {
   
           height: 80px;
           width: 700px;
           border-radius: 30px;
           margin-top: 30px;
           font-size: 1.5rem;
           margin-bottom: 20px
       }
        
   
       .banner{
       
           height: 400px;
        
       }
       
       .itemLeft,
       .itemRight {
           width:500px;
           height: 350px;
          
       }
       
       .itemLeft {
           left: max(calc(500px * 6), calc(100% + 500px));
           animation-name: scrollLeft;
       }
       
       .itemRight{
           right: max(calc(500px * 6), calc(100% + 500px));
           animation-name: scrollRight;
       }
           
       .itemLeft img,
       .itemRight img{
           width:500px;
           height: 350px;
       }
       
       @keyframes scrollLeft {
       
           to{
       left: -500px;
           }
       }
       @keyframes scrollRight{
           to{
               right: -500px;
           }
       }
       
   
    }   






@media (min-width: 1536px) {
    .redbox {

        height: 80px;
        width: 700px;
        border-radius: 30px;
        margin-top: 30px;
        font-size: 1.5rem;
        margin-bottom: 20px
    }
     
    .banner{
    
        height: 400px;
     
    }

    .itemLeft,
    .itemRight {
        width:600px;
        height: 400px;
       
    }
    
    .itemLeft {
        left: max(calc(600px * 6), calc(100% + 600px));
        animation-name: scrollLeft;
    }
    
    .itemRight{
        right: max(calc(600px * 6), calc(100% + 600px));
        animation-name: scrollRight;
    }
        
    .itemLeft img,
    .itemRight img{
        width:600px;
        height: 400px;
    }
    
    @keyframes scrollLeft {
    
        to{
    left: -600px;
        }
    }
    @keyframes scrollRight{
        to{
            right: -600px;
        }
    }

}


@media (min-width: 1920px) {

    .redbox {

        height: 90px;
        width: 1200px;
        border-radius: 30px;
        margin-top: 30px;
        font-size: 1.5rem;
        margin-bottom: 20px
    }

    .rectangle h3 {
   font-size:2rem;
}

.rectangle p {
   font-size:1.5rem;

}
    .banner{

    height: 400px;
 
}

.itemLeft,
.itemRight {
    width:600px;
    height: 400px;
   
}

.itemLeft {
    left: max(calc(600px * 6), calc(100% + 600px));
    animation-name: scrollLeft;
}

.itemRight{
    right: max(calc(600px * 6), calc(100% + 600px));
    animation-name: scrollRight;
}
    
.itemLeft img,
.itemRight img{
    width:600px;
    height: 400px;
}

@keyframes scrollLeft {

    to{
left: -600px;
    }
}
@keyframes scrollRight{
    to{
        right: -600px;
    }
}
   

}