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

@layer utilities {
    @font-face {
        font-family: "Hisense Sans Alfabet Light";
        src: url("../fonts/Hisense Sans Alfabet Light.otf") format("opentype");
        font-weight: 300;
    }

    @font-face {
        font-family: "Hisense Sans Alfabet Medium";
        src: url("../fonts/Hisense Sans Alfabet Medium.otf") format("opentype");
        font-weight: 500;
    }

    @font-face {
        font-family: "Hisense Sans Alfabet Bold";
        src: url("../fonts/Hisense Sans Alfabet Bold.otf") format("opentype");
        font-weight: 700;
        /* Updated to a bold weight, you can adjust this value */
    }

    @font-face {
        font-family: "Hisense Sans Alfabet";
        src: url("../fonts/Hisense Sans Alfabet.otf") format("opentype");
        font-weight: 400;
    }

    @font-face {
        font-family: "InkBrushArabic";
        src: url("../fonts/InkBrushArabic.otf") format("opentype");
        font-weight: 400;
    }

    .custom-font-InkBrushArabic {
        font-family: "InkBrushArabic", sans-serif;
        font-weight: 400;
    }

    .custom-font-light {
        font-family: "Hisense Sans Alfabet Light", sans-serif;
        font-weight: 400;
    }

    .custom-font-medium {
        font-family: "Hisense Sans Alfabet Medium", sans-serif;
        font-weight: 400;
    }

    .custom-font-normal {
        font-family: "Hisense Sans Alfabet", sans-serif;
        font-weight: 400;
    }

    .custom-font-bold {
        font-family: "Hisense Sans Alfabet Bold", sans-serif;
        font-weight: 400;
    }

    .w-customWidth {
        width: 137.03px;
    }

    .h-customHeight {
        height: 72px;
    }



    * {
        font-family: "Hisense Sans Alfabet", sans-serif;
        scroll-behavior: smooth;
    }

    #navbar {
        transition: top 0.8s ease-in-out;
    }

    .bf-image-container {
        position: relative;
    }

    .bf-image-container img {
        display: block;
    }

    .bf-image-label {
        position: absolute;
        bottom: 0;
        right: 0;
        color: #ffffff;
        padding: 1em;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        opacity: 0;
        -webkit-transform: translateY(20px);
        -moz-transform: translateY(20px);
        -ms-transform: translateY(20px);
        -o-transform: translateY(20px);
        transform: translateY(20px);
        -webkit-transition: -webkit-transform 0.3s 0.7s, opacity 0.3s 0.7s;
        -moz-transition: -moz-transform 0.3s 0.7s, opacity 0.3s 0.7s;
        transition: transform 0.3s 0.7s, opacity 0.3s 0.7s;
    }

    .bf-image-label.is-hidden {
        visibility: hidden;
    }

    .is-visible .bf-image-label {
        opacity: 1;
        -webkit-transform: translateY(0);
        -moz-transform: translateY(0);
        -ms-transform: translateY(0);
        -o-transform: translateY(0);
        transform: translateY(0);
    }

    .bf-resize-img {
        position: absolute;
        top: 0;
        left: 0;
        width: 0;
        height: 100%;
        overflow: hidden;
        -webkit-transform: translateZ(0);
        -moz-transform: translateZ(0);
        -ms-transform: translateZ(0);
        -o-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        /* filter: grayscale(0%); */
        border-right: 2px solid rgb(255, 255, 255);
    }

    .bf-resize-img img {
        position: absolute;
        left: 0;
        top: 0;
        display: block;
        height: 100%;
        width: auto;
        max-width: none;
    }

    .bf-resize-img .bf-image-label {
        right: auto;
        left: 0;
    }

    .is-visible .bf-resize-img {
        width: 50%;
        -webkit-animation: bf-bounce-in 0.7s;
        -moz-animation: bf-bounce-in 0.7s;
        animation: bf-bounce-in 0.7s;
    }

    @-webkit-keyframes bf-bounce-in {
        0% {
            width: 0;
        }

        60% {
            width: 55%;
        }

        100% {
            width: 50%;
        }
    }

    @-moz-keyframes bf-bounce-in {
        0% {
            width: 0;
        }

        60% {
            width: 55%;
        }

        100% {
            width: 50%;
        }
    }

    @keyframes bf-bounce-in {
        0% {
            width: 0;
        }

        60% {
            width: 55%;
        }

        100% {
            width: 50%;
        }
    }

    .bf-handle {
        position: absolute;
        height: 44px;
        width: 44px;
        left: 50%;
        top: 50%;
        margin-left: -22px;
        margin-top: -22px;
        border-radius: 50%;
        background: #2f80ed no-repeat center center;
        cursor: move;
        box-shadow: 0 0 0 6px rgba(0, 0, 0, 0.2), 0 0 10px rgba(0, 0, 0, 0.6),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
        opacity: 0;
        -webkit-transform: translate3d(0, 0, 0) scale(0);
        -moz-transform: translate3d(0, 0, 0) scale(0);
        -ms-transform: translate3d(0, 0, 0) scale(0);
        -o-transform: translate3d(0, 0, 0) scale(0);
        transform: translate3d(0, 0, 0) scale(0);
    }

    .bf-handle i {
        color: #fff;
    }

    .bf-handle i:first-child {
        padding: 13.6px 3px 13.5px 10.5px;
    }

    .bf-handle.draggable {
        background-color: #0e2031;
    }

    .is-visible .bf-handle {
        opacity: 1;
        -webkit-transform: translate3d(0, 0, 0) scale(1);
        -moz-transform: translate3d(0, 0, 0) scale(1);
        -ms-transform: translate3d(0, 0, 0) scale(1);
        -o-transform: translate3d(0, 0, 0) scale(1);
        transform: translate3d(0, 0, 0) scale(1);
        -webkit-transition: -webkit-transform 0.3s 0.7s, opacity 0s 0.7s;
        -moz-transition: -moz-transform 0.3s 0.7s, opacity 0s 0.7s;
        transition: transform 0.3s 0.7s, opacity 0s 0.7s;
    }

    /*  */

    .progress-wrap {
        right: 25px;
        bottom: 25px;
        color: white;
        position: fixed;
        right: 50px;
        bottom: 50px;
        height: 46px;
        width: 46px;
        cursor: pointer;
        border-radius: 50px;
        box-shadow: inset 0 0 0 2px white;
        z-index: 1;
        opacity: 0;
        visibility: hidden;
        transform: translateY(15px);
        transition: all 200ms linear;
    }

    .progress-wrap input {
        z-index: 1;
    }

    .progress-wrap input:checked+html {
        -ms-scroll-snap-type: unset;
        scroll-snap-type: unset;
    }

    .progress-wrap.active-progress {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .progress-wrap::after {
        position: absolute;
        content: "↑";
        text-align: center;
        line-height: 46px;
        font-size: 24px;
        color: #01cccc;
        left: 0;
        top: -2px;
        height: 46px;
        width: 46px;
        cursor: pointer;
        display: block;
        z-index: 1;
        transition: all 200ms linear;
    }

    .progress-wrap:hover::after {
        opacity: 0;
    }

    .progress-wrap:hover::before {
        opacity: 1;
    }

    .progress-wrap::before {
        position: absolute;
        content: "↑";
        text-align: center;
        line-height: 46px;
        font-size: 24px;
        opacity: 0;
        -webkit-text-fill-color: #01cccc;
        left: 0;
        top: -2px;
        height: 50px;
        width: 50px;
        cursor: pointer;
        display: block;
        z-index: 2;
        transition: all 200ms linear;
    }

    .progress-wrap svg path {
        fill: none;
    }

    .progress-wrap svg.progress-circle path {
        stroke: #01cccc;
        stroke-width: 4;
        box-sizing: border-box;
        transition: all 200ms linear;
    }

    @import url("https://fonts.googleapis.com/css?family=Open+Sans:300");

    @-webkit-keyframes pulse {
        from {
            box-shadow: 0 0 0 0 #00aaa6;
        }

        to {
            box-shadow: 0 0 0 45px rgba(3, 149, 229, 0);
        }
    }

    @keyframes pulse {
        from {
            box-shadow: 0 0 0 0 #00aaa6;
        }

        to {
            box-shadow: 0 0 0 45px rgba(3, 149, 229, 0);
        }
    }

    .highlight {
        position: relative;
        border-radius: 2px;
        color: white;
        text-align: center;
        cursor: pointer;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }

    .highlight:before,
    .highlight:after {
        content: "";
        width: 0%;
        height: 0%;
        position: absolute;
        visibility: hidden;
        border-radius: 2px;
    }

    .highlight:before {
        border-top: 2px solid #00aaa6;
        border-right: 2px solid #00aaa6;
        /* transition: width 0.1s ease 0.3s, height 0.1s ease 0.2s, visibility 0s 0.4s; */
        top: 0;
        left: 0;
    }

    .highlight:after {
        border-left: 2px solid #00aaa6;
        border-bottom: 2px solid #00aaa6;
        bottom: 0;
        right: 0;
        transition: width 0.1s ease 0.1s, height 0.1s ease, visibility 0s 0.2s;
    }

    .highlight:hover {
        /* -webkit-animation: pulse 1s ease-out 0.4s; */
        /* animation: pulse 2s ease-out 0.4s; */
        color: #00aaa6;
        z-index: 999;
    }

    .highlight:hover:before,
    .highlight:hover:after {
        width: 100%;
        height: 100%;
        visibility: visible;
    }

    .highlight:hover:before {
        transition: width 0.1s ease, height 0.1s ease 0.1s;
    }

    .highlight:hover:after {
        transition: width 0.1s ease 0.2s, height 0.1s ease 0.3s,
            visibility 0s 0.2s;
    }

    .underLineEffcet {
        position: relative;
    }

    .underLineEffcet:after {
        background: none repeat scroll 0 0 transparent;
        bottom: 0;
        content: "";
        display: block;
        height: 1px;
        left: 50%;
        position: absolute;
        background: #01cccc;
        transition: width 0.5s ease 0s, left 0.5s ease 0s;
        width: 0;
    }

    .underLineEffcet:hover:after {
        width: 100%;
        left: 0;
    }

    /* .bgPatternImg {
    position: relative;
    background: black;
  }

  .bgPatternImg::after {
    content: "";
    background: url("../../assets/img/ramadan/bgPattern.png");
    background-size: 250px 250px;
    Fixed width and height
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.5;
    Opacity of the image
    z-index: -99;
  } */
    .bgPatternImg {
        position: relative;
        background: black;
        min-height: 100vh;
        /* Minimum height of 100% of the viewport height */
    }

    .bgPatternImg::after {
        content: "";
        background: url("../../assets/img/ramadan/bgPattern.png");
        background-size: 15vw;
        /* Relative units for better responsiveness */
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0.5;
        z-index: -99;
    }

    /* Additional styles for smaller screens */
    @media screen and (max-width: 576px) {
        .bgPatternImg::after {
            background-size: 15vw;
            /* Adjust as needed */
        }
    }

    @media screen and (max-width: 320px) {
        .bgPatternImg::after {
            background-size: 20vw;
            /* Adjust as needed */
        }
    }

    .country-logo-border {
        border: 8px solid #a08c52;
        border-radius: 100%;
    }

    .country-logo-text {
        color: #a08c52;
    }

    .rtl {
        direction: rtl;
    }

    .ltr {
        direction: ltr;
    }
}