@font-face {
  font-family: "got";
  src: url('../fonts/game-of-thrones.ttf') format('truetype');
}
@font-face {
    font-family: "roboto";
    src: url('../fonts/RobotoMono-Light.ttf') format('truetype');
}
@font-face {
  font-family: 'icomoon';
  src:  url('../fonts/icomoon.eot?wzbtpf');
  src:  url('../fonts/icomoon.eot?wzbtpf#iefix') format('embedded-opentype'),
    url('../fonts/icomoon.ttf?wzbtpf') format('truetype'),
    url('../fonts/icomoon.woff?wzbtpf') format('woff'),
    url('../fonts/icomoon.svg?wzbtpf#icomoon') format('svg');
  font-weight: normal;
  font-style: normal;
}

:root{
    --main-color: #27496d;
    --main-color-light: #a9c1da;
    --flashy-color: #ffa000;
}

* {
    margin: 0;
    padding: 0;
}

body {
    font-family: roboto, Arial;
    margin-top: 10px;
    padding: 10px;
    background-color: #fff;
}

a {
    color: #000;
}

.wrapper {
    margin: 0 auto;
    max-width: 900px;
}


/* --------------------- */
/*  ==     Header        */
/* --------------------- */
header.main {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-content: stretch;
    align-items: flex-start;
    margin-bottom: 30px;
}
.logo-container {
    order: 1;
    flex: 0 1 auto;
    align-self: flex-start;
}
.title-container {
    order: 2;
    flex: 1 1 auto;
    align-self: center;
    margin-left: 25px;
}
.title-container .title {
    font-family: got;
    font-size: 30px;
    letter-spacing: 3px;
    font-weight: bold;
}
.title-container .title a {
    text-decoration: none;
    color: var(--main-color);
}
.title-container .description {
    margin-top: 15px;
    font-size: 18px;
    letter-spacing: 1.2px;
    font-weight: bold;
    color: #000;
}
.title-container .star-button {
    text-align: center;
    margin-top: 30px;
}


/* ------------------------- */
/*  ==     Main quote        */
/* ------------------------- */
.main-quote {
    margin-top: 50px;
    margin-bottom: 40px;
    position: relative;
    font-size: 24px;
    border-left: 5px solid var(--main-color-light);
    padding-left: 15px;
    font-style: italic;
}
.main-quote cite {
    font-size: 18px;
    color: #888;
    margin-top: 5px;
    text-align: right;
    display: block;
}
.main-quote:after {
    content: '\201D';
    position: absolute;
    top: -35px;
    right: 0;
    font-size: 140px;
    font-style: italic;
    font-family: Arial;
    color: #E4E4E4;
    z-index: -1;
}


/* ---------------------- */
/*  ==     Content        */
/* ---------------------- */
section {
    margin-bottom: 30px;
    margin-top: 40px;
}
section .h-container {
    display: inline-block;
    transform: skewx(-15deg);
    transform-origin: bottom left;
    background-color: var(--main-color);
    margin-bottom: 25px;
    padding: 4px 20px 7px 20px;
    border-left: 8px solid var(--flashy-color);
}
section h1 {
    font-size: 35px;
    font-weight: normal;
    letter-spacing: 1px;
    color: #fff;
    transform: skewx(15deg);
}
section h2 {
    font-size: 25px;
    font-weight: bold;
    letter-spacing: 1px;
    margin-left: 40px;
    margin-bottom: 30px;
    margin-top: 20px;
    color: var(--main-color);
}
section h2::before {
    content: '❯ ';
    color: var(--flashy-color);
}
section > p {
    font-size: 20px;
    line-height: 40px;
}
section a:hover {
    text-decoration: none;
    background-color: var(--main-color);
    color: #fff;
    
}


/* -------------------- */
/*  ==     Block        */
/* -------------------- */
.block {
    border: 4px solid var(--main-color);
    font-size: 18px;
    margin-bottom: 30px;
    box-shadow: 6px 6px 0 var(--main-color-light);
    border-radius: 20px;
}

.block-desc {
    background-color: var(--main-color);
    color: #fff;
    padding: 5px 10px 10px 10px;
    border-radius: 15px 15px 0 0;
    
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-content: stretch;
    align-items: flex-start;
}
.block-desc p {
    display: inline-block;
    
    order: 1;
    flex: 1 1 auto;
    align-self: flex-start;
}
.block-desc p::before {
    content: "❯ ";
}
.block-desc .right {
    order: 2;
    flex: 0 1 auto;
    align-self: center;
}

