html, body {
    color: #fff;
    background: #cdcdcd;
    
    font-family: open-sans, arial, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

.button {
	cursor: pointer;
	padding: 5px 8px;
	border: 1px solid #fff;
	background: #ddd;
	color: #000;
	border-radius: 5px;
	line-height: 2em;
}

.margin {
    padding: 0 8px;
}
label {
    cursor: pointer;
}
.card {
    display:inline-block;
    border:1px solid #777;
    margin: 5px;
    padding: 5px;
    border-radius: 5px;
    vertical-align: 5px;
}

header {
    position: absolute;
    top: 0;
    height: 54px;
    left: 0;
    right: 0;
    
    background: #29292f;
    line-height: 54px;
}
header h1 {
    display: inline;
    margin: 0;
    vertical-align: middle;
    margin-right: 25px;
}
header input.search {
    vertical-align: middle;
    border-radius: 5px;
    border: 0;
    padding: 5px 10px;
    font-size: 1.2em;
    background: #1e1e1e;
    min-width: 400px;
    color: #fff;
}


header #menu,
header #menuclose {
    display: none;
    float: right;
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    font-size: 2em;
}

header nav {
    display: inline-block;
}
header nav label {
    display: inline-block;
    padding: 0 10px;
}
header nav label:hover {
    background: #4c4c4c;
}
nav label a {
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
}
header nav label.file input {
    display: none;
}

section {
    position: absolute;
    top: 54px;
    left: 0;
    right: 0;
    bottom: 0;
}

section #editorContainer {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    bottom: 0;
    
    color: inherit;
    border: 0;
    padding: 10px;
    box-sizing: border-box;
    overflow-y: auto;
    background-color: #5e9fb7;
}

section #editorContainer:target {
    display: block;
}

form {
	padding: 0 15px;
}
form label {
	display: block;
}

embed {
	vertical-align: bottom;
}

td {
    vertical-align: top;
}
.element_name {
    width: 15em;
}
.element_quantity {
    width: 5em;
}

section #viewContainer {
    position: absolute;
    top: 0;
	left: 50%;
    right: 0;
    bottom: 0;
    
    overflow: hidden;
}

#viewMenu {
    display: none;
    position: absolute;
    bottom: 0;
    height: 50px;
    left :0;
    right: 0;
    line-height: 50px;
    text-align: center;
        
    background: #29292f;
}

#viewMenu a {
    color: #fff;
    text-decoration: none;
    padding: 0 35px;
}

section #editorContainer ~ #viewMenu a[href^="#viewContainer"] {
    font-weight: bold;
}

section #editorContainer:target ~ #viewMenu a[href^="#viewContainer"] {
    font-weight: normal;
}

section #editorContainer:target ~ #viewMenu a[href^="#editorContainer"] {
    font-weight: bold;
}

@media (max-width: 960px) {
    header #menu,
    header #menu:target ~ #menuclose {
        display: inline-block;
    }
    
    header #menu:target,
    header nav {
        display: none;
    }
    
    header #menu:target ~ nav {
        display: block;
        background: #4a4a52;
        text-align: center;
        position: absolute;
        top: 54px;
        left: 0;
        right: 0;
        z-index: 2;
        line-height: normal;
    }
    
    header nav label {
        display: block;
        padding: 10px 0;
    }
    
    section #editorContainer,
    section #viewContainer {
        width: 100%;
        left: 0;
        bottom: 50px;
    }
    
    section #editorContainer {
        z-index: 0;
        opacity: 0;
    }
    
    section #editorContainer:target {
        z-index: 1;
        opacity: 1;
    }
    section #editorContainer:target + #viewContainer {
        z-index: 0;
        opacity: 0;
    }
    
    #viewMenu {
        display: block;
    }
}
