html, body {
    height: 100vh;
}

body {
    font-family: "fira sans", "helvetica", "arial", "sans-serif";
    display: flex;
    flex-direction: column;
}

input[type=text], textarea {
    border: 1px solid #bbb;
}

button {
    border: 1px solid #bbb;
    background: #eee;
}

button:disabled {
    opacity: 0.5;
}

button:not(:disabled):hover {
    background-color: #f9f9f9;
    cursor: pointer;
}

input::placeholder, textarea::placeholder {
    color: #999;
}

#desktop {
    width: 100%;
    flex-grow: 1;
    padding: 0.25rem;
}

/*background*/
#background {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;    
    width: 100%;
    height: 100%;
    background-image: url("/images/wallpaper.jpg");
    background-size: cover;
    background-position: left center;
    opacity: 0.4;
}

/*desktop icons*/

.icon-layer {
    position: relative;
    width: 10.4rem;
    z-index: 1;
}

.icon-layer-horizontal {
    display: flex;
}

.desktop-icon {
    height: 7.5rem;
    margin: 2rem;
    text-align: center;
}

.desktop-icon img {
    width: 4rem;
    height: 4rem;
    display: block;
    margin: auto;
}

.desktop-icon a {
    color: #444444;
    font-weight: 300;
    font-size: 1.4rem;
}

.desktop-icon a:hover {
    color: #888;
    text-decoration: none;
}

/*gui windows*/
.gui-window {
    min-width: 400px;
    min-height: 300px;
    width: 400px;
    height: 300px;
    position: absolute;
    left: 10.4rem;
    top: 2rem;
    display: none;
}

.gui-window.window-active {
    border: 2px solid #444;
}

.gui-window.window-inactive {
    border: 2px solid #AAA;
}

.window-header {
    height: 2.7rem;
    font-size: 1.6rem;
    font-weight: 300;
    text-align: center;
    cursor: default;
    display: flex;
    align-items: center;
    justify-content: center;
}

.window-active .window-header {
    border-bottom: 2px solid #444;
    background-color: #666;
    color: #ddd;
}

.window-inactive .window-header {
    border-bottom: 2px solid #AAA;
    background-color: #DDD;
    color: #888;
}

.window-header .header-text {
    flex-grow: 1;
}

.close-window {
    width: 2.7rem;
    height: 100%;
    font-size: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.window-active .close-window:hover {
    color: white;
}

.window-inactive .close-window:hover {
    color: black;
}

.row {
    margin-right: 0;
    margin-left: 0;
    padding-left: 0;
    padding-right: 0;
}

.col, .col-sm {
    padding-left: 0;
    padding-right: 0;
}

.window-header button {
    margin: 0.3rem;
    font-weight: 700;
}

.col-sm {
    max-width: 4rem;
}

.window-content {
    background: #f9f9f9;
    min-width: 100%;
    height: calc(100% - 2.7rem);
    overflow: auto;
}

.gui-window.about-window {
    min-width: 52rem;
    min-height: 32rem;
}

@media(max-width: 1024px) {
    .gui-window.about-window {
        min-width: 42rem;
        min-height: 28rem;
    }
}

.gui-window.our-works-window {
    min-width: 600px;
    min-height: 240px;
    height: 420px;
    width: 800px;
}

.about-window .window-content {
    display: flex;
    overflow: hidden;
}

/*panel*/
.about-window-panel {
    padding: 2.5rem 1rem;
    background-color: #2b2b2b;
    color: white;
    max-width: 18rem;
    height: 100%;
    white-space: nowrap;
    min-width: 17rem;
}

.about-window-panel .menu-item {
    margin-bottom: 2rem;
}

.about-window-panel .menu-item img {
    width: 2.6rem;
    height: 2.6rem;
    display: inline-block;
    margin-right: 1rem;
}

.about-window-panel a {
    font-size: 1.1rem;
    font-weight: 300;
    color: white;
}

.about-window-panel a:hover {
    text-decoration: none;
    color: #bbb;
}

.about-window-panel a:focus {
    outline: none;
}

/* textview */
.about-window-content {
    max-height: 100%;
    overflow: auto;
}

.about-window-content-card {
    padding-top: 2rem;
    margin-left: 1.5rem;
    margin-right: 1.5rem;
    font-weight: 200;
    font-size: 1.2rem;
}

.about-window-content-header {
    padding-top: 1rem;
    padding-bottom: 0.3rem;
    font-weight: 300;
    font-size: 1.4rem;
}

#text-content {
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
    font-size: 1.3rem;
    font-weight: 200;

}

