@import url("https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&display=swap");
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    /* display: flex; */
    display: block;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(to right, #9a137b34, #e029af33), url(bgrMail.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.wrapper {
    position: absolute;
    width: 300px;
    height: 320px;
    display: none;
    justify-content: center;
    align-items: center;
    /* background: rgba(255, 255, 255, 0.4); */
    background-image: url("./background-8-3-dep-nhat_011144941.jpg");
    box-shadow: 5px 2px 8px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(3px);
    border-radius: 5px;
    transition: all 0.25s;
    flex-direction: column;
    overflow: hidden;
    z-index: 999;
}

.employee:hover .wrapper {
    display: flex;
    /* Hiển thị wrapper khi di chuột vào employee */
}

.wrapper.active {
    display: flex;
    width: 85vw;
    height: 80vh;
    animation: fadeIn 0.5s ease-in-out;
    position: fixed;
    top: 7%;
    left: 7%;
    flex-direction: row;
}

@media only screen and (max-width: 600px) {
    .typewriter-content {
        display: none;
    }
    .wrapper.active {
        display: flex;
        width: 100vw;
        height: 100vh;
        animation: fadeIn 0.5s ease-in-out;
        position: fixed;
        top: 0%;
        left: 0%;
        flex-direction: column;
    }
    .wrapper.active .content {
        position: relative;
        width: 90%;
        height: 95%;
        background: #fff;
        opacity: 0;
        pointer-events: none;
        border-radius: 10px;
        margin-left: 16px;
        /* padding-top: 16px; */
        overflow-y: scroll;
        margin-bottom: 16px;
        font-size: 16px;
        justify-content: start;
    }
    .wrapper.active .content h1 {
        margin-top: 35px;
    }
    .wrapper.active p {
        font-size: 20px;
    }
    .imagecontent img {
        width: auto;
        height: 38vh !important;
        object-fit: cover;
        border-radius: 10px;
        margin-top: 12px;
        max-width: 98vw !important;
    }
    .loader {
        display: none;
    }
    .wrapper.active i {
        font-size: 30px;
        padding: 10px;
    }
    .search-container {
        /* flex-direction: column;
        align-items: center; */
    }
    .search-container input {
        width: 200px !important;
    }
}

.loader {
    position: relative;
    width: 250px;
    height: 250px;
}

.cardHover {
    position: absolute;
    width: 250px;
    height: 250px;
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 0;
}

.box-heart {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: loaderElectron 0.5s alternate infinite;
    z-index: -1;
}

.heart {
    position: absolute;
    background: url("heart.png");
    background-size: cover;
    width: 120px;
    height: 120px;
    filter: drop-shadow(0 0 10px red) drop-shadow(0 0 40px red) drop-shadow(0 0 60px red);
}

@keyframes loaderElectron {
    0% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1.1);
    }
}

.inner {
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
}

.inner.one {
    left: 0%;
    top: 0%;
    animation: rotate-one calc(var(--i) * 1s) linear infinite;
    border-bottom: 4px solid red;
    border-right: 4px solid red;
    filter: drop-shadow(0 0 5px red) drop-shadow(0 0 5px red);
}

.inner.one::before {
    position: absolute;
    content: "";
    background: url("heart.png");
    background-size: cover;
    width: 30px;
    height: 30px;
    z-index: 10000000s;
    top: 40%;
    transform: translate(-50%, 30%);
}

.inner.two {
    right: 0%;
    top: 0%;
    animation: rotate-two calc(var(--i) * 1s) linear infinite;
    border-right: 4px solid red;
    border-top: 4px solid red;
    filter: drop-shadow(0 0 5px red) drop-shadow(0 0 5px red);
}

.inner.two::before {
    position: absolute;
    content: "";
    background: url("heart.png");
    background-size: cover;
    width: 30px;
    height: 30px;
    right: 50%;
    bottom: 0;
    transform: translate(30%, 50%);
}

.inner.three {
    right: 0%;
    bottom: 0%;
    animation: rotate-three calc(var(--i) * 1s) linear infinite;
    border-top: 4px solid red;
    border-left: 4px solid red;
    filter: drop-shadow(0 0 5px red) drop-shadow(0 0 10px red);
}

.inner.three::before {
    position: absolute;
    background: url("heart.png");
    background-size: cover;
    width: 30px;
    height: 30px;
    content: "";
    right: 2px;
    top: 50%;
    transform: translate(50%, -120%);
}

