@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --text: #444343;
    --light: #a09e9e;
    --x: #a8a5a5;
    --warning: #e75050;
    --border: #e5e3e3;
    --button-bg: #3270A9;
    --button-bg-hover: #153d66;
    --api: #bac6d7;
    --api-hover: #8ea0b8;
}

html {
    font-family: 'Montserrat', sans-serif;
    color: var(--text);
    font-size: 18px;
    line-height: 140%;
    font-weight: 400;
}

body {
    margin: 0;
}

#nojavascript {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 10px;
    text-align: center;
    font-size: 30px;
    color: var(--warning);
    line-height: 120%;
}

#layer {
    position: fixed;
    background-color: #174972;
    width: 100%;
    height: 100%;
    z-index: 20;
    opacity: 0.8;
    display: none;
}

#overlayer {
    position: fixed;
    top: -300px;
    left: 50%;
    transform: translate(-50%, 0);
    background-color: white;
    z-index: 30;
    border-radius: 10px;
    padding: 40px;
    border: 5px solid var(--button-bg);
    transition: .5s ease-in-out;
    visibility: hidden;
    box-shadow: 1px 1px 20px 2px #ffffff;
    min-width: 40%;
    max-height: 50%;
    overflow: auto;
}

#overlayer.open {
    top: 100px;
    visibility: visible;
}

.x {
    position: absolute;
    top: 10px;
    right: 10px;
    color: var(--x);
    padding: 0 5px 2px 5px;
    border-radius: 3px;
    font-size: 18px;
    line-height: normal;
}

.x:hover {
    cursor: pointer;
    background-color: #f2f2f2;
}

#container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#top {
    position: fixed;
    background-color: white;
    width: 100%;
    z-index: 10;
    height: 60px;
    border-bottom: 1px solid var(--border);
}

#logo {
    position: fixed;
    top: 10px;
    left: 22px;
}

#name {
    position: fixed;
    top: 18px;
    left: 75px;
    font-size: 18px;
    font-weight: bold;
}

#copyright {
    position: fixed;
    top: 18px;
    right: 25px;
    font-size: 14px;
    color: var(--light);
}

#url {
    position: fixed;
    bottom: 13px;
    right: 25px;
    font-size: 14px;
    color: var(--light);
}

#url:hover {
    cursor: pointer;
    color: var(--button-bg-hover);
}

#help {
    position: fixed;
    top: 18px;
    right: 350px;
}

#req {
    position: fixed;
    top: 18px;
    right: 185px;
}

#sidebar {
    width: 250px;
    position: fixed;
    top: 60px;
    left: 0;
    bottom: 0;
    overflow-y: scroll;
    background-color: #fafafa;
    border-right: 1px solid var(--border);
}

#content {
    margin-left: 250px;
    margin-top: 80px;
    padding: 0 40px 0 40px;
    max-width: 700px;
    border-right: 1px solid var(--border);
}

#space {
    min-height: 50px;
}

#bottom {
    margin-top: 40px;
    text-align: center;
    font-size: 12px;
    color: var(--light);
    line-height: 100%;
}

#example {
    position: fixed;
    top: 85px;
    right: 20px;
    background-color: black;
    color: white;
    max-width: 410px;
    min-width: 580px;
    font-size: 16px;
    padding: 20px;
    border-radius: 10px;
    white-space: nowrap;
    overflow: auto;
}

.example-title {
    margin-bottom: 20px;
    color: #fefa07;
}

.example-method {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #e67777;
}

.example-param {
    margin-top: 20px;
}

h1 {
    font-size: 50px;
    line-height: 120%;
}

p {
    font-size: 18px;
    line-height: 140%;
    margin: 20px 0;
}

#select_api {
    position: fixed;
    top: 18px;
    left: 290px;
}

.button {
    background-color: var(--button-bg);
    color: white;
    padding: 0 20px;
    border-radius: 10px;
    font-size: 14px;
    display: inline-block;
    white-space: nowrap;
}

.button:hover {
    background-color: var(--button-bg-hover);
    cursor: pointer;
}

.api-selector-title {
    margin: 10px 0 30px 0;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
}

.api-selector {
    background-color: var(--api);
    text-align: center;
    padding: 4px;
    margin-top: 10px;
    border-radius: 5px;
    color: white;
}

.api-selector:hover {
    background-color: var(--api-hover);
    cursor: pointer;
}

.api-sidebar {
    background-color: white;
    text-align: right;
    padding: 10px;
    margin: 10px;
    color: var(--button-bg);
    border: 1px solid var(--border);
    transition: .4s;
    font-size: 15px;
}

.api-sidebar:hover {
    color: var(--button-bg-hover);
    background-color: #f2f2f2;
    cursor: pointer;
}

.selected,
.selected:hover {
    background-color: var(--api);
    margin-right: 0;
    margin-left: 0;
    cursor: auto;
    padding: 10px 20px;
    color: white;
}

.api-sidebar-title {
    text-align: right;
    margin: 35px 13px 10px 10px;
    font-size: 20px;
    font-weight: bold;
}

.link {
    color: var(--button-bg);
}

.link:hover {
    cursor: pointer;
    color: var(--button-bg-hover);
    text-decoration: underline;
}

.loading {
    text-align: center;
}

.req-res {
    border-top: 1px solid var(--border);
    margin-top: 30px;
    padding-top: 20px;
}

.block {
    margin-top: 20px;
    padding: 10px;
    background-color: #fafafa;
    color: #153d66;
    border: 1px solid #99acc0;
    border-radius: 5px;
}

.title {
    font-weight: bold;
    margin-bottom: 10px;
}

.parameter {
    background-color: white;
    padding: 10px;
    border-radius: 5px;
    margin-top: 20px;
    font-size: 20px;
    border: 1px solid var(--border);
}

.light {
    color: var(--light);
    font-size: 14px;
}

.info {
    color: var(--text);
    font-size: 14px;
    margin-top: 20px;
}

.warning {
    color: var(--warning);
}

.note {
    background-color: #fef8b3;
    border: 1px solid #ebe7ac;
    font-size: 14px;
    padding: 2px 10px;
    margin-top: 8px;
    border-radius: 5px;
}

.no-margin {
    margin: 0;
}

.optional {
    background-color: #f476d8;
    font-size: 12px;
    text-align: center;
    padding: 1px 10px;
    border-radius: 10px;
    color: white;
    font-style: italic;
}

@media only screen and (max-width: 1600px) {
    #example {
        min-width: 410px;
    }
}

@media only screen and (max-width: 1420px) {
    #example {
        max-width: 300px;
        min-width: 300px;
    }
}

@media only screen and (max-width: 1320px) {
    #example {
        max-width: 200px;
        min-width: 200px;
    }
}

@media only screen and (max-width: 1220px) {
    #example {
        visibility: hidden;
    }
}

@media only screen and (max-width: 1120px) {
    #url {
        display: none;
    }
}

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

    #help,
    #req {
        display: none;
    }
}

@media only screen and (max-width: 570px) {
    #copyright {
        display: none;
    }
}