:root {
    --thm-font: "Inter", sans-serif;
    --signup: #1652f0;
    --text1: #262626;
    --text2: #86868e;
    --background-color: #ffffff;
    --search: #f4f4f4;
}

* {
    box-sizing: border-box;
}

* {
    margin: 0;
}

body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    font-family: var(--thm-font);
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

input,
button,
textarea,
select {
    font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}

#root,
#__next {
    isolation: isolate;
}

.first-footer {
    width: 100%;
    height: 50px;
    display: none;
    padding: 10px 60px;
    background-color: #ffffff;
    position: fixed;

    .item {
        width: 20%;
    }

    .item a {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-decoration: none;
        color: var(--text1);
        font-size: 10px;

        i {
            font-size: 20px;
            margin-bottom: 2px;
        }
    }
}



.footer {
    width: 100%;
    height: 50px;
    display: flex;
    justify-content: space-between;
    padding: 10px 60px;
    

    .left {
        width: 60%;
        display: flex;

        .item {
            font-size: 14px;
            color: var(--text2);
            list-style-type: disc;

            a {
                text-decoration: none;
                color: var(--text2);
            }
        }
    }

    .right {
        width: 40%;
        display: flex;
        justify-content: flex-end;

        a {
            text-decoration: none;
            color: var(--text1);
        }

        i {
            margin-left: 20px;
        }
    }
}

.custom-modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    /* Black background with transparency */
}

.custom-modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border-radius: 10px;
    width: 95%;
    max-width: 600px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    position: relative;

    .search-box {
        width: 100%;
        height: 45px;
        display: flex;
        border-radius: 5px;
        background-color: #f4f4f5;
        position: relative;

        .magnify {
            width: 50px;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        input {
            width: 80%;
            height: 100%;
            border: none;
            background-color: #f4f4f5;

            &:focus {
                outline: none;

                +.dropdown {
                    display: block;
                }
            }
        }
    }

    .browse{
        width: 100%;
        margin-top: 10px;

        h3{
            font-size: 14px;
            color: var(--text1);
            font-weight: 600;
        }
    }

    .hold1{
        width: 100%;
        margin-top: 5px;

        a {
            text-decoration: none;
            color: var(--text1);
            font-weight: 600;
        }

        .news,
        .trending,
        .popular,
        .ending {
            width: fit-content;
            height: fit-content;
            padding: 5px 20px;
            border: 1px solid #ddd;
            border-radius: 5px;
            margin-bottom: 10px;
        }

    }

    .topics{
        width: 100%;
        margin-top: 30px;

        h3{
            font-size: 14px;
            color: var(--text1);
            font-weight: 600;
        }

        .hold2{
            width: 100%;
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
            margin-top: 10px;
            margin-bottom: 10px;

            a {
                text-decoration: none;
                color: var(--text1);
                font-weight: 600;
            }

            .crypto,
            .politics,
            .sports,
            .business {
                padding: 5px 10px;
                border: 1px solid #ddd;
                border-radius: 5px;
            }
        }
    }
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    top: 10px;
    right: 15px;
    margin-bottom: 10px;
}

.close-modal:hover {
    color: #000;
}

/* For the body or specific container */
.menu {
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
}

/* Chrome, Edge, Safari */
.menu::-webkit-scrollbar {
  display: none;
}

.menu {
    position: fixed;
    top: 0;
    left: -300px; 
    width: 300px;
    height: 100%;
    background: white;
    color: var(--text1);
    transition: left 0.3s ease;
    z-index: 2000;
    padding: 20px;
    overflow: auto;

    .username{
        width: 100%;
        height: fit-content;
        display: flex;
        align-items: center;
        gap: 10px;

        .pic{
            width: 20%;
            height: fit-content;
            display: flex;

            .pro-pic{
                width: 55px;
                height: 55px;
                display: flex;
                justify-content: center;
                align-items: center;
                font-size: 45px;
                border-radius: 50%;
                background-color: #ddd;

                img{
                    width: 95%;
                    height: 95%;
                    border-radius: 50%;
                }
            }
        }

        .name{
            width: 20%;
            font-size: 20px;
            color: var(--text1);
            font-weight: 600;
            margin-left: 5px;
        }

        .settings{
            width: 50%;
            display: flex;
            justify-content: flex-end;
            align-items: center;
            font-size: 25px;
        }
    }

    .menu-item{
        width: 100%;
        height: fit-content;
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 20px;

        a{
            text-decoration: none;
            color: var(--text1);
            font-size: 18px;
            font-weight: 600;
            padding: 10px 0;
            border-bottom: 1px solid #ddd;

            &:hover{
                background-color: #f4f4f5;
                transition: all 0.3s ease-in-out;
            }
        }
    }

    .socials{
        width: 100%;
        height: fit-content;
        display: flex;
        gap: 10px;
        margin-top: 20px;

        a{
            text-decoration: none;
            color: var(--text1);
            font-size: 18px;
            font-weight: 600;
            padding: 10px;
            border: 1px solid #ddd;
            border-radius: 50%;

            &:hover{
                background-color: #f4f4f5;
                transition: all 0.3s ease-in-out;
            }
        }
    }

    .logout{
        width: 100%;
        height: fit-content;
        display: flex;
        flex-direction: column;
        gap: 10px;
        justify-content: center;
        /* align-items: center; */
        margin-top: 20px;

        a{
            text-decoration: none;
            color: var(--text1);
            font-size: 18px;
            font-weight: 500;
            padding: 10px 20px;
            border-radius: 5px;
            background-color: #f4f4f5;
            text-align: center;

            &:hover{
                background-color: #ddd;
                transition: all 0.3s ease-in-out;
            }
        }

        .signup{
            background-color: var(--signup);
            color: white;

            &:hover{
                background-color: #ddd;
                color: var(--text1);
                transition: all 0.3s ease-in-out;
            }
            transition: all 0.3s ease-in-out;
        }
    }
}

.menu.show {
    left: 0; /* slide in */
}

body.menu-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.4);
    z-index: 999;
}
