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

@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Oswald:wght@200..700&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Quicksand:wght@300..700&display=swap");

/* Theme Variables */
:root {
  /* Light Theme */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --border-color: #e2e8f0;
  --accent-color: #de1212;
  --accent-hover: #c00e0e;
  --header-bg: rgba(255, 255, 255, 0.9);
  --card-bg: #ffffff;
  --input-bg: #ffffff;
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.dark {
  /* Dark Theme */
  --bg-primary: #1a191f;
  --bg-secondary: #151419;
  --bg-tertiary: #2a2a2a;
  --text-primary: #ffffff;
  --text-secondary: #d1d5db;
  --text-muted: #9ca3af;
  --border-color: #374151;
  --accent-color: #de1212;
  --accent-hover: #c00e0e;
  --header-bg: rgba(0, 0, 0, 0.7);
  --card-bg: #151419;
  --input-bg: #2a2a2a;
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3), 0 1px 2px 0 rgba(0, 0, 0, 0.2);
}

*,
::before,
::after {
    border-width: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    /* font-family: "Poppins", sans-serif; */
    font-family: "Montserrat", sans-serif;
    background-color: var(--bg-primary) !important;
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    background-color: var(--bg-primary);
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
}

body.loaded #preloader {
    display: none;
}

.header-menu a {
    font-family: "Oswald", serif;
    /* font-family: "Oswald", serif; */
    font-optical-sizing: auto;
}

::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    background-color: #f5f5f5;
}

::-webkit-scrollbar {
    width: 6px;
    background-color: #f5f5f5;
}

::-webkit-scrollbar-thumb {
    background-color: #de1212;
}

.theme-shadow {
    box-shadow: inset 0 -10px 20px rgba(0, 0, 0, 0.3);
}

.theme-bg-color {
    background: #de1212;
}

.theme-color {
    color: #de1212;
}

.pagination nav ul li {
    height: 21px;
    width: 16px;
    background-color: #5d5c61;
    border: 1px solid #282828;
}

.btn-secondary {
    height: 52px;
    width: 170px;
    font-size: 1rem;
    line-height: 1.5rem;
    border-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgb(255 255 255 / var(--tw-border-opacity));
    font-family: Cormorant Garamond, serif;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    text-transform: uppercase;
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity));
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 0.3s;
    position: relative;
    z-index: 1;
}

.btn-secondary:hover {
    --tw-border-opacity: 1;
    border-color: rgb(193 157 104 / var(--tw-border-opacity));
}

.Container {
    width: 80%;
    margin: auto;
}

.css-79z5gx {
    padding: 0px !important;
    background-color: #303d70 !important;
}

