/*=====================================configuração root=====================================*/
:root {
    scroll-behavior: smooth;
    /* paleta de cores */
    --primary-color: #fafafb;
    --secondary-color: #92a0a6;
    --logo-color: #65b5d8;
    --container-color: #151526;
    --background-color: #09091b;
    /* tipografia */
    --title-font: 'Press Start 2P';
    --text-font: roboto;
     font-size: 16px;
}
/*=====================================estilização barra de scroll=====================================*/
/* width */
::-webkit-scrollbar {
    width: 10px;
    height: 8px;
}
/* Handle */
::-webkit-scrollbar-thumb {
    background: #888; 
    border-radius: 5px;
  }
/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: #555; 
}
/*=====================================estilização body=====================================*/
body {
    min-height: 100vh;
    background-color: var(--background-color);
    display: flex;
    flex-direction: column;
}
/*=====================================estilização tipografia inicial=====================================*/
h1, h2, h3, h4, h5, h6 {
    font-family: var(--title-font);
    letter-spacing: 0.1rem;
}
h2, h3, h4 {
    color: var(--secondary-color);
}
p, h4, .article-title {
    font-family: var(--text-font);
}
/*=====================================estilização sidebar=====================================*/
/* Sidebar */

.sidebar {
	width: 220px;
	height: 100vh;
	padding: 20px;
	background: #20273c;
	position: fixed;
	overflow: auto;
}

.sidebar h2 {
	margin: 0px;
	overflow: hidden;
	line-height: 1;
    font-size: 1rem;
	color: var(--container-color);
}

.sidebar ul {
	list-style: none;
	margin: 10px 0px 30px 0px;
	padding: 0px;
}

.sidebar a {
    font-family: Roboto;
    font-size: 1.2rem;
	display: block;
	padding: 5px 20px;
	text-decoration: none;
	color: var(--primary-color);
}

.sidebar li:nth-of-type(even) a {
	background: #1c2338;
}

.sidebar li a.active, .sidebar li a:hover {
	background: var(--container-color);
	color: white;
}
/*=====================================estilização container principal=====================================*/
.main {
    padding-left: 220px;
}
/*=====================================estilização header principal=====================================*/
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;

    text-transform: uppercase;
    font-size: 2rem; /* 1rem = 16px */
    font-weight: bold;
}
.header a {
    color: var(--logo-color);
    text-decoration: none;
}
.header h2 {
    color: white;
}
.logo {
    color: blue;
}
/*=====================================estilização container de artigos=====================================*/
.container {
    display: flex;
    flex-direction: column;
    row-gap: 1rem;    
    /* margin: 1.2rem 1.2rem 0 1.2rem; */
    padding: 0 1.1rem;
    background-color: var(--container-color);
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
}
article section:nth-child(even) {
    background-color: var(--background-color);
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
}
/*=====================================estilização descrição de artigos=====================================*/
.description {
    padding: 1rem 1.5rem;
    background-color: #65b5d8;
    color: var(--background-color);
}
.article-title {
    font-weight: bold;
    font-size: 2rem;
    margin-bottom: 1rem;
    font-size: 2rem;
}
.description p {
    padding: 0 1rem;
    font-size: 1.5rem;
    line-height: 1.8rem;
    /* text-align: left; */
    text-indent: 1.5rem;
}
/*=====================================estilização textos de códigos=====================================*/
code {
    display: flex;
    flex-direction: column;

    padding: 1rem 1.25rem;
    row-gap: 0.625rem;

    border-radius: 10px;
    font-family: monospace;
    font-size: 1.4rem;
    background-color: #20273c;
    /* offset-x | offset-y | blur-radius | spread-radius | color */
    box-shadow: 2px 2px 5px rgba(48, 55, 140, 0.5)  ;
}
pre {
    font-family: monospace;
}
.class-name {
    color: #bae0a3;
}
.class-property {
    color: #5395fd;
}
.property-value {
    color: #d97171;
}
.ponctuation {
    color: white;
}
/*=====================================estilização opções=====================================*/
.options {
    display: flex;
    column-gap: 10px;
    align-items: center;
}
.options h4 {
    white-space: nowrap;
}
.options ul {
    display: flex;
    flex-wrap: wrap;
    column-gap: 5px;
}
.options li:hover {
      color: white;
      cursor: pointer;
}
.active {
      padding: 2px 4px;
      color: var(--container-color);
      background-color: var(--logo-color);
      border-radius: 5px;
}
/*=====================================estilização seções=====================================*/
.card {
    display: flex;
    flex-direction: column;
    gap: 1rem 0;
    padding: 1.5rem 2rem;
    /* box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5); */
}
.card h2 {
    font-size: 1.5rem;
}
.card p {
    padding: 0 1rem;
    color: var(--primary-color);
    font-size: 1.5rem;
    line-height: 1.8rem;
    text-align: justify;
    text-indent: 1.5rem;
}
.examples { 
    display: flex;
    flex-direction: column;
}
/*=====================================estilização elemento pai=====================================*/
.flex {
    display: flex;
    margin: 1rem;
    padding: 1rem;
    width: 30rem;
    border-radius: 10px;
    box-shadow: 0 0 7px rgba(255, 255, 255, 1);
    font-family: var(--text-font);
}
.parent {
    align-self: center;
}
/*=====================================estilização elemento filho=====================================*/
.item {
    height: 50px;
    width: 50px;
    background-color: rgba(255, 255, 255, 1);
    border: 1px solid var(--background-color);
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
}
/*=====================================flex-flow=====================================*/
.flex-flow {
    flex-direction: row;
    overflow: scroll;
    overflow-y: hidden;
    padding-bottom: 20px;
}
.flex-flow ul {
    flex-wrap: nowrap;
    white-space: nowrap;
}
/* container de demonstração flex-flow */
.flow {
    height: 15rem;
}
/*=====================================align-items=====================================*/
.align-items {
    height: 20rem; 
    column-gap: 1rem;
}
.item-align {
    background-color: rgba(255, 255, 255, 1);
    border: 1px solid var(--background-color);
    text-align: center;
    border-radius: 5px;
    display: flex;
    padding: 5px;
    /* width: 100px; */
}
.item-align:first-child {
    padding-top: 20px;
}
/*=====================================align-content=====================================*/
.align-content {
    flex-wrap: wrap;
    height: 20rem;
}
.item-align-content {
    background-color: rgba(255, 255, 255, 1);
    border: 1px solid var(--background-color);
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100px;
}
/*=====================================gap=====================================*/
.row-gap {
    flex-direction: column;
    flex-wrap: wrap;
}
.column-gap {
    flex-wrap: wrap;
}
/*=====================================estilização footer=====================================*/
footer {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;

    padding: 20px 30px;
    /* background-color: #A7D129; */
    color: var(--primary-color);
}

