html {
    overflow-x: hidden;
    overflow-y: scroll;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--sansSerifFont);
    background: var(--darkerColor);
    /* font-size: 0.9em; */
    letter-spacing: 0.3px;
    overflow-x: hidden;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
}

[disabled] {
    pointer-events: none;
    cursor: initial;
    color: gray;
    background: lightgray !important;
}

button, a.anchor-button {
    font-size: 0.7em;
    border: none;
    outline: none;
    padding: 7px 10px;
    cursor: pointer;
    transition: all 0.25s ease-in-out;

    &:hover:not([disabled]) {
        background: var(--accentColorLight);
        color: white;
    }

    & > i {
        margin-right: 10px;
    }

    &.basic-button {
        background: var(--accentColor);
        color: white;
        border-radius: 5px;
        border: 1px solid rgba(0, 0, 0, 0.1);
        box-shadow: 0px 0px 2px #999;

        &:hover:not([disabled]) {
            box-shadow: none;
        }
    }

    &.control-button {
        border: 1px solid black;
        background: var(--lighterColor);
    }
}

a {
    cursor: pointer;
    text-decoration: inherit;
    color: inherit;
    transition: color 0.25s ease-in-out;

    &:hover {
        color: var(--accentColor);
    }
}

input[type="number"], input[type="text"], input[type="email"], input[type="search"] {
    -webkit-appearance: none;
    border: none;
    outline: none;
    border-bottom: 1px solid var(--darkerColor);
    border-radius: 0px;
    padding: 5px 10px;
    transition: border 0.25s ease-in-out;

    &:focus {
        border-color: var(--accentColor);
    }
}

code {
    & a {
        text-decoration: underline;
        color: rgba(255,241,118 ,1);
        transition: color 0.25s ease-in-out;
    }
    &.terminal {
        display: block;
        background: #222;
        color: var(--lighterColor);
        padding: 5px 8px;
        margin: 20px 10px;
        border-radius: 3px;
        line-height: 2em;
        font-family: Monaco, unicode;

        & em {
            color: var(--darkColor);
        }

        & span.keyword {
            color: deepskyblue;
        }
    }
}

.inline-row {
    padding: 20px;

    & > * {
        display: inline-block;
        vertical-align: middle;
        margin: 0px 15px;
    }

    & > form > * {
        padding: 5px 10px;
        font-weight: 100;
        display: inline-block;
        vertical-align: middle;
    }
}

.button-row {
    display: inline-block;
    box-shadow: 0px 0px 2px var(--darkerColor);
    padding: 0px;
    border-radius: 5px;

    & > button {
        background: #fff;
        border-right: 1px solid #ccc;
        margin: 0;
        border-radius: 0px;

        &.selected {
            background: var(--accentColor);
            color: #fff;
        }

        &:first-child {
            border-top-left-radius: 5px;
            border-bottom-left-radius: 5px;
        }
        &:last-child {
            border-top-right-radius: 5px;
            border-bottom-right-radius: 5px;
        }
    }
}

.center-text {
    text-align: center !important;
}

.big-text {
    font-size: 1.1em;
}

.bubble-icon {
    display: inline-flex;
    vertical-align: middle;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    margin-right: 20px;
    text-align: center;
    border-radius: 4em;
    color: #EEE;
    background: rgba(255, 255, 255, 0.6);
    border: 5px solid #AAA;
    box-shadow: 0 0 3px #EEE;
    text-shadow: 0 0 1px #EEE;

    &.large {
        width: 2em;
        height: 2em;
        & > i { font-size: 1.2em }
    }
    &.dark {
        background: rgba(0, 0, 0, 0.7);
        border: 5px solid #BBB;
        box-shadow: 0px 0px 3px #000;
        & > i { text-shadow: 0 0 1px #000; }
    }
    & > i {
        font-size: 1em;
        font-style: normal;
        display: block;
    }

    &.red { color: rgba(229,57,53 ,1); }
    &.blue { color: rgba(30,136,229 ,1); }
    &.green { color: rgba(76,175,80 ,1); }
    &.accent { color: var(--accentColor); }
    &.emphasis { color: var(--emphasisColor); }
    &.darker-color { color: var(--darkerColor); }
}

.shadow-icon {
    margin-right: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1em;
    height: 1em;
    width: 1em;
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
}

.serif {
    font-family: var(--serifFont);
}

ul.highlight-list {
    font-family: var(--serifFont);
    padding-left: 0px;
    list-style: none;

    & li {
        border-left: 5px solid var(--accentColor);
        padding-left: 15px;
        margin-bottom: 20px;
    }
}

ul.pick-list {
    padding-left: 0px;
    list-style: none;

    & h5 {
        border-left: 2px solid var(--accentColor);
        padding: 5px 15px !important;
        font-family: var(--serifFont);
    }
}

pre.itemType {
    font-family: Monaco, "Courier New", monospace;
    padding: 5px 0px;
    border-bottom: 1px dashed var(--darkerColor);
    white-space: pre-wrap;
}

.tree-sample {
    border: 2px solid var(--darkerColor);
    margin: 5px 0px;

    & li > .item {
        cursor: pointer;
        display: block;
        padding: 2px 5px;
        transition: all 0.25s;
    }
    & li.dragover > .item, & li[draggable="true"] > .item:hover {
        background-color: crimson;
        color: white;
    }
}

.iframe-hide {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    cursor: pointer;
    color: #BBB;
    opacity: 0.6;
    border-radius: 5px;
    background-image: repeating-linear-gradient(145deg, #222, #222 50px, #444 0px, #444 100px);
    transition: all 0.3s;

    & > span::after {
        content: "";
        background-color: #fff;
        height: 2px;
        width: 0px;
        margin-top: 2px;
        transition: all 0.3s;
        display: block;
    }

    &:hover {
        opacity: 1;
        color: #FFF;

        & > span::after {
            width: 100%;
        }
    }


}
