
@font-face {
    font-family: 'myfont';
    src: url('../fonts/HacenTunisia.ttf');
    font-weight: normal;
    font-style: normal;
    
  }

  body{
    font-family: 'myfont';
  }
main{
    padding-top: 2vw;
    display: flex;
    justify-content: center;
    margin-bottom: 2vw;
}


.allsection{
    width: 95%;
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 2vw;
}


.allsection button{
    height: 25vw;
    width: 30vw;
    display: flex;
    flex-direction: column;
    justify-self:center;
    align-items: center;
    box-shadow: 0 0 1vw rgba(0,0,0,0.5);
    background-color: #ffff;
    border: 0;
}

.allsection button img{
    width:100% ;
    height: 80%;
    overflow: hidden;
    object-fit: cover;
    
}


.allsection button span{
    width:100%;
    height: 20%;
    color: #ffff;
  font-family:'myfont';
    font-size: 1.3vw;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    background-color: #204289;
}

@media screen and (max-width:768px) {

    main{
        padding-top: 4vw;
        margin-bottom: 4vw;
    }

    .allsection{
        width: 95%;
        grid-template-columns: repeat(2,1fr);
        gap: 3vw;
    }
    
    
    .allsection button{
        height: 30vw;
        width: 45vw;
    }
    
    .allsection button img{
        width:100% ;
        height: 80%;
        overflow: hidden;
        object-fit: cover;
        
    }
    
    
    .allsection button span{
        width:100%;
        height: 20%;
        font-size: 2.1vw;
    }


                     }
                     
@media screen and (max-width:480px) {
    main{
        padding-top: 5vw;
        margin-bottom: 5vw;
    }

    .allsection{
        width: 95%;
        grid-template-columns: repeat(1,1fr);
        gap: 4vw;
    }
    
    
    .allsection button{
        height: 60vw;
        width: 90vw;
    }
    
    .allsection button img{
        width:100% ;
        height: 80%;
        overflow: hidden;
        object-fit: cover;
        
    }
    
    
    .allsection button span{
        width:100%;
        height: 20%;
        font-size: 3.5vw;
    }
    
}
 
          
