@font-face {
    font-family: 'UHF';
    src: url('./assets/font/UHF.ttf.woff') format('woff'),
    url('./assets/font/UHF.ttf.svg#UHF') format('svg'),
    url('./assets/font/UHF.ttf.eot'),
    url('./assets/font/UHF.ttf.eot?#iefix') format('embedded-opentype');
    font-weight: normal;
    font-style: normal;
}

* {
    box-sizing: border-box;
}

body {

    /*region * Colors * */
    --bg-color: #fbd050;
    --dot-color: #fef7ef;

    --dark-color: #363430;
    --medium-color: #dddad5;
    --main-color: #fbf6e9;
    /*--secondary-color: #daa6a8;*/
    --secondary-color: #ffa5af;
    --accent-color: #96dfee;
    /*endregion*/

    /*region * Dimensions * */
    --dot-size: 2px;
    --dot-space: 32px;
    --header-height: 40px;
    --window-width: 550px;
    --icons-container-width: 130px;
    --background-gradient: linear-gradient(90deg, var(--bg-color) calc(var(--dot-space) - var(--dot-size)), transparent 1%) center,
    linear-gradient(var(--bg-color) calc(var(--dot-space) - var(--dot-size)), transparent 1%) center,
    var(--dot-color);
    --background-size: var(--dot-space) var(--dot-space);
    /*endregion*/

    height: 100vh;
    width: 100vw;
    padding: 0;
    margin: 0;

    font-family: 'UHF', sans-serif;
    font-size: 12px;
    color: var(--dark-color);

    background: var(--background-gradient);
    background-size: var(--background-size);
}

.screen {
    height: 100%;
    width: 100%;
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;
}

/*region *** LANDSCAPE OVERLAY *** */
.landscape-overlay {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    padding: 0 90px;
    background: var(--background-gradient);
    background-size: var(--background-size);
}

.landscape-overlay img {
    height: 40%;
    margin-bottom: 30px;
}

.landscape-overlay h2 {
    text-align: center;
}
/*endregion*/

/*region *** TOOLBAR *** */
.toolbar {
    width: 100%;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: absolute;
    top: 0;
    padding: 0 50px;
    background-color: var(--medium-color);
    border-bottom: 2px solid var(--dark-color);
    font-size: 1.2em;
    font-weight: bold;
}

.toolbar > div {
    height: 100%;
}

.toolbar .title {
    display: inline-flex;
    align-items: center;
}

.toolbar .title img {
    height: 70%;
    margin-right: 15px;
}

.toolbar #date {
    height: 100%;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    top: -10px;
    font-size: .7em;
    text-align: center;
}

.toolbar button {
    display: inline-block;
    border: none;
    height: 100%;
    background-color: transparent;
    font-weight: inherit;
    font-size: inherit;
    font-family: inherit;
}

.toolbar button:hover {
    background-color: var(--main-color);
    cursor: pointer;
}

.toolbar button:focus {
    outline: 1px solid var(--dark-color);
}

/*endregion*/

/*region *** WINDOW *** */
.window {
    width: var(--window-width);
    height: 400px;
    background-color: var(--main-color);
    position: relative;

    box-shadow: 10px 25px 5px 0 rgba(0, 0, 0, 0.4);
    transform: translatey(0px);
    animation: float 6s ease-in-out infinite;
}

.window header {
    background: var(--medium-color);
    width: 100%;
    height: var(--header-height);

    display: flex;
    align-items: center;
    justify-content: space-between;

    border: 2px solid var(--dark-color);
    padding: 5px 10px;
}

.window header .bars {
    border: 2px solid var(--dark-color);
    border-left: none;
    border-right: none;
    width: 65%;
    height: 50%;
    margin: 0 5px;
}

.window header .title {
    font-weight: bold;
}

.window header .fake-actions {
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 70px;
}

.window header .fake-actions img {
    width: 100%;
}

.window header .fake-actions .fake-button {
    display: inline-block;
    width: 15px;
    height: 15px;
    text-align: center;
    font-weight: bold;
    position: relative;
    top: -2px;
}

.window section {
    height: calc(100% - var(--header-height));
    padding: 40px 20px 20px 40px;
    border: 2px solid var(--dark-color);
    border-top: none;
}

.window section .avatar {
    height: 50%;
    float: left;
    margin-right: 25px;
    margin-bottom: 15px;
}

.window section p {
    margin: 0;
}

.window section .highlight {
    font-size: 2em;
    background-color: var(--secondary-color);
}

.window section .fake-button {
    width: 140px;
    height: 40px;
    background-color: transparent;
    position: absolute;
    bottom: 20px;
    right: 20px;
    border: 2px solid var(--dark-color);
    color: inherit;
    text-decoration: none;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border-radius: 4px;
    transition: color .1s linear, background-color .1s linear;

}

.window section .fake-button:hover {
    background-color: var(--dark-color);
    color: var(--main-color);
    font-weight: normal;
}

.window section .fake-button:active {
    background-color: var(--secondary-color);
    color: var(--dark-color);
    font-weight: bold;
}

/*endregion*/

/*region *** SHORTCUTS & FILES *** */
.icons-container {
    width: var(--icons-container-width);
    list-style: none;
}

