﻿/*
----------------------------------------------------------
	Main layout
----------------------------------------------------------
*/

html {
    background-color: #E4E4E4;
	font-family: "Segoe UI", Verdana, Helvetica, sans-serif;
}

body {
    padding: 0;
	margin: 0;
}

h1 {
	font-size: 1.5em;
}

h1 span {
	font-size: 0.6em;
	color: gray;
}

h2 {
	font-size: 1.25em;
}

.float-left {
    float: left;
}

.float-right {
    float: right;
}

.clear-fix:after {
    content: ".";
    clear: both;
    display: block;
    height: 0;
    visibility: hidden;
}

.content-wrapper {
    margin: 0 auto;
    max-width: 960px;
}

.container {
	display: flex;
	flex-flow: row wrap;
}

.row {
	display: flex;
	flex-wrap: wrap;
}

.main-content {
	padding-top: 1vh;
    padding-left: 10px;
}

footer {
	margin-top: 5vh;
    font-size: .8em;
	color: gray;
	text-align: center;
}

footer a {
	text-decoration: none;
}

footer a:hover {
	text-decoration: underline;
}

#divRemovePassword {
    display: none;
}

#key-menu {
	display: none;
}

span.roomid {
	color: #009414;
	font-weight: bold;
}

span.key {
	color: #AD00CC;
	font-weight: bold;
}

/*
----------------------------------------------------------
	Navigation bar
----------------------------------------------------------
*/

header {
	background-color: #0066cc;
	color: white;
	padding-bottom: 1vh;
}

header .content-wrapper {
    padding-top: 1vh;
}

nav ul {
	display: flex;
	flex-direction: row;
	justify-content: flex-end;
	flex-wrap: wrap;
	list-style-type: none;
	overflow: hidden;
	margin: 0;
	padding: 5px;
	align-items: center;
}

nav ul li {
	margin: 0 8px;
}

header a {
	font-size: 1.1em;
	color: white;
	font-weight: bold;
	text-decoration: none;
}

header a:hover {
	color: #999999;
}

#site-title
{
	margin-left: 0;
	margin-right: auto;
    font-family: Rockwell, Consolas, "Courier New", Courier, monospace;
    font-size: 1.5em;
}

#site-links {
	display: flex;
}

/*
----------------------------------------------------------
	Controls
----------------------------------------------------------
*/

select {
	padding: 3px;
	font-size: 1em;
}

label {
    display: inline;
}

label.checkbox {
	font-weight: bold;
}

input, textarea {
    border: 1px solid #e2e2e2;
    background: #fff;
    color: #333;
    font-size: 1.2em;
    margin: 5px 0 6px 0;
    padding: 5px;
    width: 300px;
}

textarea {
    font-family: inherit;
    width: 500px;
}

    input:focus, textarea:focus {
        border: 1px solid #7ac0da;
    }

input[type="checkbox"] {
    background: transparent;
    border: inherit;
    width: auto;
}

input[type="submit"],
input[type="button"],
button {
	color: black;
    background-color: #FFF;
    border: 1px solid #787878;
	border-radius: 5px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: 600;
    padding: 7px;
    margin-right: 8px;
    width: auto;
}

input[type="submit"]:hover,
input[type="button"]:hover,
button:hover {
	background-color: gray;
}

td input[type="submit"],
td input[type="button"],
td button {
    font-size: 1em;
    padding: 4px;
    margin-right: 4px;
}

/*
----------------------------------------------------------
	Chatroom
----------------------------------------------------------
*/

#chatroom {
    border: 1px solid gray;
	width: 90%;
    padding: 10px;
    overflow: auto;
	order: 1;
}

.chat-container {
	display: flex;
	flex-direction: row;
	height: 60vh;
	flex: 1;
	background-color: white;
}

#chatusers {
	width: 10%;
	min-width: 80px;
	border: 1px solid gray;
	border-left: 0;
	overflow-y: auto;
	order: 1;
}

#chatusers span {
	display: block;
	padding: 5px;
}

#chatbar {
	display: flex;
	flex-direction: row;
	order: 2;
	width: 100%;
}

#chatbar input {
	width: 100%;
	height: 100%;
	margin: 0;
	border: 1px solid gray;
	border-top: 0;
	border-radius: 0 0 5px 5px;
}

#chatroom-expire {
	color: gray;
	font-size: 0.8em;
	text-align: right;
	float: right;
}

#chatroom-footer {
	margin-top: 10px;
	margin-left: 5px;
	margin-right: 5px;
}

.chat-message a {
	color: blue;
}

.chat-message-event {
	color: #c500da;
}

.chat-message-image {
	height: auto;
	width: auto;
	max-height: 80%;
	max-width: 80%;
	border: 1px solid gray;
}

.chat-message-video {
	height: auto;
	width: auto;
	max-height: 80%;
	max-width: 80%;
}

#divButtonRemoveChatroom {
    text-align: center;
    font-size: 0.8em;
}

/*
----------------------------------------------------------
	Mobile
----------------------------------------------------------
*/

@media only screen and (max-width: 850px) {

	h1 span {
		display: block;
	}
	
	nav ul {
		justify-content: flex-start;
	}

    /* main layout
    ----------------------------------------------------------*/
    .main-content,
    .featured + .main-content {
        background-position: 10px 0;
    }

    .content-wrapper {
        padding-right: 10px;
        padding-left: 10px;
    }

    .featured .content-wrapper {
        padding: 10px;
    }

    /* forms */
    input {
        width: 90%;
    }

    /* footer
    ----------------------------------------------------------*/
    footer .float-left,
    footer .float-right {
        float: none;
    }

    footer {
        text-align: center;
        padding: 10px 0;
    }

        footer p {
            margin: 0;
        }
}