@keyframes rotate-one {
    0% {
        transform: rotateX(35deg) rotateY(-45deg) rotateZ(0deg);
    }
    100% {
        transform: rotateX(35deg) rotateY(-45deg) rotateZ(360deg);
    }
}

@keyframes rotate-two {
    0% {
        transform: rotateX(50deg) rotateY(10deg) rotateZ(0deg);
    }
    100% {
        transform: rotateX(50deg) rotateY(10deg) rotateZ(360deg);
    }
}

@keyframes rotate-three {
    0% {
        transform: rotateX(35deg) rotateY(55deg) rotateZ(0deg);
    }
    100% {
        transform: rotateX(35deg) rotateY(55deg) rotateZ(360deg);
    }
}

.wrapper button {
    position: relative;
    padding: 10px 20px;
    top: 120px;
    background: rgb(255, 69, 109);
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.5s;
    font-weight: 600;
}

button p {
    transition: all 0.5s ease-in-out;
}

button:hover p {
    transform: scale(1.1);
}

.wrapper button:hover {
    background: rgb(222, 24, 67);
}

.content {
    /* position: relative;
    top: 20px;
    width: 50vw;
    background: #fff;
    opacity: 0;
    pointer-events: none;
    border-radius: 10px; */
    position: relative;
    width: 60%;
    height: 95%;
    background: #fff;
    opacity: 0;
    pointer-events: none;
    border-radius: 10px;
    margin-right: 16px;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 10px;
}

.content h1 {
    opacity: 0;
    pointer-events: none;
    text-align: center;
    font-family: "Dancing Script", cursive;
    font-size: 28px;
}

.content>p {
    opacity: 0;
    pointer-events: none;
    margin-top: 10px;
    font-family: "Dancing Script", cursive;
    padding: 0 15px;
    font-size: 22px;
    text-align: center;
    -webkit-text-fill-color: rgba(0, 200, 200, 0.1);
    -webkit-background-clip: text;
    background-image: url("https://i.pinimg.com/originals/20/21/7f/20217f7fa2c9701b8128d8fb153a4db9.gif");
    font-family: "Allura", cursive;
    padding: -2%;
    overflow: hidden;
}

.content i {
    position: absolute;
    opacity: 0;
    top: 5px;
    right: 5px;
    cursor: pointer;
}

.wrapper.active .content {
    opacity: 1;
    pointer-events: visible;
}

.wrapper.active h1 {
    transition: all 0.5s;
    animation: text1 1s forwards ease-in-out 0.5s;
}

.wrapper.active p {
    animation: text1 1s forwards ease-in-out 1s;
}

.wrapper.active i {
    animation: text1 1s forwards ease-in-out 1.3s;
}

@keyframes text1 {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.departments-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 20px;
    /* transition: transform 5s ease-in-out; */
}

@keyframes fadeInDepartment {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.department-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 10px;
    padding: 20px;
    /* transition: transform 0.3s ease-in-out; */
    animation: fadeInDepartment 5s ease-in-out;
    cursor: pointer;
}

.department-card:hover {
    transform: scale(1.05);
}

.department-card.hide {
    opacity: 0;
    pointer-events: none;
}

.department-name {
    font-size: 18px;
    font-weight: bold;
}

.department-description {
    font-size: 14px;
    color: #555;
}

.employees-container {
    display: none;
    padding: 10px;
    background-color: #fff;
    border-radius: 8px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.employee {
    padding: 10px;
    margin: 5px 0;
    font-size: 16px;
    color: #2c3e50;
    animation: fadeIn 0.5s ease-in-out;
}

.back-button {
    margin-top: 10px;
    cursor: pointer;
    color: #3498db;
    text-decoration: underline;
}

.back-button:hover {
    color: #2980b9;
}

.employee-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 10px;
    padding: 20px;
    transition: transform 0.3s ease-in-out;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 250px;
    animation: fadeInDepartment 3s ease-out;
    cursor: pointer;
}

.employee-card:hover {
    transform: scale(1.05);
}

.employee-image {
    width: 100px;
    height: 150px;
    object-fit: cover;
}

.employee-name {
    font-family: "Dancing Script", cursive;
    font-size: 18px;
}

.back-button {
    position: fixed;
    top: 1%;
    left: 2%;
    background: #3498db;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    text-decoration: none;
}

.typewriter {
    display: flex;
    justify-content: center;
}

