/* Fonts */

@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");

/* Commont Style start  */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html,
body {
    font-family: "Roboto", sans-serif;
    font-weight: 300;
    line-height: 1.4;
    scroll-behavior: smooth;
    display: flex;
    background-color: #f7f7f7;
}

/* Header style start  */

header {
    position: sticky;
    top: 0;
    border: 1px solid #ccc;
    height: 100vh;
    background-color: #f2f2f2;
}
nav div {
    padding: 10px;
    border-bottom: 1px solid #ccc;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
nav div h1 {
    font-weight: 300;
    font-size: 1.5rem;
    line-height: 30px;
}
nav ul {
    list-style: none;
}
nav ul a {
    text-decoration: none;
}
nav ul li {
    color: black;
    padding: 10px;
    border-bottom: 1px solid #ccc;
    font-weight: 300;
    transition: 0.3s ease-in-out;
}
nav ul li:hover {
    background-color: #ccc;
    transition: 0.3s ease-in-out;
}


/* Main section style start  */

main {
    padding: 50px;
    max-width: 1200px;
}
section {
    margin-bottom: 50px;
}
section h2 {
    border-bottom: 1px solid #ccc;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 20px;
    padding-bottom: 3px;
    line-height: 28px;
}
article {
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-size: 14px;
    font-weight: 300;
    padding: 0 15px;
    word-spacing: 2px;
}

article ul li {
    margin-left: 22px;
    margin-bottom: 10px;
}
code {
    white-space: pre-line;
    line-height: 2;
    padding: 15px;
    margin: 10px;
    background-color: #fff;
    border-radius: 5px;
}

/* Responsive Style Start  */

@media (max-width: 480px) {
    body {
        flex-direction: column;
    }
    header {
        display: flex;
        justify-content: center;
        height: 200px;
        overflow: hidden;
        overflow-y: scroll;
    }
}