/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}
body {
    line-height: 1;
    font-family: arial;
}
ol, ul {
    list-style: none;
}
blockquote, q {
    quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}
/* Global */

* {
    font-family: Arial, sans-serif;
}

a {
    font-family: Arial, sans-serif;
    text-decoration: none;
}

li a {
    color: #757575;
    font-size: 13px;
    text-align: center;
    vertical-align: middle;
    display: block;
    line-height: 30px;
}

li a:hover {
    text-decoration: underline;
}

/* ----------------- LOGIN ----------------- */

div#login-screen, div#desktop {
    width: 100vw;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index:1;
}

div#login-screen {
    z-index:2;
}

.wallpaper-blured,
.wallpaper {
    width: 100%;
    height: 100%;
}

.wallpaper-blured > img,
.wallpaper > img{
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.login-status-bar {
    position: absolute;
    right: 0;
    top: 0;
    padding: 15px 30px;
}

.login-container {
    position: absolute;
    top: 60px;
    left: 60px;
    right: 60px;
    bottom: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-actions {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 50px;
    text-align: center;
}

.account-name {
    margin-bottom: 20px;
    font-size: 30px;
    color: #FFFFFF;
    text-shadow: -1px -1px 7px black;
}

.login {
    width: 460px;
    text-align: center;
}

.logo {
    margin-bottom: 15px;
}

.password-input-container {
    display: flex;
    justify-content: center;
}

.password-input input {
    height: 33px;
    width: 200px;
    background: #ffffff6e;
    border: none;
    border-radius: 9px;
    color: #FFFFFF;
    font-size: 23px;
    padding: 1px 10px;
    outline:none;
}

.password-input input:focus
{
    background: #ffffffd9;
    color: #11397b;
}

.password-submit img {
    width: 28px;
    transform: translateX(0px);
    -webkit-transition: all 500ms ease;
    -moz-transition: all 500ms ease;
    -ms-transition: all 500ms ease;
    -o-transition: all 500ms ease;
    transition: all 500ms ease;
}

.password-submit img:hover {
    transform: translateX(5px);
}

.password-submit {
    padding: 3px 9px;
    cursor: pointer;
}

div.login-error-messages-container {
    height: 100px;
    color: #FFFFFF;
    margin-top: 15px;
    font-size: 20px;
    display:none;
}

div#login-form.shake {
    animation: shake 0.6s;
}

@keyframes shake {
    0%,
    100% {
        transform: translateX(0);
    }
    15%,
    45%,
    75%{
        transform: translateX(-2px);
    }
    30%,
    60%,
    60%,
    90% {
        transform: translateX(2px);
    }
}

@keyframes opening {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    25% {
        transform: scale(1.025);
    }
    26% {
        transform: scale(1.025);
    }
    80%{
        opacity: 0;
    }
    100%{
        transform: scale(1.4);
        opacity: 0;
    }
}

div#login-form.is-on-error div.password-input-container
{
    display:none;
}

div#login-form.is-on-error div.login-error-messages-container
{
    display:block;
}

button#login-error-back {
    border: none;
    cursor: pointer;
    background: #ffffff6e;
    width: 160px;
    height: 37px;
    border-radius: 6px;
    color: #FFFFFF;
    font-size: 17px;
    margin-top: 15px;
    position: relative;
}

button#login-error-back:after {
    content: "";
    position: absolute;
    left: 2px;
    top: 2px;
    right: 2px;
    bottom: 2px;
    border: 1px solid #FFFFFF;
    border-radius: 6px;
}

button#login-error-back:hover {
    background: #ffffffd9;
    color: #11397b;
}

#login-screen.is-hidden {

    animation: opening 1s forwards;
    pointer-events: none;
}

#login-screen.is-removed {
    display: none;
}


/* ----------------- DESKTOP ----------------- */


.desktop-content {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 60px;
    padding: 21px;
}

.folders img {
    width: 100%;
}

.taskbar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: url("../img/taskbar-background.svg");
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    align-items: center;
}

.taskbar-left {
    line-height: 0;
}

div#toopenapp {
    position: absolute;
    left: 40px;
    bottom: 80px;
    width: 90vw;
}

div#toopenapp.is-opened {
    animation: openingApp 0.5s forwards;
}

div#toopenapp:not(.is-opened) {
    opacity: 0;
}

@keyframes openingApp {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100%{
        transform: scale(1);
        opacity: 1;
    }
}
