/*Behold! The great CSS reset!*/

*,
*::before,
*::after {
    box-sizing: border-box;
}

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;
}
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;
}

/*fonts and stuff */
.vt323-regular {
    font-family: "VT323", monospace;
    font-weight: 400;
    font-style: normal;
  }
  

/*main page styling*/
/*
  #023020 dark green
  #228B22 forrest green
  
*/
body {
    width: 100%;
    height: 100%;
}

#main_div {
    color: #228B22;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

#main_screen {
    width: 100%;
    height: 100%;
    flex: 1;
    margin: 10px;
    background-size: 30%;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url("../img/arty_ascii.png");

    display: flex;
    flex-direction:column;
    flex-wrap: wrap;
    justify-content: start;
    align-items: start;
}

#taskbar {
    width: 100%;
    margin-top: auto;
    background-color: blue;
}

.file_icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 8%;
    margin: 10px;
    cursor: pointer;
    text-align: center;
    text-wrap-mode: wrap;
}

.file_icon img {
    width: 60%;
}

.file_icon p {
    font-size: 18px;
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

#taskbar {
    padding: 5px;
    display: flex;
    height: 4.5vh;
    align-items: center;
    border-top: solid 2px #228B22;
    background-color: black;
}

#menu_button {
    text-align: center;
    justify-content: center;
    align-items: center;
    margin: 3px;
    height: 100%;
    padding: 3px;
    border: solid 2px #228B22;
    cursor: pointer;
}


/* window styling*/
#new_window {
    width: 100vw;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 999;

    display: flex;
    flex-direction: column;
}

iframe {
    flex: 1;
    width: 100%;
    border: none;
}

#new_window_title {
    display: flex;
    justify-content: space-between; 
    align-items: center; 
    background-color: black;
    border-bottom: solid 2px #228B22;
    padding: 10px 20px;
}

#new_window_text {
    font-size: 30px;
    margin: 0;
}

#close_button {
    border: solid 2px #228B22;
    font-size: 22px;
    padding: 5px 10px;
    cursor: pointer;
}

.hide_window {
    visibility: hidden;
    pointer-events: none;
}








@media screen and (max-width: 500px) {
    .file_icon {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 8%;
        margin: 10px;
        cursor: pointer;
        text-align: center;
        text-wrap-mode: wrap;
    }
    
    .file_icon img {
        width: 90%;
    }
    
    .file_icon p {
        font-size: 12px;
        width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
    }
}