* {
    box-sizing: border-box;
}

*::selection {
    background-color: lightcoral;
}

html {
    font-size: 16px;
}

body {
    font-family: oxygen, sans-serif;
    min-height: 100vh;
}

aside,
aside a {
    color: #969eba;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: Ubuntu, sans-serif;
    color: #121c39
}

h1 {
    font-size: 2rem;
    margin-bottom: 50px;
}

h2 {
    font-family: Ubuntu, sans-serif;
    font-size: 1.5rem;
    margin-bottom: 25px;
}

h3 {
    font-size: 1.2rem;
    margin: 40px 0 20px 0;
}

h4 {
    font-size: 1rem;
    margin-top: 40px;
}

p {
    font-size: 1rem;
    color: #121c39;
    line-height: 1.5;
    margin: 24px 0;
}

a {
    color: #4a81ce;
}

strong {
    color: lightcoral;
}

aside {
    background-color: #121c39;
    padding: 100px 25px;
}

aside div {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

aside h2 {
    color: white;
    margin: 0;
}

aside h2 a {
    text-decoration: none;
}

aside form {
    margin-bottom: 0;
    width: 100%;
    max-width: 500px;
    display: flex;
    justify-content: center;
}

aside input {
    background-color: #293350;
    padding: 8px;
    border: 1px solid #293350;
    border-radius: 5px;
    color: white;
    font-size: 1rem;
    font-family: Ubuntu, sans-serif;
    width: 70%;
}

aside input::placeholder {
    color: #969eba;
    /* Firefox */
    opacity: 1;
    text-align: center;
}

/* Internet Explorer 10-11 */
aside input:-ms-input-placeholder {
    color: #969eba;
}

/* Microsoft Edge */
aside input::-ms-input-placeholder {
    color: #969eba;
}

.nav li {
    line-height: 3;
    list-style-type: none;
}

.nav ul li {
    line-height: 1.8;
}

.nav ul li {
    transform: translateX(-20px);
    border-left: 2px solid #293350;
    padding-left: 20px;
}

.nav a {
    text-decoration: none;
}

.nav li:hover,
.nav a:hover,
.nav li:focus,
.nav a:focus {
    color: white;
    transition: color 0.5s ease-in-out;
}

ul ul li:hover,
ul ul li:focus {
    border-left: 2px solid white;
    transition: border-left 0.5s ease-in-out;
}

main {
    padding: 75px 25px;
}

main section {
    margin: 50px 0 0 0;
    padding: 0 0 20px 0;
    border-bottom: 1px solid #eeeded;
}

main section:first-child {
    margin: 0;
}

main section:last-child {
    border-bottom: none;
}

ol,
ul {
    line-height: 1.5;
}

ol li,
main ul li {
    margin-top: 15px;
}

code {
    font-family: 'Source Code Pro',
        monospace;
    color: white;
}

.code {
    background-color: #040d21;
    color: white;
    font-size: .9rem;
    padding: 20px 40px;
    border-radius: 10px;
    line-height: 1.5;
    overflow: auto;
    max-height: 500px;
}

.selector {
    color: white;
}

.element-name,
.element-name p {
    color: #72e0d1;
    line-height: 0.4;
}

.indent-1 {
    transform: translateX(20px);
}

.indent-2 {
    transform: translateX(40px);
    margin-bottom: 16px;
}

.indent-3 {
    transform: translateX(60px);
    margin: 0;
}

.attribute {
    color: orange;
}

.att-value {
    color: lightgreen;
}

.snippet {
    background-color: #ffeff0;
    padding: 4px 8px;
    border-radius: 3px;
    color: black;
}

table {
    width: 100%;
    margin-bottom: 30px;
}

th {
    min-width: 100px;
    text-align: start;
    padding-bottom: 5px;
}

tbody tr:nth-of-type(even) {
    background-color: #fafafa;
}

td {
    padding: 10px 0;
}

form {
    margin: 50px 0;
}

form div {
    margin: 20px 0;
}

form input {
    border: none;
    border-bottom: 1px solid black;
}

form input::placeholder {
    font-size: 0.8rem;
    /* Firefox */
    opacity: 1;
}

/* Internet Explorer 10-11 */
form input:-ms-input-placeholder {
    font-size: 0.8rem;
}

/* Microsoft Edge */
form input::-ms-input-placeholder {
    font-size: 0.8rem;
}

form button {
    margin-top: 20px;
    background-color: #121c39;
    color: white;
    padding: 10px 20px;
    border: 1px solid #121c39;
    border-radius: 5px;
}

form button:hover {
    background-color: #293350;
    border: 1px solid #293350;
    transition: background-color 0.2s ease-in-out;
}

.tip {
    background-color: #ffeff0;
    padding: 10px 20px;
    border: 1px solid #ffeff0;
    border-radius: 10px;
    border-left: 10px solid #d4c7c8;
    margin: 30px 0;
}

.tip p {
    margin-top: 0;
}

.tip h4 {
    margin-bottom: 10px;
}

img {
    max-width: 100%;
}

@media (min-width: 1024px) {
    body {
        display: grid;
        grid-template-columns: 1fr 2fr;
        grid-template-rows: auto;
        grid-template-areas: "sidebar main";
    }

    aside {
        grid-area: sidebar;
        padding: 25px 50px 100px 50px;
    }

    aside div {
        align-items: start;
    }

    aside h2,
    aside form {
        justify-content: start;
    }

    ul.nav {
        padding: 0;
    }

    aside div {
        position: sticky;
        top: 25px;
        width: 100%;
    }

    main {
        grid-area: main;
    }
}

@media (min-width:1300px) {
    body {
        grid-template-columns: 1fr 3fr;
    }

    main {
        padding: 75px 100px;
    }

    img {
        max-width: 49%;
        display: inline;
    }
}