html{
    scroll-behavior: smooth;
}

html, body, .wrapper{
    height: 100%;
}

body{    
    font-family: "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
    font-size: 1rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #304455;
    background-color: #fff;
    margin: 0;
}

a{
    text-decoration: none;
}

.nopadding{
    padding: inherit!important;
}

.sidebar{
    float: left;
    width: 20%;
    min-width: 210px;
    max-width: 280px;
    height: 100%;
    background-color: white;
    border-right: 1px solid rgba(228, 228, 228, 0.5);
    position: fixed;
    overflow: auto;
}


.sidebar ul{
    list-style-type: none;
    line-height: 1.5em;
}

.sidebar li {
    margin-top: 0.5em;
}

.sidebar-link{
    color: #4f5959;
}

.content{
    height:100%;
    max-width: 700px;
    width: 50%;
    margin: auto;
    padding: 20px auto;
}

.content ol {
    list-style: inherit;
}

@media (max-width: 900px) { 
    .sidebar{
        display: none;
    }
    .content{
        width: 80%;
    }
 }

.logo{
    text-align: center;
    padding: 10px 5px;
    border-bottom: 1px solid rgba(228, 228, 228, 0.5);
}

.menu{
   padding-left: 20px;
}

.menu-root{
    padding-left: 0;
}

.menu-sub{
    padding-left: 10px;
}

.sidebar .sidebar-link.active {
    font-weight: 600;
    color: #FBA002;
}

.content h2 {
    margin: 15px 0 0.8em;
    padding-bottom: 0.7em;
    border-bottom: 1px solid #ddd;
}

h1, h2, h3, h4, strong {
    font-weight: 600;
    color: #273849;
}

h1{
    margin: 0;
    padding: 0.67em 0;
}

.content h2 a, .content h3 a, .content h2 button, .content h3 button {
    pointer-events: auto;
    color: #273849;
}

.content p, .content ul, .content ol {
    line-height: 1.6em;
    margin: 1.2em 0 -1.2em;
    padding-bottom: 1.2em;
    position: relative;
    z-index: 1;
}

.content a {
    color: #FBA002;
    font-weight: 600;
}

.content img {
   height: auto;
   max-width: inherit;
   background-size: cover;
   background-repeat: no-repeat;
   background-position: center;
}

.content ol li ol{
  margin: 5px 0;
  padding-bottom: 0;
}




/*Bouton play pour l'encadré de vidéo*/
.vue-mastery {
    background-color: #e7ecf3;
    padding: 1em 1.25em;
    border-radius: 2px;
    color: #486491;
    position: relative;
    margin-top: 1em;
}

.vue-mastery a {
    color: #486491 !important;
    position: relative;
    padding-left: 36px;
}

.vue-mastery a:before {
    content: '';
    position: absolute;
    display: block;
    width: 30px;
    height: 30px;
    top: -5px;
    left: -4px;
    border-radius: 50%;
    background-color: #73abfe;
}

.vue-mastery a:after {
    content: '';
    position: absolute;
    display: block;
    width: 0;
    height: 0;
    top: 5px;
    left: 8px;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 8px solid #fff;
}

/*Code containners*/

pre{
    position: relative;
}

pre code.language-python::before {
    content: "Python";
}

pre code.language-bash::before {
    content: "Bash";
}

pre code::before{
    font-family: "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
    position: absolute;
    top: 0;
    right: 0;
    color: #ccc;
    text-align: right;
    font-size: 0.9em;
    padding: 5px 10px 0;
    line-height: 15px;
    height: 15px;
    font-weight: 600;
}

pre code{
    font-family: "Roboto Mono", Monaco, courier, monospace;
    font-size: 0.85em;
    background-color: #f8f8f8;
}


/*Tips containers*/
.content p.tip {
    border-left-color: #42b983;
}

.content p.tip, .content p.success {
    padding: 12px 24px 12px 30px;
    margin: 2em 0;
    border-left-width: 4px;
    border-left-style: solid;
    background-color: #f8f8f8;
    position: relative;
    border-bottom-right-radius: 2px;
    border-top-right-radius: 2px;
}


.content p.tip:before {
    content: "?";
    background-color: #42b983;
}

.content p.tip:before, .content p.success:before {
    position: absolute;
    top: 14px;
    left: -12px;
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 100%;
    text-align: center;
    line-height: 20px;
    font-weight: bold;
    font-family: "Dosis", "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
}


/* TABLE */

table {
    border-radius: 2px;
    box-shadow: 0 0px 10px 0px rgba(0, 0, 0, 0.15);
    -moz-box-shadow: 0 0px 10px 0px rgba(0, 0, 0, 0.15);
    -webkit-box-shadow: 0 0px 10px 0px rgba(0, 0, 0, 0.15);
    -o-box-shadow: 0 0px 10px 0px rgba(0, 0, 0, 0.15);
    -ms-box-shadow: 0 0px 10px 0px rgba(0, 0, 0, 0.15);
}

thead tr {
    background-color: #486491;
    color: #ffffff;
    text-align: left;
}

thead tr th:last-of-type{
    border-radius: 0 2px 0 0;
}

thead tr th:first-of-type{
    border-radius: 2px 0 0 0;
}

th,
td {
    padding: 12px 15px;
}

td li {
    list-style: none;
}

tbody tr {
    border-bottom: 1px solid #dddddd;
}

tbody tr:nth-of-type(even) {
    background-color: #f3f3f3;
}


tbody tr:last-of-type {
    border-bottom: 2px solid #009879;
}

tbody tr.active-row {
    font-weight: bold;
    color: #009879;
}