@font-face{
font-family: RobotoMedium;
src: url(../fonts/Roboto-Medium.ttf);
}

@font-face{
font-family: RobotoRegular;
src: url(../fonts/Roboto-Regular.ttf);
}

.youtube p{
color: white;    
}

.youtube{
margin: auto;
position: relative;
width: 250px;
height: auto;
border-radius: 15px;
border: solid #e5e5e5 2px;
background-color: #0f0f0f;
box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
transition: all .2s ease-in-out;
padding: 5%;
display: grid;
grid-template-rows: auto auto auto ;
font-family: RobotoRegular;
font-size: .85em;
}

    .youtube-link{
    position: absolute;
    width: 100%;
    height: 100%;
    }
        
    .youtube:hover{
    background-color: #1d1d1d;
    transition: all .2s ease-in-out;
    }
  
/*1*/

.youtube-profil, .youtube-message, .youtube-creator{
width: 100%;
height: auto;

}

/*Profil*/

.youtube-profil{
height: 44px;
}

    .youtube-photo{
    float: left;
    height: 44px;
    aspect-ratio: 1/1;
    border-radius: 300px;
    }

    .youtube-info{
    float: left;
    height: 44px;
    width: auto;
    display: grid;
    grid-template-rows: 22px 22px;
    margin-left: 8px;
    }

        .youtube-name,.youtube-date{ 
        margin: 0;
        padding: 0;
        height: 18px;    
        color: white;
        display: flex;
        align-items: center;
        }
         
        .youtube-name{
        margin-top: 4px;
        } 
        
        .youtube-date{ 
        font-family: RobotoRegular;
        }

            .youtube-name p{
            font-family: RobotoMedium;
            float: left;
            margin: 0;
            padding: 0;
            }
    
            .youtube-name img{
            float: left;
            aspect-ratio: 1/1;
            height: 14px;
            padding: 2px;
            }


      
/*Message*/
  
    .youtube-texte{
    grid-area: message;
    height: 15px;
    font-family: RobotoRegular;
    pointer-events: none;
    white-space:nowrap;
    }   

    .youtube-miniature{
    pointer-events: auto;
    width: 100%;
    aspect-ratio: 16/9;   
    display: flex;
    justify-content: center;
    align-items: center;
    } 
        
        .youtube-miniature img:first-of-type{
        position: absolute;
        width: 20%;
        height: auto;
        } 
        .youtube-miniature img:last-of-type{
        width: 100%;
        aspect-ratio: 16/9;
        border-radius: 10px;
        } 

    .youtube-video{
    background-color: #272727;
  
    height: auto;
    display: grid;
    grid-template-columns: 44px auto;
    gap: 8px;
    padding: 8px;
    padding-top: 16px;
    margin-top: -8px;
    border-radius: 0 0 10px 10px;
    }
            
            .youtube-title p:first-child{
            font-family: RobotoMedium;
            line-height: 1;
            } 

            .youtube-title p:last-child{
            font-family: RobotoRegular;
            margin-top: 5px;
            color: #b5b5b5;
            font-size: .9em;
            } 
    
            .youtube-title p{
            margin-top: 0;
            width: auto;
            height: auto;
            margin-bottom: 0;
            } 

.youtube-creator{
margin-top: 10px;
}

    .youtube-bouton{
    width: auto; 
    height: 36px;
    font-size: 14px;
    border-radius: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f2f2f2;
    color: black;
    font-family: RobotoMedium;
    }

    .youtube-bouton:hover{
    background-color: #e5e5e5;
    }



@media only screen and (max-width: 1400px) {

.youtube{
width: 200px;

}
    
}
      




@media screen and (max-width: 1200px){
.youtube{
width: 220px;
}


}