@tailwind base;
@tailwind components;
@tailwind utilities;


::-webkit-scrollbar {
    width: 5px;
    /* Width of the entire scrollbar */
}

::-webkit-scrollbar-thumb {
    background: #7b88948b;
    /* Color of the scroll thumb */
}

::-webkit-scrollbar-track {
    background: #5a5a5a00;
    /* Color of the scrollbar track */
}


/* Website's font */
@font-face {
    font-family: 'Poppins';
    src: url('../dist/fonts/Poppins-Regular.ttf');
}

@font-face {
    font-family: 'Poppins ExtraBold';
    src: url('../dist/fonts/Poppins-ExtraBold.ttf');
}

@font-face {
    font-family: 'Poppins Bold';
    src: url('../dist/fonts/Poppins-Bold.ttf');
}



/* FOR THE IFRAME TO TAKE 95% OF WIDTH ON SMALL SCREEN SIZES */
@media screen and (max-width: 798px) {
    #popupModalFrame {
        width: 100% !important;
    }
}


/* GIVE THIS CLASS TO THE SELECTED EPIC IN PROJECT DETAILS PAGE */
.selectedEpic {
    color: white !important;
    font-weight: bold !important;
}



/* TO ANIMATE THE BURGER MENU IN THE FIXED HEADER */
/* Default state */
.burgerMenuLine {
    width: 25px;
    height: 2px;
}

/* Expanded state */
.burgerMenuLine.expanded {
    width: 2px;
    height: 25px;
}


/* SIDE BAR */
/* TO HIDE THE DESKTOP SIDE BAR AND HEADER ON SMALL SCREEN SIZES */
@media (max-width: 1200px) {
    #scrollPart {
        margin-left: 0;
        width: 100%;
    }

    .fixedSideHeader, .topHeader {
        display: none !important;
    }

    .mobileFooter {
        display: block !important;
    }
}

@media (min-width: 1200px) {
    .mobileTopHeader, .mobileFixedSideHeader {
        display: none !important;
    }

    .mobileFooter {
        display: none !important;
    }
}



/* TO ANIMATE THE USER ACTIVITY FIXED BUTTON */
@keyframes zoomInOut {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

.usersActivityIcon {
    animation: zoomInOut 1.5s infinite;
}


/* DRAGGABLE SLIDER */
.swiper-container {
    width: 100%;
    height: 100%;
    overflow: hidden !important;
    position: relative;
}

.swiper-slide {
    width: 33% !important;
    margin-right: 20px;
}

.swiper-slide:last-child {
    margin-right: 0 !important;
}

.swiper-wrapper::-webkit-scrollbar {
    width: 0;
    background: transparent;
}

/* Hide the scrollbar thumb when not scrolling */
.swiper-wrapper::-webkit-scrollbar-thumb {
    background: transparent;
}

/* Hide the scrollbar track when not scrolling */
.swiper-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

@media screen and (max-width: 500px) {
    .swiper-slide {
        width: 90% !important;
    }
}


@media screen and (max-width: 798px) {
    #notesContainer {
        display: block;
    }
}



/* TO ANIMATE THE SIDE BAR DROPDOWNS */
.menuDropdownItems {
    display: none;
    visibility: hidden;
    opacity: 0;
    position: relative;
    transition: opacity 0.6s ease, height 0.6s ease;
}

.menuDropdownItems.active {
    display: block;
    visibility: visible;
    opacity: 1;
    animation: slideIn 0.6s forwards;
}


#mobileUserProfileDropdown {
    display: none;
    visibility: hidden;
    opacity: 0;
    position: relative;
    transition: opacity 0.6s ease, height 0.6s ease;
}

#mobileUserProfileDropdown.active {
    display: block;
    visibility: visible;
    opacity: 1;
    animation: slideIn 0.6s forwards;
}

@keyframes slideIn {
    from {
        transform: translateY(-10px);
    }

    to {
        transform: translateY(0);
    }
}