*,
*:before,
*:after {
    box-sizing: inherit;
}

::selection {
    background-color: hsl(180, 50%, 90%);
}

head {
    display: none;
}

.content {
    margin: auto;
    width: 60%;
}

body {
    margin: 60px 0;
    padding: 0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.5em;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
}

div {
    display: block;
    text-align: center;
}

h1,
h2,
h3,
h4 {
    text-align: center;
    margin: 1rem 0;
    clear: both;
}

h2 {
    font-size: 2em;
    margin-bottom: 32px;
    font-weight: 300;
    display: block;
}

h3 {
    margin-left: 100px;
    text-align: left;
}

p {
    display: block;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    text-indent: 1em;
    text-align: justify;
}

a {
    color: hsl( 180, 53%, 50% );
    transition: color .11s ease-in-out;
}

b, strong {
    font-weight: bolder;
}

ol, ul{
    list-style-position: inside;
}

.steps li, b{
    text-align: left;
    margin-left: auto;
}

.topics {
    font-weight: bold;
}

img {
    display: inline-block;
    box-sizing: border-box;
    height: auto;
    max-width: 100%;
    vertical-align: bottom;
    position: relative;
    overflow-clip-margin: content-box;
    overflow: clip;
}

code {
    background-color: hsl(0,0%,96.5%);
    color: rgba(255, 0, 0, 0.836);
    border-radius: 20px;
    width: auto;
    height: auto;
    padding: 1px 6px 1px 6px;
}

figcaption {
    font-size: .71111em;
    line-height: 1.4;
    margin: 0;
    padding: 0.5rem;
    text-align: center;
}

.credits {
    text-align: center;
    margin: 100px 100px 50px;
}

.navbar {
    background-color: #d7d559d5;
    margin-top: -60px;
    overflow: hidden;
    position: fixed;
    width: 100%;
    z-index: 1;
}

.navbar a {
    transition: background-color 0.3s, color 0.3s;
    float: left;
    display: block;
    color: rgb(0, 0, 0);
    padding: 12px 16px;
    text-decoration: none;
    font-size: 18px;
    width: 22%;
    text-align: center;
}

.navbar a:hover {
    background-color: #46454531;
    color: black;
}

.navbar .icon {
    display: none;
}

body.dark-mode {
    background-color: #333;
    color: #fff;
}

main {
    margin-top: 60px;
}

#toggleModeButton {
    background-color: #333;
    color: #fff;
    padding: 8px 16px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
}

#toggleModeButton:hover {
    background-color: #555; /* Cor de fundo ao passar o mouse */
}

@media screen and (max-width: 800px) {
    float: none;
    display: block;
    width: 100%;
    text-align: left;
}

@media screen and (max-width: 600px) {
    .navbar a:not(:first-child) {display: none;}
    .navbar a.icon {
        float: right;
        display: block;
    }
}

@media screen and (max-width: 600px) {
    .navbar.responsive {position: relative;}
    .navbar.responsive a.icon {
        position: absolute;
        float: right;
        display: block;
        right: 0;
        top: 0;
    }
    .navbar.responsive a {
        float: none;
        display: block;
        text-align: left;
    }
}
