@import url('reset.css');
@import url('dataset-page.css');
@import url('colours.css');

/** --------------------- *
            Fonts
  * --------------------- */
@font-face {
    font-family: 'Open Sans';
    src: url("../fonts/OpenSans-Regular.ttf")
}

@font-face {
    font-family: 'Open Sans';
    font-weight: bold;
    src: url("../fonts/OpenSans-Bold.ttf")
}

@font-face {
    font-family: 'Open Sans';
    font-style: italic;
    src: url("../fonts/OpenSans-Italic.ttf")
}

@font-face {
    font-family: 'Open Sans';
    font-weight: bold;
    font-style: italic;
    src: url("../fonts/OpenSans-BoldItalic.ttf")
}

@font-face {
    font-family: 'Fixedsys';
    src: url("../fonts/fsex300-webfont.woff")
}


/** --------------------- *
     Basic HTML elements
  * --------------------- */
html {
    overflow:hidden;
}

*, body, code, select, input, textarea {
    font-family: 'Open Sans', 'Trebuchet MS', sans-serif;
}

body {
    background: var(--contrast-bright);
    color: var(--text);
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    color: var(--highlight);
    text-decoration: underline;
}

code {
    color: var(--accent-alternate);
    font-weight: bold;
}

em, strong {
    font-weight: bold;
}

#loading {
    position: fixed;
    top: 50%;
    left: 50%;
    margin-top: -1em;
    margin-left: -7.5em;
    width: 15em;
    height: 2em;
    border: 1px solid var(--contrast-dark);
    background: var(--accent);
    color: var(--always-white);
    font-size: 1.25em;
    text-align: center;
    font-weight: bold;
    line-height: 1.9em;
}

/** --------------------- *
            Forms
  * --------------------- */
select, input, textarea {
    background: var(--gray);
    border: 1px solid var(--gray);
    font: inherit;
    padding: 0.25em;
    max-width: 80%;
}

select, input {
    max-width: 15em;
}

.form-element label {
    text-align: right;
    padding-right: 1em;
}

#graph-layout {
    display: block;
    margin: 0 auto 1em auto;
}

button, .button-like {
    border: 2px solid var(--contrast-dark);
    background: var(--contrast-bright);
    color: var(--text);
    border-radius: 0.5em;
    font-size: inherit;
    cursor: pointer;
    padding: 0.25em 1em;
    display: block;
    margin: 0 auto;
}

.button-byline {
    text-align: center;
    font-size: 0.8em;
    display:block;
}

button:hover, .button-like:not(.inactive):hover {
    background: var(--accent);
    color: var(--contrast-bright);
}

/** --------------------- *
            Specific 
            for word
            networks
  * --------------------- */

.button-like.inactive {
    cursor: default;
    border-color: var(--gray-dark);
}

#graph-container {
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	position: absolute;
	z-index: 0;
    overflow: hidden;
}

#control-panel {
	position: relative;
    line-height: 1.5;
    max-height: 97vh;
    max-width: 250px;
	padding: 0;
	z-index: 1;
    overflow-y: scroll;
    background-color: rgba(250, 250, 250, 0.8)
}

#network-name-box {
    color: var(--always-white);
    background: var(--accent);
    text-align: center;
    font-weight: bold;
    font-size: 18px;
}

.control-panel-notice {
	padding: 8px;
}

#graph-manipulation .parameter-input {
    width: 45px;
    height: 20px;
    float: right;
}

#graph-manipulation .parameter-input.full-width {
    width: 95%;
    height: 20px;
    float: center;
}

.graph-manipulation-box {
    margin-bottom: 25px;
    border-top: 1px solid var(--contrast-dark);
}

.graph-manipulation-box-header {
    color: var(--contrast-dark);
}

h2.graph-manipulation-box-header {
    font-weight: bold;
    font-size: 1em;
    margin-bottom: 10px;
    background: var(--contrast-dark);
    color: var(--always-white);
    text-align: center;
    border-left: 0.5em solid var(--accent);
    padding: 0.5em 0
}

h3.graph-manipulation-box-header {
    font-size: 16px;
    color: var(--accent);
    font-weight: bold;
    padding: 0 0.5em;
}

.graph-manipulation-subbox {
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 0 0.5em;
}

.graph-manipulation-subbox > p {
    margin-top: 8px;
    margin-bottom: 8px;
}

#graph-manipulation > .standalone-button {
	margin-top: 5px;
	margin-bottom: 5px;
}

#footer {
	position: absolute;
	bottom: 0;
	right: 0;
	padding: 10px;
	z-index: 1;
}

.alert-box {
	color: var(--accent-error);
    font-weight: bold;
}

#hourglass {

}

hr {
	color: var(--gray-light);
}

i.invisible {
    display: none;
}

.gephi-link, .retina-link {
    position: absolute;
    bottom: 0.5em;
    right: 0.5em;
    font-size: 0.8em;
    background-color: rgba(250, 250, 250, 0.8);
    padding: 0.25em;
}

.retina-link {
    bottom: 2.5em;
}