/* GENERAL */
* {
    margin: 0;
    padding: 0;
}

a:focus,
a::-moz-focus-inner {
    outline: none;
    border: none;
}

html {
    font-size: 10px;
    color: #000;
}

body {
    background-color: #000;
}

/* WINDOW & VIEWS */
.window, .view {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    overflow: hidden;
}

.window {
    opacity: 1.0;
    background: #f4f4f4;
    transition: opacity ease 0.2s;
}

.view {
    background: #f4f4f4;
    transform: translate(0, 0);
    transition: transform 0.5s ease,
    opacity 0.2s ease;
}

/* VIEWPORTS */
.view[data-viewport="bottom"] {
    transform: translateY(100%);
}

.view[data-viewport="right"] {
    transform: translateX(100%);
}

.view[data-viewport="left"] {
    transform: translateX(-100%);
}

.view[data-viewport="side"] {
    transform: translateX(80%);
}

section.window > div {
    height: calc(100vh - 5rem);
    width: 100%;
    overflow-y: auto;
}

section.window > div.map {
    overflow-y: hidden;
}

body[role="application"] section[role="region"] > header .icon.config {
    background-image: url(images/icons/settings_icon.png);
    background-size: 3rem;
}

body[role="application"] section[role="region"] > header button {
    text-shadow: none;
    font-weight: normal;
}

#track-length {
    position: absolute;
    right: .5rem;
    bottom: 4.2rem;
    color: #209030;
    font-family: sans-serif;
    font-size: 1.8rem;
    text-shadow: 1px 1px 1px #000000;
    z-index: 1010;
}

.bottom-toolbar {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 4rem;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1010;
}
.invisible {
    display: none;
}

.bottom-btn {
    height: 4rem;
    border: none;
    width: 6rem;
    background: transparent no-repeat center / 3rem !important;
    margin: 0 calc((100% - 25rem) / 8);
}
.bottom-btn.disabled {
    opacity: 0.3;
    pointer-events: none;
}
.bottom-btn:active {
    background-color: #008AAA !important;
}
.gaia-icon {
    font-style: normal;
}
.gaia-icon[data-state="refreshing"]:before {
    content: "\e6e1";
}
.gaia-icon[data-state="refreshing"] {
    animation: 0.9s refresh-rotate infinite steps(30);
}
@keyframes refresh-rotate {
    from { transform: rotate(1deg); }
    to   { transform: rotate(360deg); }
}

.arrow-icon {
    width: 0; 
    height: 0; 
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 36px solid green;
    opacity: 0.6;
    transform-origin: 12px 24px;
    position: relative;
    left: -6px;
    top: -16px;
}

#settings-view {
    z-index: 20;
    bottom: 0;
}

#layers-view {
    z-index: 30;
    bottom: 0;
}

#layeredit-view {
    z-index: 40;
    bottom: 0;
}

#files {
    overflow-y: auto;
}

.leaflet-container .leaflet-control-attribution {
    text-align: right;
}

.leaflet-control-scale {
    bottom: 4rem;
}

section[data-type="sidebar"] > nav {
    height: calc(100vh - 5rem);
}

section[data-type="sidebar"] > nav > table {
    width: 100%;
    color: #fff;
    font-family: sans-serif;
    font-size: 1.4rem;
    text-align: center;
    text-decoration: none;
}

section[data-type="sidebar"] > nav > table > tbody > tr:first-child > th {
    border-top: solid 0.1rem #272727;
    padding-top: 1rem;
}

section[data-type="sidebar"] > nav > table > tbody:first-child > tr > th {
    padding-top: 2rem;
    border: none;
}

section[data-type="sidebar"] > nav > table > tbody > tr > th:first-child {
    width: 50%;
    text-align: right;
}

section[data-type="sidebar"] > nav > table > tbody > tr > th:last-child {
    width: 50%;
    text-align: left;
}

section[data-type="sidebar"] > nav > table > tbody > tr > th:only-child {
    text-align: center;
}