/* our works icons*/
.icon-layer-horizontal {
    flex-wrap: wrap;
}

.our-works-window .desktop-icon {
    width: 8rem;
    display: flex;
    justify-content: center;
}

.icon-layer-horizontal .icon-image {
    height: 5.5rem;
    width: 5.5rem;
}

.icon-layer-horizontal span {
    display: block;
    padding-top: 0.25rem;
    font-size: 1rem;
}

/* project windows */

.gui-window.project-window {
    min-width: 400px;
    min-height: 300px;
    width: 55rem;
    height: 40rem;
}

@media(max-width: 1024px) {
    .gui-window.project-window {
        width: 45rem;
        height: 30rem;
    }
}

.project-window .window-content {
    display: flex;
    overflow: hidden;
}

.project-window-images-area {
    flex-basis: 55%;
    display: flex;
    align-items: center;
}

.project-window-image-container {
    flex-grow: 1;
    text-align: center;
}

.project-window-image-nav {
    display: block;
    transform: scale(1, 2);
    padding: 0.5rem;
    font-size: 2rem;
    font-weight: 300;
    border: none;
    background: transparent;
}

.project-window-image-nav:disabled {
    color: #bbb;
}

.project-window-image-nav:not(:disabled) {
    color: #444;
    cursor: pointer;
}

.project-window-image-nav:not(:disabled):hover {
    color: #888;
}

.project-window-image-nav:focus {
    outline: none;
}

.project-window-image img {
    max-width: 100%;
    max-height: 33rem;
}

.project-window-text-area {
    flex-basis: 45%;
    overflow: auto;
}

.project-window-text-area p {
    margin-top: 1rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    font-weight: 200;
}

/* mail us window */
.gui-window.mail-us-window {
    width: 700px;
    height: 500px;
}

.mail-us-window .window-content {
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
}

.mail-us-window form {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.mail-us-top {
    display: flex;
}

.mail-us-inputs {
    flex-grow: 1;
    padding-right: 0.5rem;
    display: flex;
    flex-direction: column;
}

.mail-us-from {
    margin-bottom: 0.5rem;
}

.mail-us-send {
    display: flex;
    flex-direction: column;
}

.mail-us-send button {
    flex-grow: 1;
    width: 4rem;
    padding-left: 0.8rem;
    padding-right: 0.8rem;
    background-image: url("/images/bl-mail.svg");
    background-position: center center;
    background-size: 2.5rem 2.5rem;
    background-repeat: no-repeat;
}

.mail-us-send button.loading {
    background-image: url("/images/bl-loading.svg");
}

.mail-us-body-area {
    padding-top: 0.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.mail-us-body-area textarea {
    flex-grow: 1;
}

.mail-us-status-bar {
    padding-top: 0.5rem;
    display: none;
}

/* taskbar */

#taskbar {
    width: 100%;
    height: 2.5rem;
    background-color: #ddd;
    display: flex;
    flex-direction: row;
    align-items: center;
    z-index: 999;
    border-top: 2px solid #AAA;
    cursor: default;
}

#taskbar-filler {
    flex-grow: 1;
}

.taskbar-image {
    height: 2rem;
    width: 2rem;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
}

#translate-area {
    display: flex;
    align-items: center;
    color: #333;
    font-weight: 200;
}

#clock {
    font-size: 1.4rem;
    padding: 0 1rem;
}

#taskbar-logo {
    max-height: 2.15rem;
    margin-left: 1rem;
    margin-right: 1rem;
}

#taskbar-header {
    font-weight: 200;
    font-size: 1.35rem;
    margin-right: 0.2rem;
}