@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');
@import url("https://fonts.googleapis.com/css?family=Slabo+27px|Zilla+Slab&display=swap");
@import url("https://fonts.googleapis.com/css?family=Roboto&display=swap");

html{
    scroll-behavior: smooth;
}

.active-index {
    color: var(--main-color);
    font-weight: bold;
}

:root{
    --main-color: #a700f5;
    --main-light-color: #d391ff;
    --main-dark-color: #4f007c;
    --alternative-color: #37474f;
    --alternative-light-color: #62727b;
    --alternative-dark-color: #102027;    
}

body{
    margin: auto;
    font-family: 'Lato';
    counter-reset: section;
    text-align: justify;
}

.container {
    margin: 0 auto;
    width: 100%;
}

nav {
    position: sticky;
    top: 4rem;
    left: 1rem;
    align-self: start;
    max-width: 15rem;
}

nav ul {
    padding-left: 1rem;
    padding-bottom: 1rem;
}

nav li {
    text-align: left;
    font-size: 0.9rem;
}

header{
    background-color: var(--alternative-dark-color);
    padding: 1rem;
    display: flex;
    color: white;
}

header h1{
    text-transform: uppercase;
    font-size: 1.2rem;
    color: white;
    margin-right: 1rem;
}

header a:hover{
    color: white;
}

a{
    text-decoration: none;
}

.container a {
    color: var(--main-dark-color)
}

main{
    display: flex;
    margin-top: 4rem;
}

.fixed-top {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1030;
}

.fixed-bottom {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1030;
}

footer {
    background-color: var(--alternative-dark-color);
    font-size: .7rem;
    padding: 1rem;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card {
    margin: 1rem;
    box-shadow: 5px 5px lightgrey;
}

tbody tr{
    margin: 1rem;
    border-bottom: 1px solid grey;
}

tbody tr td{
    padding-top: 0.5rem;
    padding-left: 1rem;
    padding-bottom: 0.5rem;
}

.list-group {
    margin: 1rem;
    box-shadow: 5px 5px lightgrey;
}

img{
    border: 1px solid lightgrey;
    box-shadow: 5px 5px lightgrey;
    max-width: 90%;
    margin-bottom: 2rem;
}

h2, h3 {
    margin-top: 1rem;
    font-weight: 300;
    color:var(--main-color);
    padding-bottom: 0.3rem;
    border-bottom: 1px solid var(--alternative-light-color);
    counter-increment: section;
    content: "Section " counter(section) ": ";
}

h2{
    font-weight: bold;
}

h4 {
    padding-top: 0.5rem;
    border-bottom: 1px solid lightgray;
}

.dark-color{
    background-color: #343a40 !important;
    color: white !important;
    border: 1px solid #343a40 !important;
}

.page{
    display: flex;
}

.citation {
    margin: 1rem;
    border: 1px solid lightgrey !important;
    box-shadow: 5px 5px lightgrey;
}

.citation .text{
    font-style: italic;
    padding: 1rem;
    background-color: rgb(255, 231, 217);
}

.citation .url{
    text-align: right;
    font-size: 0.8rem;
    padding: 5px;
}

.note {
    margin: 1rem;
    padding: 1rem;
    background-color: rgb(255, 231, 217);
    border: 1px solid lightgrey !important;
    box-shadow: 5px 5px lightgrey;
    font-style: italic;
}

.info-adicional{
    font-style: italic;
}


.note::before {
    content: 'Nota: ';
}

.img-group{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.img-column{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

legend{
    font-size: 0.8rem;
    text-align: center;
    margin-top: -1rem;
    margin-bottom: 1rem;
}

.img-group img {
    max-width: 300px;
}

.meme{
    width: 15rem;
}

.link-more-info::before {
    content: 'Mais info aqui';
}

.center-group{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin: 1rem;
    padding: 2rem;
    border: 1px solid lightgray;
}

.complementary-info{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin: 1rem;
    padding: 2rem;
    border: 1px solid lightgray;
    background-color: rgb(243, 215, 215);
}

.complementary-info a {
    padding: 1rem;
    background-color: var(--main-dark-color);
    color: white;
}

.complementary-info a:hover{
    background-color: var(--main-light-color);
    text-decoration: none;
}

.metro{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.metro .metro-link{
    background-color: var(--main-color);
    color: white;
    text-decoration: none;
    text-align: center;
    font-size: 1.5rem;
    font-weight: bolder;
    margin: 0.5rem;
    width: 10rem;
    box-shadow: 4px 4px #c3c3c3;
}

.metro .metro-link .desc{
    font-size: 1rem;
    background-color: #37474f;
    font-weight: lighter;
    min-height: 3.5rem;
    padding: 0.5rem;
}

.metro .metro-link:hover{
    background-color: var(--main-dark-color);
}

.metro .metro-link:active{
    background-color: var(--main-light-color);
}

.metro .metro-link-disabled{
    background-color: rgb(85, 85, 85);
    color: white;
}

.metro .metro-link-disabled:hover{
    background-color: rgb(85, 85, 85);
}

table{
    margin-top: 1rem;
    margin-bottom: 1rem;
}

table thead tr th{
    text-align: center;
}

.table-list{
    list-style-type: none;
    padding: 0;
}

.table-list li{
    margin: 1rem;
    border: 1px solid rgb(172, 172, 172);
    display: flex;
    padding: 1rem;
    flex-direction: column;
    background: rgb(240, 240, 240);
}

.highlight-inline{
    background-color: #343a40;
    color: inherit;
}

.code .file-name{
    background-color: #343a40;
    color: white;
    font-family: monospace;
    padding: 0.5rem;
    border-bottom: 2px solid rgb(70, 70, 70);
}

.code .language{
    background-color: #a261ce;
    color: white;
    font-family: monospace;
    padding: 0.2rem;
    margin: 0.5rem;
    border-radius: 5px;
}

.code code {
    padding: 0.5rem;
}

.overflow-example{
    border: 1px solid #333333;
    width: 100px;
    font-size: 250%;
    white-space: nowrap;
    background-color: orangered;
}

.overflow-hidden{
    overflow: hidden;
}

.overflow-scroll{
    overflow: scroll;
}

.overflow-auto{
    overflow: auto;
}

.table-exercise{
    margin-bottom: 1rem;
}

.table-exercise td{
    padding: 1rem;
    border: 1px solid grey;
    background-color:lightgray;
}

.code{
    counter-reset: codeline;
}

.line::before{
    counter-increment: codeline;
    content: counter(codeline);
    padding-right: 1rem;
}

.highlight-line {
    background-color: rgba(255, 124, 63, 0.157);
    display: block;
}

@media screen and (max-width: 600px){
    nav {
        background-color: saddlebrown;
        display: none;
        top: 0;
        align-self: auto;
        width: 100%;
    }
}