section[data-type="sidebar"] > nav > table > tbody > tr > th {
    font-weight: normal;
    padding: 0rem 1rem;
}

section[data-type="sidebar"] > nav > table > tbody > tr > td:first-child {
    width: 50%;
    text-align: right;
}

section[data-type="sidebar"] > nav > table > tbody > tr > td:last-child {
    width: 50%;
    text-align: left;
}

section[data-type="sidebar"] > nav > table > tbody > tr > td:only-child {
    text-align: center;
}

section[data-type="sidebar"] > nav > table > tbody > tr > td {
    font-style: italic;
    font-weight: bold;
    padding: 0rem 1rem 1rem 1rem;
}

[data-type="list"] li.invisible {
    display: none;
}

[data-type="list"] li {
    height: 100%;
}

[data-type="list"] li:first-child button {
    margin-top: 1rem;
}

div[data-type="list"] p,
section[data-type="list"] p {
    border: none;
    display: block;
    padding-top: 0.8rem;
    margin: 0;
    color: #858585;
    font-size: 1.3rem;
}

form[role="name"] {
    position: relative;
    height: 3.7rem;
    background: #f4f4f4;
}

form[role="name"] p {
    padding: 0 1.5rem 0 1.5rem;
    overflow: hidden;
    position: relative;
}

form[role="name"] p input,
form[role="name"] p textarea {
    height: 3.7rem;
    border: none;
    background: none;
    padding: 0;
    margin: 0;
    box-shadow: none;
}

form[role="name"] p textarea {
    padding: 1rem 0 0 0;
}

form[role="name"] p input:focus::-moz-placeholder {
    background: none;
}

form[role="name"] button[type="button"][role="set"] {
    float: right;
}

form[role="name"] button[type="button"][role="pick"] {
    float: left;
}

form[role="name"] button[type="button"] {
    min-width: 6rem;
    height: 3.7rem;
    padding: 0 1.5rem;
    border: none;
    color: #00aac5;
    font-weight: normal;
    font-size: 1.6rem;
    line-height: 3.7rem;
    width: auto;
    border-radius: 0;
    margin: 0;
    position: relative;
    background-color: unset;
    font-style: italic;
    overflow: visible;
}

form[role="name"] button[type="button"][role="set"]:after {
    left: -0.1rem;
}

form[role="name"] button[type="button"][role="pick"]:after {
    right: 0.1rem;
}

form[role="name"] button[type="button"]:after {
    content: "";
    position: absolute;
    top: 0.7rem;
    bottom: 0.7rem;
    width: 0.1rem;
    background: #c7c7c7;
}

form[role="name"] button[type="button"].icon {
    font-size: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 3rem;
}

form[role="name"] p input + button[type="reset"] {
    height: 3.7rem;
    right: 0.5rem;
}

form[role="name"].skin-dark button[type="button"]:after {
    background-color: #575757;
}

form[role="name"] button[type="button"] + p button {
    height: 3.7rem;
}

form[role="name"] button.icon:active,
form[role="name"] button[type="button"]:active {
    background-color: #b2f2ff;
    color: #fff;
}

form p input + button[type="reset"],
form p textarea + button[type="reset"] {
    opacity: 1;
    pointer-events: all;
}

a.bottom-btn {
    color: #fff;
}

.gaia-icon:before {
    position: relative;
}

button, [role="button"], .button {
    font-style: normal;
    box-sizing: border-box;
    cursor: default;
}

button.danger {
    margin-top: 3rem;
}

p.plot {
    margin-top: 1rem;
    margin-left: 3rem;
    color: #fff;
    font-family: serif;
    font-size: 1.4rem;
}

canvas.plot {
    margin: 1rem;
    width: calc(100% - 3rem);
    height: calc(60vw - 2rem);
    background-color: rgb(224, 224, 224);
}

aside.arrow:before {
    content: ">";
}

aside.arrow {
    padding-top: 1rem;
    font-size: 1.8em;
    font-weight: bold;
    color: #858585;
    position: absolute;
    right: 0.5rem;
}

section#splash {
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 10000;
}
