
/* helper classes to make manipulating of specific CSS properties
   easier; it's a little bit easier to add and remove single
   classes in PureScript than to manipulate individual CSS
   properties; this is a non-typesafe, error prone temporary
   solution to be eventually replaced with something more pleasant
   to work with */

.display-none {
    display: none;
}
.display-block {
    display: block;
}
.display-none.display-block {
    visibility: hidden;
}
.display-none.display-block:after {
    content: "error";
}

/* generic styles */

html {
    height: 100%;
    max-height: 100%;
    overflow: hidden;
}

body {
    font-family: "Open Sans", sans-serif;
    font-size: 12pt;
    height: 100%;
    margin: 0;
    max-height: 100%;
    overflow: hidden;
    padding: 0;
    width: 100%;
}

form > table.form {
    border-collapse: collapse;
    border-spacing: 0;
    border: 1px solid #f2f2f2;
    margin-bottom: 2px;
    margin-top: 2px;
    padding: 0;
}

form > table.form > tr {
    margin: 0;
    padding: 0;
}

form > table.form > tbody > tr {
    margin: 0;
    padding: 0;
}

form > table.form > tr > td {
    margin: 0px;
    padding-bottom: 2px;
    padding-left: 2px;
    padding-right: 2px;
    padding-top: 2px;
}

form > table.form > tbody > tr > td {
    margin: 0px;
    padding-bottom: 2px;
    padding-left: 0;
    padding-right: 0;
    padding-top: 2px;
}

a:visited, a:link {
    color: black;
    text-decoration: none;
}

input {
    background-color: #f2f2f2;
    border-color: #aaa;
    border-style: inset;
    border-width: 1px;
    outline: none;
}

textarea {
    background-color: #f2f2f2;
    border-color: #aaa;
    border-style: inset;
    border-width: 1px;
    box-sizing: border-box;
}

button {
    background-color: #e2e2e2;
    border-color: #aaa;
    border-style: outset;
    border-width: 1px;
    margin-left: 2px;
}

button:active {
    border-style: inset;
}

select {
    background-coor: #f2f2f2;
    border-color: #aaa;
    border-style: inset;
    border-width: 1px;
}

@media (max-width: 600px) {
    div.main.left-visible > div.row > div.left {
        display: flex;
        flex-grow: 1;
    }
    div.main.left-visible > div.row > div.center {
        display: none;
    }
    div.main.left-hidden > div.row > div.left {
        display: none;
    }
    div.main.left-hidden > div.row > div.center {
        display: block;
    }
}

@media (min-width: 601px) {
    div.main.left-visible > div.row > div.left {
        display: flex;
    }
    div.main.left-visible > div.row > div.center {
        display: block;
    }
    div.main.left-hidden > div.row > div.left {
        display: none;
    }
    div.main.left-hidden > div.row > div.center {
        display: block;
    }
}

div.main {
    display: flex;
}

div.main > div.left {
    flex: 0 0 25%;
}

div.main > div.center {
    flex: 1;
}

.channel div.event {
    font-family: "Inconsolata", monospace;
    font-size: 10pt;
    white-space: pre-line;
}

.channel div.event.other-join {
    color: #888;
}

.channel div.event.other-message {
    color: #000;
}

.channel div.event.op {
    color: #888;
}

.channel div.event.deop {
    color: #888;
}

.channel div.event.kick {
    color: #888;
}

.channel div.event.other-part {
    color: #888;
}

.channel div.event.other-quit {
    color: #888;
}

.channel div.event.self-join {
    color: #555;
}

.channel div.event.self-message {
    color: #000;
}

.channel div.event.self-message span.nick {
    font-weight: bold;
}

.chat div.event {
    font-family: "Inconsolata", monospace;
    font-size: 10pt;
    white-space: pre-line;
}

.network div.event {
    font-family: "Inconsolata", monospace;
    font-size: 10pt;
    white-space: pre-line;
}

.error {
    color: red;
    font-size: 90%;
}

.success {
    color: green;
}

