@import url(main.css);

body{
    background-color: black;
}
body.night{
    background-color: black;
}
body.night #agenda,
body.night #uptime,
body.night #thermo,
body.night #birthday,
body.night #bus{
    opacity: 0.15;
}

body.night #clock{
    opacity: 0.33;
}

main#app-main{
    display: grid;
    grid-template-columns: repeat(4, 23.5vw);
    grid-template-rows: repeat(3,30vh);
    gap: 5vh 2vw;
    grid-template-areas: 
        "date date agenda uptk"
        "tem1 tem2 tem3 tem4"
        "bday . bus bus"
    ;
    color: #FFFFFF;
    font-size: 2rem;
}

#clock{
    display: grid;
    position: relative;
    grid-area: date;
    grid-template-columns: 200px 1fr;
}
    .date{
        align-self: center;
    }
        .jour{
            display: block;
            text-align: center;
        }
        .day{
            display: block;
            font-size: 5rem;
            font-weight: 700;
            text-align: center;
        }
        .mois{
            display: block;
            text-align: center;
        }

    .horloge{
        font-weight: 700;
        text-align: center;
        align-self: center;
    }
        .heure{
            font-size: 10rem;
            line-height: 23.5vh;
        }
        .secondes{
            font-weight: 400;
            font-size: 10rem;line-height: 23.5vh;
            font-feature-settings: "sups";
        }

#agenda{
    position: relative;
    grid-area: agenda;
    align-self: center;
    justify-self: center;
}
    #agenda>dt{}
    #agenda>dd{font-size: 1rem;}

#uptime{
    position: relative;
    grid-area: uptk;
    align-self: center;
    justify-self: center;
}
    #uptime>.entry{
        display: inline-block;
        border-radius: 5px;
        font-feature-settings: "tnum";
        background-color: #6c757d;
        color: #FFFFFF;
        font-size: 1.5rem;
        font-weight: bold;
        padding: 5px 0.5rem;
        margin: 7px 5px;
    }
    #uptime>.entry.up {
        background-color: #198754;
    }
    #uptime>.entry.down{
        background-color: #dc3545;
    }
    #uptime>.entry.pending{
        background-color: #ffc107;
    }
    #uptime>.entry.maintenance{
        background-color: #0d6efd;
    }

#thermo{
    display: grid;
    grid-template-columns: 1fr 2fr;
    grid-template-rows: 1.25fr 0.75fr;
    grid-template-areas:
        "g t"
        "g h"
    ;
}
    .tem1{grid-area: tem1;}
    .tem2{grid-area: tem2;}
    .tem3{grid-area: tem3;}
    .tem4{grid-area: tem4;}

    #thermo>.glyph{
        grid-area: g;
        font-size: 4rem;
        align-self: center;
        justify-self: center;
        color: rgba(255,255,255,0.6);
    }
    #thermo>.temp{
        grid-area: t;
        font-size: 5rem;
        font-weight: 600;
        align-self: end;
        justify-self: left;
        font-feature-settings: "tnum";
    }
    #thermo>.humi{
        grid-area: h;
        font-size: 3rem;
        align-self: start;
        justify-self: left;
        font-feature-settings: "tnum";
        color: rgba(255,255,255,0.6);
    }

#birthday{
    grid-area: bday;
    padding: 1vh 0 1vh 2vw;
    box-sizing: border-box;
    color: rgba(255, 255, 255, 0.6);
}
    #birthday>.birth{
        display: block;
        font-feature-settings: "tnum";
    }
    #birthday>.birth.today{
        font-weight: bold;
        color: #FFFFFF;
    }

#bus{
    grid-area: bus;
    color: white;
}
    .depart{
        display: grid;
        width: 100%;
        grid-template-columns: 40px 100px 100px 1fr;
        grid-template-rows: 40px;
        grid-template-areas: "line hour late dest";
        gap: 4px;
    }
        .line{
            grid-area: line;
            align-self: center;
        }
            .line > mark {
                display: inline-block;
                width: 100%; line-height: 40px;
                text-align: center;
                font-weight: bold;
                vertical-align: top;
            }
            .depart.gris>.line>mark{background-color: rgba(255, 255, 255, 0.3) !important;}

        .hour{grid-area: hour; justify-self: right;}
        .late{grid-area: late; justify-self: center;}
        .dest{grid-area: dest;}
        .dest>b{font-weight: 800;}
        .dest>i{font-weight: 300;}
    .depart+.depart{margin-top: 5px;}
    .depart.gris{color: rgba(255, 255, 255, 0.3);}