/* Document setup */
* {
    font-family: 'Courier New', Courier, monospace;
    color: rgb(255, 255, 255);
}

body {
    margin: 0;
    padding: 0;
    padding-bottom: 50px;
    width: 100%;
    
    display: flex;
    flex-direction: column;
    align-items: center;

    background-color: rgb(32, 32, 32);
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    
    width: 80%;
}

/* Universal Styling Classes */

button {
    border: none;
    outline: none;
    cursor: pointer;
    background-color: rgb(92, 92, 92);
}
button:hover {
    background-color: rgb(64, 64, 64);
}

.hidden {
    display: none !important;
}

/* Page */
.title {
    margin-bottom: 10px;
}

.subtitle {
    margin-top: 0;
}

.heading {
    margin: 10px;
}


.image_container {
    display: flex;
    flex-direction: column;
    padding: 10px;

    width: 564px;
}

.image_container img {
    height: auto;
    display: block;
}

.image_container p {
    font-style: italic;
    font-size: 14px;
    margin: 10px;
    width: 100%;
}

.image_collection {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}


/* Demo */
.demo_container {
    display: flex;
    flex-direction: column;
    background-color: rgb(128, 128, 128);

    /* Set default width */
    width: 100%;

    min-width: 300px;
    min-height: 0;

    max-width: 1000px;
    max-height: 1000px;

    margin-top: 40px;
    margin-bottom: 40px;

}

/* Window control bar */
.window_controls {
    width: 100%;
    height: 40px;
    display: flex;
}

.window_controls button {
    height: 40px;
    width: 40px;
}

#demo_title {
    display: flex;
    justify-content: center;
    align-items: center;

    margin: 0;

    width: 100%;
    height: 100%;
    
    font-weight: bold;
    font-size: 18px;
    color: black;
}

/* Demo */

.demo_wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;

    position: relative;
    min-width: 300px;

    max-width: 1000px;
    max-height: 1000px;
}

.demo_wrapper canvas.demo {
    /* Set initial dimensions */
    width: 100%;
    height: 374px;

    margin: 0;
    padding: 0;
}

canvas.demo {
    background-color: rgb(158, 158, 158);
}

/* Demo menu */

.demo_wrapper .demo_menu {
    width: 100%;
    height: 40px;
    display: flex;
}

.demo_menu button {
    height: 100%;
    flex: 1;
}


/* Modal Menu */
.modal {
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);

    z-index: 98;
}

.modal_menu {
    display: flex;
    flex-direction: column;
    position: absolute;
    z-index: 99;
    
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 400px;
    height: 400px;

    background-color: rgb(201, 201, 201);
}

.modal_menu .modal_window_controls {
    display: flex;

    width: 100%;
    height: 40px;
    background-color: rgb(160, 160, 160);
}

.modal_window_controls #modal_title {
    display: flex;
    justify-content: center;
    align-items: center;

    color: black;

    height: 40px;
    width: 100%;
}

.modal_window_controls button {
    height: 40px;
    width: 40px;
}

.modal_menu .modal_body {
    display: flex;
    flex-direction: column;

    box-sizing: border-box;

    width: 100%;
    height: 100%;

    padding: 20px;
}

.modal_menu .modal_body * {
    color: black;
}
