@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");

* {
    font-family: roboto, Arial, Helvetica, sans-serif;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background: rgb(182, 255, 233);
}

.scroll-up-btn {
    align-items: center;
    background-color: #333;
    border-radius: 50%;
    border: 2px solid;
    bottom: 30px;
    color: #fff;
    cursor: pointer;
    display: flex;
    font-size: 2.5rem;
    height: 60px;
    justify-content: center;
    padding: 10px;
    position: fixed;
    right: 30px;
    width: 60px;
    transition: 0.3s;
    z-index: 999;
    box-shadow: 0 0 10px #0005;
}

.scroll-up-btn:hover {
    background: #fff;
    color: #333;
}

main {
    padding-top: 150px;
    padding-bottom: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

main > * {
    width: max(50%, 600px);
}

image {
    display: inline-block;
}

section,
article {
    padding: 20px 50px;
    margin-bottom: 25px;
    border-radius: 10px;
    box-shadow: 0 0 10px 1px rgb(180, 180, 180);
    background: white;
    line-height: 1.8;
}

article {
    margin-top: 20px;
}

/* setting the navbar */
nav {
    background-color: #333;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
    transition: 0.5s top;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 10px;
}

nav .vertical-menu {
    display: none;
}

nav h1.current-section {
    display: none;
}

nav a {
    border-radius: 20px;
    float: left;
    display: block;
    color: #f2f2f2;
    text-align: center;
    padding: 5px 16px;
    text-decoration: none;
    font-size: clamp(1.2rem, 1.4vw, 1.4rem);
    transition: 0.3s;
}

nav a:hover,
#active-git-section {
    background-color: #f7f7f7;
    color: #333;
    border: #ddd;
    border-radius: 20px;
    border-collapse: separate;
}

nav a.active {
    background-color: #ddd;
    color: black;
    border: #ddd;
    border-radius: 20px;
    border-collapse: separate;
}

/* setting the titles */
.secondTitles {
    text-align: center;
    font-size: 2em;
    color: #333;
}

/* setting the inline list */
.inline {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    list-style-type: none;
}

.inline li {
    padding: 0 5%;
}

/* setting the code */
section div {
    background-color: #333;
    color: #f7f7f7;
    border-radius: 10px;
    overflow: auto;
    white-space: pre;
    margin-top: 10px;
    margin-bottom: 10px;
}

section div p {
    margin: -50px 0;
}

/* setting the code */
code {
    color: #f7f7f7;
    background-color: #333;
    font-size: 16px;
    padding-block: 2px;
    padding-inline: 4px;
}

.hash-string {
    overflow-wrap: break-word;
}

.introduction {
    padding: 2% 5%;
    background-color: #333;
    color: #f7f7f7;
    border-radius: 10px;
    margin-top: 20px;
    box-shadow: 0 0 10px 1px rgb(180, 180, 180);
}

.introduction li {
    margin-bottom: 15px;
}

footer {
    background-color: #333;
    width: 100%;
    height: 50px;
    color: #fff;
    display: grid;
    place-content: center;
}

@media only screen and (max-width: 1630px) {
    section {
        padding: 20px 30px;
        min-width: 648px;
    }

    section div {
        position: relative;
    }

    section div code {
        position: absolute;
        left: 20px;
    }

    section div p {
        position: relative;
        left: -60px;
    }
}

@media only screen and (max-width: 750px) {
    main > * {
        width: 80%;
    }
}

@media only screen and (max-width: 690px) {
    section {
        min-width: 90%;
    }

    section div code {
        left: 10px;
    }

    .inline {
        flex-direction: column;
        align-items: center;
        padding-left: 0;
    }
}

@media screen and (max-width: 1082px) {
    nav > a {
        display: none;
    }

    nav {
        display: flex;
        justify-content: center;
    }

    nav h1.current-section {
        color: #fff;
        text-transform: uppercase;
        font-weight: 500;
        letter-spacing: 2px;
        font-size: 2rem;
        display: block;
    }

    nav .hamburger-menu-symbol {
        display: flex;
        flex-direction: column;
        gap: 8px;
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
        cursor: pointer;
    }

    nav .hamburger-menu-symbol .bar {
        height: 4px;
        border-radius: 10px;
        width: 35px;
        background: #fff;
        transition: 0.3s;
    }

    nav .clicked-hamburger-menu-symbol .bar1 {
        transform: translate(0, 12px) rotate(45deg);
    }

    nav .clicked-hamburger-menu-symbol .bar2 {
        opacity: 0;
    }

    nav .clicked-hamburger-menu-symbol .bar3 {
        transform: translate(0, -12px) rotate(-45deg);
    }

    nav .vertical-menu {
        width: 100%;
        position: absolute;
        left: 0;
        top: -1000%;
        z-index: 999;
        min-height: 600px;
        border-top: 5px solid #000;
        background: #252525;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-block: 10px;
        transition: 0.3s top;
    }

    nav .vertical-menu a {
        border-radius: 30px;
        flex: 1;
        display: grid;
        place-content: center;
        font-size: 1.4rem;
        width: 90%;
    }

    nav .vertical-menu a::after {
        content: "";
        margin-top: 5px;
        width: 100%;
        height: 4px;
        background: #fff;
        border-radius: 10px;
        transition: 0.3s;
    }

    nav .vertical-menu a:hover::after {
        background: #000;
        border-radius: 10px;
    }
}

@media screen and (max-width: 480px) {
    nav h1.current-section {
        font-size: 1.5rem;
    }
}

@media screen and (max-width: 340px) {
    nav .hamburger-menu-symbol {
        top: 110px;
        background: #333;
        padding: 12px;
        border-radius: 7px;
        box-shadow: 0 0 10px #0009;
        transition: 0.3s;
    }

    nav .hamburger-menu-symbol:hover {
        background: #fff;
    }

    nav .hamburger-menu-symbol:hover .bar {
        background: #333;
    }

    nav .clicked-hamburger-menu-symbol {
        top: 700px;
    }
}