.file,
.shortcut {
    margin: 20px 0;
    cursor: pointer;
}

.file a,
.shortcut a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.file .image,
.shortcut .image {
    width: 50px;
    height: 50px;
    position: relative;
    top: 0;
    box-shadow: 0 12px 4px -7px rgba(0, 0, 0, 0.5);

    transition: all .3s ease;
}

.shortcut .image.round {
    box-shadow: 0 8px 3px -2px rgba(0, 0, 0, 0.5);
    border-radius: 25px;
}

.shortcut .image img {
    width: 100%;
}

.shortcut .image::after {
    content: "";
    background-image: url(./assets/shortcut.png);
    background-size: contain;
    background-repeat: no-repeat;
    width: 14px;
    height: 17px;
    position: absolute;
    bottom: -5px;
    left: -5px;
    border: solid 1px gray;
}

.shortcut:hover .image {
    box-shadow: 0 17px 6px -7px rgba(0, 0, 0, 0.3);
    animation: bounce .5s ease-in-out infinite;
}

.file .label,
.shortcut .label {
    margin-top: 10px;
}

.file:hover .label,
.shortcut:hover .label {
    background-color: var(--accent-color);
    font-weight: bold;
}

.file:active .label,
.shortcut:active .label {
    background-color: var(--secondary-color);
    font-weight: bold;
}

.file {
    text-align: center;
}

.file .image {
    box-shadow: 0px 15px 4px -10px rgba(0, 0, 0, 0.5);
}

.file:hover .image {
    box-shadow: 0 23px 6px -15px rgba(0, 0, 0, 0.3);
    animation: bounce-file .5s ease-in-out infinite;
}

.file .image img {
    height: 50px;
}

/*endregion*/

/*region *** KEYFRAMES *** */
@keyframes float {
    0% {
        box-shadow: 10px 10px 0 0 rgba(0, 0, 0, 0.4);
        transform: translatey(0px);
    }
    50% {
        box-shadow: 10px 25px 5px 0 rgba(0, 0, 0, 0.2);
        transform: translatey(-20px);
    }
    100% {
        box-shadow: 10px 10px 0 0 rgba(0, 0, 0, 0.4);
        transform: translatey(0px);
    }
}

@keyframes bounce {
    0% {
        box-shadow: 0 8px 3px -2px rgba(0, 0, 0, 0.5);
        transform: translatey(0px);
    }
    50% {
        box-shadow: 0 17px 6px -7px rgba(0, 0, 0, 0.3);
        transform: translatey(-5px);
    }
    100% {
        box-shadow: 0 8px 3px -2px rgba(0, 0, 0, 0.5);
        transform: translatey(0px);
    }
}

@keyframes bounce-file {
    0% {
        box-shadow: 0px 15px 4px -10px rgba(0, 0, 0, 0.5);
        transform: translatey(0px);
    }
    50% {
        box-shadow: 0 23px 6px -15px rgba(0, 0, 0, 0.3);
        transform: translatey(-5px);
    }
    100% {
        box-shadow: 0px 15px 4px -10px rgba(0, 0, 0, 0.5);
        transform: translatey(0px);
    }
}

/*endregion*/

/*region *** MEDIA QUERIES *** */
@media screen and (max-width: 800px) and (orientation: portrait) {
    .screen {
        flex-direction: column;
        justify-content: normal;
    }

    .toolbar {
        position: initial;
        padding: 0 10px;
    }

    .toolbar #date {
        display: none;
    }

    .window {
        width: 100%;
        height: calc(100% - var(--header-height) - 120px);
        animation: none;
        box-shadow: none;
    }

    .window header {
        display: none;
    }

    .window section {
        height: 100%;
    }

    .window header,
    .window section {
        border-left: none;
        border-right: none;
        border-top: none;
    }

    .window section {
        padding: 20px 20px 20px 40px;
    }

    .window section .avatar {
        float: initial;
        height: auto;
        width: 40%;
        position: relative;
        left: calc(50% - 20%);
    }

    .icons-container {
        width: 100%;
        margin: 24px 0;
        padding: 0;
        position: absolute;
        bottom: 0;
        left: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .icons-container .shortcut,
    .icons-container .file {
        margin: 0 10px;
    }
}

@media screen and (max-width: 480px) and (orientation: portrait) {

    .window section p {
        font-size: .9em;
    }
}

@media screen and (max-width: 360px) and (orientation: portrait) {
    .window section .avatar {
        width: 30%;
        left: calc(50% - 15%);
    }
}

@media screen and (max-height: 600px) and (orientation: landscape) {
    .screen {
        padding-top: var(--header-height);
    }

    .window {
        width: 100%;
        height: calc(100% - var(--header-height));
        animation: none;
        box-shadow: none;
    }

    .window header,
    .window section {
        border-left: none;
    }

    .icons-container {
        padding-left: 0;
        margin: 0;
    }

    .icons-container .shortcut,
    .icons-container .file {
        animation: none;
    }
}

@media screen and (max-height: 450px) and (orientation: landscape) {
    .screen {
        display: none;
    }

    .landscape-overlay {
        display: flex;
    }
}

/*endregion*/
