nav {
    position: fixed;
    width: 80px;
    height: 80px;
    top: 0px;
    left: 0px;
    z-index: 15;
    background: url(/img/menu/home.png);
    background-repeat: no-repeat;
    background-size: 80px 80px;
}
nav:hover {
    background: url(/img/menu/homeHover.png);
    background-repeat: no-repeat;
    background-size: 80px 80px;
}
nav label {
    display: inline-block;
    margin: 0;
    cursor: pointer;
    height: 80px;
    width: 80px;
}
nav label.myAccountBt {
    background: url(/img/menu/myAccount.png);
    background-repeat: no-repeat;
    background-size: 80px 80px;
}
nav label.myAccountBt:hover {
    background: url(/img/menu/myAccountHover.png);
    background-repeat: no-repeat;
    background-size: 80px 80px;
}
nav label.ranksBt {
    background: url(/img/menu/ranks.png);
    background-repeat: no-repeat;
    background-size: 80px 80px;
}
nav label.ranksBt:hover {
    background: url(/img/menu/ranksHover.png);
    background-repeat: no-repeat;
    background-size: 80px 80px;
}
nav label.trainingBt {
    background: url(/img/menu/training.png);
    background-repeat: no-repeat;
    background-size: 80px 80px;
}
nav label.trainingBt:hover {
    background: url(/img/menu/trainingHover.png);
    background-repeat: no-repeat;
    background-size: 80px 80px;
}
nav label.tournamentsBt {
    background: url(/img/menu/tournaments.png);
    background-repeat: no-repeat;
    background-size: 80px 80px;
}
nav label.tournamentsBt:hover {
    background: url(/img/menu/tournamentsHover.png);
    background-repeat: no-repeat;
    background-size: 80px 80px;
}
nav label.miniTournamentsBt {
    background: url(/img/menu/miniTournaments.png);
    background-repeat: no-repeat;
    background-size: 80px 80px;
}
nav label.miniTournamentsBt:hover {
    background: url(/img/menu/miniTournamentsHover.png);
    background-repeat: no-repeat;
    background-size: 80px 80px;
}
nav sub {
    width: 0;
    position: absolute;
    top:0;
    left:100%;
    overflow: hidden;
}
nav:hover > sub {
    width: 420px;
    padding: 0;
    transition: width 0.2s;
    height: 100%;
}
@media screen and (max-width: 480px)
{
    nav sub {
        height: 0;
        width: 100%;
        position: absolute;
        top:100%;
        left:0;
        overflow: hidden;
        
    }
    nav:hover > sub {
        height: 400px;
        width: 100%;
        transition: height 0.2s;
    }
}

.horloge {
    position: fixed;
    top: 0;
    right: 20px;

    z-index: 2000;
}


/* Clock */
.horloge-time::before {
    content: "◷";
    margin-right: 7px;

    font-size: 16px;
    vertical-align: -1px;
}

.horloge-time {
    display: block;

    padding: 9px 14px;

    background: #6D071A;
    color: white;

    font-size: 13px;
    font-weight: 600;
    text-decoration: none;

    border: 1px solid #520514;
    border-top: 0;

    border-bottom-left-radius: 9px;
    border-bottom-right-radius: 9px;

    box-shadow: 0 3px 10px rgba(109, 7, 26, 0.25);

    white-space: nowrap;

    transition:
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.horloge-time:hover {
    background-color: #850923;
    color: white;

    box-shadow: 0 4px 14px rgba(109, 7, 26, 0.35);
}


/* Dropdown */

.horloge-menu {
    position: absolute;

    display: none;

    top: 100%;
    right: 0;

    width: 240px;

    margin: 0;
    padding: 8px;

    list-style: none;

    background-color: white;

    border: 1px solid #e4e4e7;
    border-top: 3px solid #6D071A;

    border-radius: 0 0 10px 10px;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.14);
}


/* Display menu on hover */

.horloge:hover .horloge-menu {
    display: block;
}


/* Links */

.horloge-link {
    margin: 0;
}

.horloge-link a {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 9px 10px;

    border-radius: 6px;

    color: #27272a;

    font-size: 13px;
    font-weight: 500;

    text-decoration: none;

    transition:
        background-color 0.15s ease,
        color 0.15s ease;
}

.horloge-link a:hover {
    background-color: #f7edf0;
    color: #6D071A;
}


/* Week / day */

.horloge-link a span {
    color: #71717a;
    font-size: 12px;
}


/* Separators */

.horloge-separator {
    height: 1px;

    margin: 6px 8px;

    background-color: #e4e4e7;
}


/* Today's events */

.horloge-events {
    padding: 7px 10px 9px;
}

.horloge-label {
    display: block;

    margin-bottom: 8px;

    color: #71717a;

    font-size: 11px;
    font-weight: 600;

    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.horloge-flags {
    display: flex;
    gap: 8px;
}

.horloge-flags a {
    display: flex;

    padding: 4px;

    border-radius: 5px;

    transition: background-color 0.15s ease;
}

.horloge-flags a:hover {
    background-color: #f7edf0;
}

.horloge-flags img {
    height: 20px;
    width: auto;

    border-radius: 2px;

    border: 1px solid rgba(0, 0, 0, 0.08);
}

.userResources {
    position: fixed;

    top: 0;
    left: 50%;
    transform: translateX(-50%);

    display: flex;
    align-items: center;

    height: 38px;

    padding: 0 14px;

    box-sizing: border-box;

    background: white;

    border: 1px solid #e2e2e2;
    border-top: 0;
    border-radius: 0 0 10px 10px;

    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.10);

    z-index: 2000;
}


/* One resource */

.userResource {
    display: flex;
    align-items: center;

    gap: 6px;

    min-width: 55px;

    justify-content: center;
}


/* Icons */

.resourceIcon {
    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 17px;
    line-height: 1;
}


/* Credits */

.userResource.credits .resourceIcon {
    color: #6D071A;

    font-size: 18px;
}


/* Trophies */

.userResource.trophies .resourceIcon {
    font-size: 16px;
}


/* Number */

.resourceValue {
    color: #27272a;

    font-size: 14px;
    font-weight: 700;

    font-variant-numeric: tabular-nums;
}


/* Separator */

.resourceSeparator {
    width: 1px;
    height: 20px;

    margin: 0 10px;

    background: #e4e4e7;
}


/* Mobile */

@media screen and (max-width: 480px) {

    .userResources {
        height: 34px;

        padding: 0 10px;

        border-radius: 0 0 8px 8px;
    }

    .userResource {
        min-width: 48px;

        gap: 4px;
    }

    .resourceValue {
        font-size: 13px;
    }

    .resourceSeparator {
        margin: 0 7px;
    }
}
/* Mobile */

@media (max-width: 600px) {

    .horloge {
        right: 8px;
    }

    .horloge-menu {
        width: 220px;
    }
}