@import url('https://fonts.googleapis.com/css2?family=Black+Ops+One&family=Exo+2:ital,wght@0,100;0,200;0,300;0,400;0,500;1,100;1,200;1,300;1,400;1,500&family=Foldit&family=Montserrat:wght@400;500&family=Playfair+Display&family=Playfair+Display+SC&family=REM:wght@600&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;1,100;1,300;1,400;1,500&display=swap');

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

html, body{
    font-family: "Roboto", sans-serif;
    line-height: 1.4;
    font-weight: 300;
    scroll-behavior: smooth;
}

a{
    text-decoration: none;
}
body{
    display: flex;
}

header{
    border: 1px solid #ccc;
    min-height: 100vh;
}

nav h1{
    font-size: 25px;
    font-weight: 500;
    padding: 10px;
    border-bottom: 1px solid #ccc;
}

nav ul{
    list-style: none;
}

nav ul li{
    border-bottom: 1px solid #ccc;
    padding: 10px;
    color: #000;
}
nav ul li:hover{
    background-color: #ccc;
    transition: .3s ease-in-out;
}

/* Main Section */
main{
    padding: 50px;
    max-width: 1200px;
}

section{
    margin-bottom: 50px;
}

section article{
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: .9px;
    text-align: justify;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
section article ul{
    margin-left: 25px;
}
section article ul li{
    margin-bottom: 10px;
}
section h1{
    padding: 10px;
    font-size: 25px;
    font-weight: 400;
    border-bottom: 1px solid #ccc;
    margin-bottom: 20px;
}

code{
    white-space: pre-line;
    line-height: 1.3;
    background-color: #f7f7f7;
    padding: 15px;
    margin: 10px;
    border-radius: 5px;
}


/* Responsive for Mobile */
@media (max-width: 480px) {
    body{
        flex-direction: column;
    }
    header{
        height: 200px;
        overflow: hidden;
        overflow-y: scroll;
    }
    header nav ul a{
        text-align: center;
    }
    nav ul li:hover{
        background-color: #ccc;
        transition: .3s ease-in-out;
    }
}