@charset "UTF-8";

/**
**************************************************
*     _  __     _    _____ _            _        *
*    | |/ /    | |  / ____| |          | |       *
*    | ' / __ _| |_| |    | | ___   ___| | __    *
*    |  < / _` | __| |    | |/ _ \ / __| |/ /    *
*    | . \ (_| | |_| |____| | (_) | (__|   <     *
*    |_|\_\__,_|\__|\_____|_|\___/ \___|_|\_\    *
*                                                *
**************************************************


This file is part of the KatClock project, a simple JavaScript application show the current date 
and time in a standardized form used by NATO forces and emergency response services. For further
informations, please consult the README.md file in the root folder of this project.

Florian Meissner <florian.meissner1@volkswagen.de>
*/

/**
This file contains all CSS declarations in relation to the clock display. Declarations according to 
light or dark mode shoulb be located in their respective files.
*/

main {
    vertical-align: middle;
    overflow: hidden;
    font-size: 2.5vw;
    font-weight: bold;
}

main section {
    border-width: 0;
    border-bottom-width: 1px;
    border-style: solid;
    padding: .4em;
    margin: .4em;
}

.size1 {
    font-size: 5em;
}

.size2 {
    font-size: 2.5em;
}

.size3 {
    font-size: 1em;
}

.smaller {
    font-size: 0.5em;
}

#datetime_kat, #time_human, #date_human {
    display: flex;
    justify-content: center;
    align-items: center;
}

[data-title]:hover:after {
    opacity: 1;
    transition: all 0.1s ease 0.5s;
    visibility: visible;
}

[data-title]:after {
    content: attr(data-title);
    position: absolute;
    bottom: 50%;
    left: 50%;
    padding: 4px 4px 4px 8px;
    color: #666666;
    white-space: nowrap;
    border-radius: 5px;
    box-shadow: 0px 0px 4px #666666;
    opacity: 0;
    z-index: 99999;
    visibility: hidden;
    background-image: -moz-linear-gradient(top, #f0eded, #bfbdbd);
    background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #f0eded), color-stop(1, #bfbdbd));
    background-image: -webkit-linear-gradient(top, #f0eded, #bfbdbd);
    background-image: -moz-linear-gradient(top, #f0eded, #bfbdbd);
    background-image: -ms-linear-gradient(top, #f0eded, #bfbdbd);
    background-image: -o-linear-gradient(top, #f0eded, #bfbdbd);
    font-size: 7vh;
}

[data-title] {
    position: relative;
}
