html, body{
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    width: 100%;
}

header{
    height: 40px;
    width: 100%;
    box-sizing: border-box;
    background-color: black;
    color: white;
    line-height: 40px;
    padding: 0 10px;
    position: relative;
}

.chanel{
    text-decoration: none;
}

.chanel:visited {
    color: white;
}

.main-content{
    margin: 10px;
    overflow: auto;
}

.table{
    border-collapse: collapse;
}

.table th {
    background-color: #9aaacb;
    padding: 4px;
}

.table td {
    border: 1px solid #eeeeee;
    padding: 3px;
    text-align: right;
}

.table tr:hover td{
    background-color: #eeeefe;
}

.table td:first-child, .all-users td:nth-child(2){
    background-color: #eeeeee;
    text-align: left;
}

.last-achievements{
    display: inline-block;
    vertical-align: top;
}

.all-achievements{
    display: inline-block;
    vertical-align: top;
    padding: 0 0 0 10px;
}

.all-achievements .table tr td:last-child{
    text-align: center;
}

.top-users {
    display: inline-block;
    padding: 0 0 0 10px;
}

.top-users .table tr td:last-child{
    text-align: center;
}

.counters {
    display: inline-block;
}

.counters .table tr:first-child td{
    background-color: #dddddd;
    border-color: #dddddd;
}

.stats-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-start;
}

.stats-table {
    flex: 1 1 60%;
    min-width: 360px;
    overflow-x: auto;
}

.stats-charts {
    flex: 1 1 300px;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stats-chart {
    min-height: 260px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    background: #ffffff;
    padding: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.stats-chart .highcharts-root {
    font-family: 'Roboto', sans-serif;
}

.since {
    text-align: center;
    font-style: italic;
}

.octocat, .stat{
    height: 100%;
    float: right;
    box-sizing: border-box;
    padding: 5px;
}

.page {
    width: 100%;
}

@media screen and (max-width: 800px) {
    header {
        height: 50px;
        line-height: 50px;
    }
    body{
        font-size: 1.1em;
    }
    .main-content{
        margin: 5px;
        display: flex;
        flex-direction: column;
    }
    .last-achievements {
        display: block;
    }
    .last-achievements .table {
        width: 100%;
    }
    .all-achievements {
        display: block;
        padding: 0;
    }
    .all-achievements .table {
        width: 100%;
    }
    .top-users {
        display: block;
        padding: 0;
    }
    .top-users .table {
        width: 100%;
    }
    .stats-wrapper {
        flex-direction: column;
    }
    .stats-table {
        width: 100%;
    }
    .stats-charts {
        width: 100%;
    }

    .user-stats {
        width: 100%;
    }
    .achievement {
        font-size: 1.4em;
    }
}
