
header{
    background-color: rgb(0, 0, 0);
    position: relative;
}

header h2 {
    color: white;
    font-size: 1.0em;
    text-align: center;
    padding: 20px 0;
}

.navbar{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    background-color: rgb(0, 0, 0);
    height: 60px;
}

.logo{
    color: white;
    font-size: 24px;
    font-weight: bold;
}

.nav-list{
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
}
.nav-list li{
    margin: 0;
}

.nav-list a{
    color: white;
    text-decoration: none;
    padding: 15px;
    display: block;
    transition: font-size 0.5s ease-in-out;
}
.nav-list a:hover{
    font-size: 25px;
}

.toggle-menu{
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar{
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
}

.cancel{
    display: none;
}

@media (max-width : 768px) {
    .nav-list{
        display: flex;
        flex-direction: column;
        width: 250px;
        position: fixed;
        top: 0;
        right: -250px;
        height: 100vh;
        padding-top: 60px;
        transition: right 0.3s ease;
        background-color:rgb(0, 0, 0);
    }
    .nav-list.active{
        right: 0;
    }

    .toggle-menu{
        display: flex;
    }
    
    .cancel{
        display: none;
        font-size: 40px;
        z-index: 2;
        color: white;
    }

    .cancel.active{
        display: flex;
    }
}