.bHSWqp {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.bHSWqp .top-btn {
    font-size: 1.2rem;
    width: 3rem;
    height: 3rem;
    color: rgb(193, 157, 104);
    background-color: transparent;
    border: 3px dotted rgb(193, 157, 104);
    border-radius: 50%;
    position: fixed;
    bottom: 3rem;
    right: 5rem;
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.bHSWqp .top-btn--icon {
    animation: 1.2s linear 0s infinite alternate-reverse none running gototop;
}

/* preloader */
.banter-loader {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 72px;
    height: 72px;
    margin-left: -36px;
    margin-top: -36px;
}

.banter-loader__box {
    float: left;
    position: relative;
    width: 20px;
    height: 20px;
    margin-right: 6px;
}

.banter-loader__box:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: #fff;
}

.banter-loader__box:nth-child(3n) {
    margin-right: 0;
    margin-bottom: 6px;
}

.banter-loader__box:nth-child(1):before,
.banter-loader__box:nth-child(4):before {
    margin-left: 26px;
}

.banter-loader__box:nth-child(3):before {
    margin-top: 52px;
}

.banter-loader__box:last-child {
    margin-bottom: 0;
}

@keyframes moveBox-1 {
    9.0909090909% {
        transform: translate(-26px, 0);
    }

    18.1818181818% {
        transform: translate(0px, 0);
    }

    27.2727272727% {
        transform: translate(0px, 0);
    }

    36.3636363636% {
        transform: translate(26px, 0);
    }

    45.4545454545% {
        transform: translate(26px, 26px);
    }

    54.5454545455% {
        transform: translate(26px, 26px);
    }

    63.6363636364% {
        transform: translate(26px, 26px);
    }

    72.7272727273% {
        transform: translate(26px, 0px);
    }

    81.8181818182% {
        transform: translate(0px, 0px);
    }

    90.9090909091% {
        transform: translate(-26px, 0px);
    }

    100% {
        transform: translate(0px, 0px);
    }
}

.banter-loader__box:nth-child(1) {
    animation: moveBox-1 4s infinite;
}

.mySwiper {
    display: relative !important;
}

.swiper-button-prev {
    height: 30px !important;
    width: 30px !important;
    border-radius: 99999px;
    background-color: rgba(230, 214, 214, 0.685);
    /* border: 1px solid #282828; */
    position: absolute;
    top: 40%;
    left: 8px;
    z-index: 999;
}
.swiper-button-prev::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-image: url("/arrow-left.png");
    background-size: cover;
    background-position: center;
    width: 20px;
    height: 20px;
}
.swiper-button-next {
    height: 30px !important;
    width: 30px !important;
    border-radius: 99999px;
    background-color: rgba(230, 214, 214, 0.685);
    position: absolute;
    top: 40%;
    right: 1%;
    z-index: 99;
}

.swiper-button-next::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-image: url("/arrow-right.png");
    background-size: cover;
    background-position: center;
    width: 20px;
    height: 20px;
}

.css-hdd9l7 {
    background: #040404d9 !important;
}

@keyframes rotate {
    from {
        transform: rotate(0);
    }
    to {
        transform: rotate(360deg);
    }
}

.loader-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    background-color: #2b2b2b;
}

.loader {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}
.loader__container {
    position: relative;
    display: flex;
    align-items: center;
    height: 40px;
}

.css-1ik4h6n {
    all: unset !important;
    background-color: #7e94ee !important;
    width: 16px !important;
    max-height: 16px !important;
    cursor: pointer !important;
}

.card-1 {
    font-family: "Quicksand", serif;
    font-optical-sizing: auto;
}

.card-2 {
    font-family: "Quicksand", serif;
    font-optical-sizing: auto;
    height: 45px;
    transition: height 0.3s ease;
}

.card-2:hover {
    height: 150px;
}

.category-title {
    font-family: "Quicksand", serif;
    font-optical-sizing: auto;
}

.waqar {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, #1a191f 100%);
}

.fig::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.2);
}

button {
    font-family: "Montserrat", sans-serif;
}

.filter-by-year::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    background-color: #f5f5f5;
}

.filter-by-year::-webkit-scrollbar {
    width: 6px;
    height: 6px;
    background-color: #f5f5f5;
    cursor: pointer;
}

.filter-by-year::-webkit-scrollbar-thumb {
    background-color: #de1212;
}

.card-1-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    padding: 10px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, #000000 100%);
    z-index: 5;
}

/* .loading {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    -webkit-animation: spin 1s ease-in-out infinite;
} */

/* @keyframes spin {
    to {
        -webkit-transform: rotate(360deg);
    }
}
@-webkit-keyframes spin {
    to {
        -webkit-transform: rotate(360deg);
    }
} */

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
.rotate-gradient {
    animation: spin 4s linear infinite;
    animation-timing-function: linear; /* Ensure constant speed */
}

.Title {
    color: white;
    background-color: #de1212;
    text-align: center;
    line-height: 1.8rem;
    padding: 1rem;
    font-size: 1.125rem;
    border-bottom: 1px solid transparent;
    border-radius: 6px 6px 0 0;
    font-weight: 600;
}

#search-form {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform: translateY(-10px); 
}

#search-form.visible {
    display: block;
    opacity: 1;
    transform: translateY(0);
}
