/* Importing Poppins font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

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

body{
    background: #ecf0f3;
}

nav{
    width: 100%;
    background: #ecf0f3;
    padding: 12px 0;
    box-shadow: -3px -3px 7px #fff, 3px 3px 5px #ceced1;
}

nav .menu {
    max-width: 1270px;
    /* background: lightblue; */
    margin: auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* .menu .logo a {
    font-size: 28px;
    font-weight: 600;
    text-decoration: none;
    color: #1C2B39;
} */

.menu ul {
    list-style: none;
    display: flex;
}

.menu .logo a,
.menu ul a {
    margin: 0 8px;
    text-decoration: none;
    font-size: 18px;
    color: #1C2B39;
    /* background: #2B86C5; */
    font-weight: 400;
    display: inline-flex;
    padding: 10px 12px;
    box-shadow: -3px -3px 7px #fff, 3px 3px 5px #ceced1;
    position: relative;
    transition: all 0.3s ease;
}

.menu .logo a:hover:before,
.menu ul a:hover:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    box-shadow: inset -3px -3px 7px #fff, inset 3px 3px 5px #ceced1;
    border-radius: 6px;
}

.menu .logo a:hover,
.menu ul a:hover {
    color: #1d6bbd;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.5);
}

nav label.button {
    color: #31344b;
    font-size: 18px;
    cursor: pointer;
    display: none;
}

nav label.cancel{
    position: absolute;
    top: 25px;
    right: 30px;
}

#check{
    display: none;
}


@media (max-width:940px) {
    .menu ul{
        display: block;
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        max-width: 400px;
        padding-top: 45px;
        height: 100%;
        background: #ecf0f3;
        box-shadow: 0 5px 10px #b0b0b5;
        z-index: 12;
        transition: all 0.3s ease;
    }
    .menu ul a {
        display: block;
        font-size: 23px;
        width: 100%;
        margin-top: 30px;
        box-shadow: none;
        text-align: center;
    }
    .menu ul a:hover:before {
        box-shadow: none;
    }
    nav label.bars{
        display: block;
    }
    #check:checked ~ label.bars {
        display: none;
    }
    #check:checked ~ ul label.cancel{
        display: block;
    }
    #check:checked ~ ul{
        left: 0;
    }
}