/* An intro page contains paragraph content.
See the "What's inside" file for more styles. */

/* The space between the intro page heading and paragraph content */


@media not (max-width: 760px) {
body.intro-page {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}
}

body.intro-page header > h1.intro-name {
    padding-bottom: 20px;
    margin-bottom: 0;
}

body.intro-page header > h1.intro-name {
    /* Line division between the heading and paragraph content */
    border-bottom: 1px dashed #8aa4ba;
}

body.search-page header div.search-input {
    display: flex;
}
body.search-page header div.search-input > input {
    flex-grow: 1;
    font-family: Source Serif Pro;
    font-size: 21;
    padding-left: 5px;
}
body.search-page header div.search-input > button {
    border-radius: 5px;
    border: 1px solid transparent;
    padding: 2px;
    width: 42px;
    height: 42px;
    background-position-x: center;
    background-position-y: center;
    background-color: #4e8cce;
    background-repeat: no-repeat;
    background-size: 87.5%;
    background-image: url("/assets/search.svg");
}
body.search-page header div.search-input > button:hover,
body.search-page header div.search-input > button:focus {
    border-color: #4e8cce;
    background-color: white;
    background-image: url("/assets/search-focus.svg");
}

body.intro-page #main-content {
    background-color: white;
    /* Hack to make the margin of the body content fall within this block. */
    padding-top: 0.1px;
}

body.getting-started #main-content a.download-svg {
    display: inline-block;
    border-radius: 5px;
    border: 1px solid transparent;
    padding: 2px;
    position: relative;

    bottom: -4.2px;
    width: 21px;
    height: 21px;
    background: #4e8cce no-repeat url("/assets/download.svg");
    background-position-x: center;
    background-position-y: center;
    /* The icon is 24px large */
    background-size: 87.5%;
}

body.getting-started #main-content a.download-svg:hover,
body.getting-started #main-content a.download-svg:focus {
    border-color: #4e8cce;
    background-color: white;
    background-image: url("/assets/download-focus.svg");
}

body.chapter-page #main-content button.copy,
body.getting-started #main-content button.copy {
    grid-row: 1 / span 1;
    grid-column: -8 / span 7;
    padding: 0 5px;
    border: 1px solid transparent;
    border-radius: 5px;
    font-family: Source Code Pro, monospace;
    text-transform: uppercase;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    background-color: #4e8cce;
    cursor: pointer;
}

body.chapter-page #main-content button.copy:hover,
body.chapter-page #main-content button.copy:focus,
body.getting-started #main-content button.copy:hover,
body.getting-started #main-content button.copy:focus {
    background-color: white;
    color: #4e8cce;
    border-color: #4e8cce;
}

body.chapter-page #main-content button.copy:active,
body.getting-started #main-content button.copy:active {
    color: white;
    background-color: #4e8cce;
    border-color: transparent;
}

body.chapter-page #main-content button.copy > span,
body.getting-started #main-content button.copy > span {
    background: no-repeat url("/assets/copy.svg");
    background-size: 100%;
}
@media (max-width: 760px) {
    body.chapter-page #main-content button.copy > span,
body.getting-started #main-content button.copy > span {
    width: 16px;
}

@media not (max-width: 760px) {
   body.chapter-page #main-content button.copy > span,
body.getting-started #main-content button.copy > span {
    width: 16px;
}
@media (max-width: 760px) {
    body.chapter-page #main-content button.copy > span,
body.getting-started #main-content button.copy > span {
    height: 16px;
}

@media not (max-width: 760px) {
   body.chapter-page #main-content button.copy > span,
body.getting-started #main-content button.copy > span {
    height: 16px;
}



body.chapter-page #main-content button.copy:focus > span,
body.chapter-page #main-content button.copy:hover > span,
body.getting-started #main-content button.copy:focus > span,
body.getting-started #main-content button.copy:hover > span {
    background-image: url("/assets/copy-focus.svg");
}

body.getting-started #main-content a.external-link,
body.getting-started #main-content a.external-link:visited,
body.intro-page #main-content a.external-link,
body.intro-page #main-content a.external-link:visited {
    text-decoration: none;
    color: #4e8cce;
}

body.getting-started #main-content a.external-link:hover,
body.getting-started #main-content a.external-link:focus,
body.intro-page #main-content a.external-link:hover,
body.intro-page #main-content a.external-link:focus {
  text-decoration: underline solid #8aa4ba;
  color: #1663b4;
  background-color: #8aa4ba0f;
}
