:root {
	--base-color: #fff;
	--back-color: #fafafa;
	--text-color: #000;
	--link-color: #000;
	--border-color: #000;
	--error-color: #f00;
}

@media (prefers-color-scheme: dark) {
	:root {
		--base-color: #1a1d1f;
		--back-color: #131516;
		--text-color: #d8d4cf;
		--link-color: #d8d4cf;
		--border-color: #4e4c49;
		--error-color: #f00;		
	}
}

* {
    padding: 0;
    margin: 0;
    border: 0;
}

section, nav, header, footer, div {
    display: block;
}

a {
	text-decoration: none;
	color: var(--text-color);
}

h1,h2,h3,h4,h5,h6 {
    font-size: 16pt;
}

html {
	background: var(--base-color);
}

body {
    color: var(--text-color);
    font-family: Tahoma,Helvetica,Arial,sans-serif;
    font-size: 12pt;
}

#page {
    position: relative;
    background: var(--back-color);
    width: 700px;
    margin-left: auto; 
    margin-right: auto;
    margin-top: 20px;
    margin-bottom: 10px;
    padding: 25px;
    border: 1px solid var(--border-color);
    box-shadow: 0px 0px 12px var(--border-color); 
    border-radius: 25px;
}

header * {
    display: block;
}

header a {
    text-decoration: none;
    color: var(--text-color);
    display: flow-root;
}

header img {
    float: left;
    margin-right: 1em;
}

header h1 {
    font-weight: bold;
    font-size: 200%;
}

header h2 {
    font-weight: bold;
    font-size: 100%;
}

nav {
    position: absolute;
    right: 0px;
    top: 25px;
}

nav ul {
    list-style-type: none;
}

nav li {
    padding: 10px;
    background: var(--text-color);
    border-radius: 15px 0px 0px 15px;
    margin-bottom: 1ex;
}

nav ul a {
    display: block;
    color: var(--base-color);
    font-weight: bold;
    text-decoration: none;
    background: var(--text-color);
    padding: 5px;
    width: 150px;
    height: 20px;
}

nav #nav-menu {
    display: none;
}

#content {
    clear: both;
    padding: 20px 0px 10px 0px;
    min-height: 300px;
    height: auto !important;
    height: 300px;
}

#left {
    width: 100px;
    float: left;
}

#right {
    float: right;
    width: 100px;
}

#middle {
    margin-left: 100px;
    margin-right: 100px;

}

footer {
    font-size: 50%;
    clear: both;
}

footer a {
    margin-right: 1em;
}

footer span {
    float: right;
    padding-bottom: 1ex;
}

button {
    color: var(--base-color);
    background: var(--text-color);
    margin-top: 1ex;
    padding: 1ex 1em;
    border: 0;
    border-radius: 5px;
}

select,
textarea,
input {
    border: 1px solid #CCCCCC;
}

input,
textarea {
    min-height: 3ex;
}

ul.menu {
    display: block;
}

.menu li {
    font-size: 50%;
    display: inline;
}

.menu li a {
    color: var(--text-color);
    text-decoration: none;
}

.error {
    padding-top: 1ex;
    color: var(--error-color);
}

@media only screen and (max-width: 800px) {
    html {
        background: var(--back-color);
    }
    
    #page {
        background: none;
        border: none !important;
        box-shadow: none;
        width: auto;
        margin-left: 1em; 
        margin-right: 1em;
        padding: 0;
    }    

    header h1 {
        font-size: 120%;
    }
    
    nav {
    	position: relative;
		left: -1em;
    	width: 100vw;
    }
    
    nav #nav-menu {
    	display: block;
    	text-align: right;
		width: 95%;
		margin-bottom: 5px;
		font-size: 22pt;
		height:auto;	
    }
    
    nav ul {
    	display: none;
    }
    
    nav li {
    	padding: 5px;
		background: var(--text-color);
		border-radius: 0;
		margin-bottom: 5px;
    }    
    
    nav li a {
    	width: 90%;
    }

    #left, #right {
        display: none
    }

    #middle {
        margin-left: 0;
        margin-right: 0;
    }

    footer span {
        bottom: auto;
    }
}
