@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@100..900&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Roboto Slab", "ownerFont", serif;
    font-weight: 500;
    font-style: normal;
}


/* @font-face {
    font-family: 'ownerFont';
    src: url('/fonts/owner.TTF') format('truetype');
}

body {
    font-family: 'ownerFont', sans-serif;
} */

/* GENERAL */
:root {
    --main-color: rgb(0, 110, 100);
}

body::-webkit-scrollbar,
.empdetail::-webkit-scrollbar,
.over::-webkit-scrollbar,
.tablediv::-webkit-scrollbar {
    /* width: 0;
    height: 10px; */
    display: none;
}

.over::-webkit-scrollbar-thumb,
.tablediv::-webkit-scrollbar-thumb {
    background-color: rgb(150, 0, 0);
    border-radius: 5px;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.df {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    align-items: center;
}

.p-f {
    position: fixed;
}

.p-r {
    position: relative;
}

.p-a {
    position: absolute;
}

.body {
    width: 100%;
    height: 94vh;
    background: linear-gradient(145deg, white, var(--main-color));
    padding: 1px;
    display: flex;
    justify-content: space-evenly;
}

.imgdiv {
    margin: auto;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

img {
    border-radius: 5px;
}

.red {
    color: red;
}

.black {
    color: black;
}

.blue {
    color: blue;
}

.white {
    color: white;
}

.left {
    text-align: left;
}

.right {
    text-align: right;
}

.center {
    text-align: center;
}

.italic {
    font-style: italic;
}

a {
    text-decoration: none;
    cursor: pointer;
    color: white;
}

a:hover {
    color: blue;
}

p {
    font-size: 11px;
}

.span, #span {
    width: 98%;
    font-size: 12px;
    display: block;
    text-align: center;
    background-color: white;
    border: 1px solid black;
    border-radius: 5px;
    font-weight: 500;
    padding: 5px 10px;
    margin: auto;
}

.formdiv {
    padding: 0 3px;
}

.mformdiv {
    width: 350px;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 2;
    /* display: none; */
    background-color: var(--formbg);
    border: 1px solid white;
}

.myForm {
    border: 1px solid black;
    border-radius: 7px;
    box-shadow: 0 0 20px 2px rgba(15, 15, 15, 0.5);
    padding-bottom: 3px;
    overflow: hidden;
}

.myForm h3 {
    background-color: var(--main-color);
    padding: 5px;
    text-align: center;
    text-transform: uppercase;
    color: white;
    font-size: 16px;
    font-weight: 500;
}

.aa {
    width: 96%;
    display: flex;
    justify-content: space-between;
    border: 1px solid black;
    border-radius: 5px;
    overflow: hidden;
    margin: 7px auto;
}

.aa label {
    font-size: 11px;
    width: 35%;
    padding: 10px 10px 6px 10px;
    background: linear-gradient(135deg, white, var(--main-color));
    color: black;
    text-align: right;
}

.aa input,
.aa select {
    width: 65%;
    padding: 8px 10px;
    font-size: 14px;
    font-weight: 500;
    color: darkblue;
    border: none;
    outline: none;
    font-family: Arial, Helvetica, sans-serif;
}

.aa input:focus,
.aa select:focus {
    border: 1px solid blue;
    border-radius: 0 5px 5px 0;
    background-color: yellow;
}

.border {
    border: 1px solid black;
    border-radius: 5px;
}

.updown {
    width: 94%;
    margin: 5px auto;
    background: none;
}

.updown>label {
    padding: 1px 10px;
    font-size: 12px;
    font-weight: 400;
}

.updown>select,
.updown>input {
    width: 100%;
    border: none;
    border-bottom: 2px solid black;
    padding: 5px 10px;
    font-size: 14px;
    font-weight: 500;
    color: darkred;
    outline: none;
    background: none;
    ;
}

.btndiv {
    width: 100%;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    text-align: center;
    padding: 5px;
    height: auto;
    margin-top: 5px;
}

.btndiv input:focus {
    background: linear-gradient(45deg, white, var(--main-color));
}

.btndiv input {
    width: 40%;
    padding: 9px 2px;
    background: linear-gradient(135deg, var(--main-color), white);
    color: blue;
    border: 1px solid black;
    border-radius: 7px;
    margin: auto;
    margin-bottom: 10px;
    outline: none;
    font-size: 13px;
    font-weight: bold;
}

.btndiv .btnupdate {
    background: linear-gradient(45deg, var(--main-color), white, var(--main-color));
    color: red;
}

.btnedit {
    padding: 1px 7px;
    border: 1px solid black;
    border-radius: 3px;
    color: red;
    background: linear-gradient(135deg, var(--main-color), white);
}

.btnedit:hover,
.aa button:hover,
.btnadd:hover,
.btnupdate:hover {
    cursor: pointer;
    background: linear-gradient(135deg, white, var(--main-color));
    color: black;
}

.btndiv .btndel {
    color: red;
}

.btndel:hover {
    background: linear-gradient(180deg, var(--main-color), rgb(200, 0, 0), var(--main-color));
    color: white;
}


.tablediv {
    overflow: auto;
    margin: 1px 0;
    scroll-behavior: smooth;
}

table {
    margin: auto;
    border-collapse: collapse;
}

table tr {
    background-color: white;
    cursor: pointer;
    border-bottom: 1px solid black;
}

tr th {
    background-color: var(--main-color);
    color: white;
    padding: 7px 0;
    align-content: center;
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    position: sticky;
    top: 0;
    z-index: 0;
}

table tr:hover {
    background: linear-gradient(180deg, var(--main-color), white, var(--main-color));
}

.firstth {
    border-radius: 5px 0 0 0;
}

.lastth {
    border-radius: 0 5px 0 0;
}

td {
    /* font-family: sans-serif, 'Arial Narrow Bold'; */
    padding: 5px;
    color: blue;
    font-size: 12px;
    /* font-weight: 400; */
}

#hidden, .hidden {
    display: none;
}

