/* Custom Fonts */
@font-face {
    font-family: "Montserrat";
    src: url("/fonts/Montserrat-VariableFont_wght.woff2") format("woff2");
}

@font-face {
    font-family: "Rubik";
    src: url("/fonts/Rubik-VariableFont_wght.woff2") format("woff2");
}

@font-face {
    font-family: "Material Icons";
    font-style: normal;
    font-weight: 400;
    src: local("Material Icons"), url("/fonts/MaterialIconsRound-Regular.woff2") format("woff2");
}

@font-face {
    font-family: "Material Symbols Outlined";
    font-style: normal;
    src: url("/fonts/MaterialSymbolsRounded-subset.woff2") format("woff2");
}

.material-symbols-outlined {
    font-family: "Material Symbols Outlined";
    font-weight: normal;
    font-style: normal;
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
    margin-right: 3px;
    font-size: 1.2em;
}

/* Global Styling */
body {
    font-family: "Montserrat", sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    flex-direction: column;
    background-color: white;
    color: black;
    transition: background-color 1s ease, color 1s ease;
}

/* Time and Date Styling */
#dateTime {
    transition: 1s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    opacity: 0;
}

#time {
    font-family: "Rubik", sans-serif;
    font-weight: 700;
    font-size: 20vw;
    margin: 0;
}

#date {
    font-family: "Rubik", sans-serif;
    font-weight: bold;
    font-size: 5vw;
    margin: 0;
}

#status {
    font-family: "Montserrat", sans-serif;
    position: absolute;
    top: 0;
    width: 100%;
    background-color: rgb(255, 204, 0);
    color: black;
    text-align: center;
    padding: 10px;
    box-sizing: border-box;
    display: none;
}

#stats {
    font-family: "Rubik", sans-serif;
    position: absolute;
    bottom: 0;
    padding: 10px;
    transition: 0.5s ease-in-out;
    opacity: 0;
    display: flex;
    justify-content: space-between;
    gap: 25px;
}

#stats > div {
    display: inline-block;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

#stats.visible {
    opacity: 1;
}

#loading {
    font-family: "Rubik", sans-serif;
    font-size: 5vw;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

body.loading #time,
body.loading #date {
    display: none;
}

body:not(.loading) #loading {
    display: none;
}

/* Theme Styling */
/* Old dark: rgb(36, 36, 36) */
body.night {
    background-color: black;
    color: white;
}

body.day {
    background-color: white;
    color: black;
}

body.night #stats {
    color: rgba(255, 255, 255, 0.5);
}

body.day #stats {
    color: rgba(0, 0, 0, 0.5);
}

/* Media Queries */
@media (max-width: 1920px) and (orientation: portrait) {
    #stats {
        font-size: 2.5em;
    }
    #status {
        font-size: 2.5em;
    }
}

@media (max-width: 1920px) and (orientation: landscape) {
    #stats {
        font-size: 1.2em;
    }
    #status {
        font-size: 2.5em;
    }
}

@media (min-width: 1920px) {
    #stats {
        font-size: 1.2em;
    }
    #status {
        font-size: 1.2em;
    }
}
