﻿@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700;900&display=swap");

* {
    --dark: #393939;
    --red: #077abc;
}
.clk {
    cursor: pointer;
    color: rgb(255 255 255);
    font-size: 17px;
    float: right;
    font-weight: 700;
    position: absolute;
    right: 30px;
    top: 18px;
}
div.dt-buttons {
    position: absolute;
    width: 50%;
    top: 27px;
}
.scrlfaculty {
    position: absolute;
    width: 20%;
    overflow-y: scroll;
    min-height: 45em;
    max-height: 100%;
    z-index: 99999;
    background: white;
    left: -20em;
    top: -2em;
}
.xclose {
    cursor: pointer;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    position: absolute;
    top: 0;
    left: 0;
    padding: 10px;
    background: #e52424;
    border-radius: 6px;
    display: block;
}
@media only screen and (max-width: 850px) {
    .scrlfaculty {
        position: absolute;
        width: 80%;
        overflow-y: scroll;
        min-height: 45em;
        max-height: 100%;
        z-index: 99999;
        background: white;
        left: -1em;
        top: -17em;
        content:'X';
    
    }
    .xclose {
        cursor: pointer;
        color: #ffffff;
        font-size: 1rem;
        font-weight: 700;
        position: absolute;
        top: -16em;
        right: 26px;
        padding: 10px;
        background: #e52424;
        border-radius: 6px;
        display:block;
    }
    .clk {
        cursor: pointer;
        color: rgb(255 255 255);
        font-size: 17px !important;
        float: right;
        font-weight: 700;
        position: absolute;
        right: 22px;
        top: 20px;
        white-space: nowrap;
    }

    div.dt-buttons {
        position: relative !important;
        width: 100% !important;
        top: 0px !important;
        display: flex;
        margin-bottom: 18px;
    }

    .dataTables_wrapper .dataTables_paginate {
        margin-top:;
        position: absolute;
        bottom: 0;
        right: 0;
        display: block;
        z-index: 99;
        background: #efeeee;
    }
}
    body {
        margin: 0;
        font-family: Roboto, Arial, Helvetica, sans-serif;
        position: relative;
    }

    .credit {
        position: absolute;
        top: 15px;
        right: 10px;
        border-radius: 10px;
        padding: 10px;
        background-color: rgb(248, 92, 113);
        cursor: pointer;
        z-index: 2;
        overflow: hidden;
    }

        .credit a {
            text-decoration: none;
            color: #eee;
            padding: 10px;
        }

        .credit:after {
            box-sizing: border-box;
            content: "";
            border: 8px solid;
            border-color: transparent transparent transparent #eee;
            width: 8px;
            height: 8px;
            position: absolute;
            right: 1px;
            top: 50%;
            transform: translateY(-50%);
            transition: all 0.5s;
        }

        .credit:hover::after {
            right: -3px;
        }

    .test {
        background-color: #1769ff;
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: -100%;
        transition: 0.5s ease-in-out;
        z-index: -1;
    }

    .credit:hover .test {
        left: 0;
    }

    .business2 {
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .business2 .front,
        .business2 .back {
            background-color: var(--dark);
            width: 280px;
            height: 480px;
            margin: 20px;
            border-radius: 25px;
            overflow: hidden;
            position: relative;
        }

        .business2 svg {
            width: 50px;
        }

        .business2 h1,
        .business2 h2,
        .business2 p {
            margin: 0;
            color: #eee;
        }

        .business2 .red {
            height: 35%;
            background-color: var(--red);
        }

        .business2 .head {
            display: flex;
            justify-content: center;
            padding: 25px 0;
        }

            .business2 .head img {
                width: 40px;
            }

            .business2 .head > div {
                text-align: center;
                margin: 0 10px;
                text-transform: uppercase;
            }

                .business2 .head > div p {
                    font-size: 0.8rem;
                    font-weight: 600;
                }

        .business2 .avatar {
            position: absolute;
            width: 50%;
            left: 50%;
            top: 100px;
            transform: translate(-50%);
            text-align: center;
        }

        .business2  {
         
            padding: 10px;
            box-sizing: border-box;
             
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .img {
     background-color: #bfc2c7; */
    padding: -10px;
    box-sizing: border-box;
    border-radius: 50%;
     border: 6px solid var(--dark); */
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
     }

            .business2 .img img {
                width: 80%;
                padding: 10px 0;
            }

        .business2 .avatar p:nth-of-type(1) {
            text-transform: uppercase;
            font-weight: 900;
        }

        .business2 .infos {
            position: absolute;
            bottom: 5%;
            left: 5%;
        }

            .business2 .infos > div {
                display: flex;
                margin: 0;
            }

                .business2 .infos > div svg {
                    width: 25px;
                    height: 25px;
                    margin-right: 10px;
                    background-color: var(--red);
                    padding: 8px;
                    border-radius: 7px;
                }

                .business2 .infos > div p {
                    font-size: 0.8rem;
                    margin: 5px 0;
                    font-weight: 500;
                }

        /* back*/
        .business2 .back .top {
            width: 100%;
            box-sizing: border-box;
            height: 70%;
            background: url("https://raw.githubusercontent.com/MohcineDev/Business-Card/main/imgs/e.webp") center;
            filter: contrast(160%);
            position: relative;
        }

            .business2 .back .top::after {
                content: "";
                width: 100%;
                height: 100%;
                position: absolute;
                z-index: 10;
                background: linear-gradient(rgba(71, 11, 11, 0.8), rgba(240, 8, 8, 0.5));
            }

        .business2 .back .top {
            position: relative;
        }

            .business2 .back .top div img {
                width: 40px;
                margin: 10px;
            }

            .business2 .back .top div {
                position: absolute;
                display: flex;
                flex-direction: column;
                align-items: center;
                top: 40%;
                left: 19%;
                z-index: 11;
                filter: contrast(80%);
                text-transform: uppercase;
            }

    .webicon {
        background-color: var(--dark);
        border-radius: 50%;
        width: 70%;
        padding: 20px 0;
        position: absolute;
        top: calc(70% - 40px);
        left: 15%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .webicon div {
            background-color: var(--red);
            border-radius: 50%;
            padding: 5px 4px 2px 5px;
        }

    .business2 .back > p {
        text-align: center;
        margin-top: 30%;
        color: var(--red);
    }




.timetable {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

    .timetable th,
    .timetable td {
        border: 1px solid #ddd;
        padding: 12px;
        text-align: center;
    }

    .timetable th {
        background-color: #007acc;
        color: #fff;
        position: sticky;
        top: 0;
    }

    .timetable tr:nth-child(even) td {
        background: #fafafa;
    }

@media (max-width: 600px) {
    .timetable th, .timetable td {
        padding: 8px;
        font-size: 14px;
    }
}