.boxshadow {
    border: 1px solid black;
    border-radius: 3px;
    box-shadow: 2px 10px 20px 2px rgba(14, 14, 14, 0.7);
}

.iddate {
    display: flex;
    justify-content: space-between;
    width: 96%;
    margin: auto;
    margin-top: 5px;
}

.iddate input {
    border: none;
    outline: none;
    padding: 5px;
    margin-left: 1px;
    font-size: 10px;
    width: 55%;
    border: 1px solid black;
    border-radius: 5px;
    text-align: center;
    font-size: 14px;
}

.iddate input:first-child {
    width: 40%;
}

.over {
    overflow: auto;
}

/* GENERAL END */
/* LogIn Page */

form .underline {
    width: 80%;
    border-bottom: 2px solid blue;
    display: flex;
    margin: auto;
    margin-top: 30px;
    height: 30px;
    position: relative;
}

.underline i {
    width: 15%;
    font-size: 20px;
    color: blue;
}

.underline input {
    width: 85%;
    border: none;
    outline: none;
    background-color: rgba(255, 255, 255, 0.0);
    font-size: 15px;
}

form .underline p {
    position: absolute;
    right: 5px;
    top: -15px;
    text-align: right;
}

.underline input:focus {
    background-color: rgba(255, 255, 255, 0.0);
}



.btnlogin:hover {
    background-color: yellow;
    color: black;
    cursor: pointer;
}

.icon i {
    padding: 5px 10px;
    font-size: 20px;
    color: blue;
}

/* Parent Page */
.navigation {
    width: 100%;
    display: flex;
    background-color: var(--main-color);
    position: sticky;
    top: 0px;
    z-index: 1;
    padding: 1px;
}

.atag,
.header {
    width: 47%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    color: white;
    gap: 2px;
    flex-wrap: wrap;
    text-align: center;
}

.header {
    width: 53%;
}

/* WELCOME  */

/* Register */
.regbody {
    height: 92vh;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 5px;
    overflow: hidden;
}

.regform {
    width: 24%;
    border-radius: 10px;
    overflow: hidden;
    height: 430px;
    border: 1px solid black;
    padding: 1px;
    background: linear-gradient(135deg, white, var(--main-color));
}

.reglist {
    width: 76%;
    height: 91vh;
    overflow: auto;
    display: flex;
    flex-wrap: wrap;
    padding: 3px;
}

.reglist form {
    width: 230px;
}

.empdiv {
    width: 33%;
}

/* Media Query */
@media only screen and (max-width: 900px) {
    #scrolldiv {
        display: none;
    }

    .profitdiv .profitover {
        height: auto;
    }

    .empdiv {
        width: 49%;
    }

    /* Parent */

    .navigation {
        flex-direction: column-reverse;
    }

    .navigation .header,
    .navigation .atag {
        width: 100%;
    }

    /* WelcomePage */
    .textdiv,
    .logindiv,
    .userdiv {
        width: 33%;
    }

    /* AccountPage */
    .formdiv {
        width: 35%;
    }

    .tablediv {
        width: 65%;
    }

    .body .formdiv {
        width: 35%;
    }

    .reportdiv {
        width: 100%;
        margin-bottom: 5px;
    }

    /* ExchangePage */

    form .child {
        width: 33%;
    }

    .mformdiv form .child {
        width: 98%;
    }

    /* delpage */
    .restore h3 {
        width: 30%;
    }

    .restore #myForm {
        width: 70%;
    }

    .restore .span {
        width: 60%;
    }

    .leftdiv, .middlediv, .rightdiv {
        width: 49%;
    }

    /* ChatPage */
    .chatdiv {
        width: 70%;
    }

    /* SHOP Register */
    .tablediv .one {
        width: 90%;
    }
}

@media only screen and (max-width: 600px) {
    .over .other {
        height: auto;
    }

    .empdiv {
        width: 99%;
    }
    
    .aa input,
    .aa select{
        padding:10px;
    }

    .body {
        height: 100%;
        flex-wrap: wrap;
    }

    .header>.day,
    .header>.time{
        display: none;
    }

    /* WelcomePage */
    .textdiv,
    .logindiv,
    .userdiv {
        width: 100%;
        height: auto;
    }

    /* AccountPage */
    .body .formdiv,
    .body .tablediv {
        width: 100%;
    }

    .formdiv, .tablediv {
        width: 100%;
    }

    /* Exchange Page */
    .one {
        justify-content: space-between;
    }

    .one div {
        margin: 2px;
    }

    .one .searchaa {
        width: 100%;
    }

    form .child {
        width: 100%;
        margin-bottom: 5px;
        padding: 10px;
    }

    /* AccHistoryPage */
    .body .whform {
        width: 100%;
        margin-bottom: 5px;
    }

    /* DELETEPAGE */
    .restore h3 {
        width: 100%;
    }

    .restore #myForm {
        width: 100%;
    }

    .restore .span {
        width: 95%;
    }

    .body .formdiv,
    .smalldiv {
        width: 96%;
        margin-bottom: 3px;
    }

    .over {
        height: auto;
    }

    /* ProfitPage */
    .leftdiv, .middlediv, .rightdiv {
        width: 100%;
        padding: 5px;
    }

    /* ChatPage */
    .chatdiv {
        width: 100%;
    }

    /* RegisterPage */
    .tablediv form {
        width: 98%;
    }

    /* SHOP Register */
    .tablediv .one {
        width: 100%;
    }

}