@keyframes slideInDown {
    0% {
        opacity: 0;
        transform: translateY(-50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.typewriter {
    padding: 50px 0;
    font-family: "Calligraffitti", cursive;
    font-weight: 700;
    font-size: 25px;
    /* position: absolute; */
    text-shadow: -15px 5px 20px #ced0d3;
    top: 50%;
    left: 50%;
    /* transform: translate(-50%, -50%); */
    letter-spacing: 0.02em;
    text-align: center;
    color: #f9f1cc;
    text-shadow: 5px 5px 0px #ffb650, 10px 10px 0px #ffd662, 15px 15px 0px #ff80bf, 20px 20px 0px #ef5097, 25px 25px 0px #6868ac, 30px 30px 0px #90b1e0;
    animation: slideInDown 2s ease-out;
}

.typewriter-content {
    padding: 50px;
    font-family: "Calligraffitti", cursive;
    font-weight: 300;
    font-size: 20px;
    /* position: absolute; */
    text-shadow: -15px 5px 20px #ced0d3;
    top: 50%;
    left: 50%;
    /* transform: translate(-50%, -50%); */
    letter-spacing: 0.02em;
    text-align: center;
    color: rgb(46 62 72);
    /* text-shadow: 5px 5px 0px #ffb650, 10px 10px 0px #ffd662, 15px 15px 0px #ff80bf, 20px 20px 0px #ef5097, 25px 25px 0px #6868ac, 30px 30px 0px #90b1e0; */
    animation: slideInDown 2s ease-out;
    font-style: italic;
}

.imagecontent img {
    /* width: auto;
    height: 35vh;
    object-fit: cover;
    border-radius: 10px; */
    max-width: 40vw;
    width: auto;
    height: 70vh;
    object-fit: cover;
    border-radius: 10px;
}

.box-header {
    display: flex;
    width: 60vw;
    justify-content: center;
    align-items: center;
    gap: 90px;
}

.fa-xmark {
    left: 3%;
    top: 2%;
    font-size: 25px;
}

.center {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
}

.table {
    width: 790px;
    height: 150px;
    background-color: #d4e5ff;
}

.table .monitor-wrapper {
    background: #050321;
    width: 770px;
    height: 130px;
    box-shadow: 0px 2px 2px 2px rgba(0, 0, 0, 0.3);
}

.table .monitor-wrapper .monitor {
    width: 700px;
    height: 100px;
    background-color: #344151;
    overflow: hidden;
    white-space: nowrap;
    box-shadow: inset 0px 5px 10px 2px rgba(0, 0, 0, 0.3);
}

.table .monitor-wrapper .monitor h2 {
    font-family: "VT323", monospace;
    font-size: 100px;
    position: relative;
    display: inline-block;
    animation: move 20s infinite linear;
    color: #ebb55f;
}

.box-audio {
    padding: 20px 50px 50px 50px;
    font-family: "Calligraffitti", cursive;
    font-weight: 300;
    font-size: 20px;
    text-shadow: -15px 5px 20px #ced0d3;
    top: 50%;
    left: 50%;
    letter-spacing: 0.02em;
    text-align: center;
    color: rgb(46 62 72);
    animation: slideInDown 2s ease-out;
    font-style: italic;
    cursor: pointer;
}

.box-audio:hover {
    transform: scale(1.05);
}


/*  */

.box-more {
    font-family: "Helvetica", "Arial", sans-serif;
    display: inline-block;
    font-size: 12px;
    padding: 5px 10px;
    /* margin-top: 100px; */
    /* margin-bottom: 60px; */
    -webkit-appearance: none;
    appearance: none;
    background-color: #ff0081;
    color: #fff;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    position: relative;
    transition: transform ease-in 0.1s, box-shadow ease-in 0.25s;
    box-shadow: 0 2px 25px rgba(255, 0, 130, 0.5);
}

.box-more:hover {
    background-color: #fa69b2;
    /* Màu nền khi hover */
}

.search-container {
    display: flex;
    justify-content: center;
    gap: 5px;
}

.btn-search {
    background-color: #d3d3d3;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 10px;
    /* transition: transform 0.3s ease-in-out; */
    /* animation: fadeInDepartment 5s ease-in-out; */
    cursor: pointer;
    width: 120px;
    height: 40px;
    gap: 5px;
    display: flex;
    justify-content: center;
}

.search-container input {
    border: none;
    border-radius: 5px;
    padding: 10px;
    height: 40px;
    width: 300px;
}