* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
}

/* Styling the nav bar */

.nav-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #f5f5f5;
    transition: all 0.5s ease-in-out;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 15rem;
}

.nav-items {
    text-decoration: none;
    color: #000;
    padding: 10px 20px;
    border: 1px solid rgba(0, 0, 0, 0);
}

.nav-items:hover {
    background-color: #e9e9e9;
}

.nav-items:active {
    border-bottom: 1px solid #000;
}

.menu-icon {
    display: none;
    padding: 10px;
    margin: 10px;
    background-color: #f5f5f5;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 10px;
    right: 10px;
}

.menu-icon:active {
    background-color: #e9e9e9;
}

.close-icon {
    display: none;
}

/* Styling the content of the page */

main {
    padding: 20px;
    text-align: justify;
    max-width: 768px;
    padding-top: 50px;
    margin: 50px auto 0 auto;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h2 {
    text-align: center;
    margin-bottom: 20px;
}

p {
    margin-bottom: 20px;
}

/* Making it responsive */

@media screen and (max-width: 768px) {
    .close-icon, .menu-icon {
        display: block;
    }

    main {
        margin: 20px 50px 20px 50px;
    }

    .nav-bar {
        width: 0;
        float: right;
        right: 0;
        height: 100vh;
        overflow: hidden;
    }

    .nav-container {
        position: absolute;
        top: 0;
        margin-top: 10px;
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .nav-items {
        width: calc(100% - 20px);
    }
}