body {

    margin:0;
    font-family:Tahoma, sans-serif;
}

/* desktop background */

.desktop {

    height:100vh;
    background:#6aa3d8;

    display:grid;
    grid-template-columns: 80px;
    grid-auto-rows: 90px;

    padding:20px;
}

/* icons */

.icon {

    width:80px;
    text-align:center;
    color:white;
	cursor:pointer;
}

.icon img {

    width:48px;
    display:block;
    margin:auto;
}

.icon span {

    font-size:14px;
}
.icon:hover {

    background:rgba(255,255,255,0.2);
}

/* taskbar */

.taskbar {

    position:fixed;
    bottom:0;
    left:0;

    width:100%;
    height:40px;

    background:#c0c0c0;

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:0 10px;

    border-top:2px solid white;
}

.start {

    background:#d4d0c8;
    padding:5px 10px;

    border:2px solid white;
}

.clock {

    font-size:14px;
	background:#d4d0c8;
    padding:4px 8px;
	margin-right:20px;
    border:2px solid white;
}

.window {

    position:absolute;

    /* top:50px; */
    /* left:220px; */

    width:800px;
    height:600px;

    background:#d4d0c8;

    border:2px solid white;
    box-shadow:3px 3px black;

    display:flex;
    flex-direction:column;
}

#aboutWindow {

    width: 400px;
    height: 600px;

}
#playGameWindow {

	width: 400px;
    height: 200px;

}
#projectsWindow {

    width: 400px;
    height: 600px;

}
#messageBoardWindow {

    width: 300px !important;
    height: 450px !important;
	
	right: 20px;
    top: 30px;

    left: auto;

}

/* newsletter form */
#newsletterWindow {

    width: 300px;
    height: 350px;

}
.window-content input,
.window-content textarea {

    width: 100%;
    box-sizing: border-box;
    padding: 6px;

    font-family: Tahoma, sans-serif;
}
.window-content button {

    background:#d4d0c8;
    border:2px solid white;
    padding:6px 10px;
    cursor:pointer;
    font-family:Tahoma, sans-serif;

}

.window-content button:hover {

    background:#c0c0c0;

}

#runnerWindow {

    width: 200px;
    height: 200px;

    right: 20px;
    bottom: 60px;

    left: auto;
    top: auto;
}

.runner-content {

    display:flex;
    justify-content:center;
    align-items:center;

    height:100%;
	
}

#runnerSprite {

    width:200px;
    image-rendering: pixelated;

}

#recentWindow {

    width: 300px;
    height: 350px;

    left: 120px;
    top: 80px;

}

/* top bar */

.window-header {

    background:#000080;
    color:white;

    padding:6px;

    font-weight:bold;
}

/* content area */

.window-content {

    flex:1;
    overflow:auto;

}
.window-header {

    background:#000080;
    color:white;

    padding:6px;

    font-weight:bold;

    display:flex;
    justify-content:space-between;
}

.window-buttons span {

    margin-left:8px;
    cursor:pointer;
}
.hidden {
    display: none;
}
.blog-frame {

    width: 100%;
    height: 100%;
    border: none;

}

.start-menu {

    position:fixed;
    bottom:40px;
    left:0;

    width:200px;

    background:#d4d0c8;

    border:2px solid white;
    box-shadow:3px 3px black;

}

.start-menu-header {

    background:#000080;
    color:white;

    padding:8px;
    font-weight:bold;

}

.start-menu-item {

    padding:8px;
    cursor:pointer;

}

.start-menu-item:hover {

    background:#000080;
    color:white;

}

/* recent blog posts */
.post-item {

    padding:6px 0;
    border-bottom:1px solid #aaa;

}

.post-item a {

    text-decoration:none;
    color:black;
    font-weight:bold;

}

.post-item {
    padding: 8px;
    border-bottom: 1px solid #999;
    font-weight: bold;
    cursor: pointer;
}

.post-item:hover {
    background: #000080;
    color: white;
}

/* ---------------- MOBILE OPTIMIZATION ---------------- */

@media (max-width: 700px) {

    /* Bigger icons */
    .icon {
        width:100px;
    }

    .icon img {
        width:64px;
    }

    .icon span {
        font-size:16px;
    }

    /* Desktop grid spacing */
    .desktop {
        grid-template-columns: 100px;
        grid-auto-rows: 110px;
        padding:20px;
    }

    /* Windows become nearly full screen */
    .window {
        width:90vw;
        height:70vh;
    }

    /* Runner window smaller */
    #runnerWindow {
        width:140px;
        height:140px;
    }

    #runnerSprite {
        width:140px;
    }

    /* Recent posts window */
    #recentWindow {
        width:80vw;
        height:40vh;
        left:10vw;
        top:10vh;
    }

    /* Start menu larger */
    .start-menu {
        width:240px;
    }

    .start-menu-item {
        padding:14px;
        font-size:18px;
    }

    /* Taskbar taller */
    .taskbar {
        height:50px;
    }

    .start {
        font-size:16px;
        padding:8px 14px;
    }

    .clock {
        font-size:16px;
    }

}
@media (max-width:700px){

    .window{
        width:90vw !important;
        max-width:90vw;

        height:70vh !important;
        max-height:70vh;

        left:5vw !important;
        top:10vh !important;
    }

}