* {
    margin: 0;
    padding: 0;
    font-family: Helvetica, sans-serif;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #080808;
    color: #fff;
}

.container {
    padding: 10px 10%;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

nav ul li {
    display: inline-block;
    list-style: none;
    margin: 10px 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    position: relative;
}

nav ul li a::after {
    content: '';
    width: 0;
    height: 3px;
    background: #07b19a;
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: 0.5s;
}

nav ul li a:hover::after {
    width: 100%;
}

.header-text {
    margin-top: 2%;
    font-size: 30px;
}

.header-text {
    color: #07b19a;
    text-align: center;
}

.header-text h1 {
    margin-top: 20px;
    font-size: 60px;
}

main {
    background: #080808;
    color: #fff;
}

article {
    background: #080808;
    color: #fff;
}

section {
    background: #080808;
    color: #fff;
}

.figure {
    background: #252525;
    color: #fff;
}

.figure:hover {
    background-color: #07b19a;
    color: #000;
}

.did-you-know {
    background: #252525;
    color: #fff;
}

.did-you-know:hover {
    background-color: #07b19a;
    color: #000;
}

figure {
    border: 1px solid #07b19a;
    border-radius: 25px;
    padding: 10px;
}

article {
    display: inline-block;    
    padding: 10px;
}

section {
    display: inline-block;    
    border: 1px solid #07b19a;
    padding: 10px;
    border-radius: 25px;
    margin: 10px;
}

.main-header {
    color: #fff;
    padding: 10px;

}

main article {
    color: #ababab;
}

.header-table {
    color: #07b19a;
}

/* For code samples */
pre {
    background-color: #252525;
    color: #fff;
    border: 1px #07b19a;
    border-radius: 5px;
}

img{
    border: 1px solid #07b19a;
} 


/*---------------small screens---------------*/

nav .fa-solid {
    display: none;
}

@media only screen and (max-width: 600px) {

    .header-text {
        margin-top: 2%;
        font-size: 16px;
    }

    .header-text h1 {
        font-size: 30px;
    }

    nav .fa-solid {
        display: block;
        font-size: 25px;
    }

    nav ul {
        background: #07b19a;
        position: fixed;
        top: 0;
        right: -200px;
        width: 200px;
        height: 100vh;
        padding-top: 50px;
        z-index: 2;
        transition: right 0.5s;
    }

    nav ul li {
        display: block;
        margin: 25px;
    }

    nav ul .fa-solid {
        position: absolute;
        top: 25px;
        left: 25px;
        cursor: pointer;
    }

    pre {
        height: 125vw;
        width: 90vw;
    }

    .img {
        height: 150px;
        width: 300px;
        object-fit: scale-down;
    }

    .table-pre-1 {
        height: 160vw;
        width: 90vw;
    }

    .table-pre-2 {
        height: 300vw;
        width: 90vw;
    }

    .grid-pre-1 {
        height: 260vw;
        width: 90vw;
    }

    .grid-pre-2 {
        height: 60vw;
        width: 90vw;
    }

    .flex-pre-1 {
        height: 100vw;
        width: 90vw;
    }

    .flex-pre-2 {
        height: 130vw;
        width: 90vw;
    }
}