footer a {
    color: var(--logo-color);
    text-decoration: none;
}
/*=====================================Responsividade=====================================*/
@media screen and (max-width: 970px) {
    .sidebar {
        position: relative;
        margin-top: 80px;
        height: auto;
        width: auto;
        padding: 10px;
        display: flex;
        flex-wrap: wrap;
    }
    .sidebar div {
        flex: 1;
        margin: 10px;
    }
    .sidebar a {
        padding: 10px;
    }
    .header {
        width: 100vw;
        position: absolute;
        top: 0;
    }
    .main {
        padding-left: 0;
    }
    .options {
        flex-direction: row;
        overflow: scroll;
        overflow-y: hidden;
        padding-bottom: 20px;
    }
    .options ul {
        flex-wrap: nowrap;
        white-space: nowrap;
    }
}
@media screen and (max-width: 800px) {
    code {
        font-size: 1rem;
    }
    .header {
        flex-wrap: wrap;
        font-size: 1.5rem;
    }
    .card {
        padding: 1rem 1rem;
    }
    .card h2 {
        font-size: 1.2rem;
    }
    .card p {
        text-indent: 1rem;
        font-size: 1.2rem;
        line-height: 1.5rem;
    }
    .flex {
        width: 20rem;
    }
}
@media screen and (max-width: 590px) {
    .header {
        flex-wrap: wrap;
        justify-content: center;
    }
    .header h2 {
        display: none;
    }
}
@media screen and (max-width: 500px) {
    .container {
        margin: 0;
        padding: 0 0;
    }
    .card h2, .article-title {
        text-align: center;
    }
    .card p {
        text-align: left;
    }
    .article-title {
        padding-left: 10px ;
    }
    .flex {
        width: 20rem;
    }
}
.container article:nth-of-type(2) div {
    /* background-color: #5395fd; */
    padding: 2rem 0;
}
img {
    display: block;
    max-width: 100%;
    margin: auto;
}
.jumpUp {
    position: fixed;
    background-color: #65b6d85b;
    width: 30px;
    height: 30px;
    right: 10px;
    bottom: 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.jumpUp img {
    transform: rotate(-90deg);
    color: var(--primary-color);
}
/*
color: #09091b; body 
color: #0b0a10; header
color: #151526; container principal
color: #20273c; cor code 
color: #5395fd; cor propriedade css
color: #65b5d8; cor logo 
color: #92a0a6; cor subtitulos 
color: #bae0a3; cor elemento css 
color: #d97171; cor valor css
color: #fafafb; cor texto e titulo 
color: #ff911f; cor numero css 
*/