.block-container {
    padding: 20px;
}
.block-endpoint {
    font-family: "Courier New", Courier, monospace;
    border-bottom: 1px solid var(--main-color);
    padding-bottom: 20px;
    margin-bottom: 20px;
    font-size: 20px;
    overflow: auto;
}
.block-endpoint a {
    color: var(--main-color);
}
.block-content {
    overflow: auto;
}
.block-footer {
    padding: 20px;
}

.method {
    background-color: var(--main-color-light);
    color: #fff;
    padding: 5px 10px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 5px;
}


.block-content pre {
    max-height: 400px;
}
.block-content code {
    font-family: "Courier New", Courier, monospace;
}


/* --------------------- */
/*  ==     Footer        */
/* --------------------- */
footer.main {
    padding-top: 20px;
    margin-top: 40px;
    text-align: center;
}
footer.main ul {
    list-style-type: none;
}
footer.main ul li {
    display: inline-block;
    margin-right: 10px;
}
footer.main ul li:last-child {
    margin-right: 0;
}
footer.main a {
    text-decoration: none;
    color: #ccc;
}
footer.main a:hover {
    color: var(--main-color);
}
footer.main span[class*="icon-"] {
    font-size: 24px;
}






/* --------------------- */
/*  ==     Button        */
/* --------------------- */
.btn {
    font-size: 14px;
    font-family: monospace;
    border: 1px solid var(--main-color);
    border-radius: 5px;
    padding: 4px;
    margin: 0;
    text-decoration: none;
    color: var(--main-color);
}
.btn.btn-inverted {
    border-color: #fff;
    color: #fff;
}
.btn:hover {
    background-color: var(--flashy-color);
    color: #fff;
    border-color: var(--flashy-color);
}
.btn.btn-inverted:hover {
    background-color: #fff;
    color: var(--main-color);
    border-color: #fff;
}


/* --------------------- */
/*  ==     Loader        */
/* --------------------- */
.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #888;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* ------------------------------ */
/*  ==     Icons (icomoon)        */
/* ------------------------------ */
[class^="icon-"], [class*=" icon-"] {
  /* use !important to prevent issues with browser extensions that change fonts */
  font-family: 'icomoon' !important;
  speak: none;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;

  /* Better Font Rendering =========== */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.icon-home3:before {
  content: "\e902";
}
.icon-quill:before {
  content: "\e907";
}
.icon-envelop:before {
  content: "\e945";
}
.icon-cog:before {
  content: "\e994";
}
.icon-share:before {
  content: "\ea7d";
}
.icon-new-tab:before {
  content: "\ea7e";
}
.icon-embed:before {
  content: "\ea7f";
}
.icon-terminal:before {
  content: "\ea81";
}
.icon-instagram:before {
  content: "\ea92";
}
.icon-twitter:before {
  content: "\ea96";
}
.icon-github:before {
  content: "\eab0";
}



/* ------------------------- */
/*  ==     Responsive        */
/* ------------------------- */
/* <= 768px */
@media screen and (max-width: 48em) {
    
    header.main {
        flex-direction: column;
        justify-content: center;
        align-content: center;
        align-items: center;
    }

    .logo-container {
        flex: 0 1 auto;
        align-self: auto;
    }
    .title-container {
        margin-left: 0;
        flex: 0 1 auto;
        align-self: auto;
        text-align: center;
    }
    .title-container .title {
        font-size: 25px;
    }
    .title-container .description {
        letter-spacing: 1px;
    }
    .title-container .star-button {
        margin-top: 15px;
    }

    section h1 {
        font-size: 24px;
    }
    section > p {
        line-height: 34px;
        font-size: 18px;
    }

    section .h-container {
        margin-bottom: 0;
    }

    .main-quote {
        font-size: 16px;
    }

    .block-desc p {
        font-size: 14px;
    }

    .block-container {
        padding: 10px;
    }
    .block-endpoint {
        font-size: 14px;
    }
    .method {
        font-size: 10px;
    }
    .block-content {
        font-size: 14px;
    }
    .block-footer {
        text-align: center;
    }


}