@import url('https://fonts.googleapis.com/css2?family=Exo+2:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --panel-blur: 10px;
}

* {
    margin: 0;
    padding: 0;
    color: #fff;
    font-family: 'Exo 2', Helvetica, Arial, sans-serif;
}

::selection {
    background-color: #fff8;
    color: #333;
}

html, body {
    height: 100vh;
    overflow: hidden;
}

body {
    background-color: #000;
}

body.loaded {
    opacity: 1;
}

#wallpaper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-color: #000;
    opacity: 0;
    transition: opacity 0.7s ease;
    z-index: -1;
}

#wallpaper.loaded {
    opacity: 1;
}

.header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    user-select: none;
    position: relative;
}

#secret-text {
    position: fixed;
    bottom: 60px;
    left: 48px;
    font-size: 72px;
    font-weight: 900;
    font-stretch: condensed;
    color: rgba(255,255,255,0.06);
    -webkit-text-stroke: 1.5px rgba(255,255,255,0.4);
    pointer-events: none;
    z-index: 1;
    max-width: 70vw;
    line-height: 1.0;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    user-select: none;
    word-break: break-word;
    mix-blend-mode: screen;
    filter: drop-shadow(0 0 12px rgba(255,255,255,0.2)) drop-shadow(0 0 40px rgba(255,255,255,0.08));
}

.welcome {
    position: absolute;
    backdrop-filter: blur(var(--panel-blur)) saturate(1.8);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 15px;
    padding: 15px;
    height: fit-content;
    display: flex;
    transition: transform .3s;
}

.welcome p {
    font-size: 20px;
}

.time {
    position: absolute;
    right: 20px;
    backdrop-filter: blur(var(--panel-blur)) saturate(1.8);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    min-width: 80px;
    text-align: center;
    font-size: 20px;
    font-weight: 400;
    border-radius: 15px;
    padding: 15px;
    transition: transform .3s;
    font-variant-numeric: tabular-nums;
}

.time-digit, .time-sep {
    display: inline-block;
}

.time-ampm {
    display: inline-block;
    margin-left: 5px;
    font-size: 14px;
    opacity: 0.75;
    vertical-align: middle;
}

@keyframes digit-tick {
    0%   { opacity: 0; transform: translateY(-40%); }
    100% { opacity: 1; transform: translateY(0); }
}

.time-tick {
    animation: digit-tick .2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes lang-change {
    0%   { transform: scaleX(1); }
    25%  { transform: scaleX(0.85); }
    100% { transform: scaleX(1); }
}

.lang-change {
    animation: lang-change .4s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: left center;
}

.date-sub {
    font-size: 11px;
    font-weight: 300;
    opacity: 0.7;
    margin-top: 4px;
}

.invisible-date #date {
    display: none;
}

.weather {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    backdrop-filter: blur(var(--panel-blur)) saturate(1.8);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    font-size: 16px;
    font-weight: 400;
    transition: transform .3s;
    white-space: nowrap;
    user-select: none;
}

.invisible-weather {
    transform: translateX(-50%) translateY(-200px);
}

.search {
    position: absolute;
    left: 50%;
    top: 45%;
    transform: translate(-50%, -50%);
    text-align: center;
    user-select: none;
}

.search-wrap {
    position: relative;
    display: inline-block;
    transition: transform .4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.search-wrap:focus-within {
    transform: translateY(-10px);
}

#search {
    border: 1px solid rgba(255,255,255,0.14);
    backdrop-filter: blur(var(--panel-blur)) saturate(1.8);
    background: rgba(255,255,255,0.08);
    font-size: 22px;
    font-family: inherit;
    font-weight: 300;
    padding: 14px 56px 14px 20px;
    border-radius: 15px;
    outline: none;
    width: 560px;
    transition: border-color .25s ease, width .3s ease;
    text-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

#search::placeholder {
    color: rgba(255,255,255,0.35);
    font-weight: 300;
}

#search:focus {
    border-color: rgba(255,255,255,0.28);
    width: 600px;
}

.search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: background .2s, border-color .2s, color .2s, transform .15s ease;
}

.search-btn:hover {
    background: rgba(255,255,255,0.14);
    border-color: rgba(255,255,255,0.26);
    color: rgba(255,255,255,1);
}

.search-btn:active {
    transform: translateY(-50%) scale(0.88);
}

@media screen and (max-width: 768px) {
    #search {
        width: 80%;
    }
}

.visible {
    display: block;
    transform: translateX(0);
}