:root {
    --bg-color: 255, 255, 255;
    --text-color: 0, 0, 0;
    --formbg: rgb(210, 210, 210);
}

.dark {
    --bg-color: 50, 50, 50;
    --text-color: 255, 255, 255;
    --formbg: rgb(50, 50, 50);
}

body {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: rgb(var(--bg-color));
}

.topdiv {
    width: 100%;
    border-bottom: 2px solid rgb(var(--text-color));
    padding: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topdiv>* {
    position: absolute;
}

.navdiv {
    display: none;
    width: 270px;
    height: 93.5vh;
    left: 0;
    top: 6.5vh;
    background: rgba(var(--text-color), 0.9);
    z-index: 3;
}

.navdiv .items a {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: rgb(var(--bg-color));
    padding: 5px 8px;
    gap: 5px;
}

.navdiv i {
    width: 25px;
    font-size: 18px;
    color: rgb(var(--bg-color));
    text-align: left;
}

.navdiv a p {
    color: rgb(var(--bg-color));
}

.mheader {
    left: 50%;
    transform: translateX(-50%);
}

.searchdiv {
    display: flex;
    align-items: center;
}

.searchbox {
    font-size: 13px;
    color: darkblue;
    padding: 7px 10px;
    outline: none;
    margin-right: 5px;
    width: 234px;
}

.searchbox,
.crossicon {
    display: none;
}



#myModal {
    width: 270px;
    position: fixed;
    top: 20vh;
    left: 10%;
    z-index: 1;
}

.myForm {
    background: var(--formbg);
}

.footer {
    bottom: 0;
    left: 0;
    border-top: 2px solid rgb(var(--text-color));
    width: 100%;
    background: rgba(var(--bg-color), 1);
}

.icon {
    width: 19.9%;
}

.icon a {
    display: flex;
    flex-direction: column;
    color: rgb(var(--text-color));
}

i {
    font-size: 25px;
    text-align: center;
    color: var(--main-color);
}

i:hover {
    cursor: pointer;
}

.icon a i {
    color: var(--main-color);
}

.active a i {
    color: white;
}

.icon:hover {
    background: rgba(0, 120, 120, 0.7);
}

.active {
    background: var(--main-color);
}

/* toggle button */

.toggle {
    width: 40px;
    height: 20px;
    background: #ddd;
    border-radius: 50px;
    position: relative;
    cursor: pointer;
    margin: auto;
}

.toggle-circle {
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 1px;
    left: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: 0.1s;
}

/* dark mode position */
body.dark .toggle {
    background: white;
}

body.dark .toggle-circle {
    left: 21px;
}

@media only screen and (max-width: 600px) {
    body{
        height:92.5vh;
    }
    .topdiv .mheader {
        left: 160px;
        text-align:left;
        width: 200px;
    }
    header .navdiv{
        height: 93vh;
    }
    .mformdiv {
        width: 100%;
        height: 93vh;
    }
    body .tablediv{
        height:79.5vh;
    }
    body #chatpage{
        width: 100%;
        right:0;
    }
    #chattext{
        padding: 12px 10px;
    }
    body #sendbtn{
        padding: 10px 6px;
    }
}
