body {
    font-family: "Montserrat", Sans-serif;
}

.navbar {
    position: fixed;
    width: 100%;
    background-color: transparent;
    transition: background-color 0.3s ease;
    z-index: 10;
}

.navbar.scrolled {
    backdrop-filter: blur(20px);
}

.material-symbols-outlined {
    font-size: 1rem;
}

.search {
    border: 0;
    background-color: transparent;
    border-radius: 0;
    padding: 12px 2px;
}

.search:focus {
    background-color: transparent;
    border: none;
    outline: none;
    box-shadow: none;
}

.dropdown-menu {
    background-color: var(--light) !important;
    padding: 0 !important;
    border: 1px solid rgba(0, 0, 0, 0.07) !important;
    box-shadow: unset !important;
}

.dropdown-item {
    color: var(--dark) !important;
    border-radius: 0;
}

.dropdown-menu .menu-item a {
    transition: 0.3s;
}

.dropdown-menu .menu-item a:hover {
    padding-left: 20px !important;
}

.dropdown-menu .menu-item:first-child a {
    border-top-left-radius: 0.25rem;
    border-top-right-radius: 0.25rem;
}

.dropdown-menu .menu-item:last-child a {
    border-bottom-left-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
}

.navbar .nav-item {
    margin: 0 !important;
}

.dropdown-item:focus,
.dropdown-item:hover {
    background-color: rgba(0, 0, 0, 0.07) !important;
    /* background-color: var(--accent) !important; */
}

.navbar-nav .active a {
    color: var(--light);
}

@media only screen and (max-width: 991px) {
    .navbar {
        background-color: var(--dark);

        .nav-btn {
            padding: unset !important;
            border: unset !important;
            background-color: unset !important;
            color: rgba(255, 255, 255, 0.55);
            font-size: 20px;
            margin-right: 1rem !important;

            span {
                display: none;
            }

            i {
                margin: 0 !important;
            }
        }

        form {
            width: 65%;
        }
    }

    .navbar>.container,
    .navbar>.container-fluid,
    .navbar>.container-lg,
    .navbar>.container-md,
    .navbar>.container-sm,
    .navbar>.container-xl,
    .navbar>.container-xxl {
        flex-wrap: unset !important;
    }

    .navbar-collapse {
        position: absolute;
        left: 0;
        top: 58px;
        background-color: var(--dark);
        width: 100%;
        padding: 6px 12px;
    }
}

/* Custom Navbar Toggler */
.navbar-toggler {
    border: none;
    background: none;
    padding: 0;
    outline: none;
    /* margin-top: 5px; */
}

.navbar-toggler:focus {
    outline: none;
    /* Remove outline on focus */
}

.navbar-toggler .material-icons {
    font-size: 24px;
    /* Icon size */
    color: #333;
    /* Icon color */
}

/* Change icon to 'close' when menu is open */
.navbar-toggler.collapsed .material-icons {
    content: 'menu';
}

.navbar-toggler:not(.collapsed) .material-icons {
    content: 'close';
}

.navbar-toggler:focus {
    box-shadow: unset !important;
}

/* Preloader Styles */
#loader {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(6px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

#loader img {
    width: 60px;
    height: auto;
    animation: rotate 2s infinite;
}

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

    to {
        transform: rotate(360deg);
    }
}

.error-404 span {
    font-size: 5rem;
}

/* Bootstrap */

.btn-primary {
    background-color: var(--accent) !important;
    border: unset !important;
    border-radius: var(--border-radius) !important;
}

.btn-primary:hover {
    background-color: var(--accent) !important;
    opacity: .9;
}

.btn {
    border-radius: var(--border-radius) !important;
}

a {
    color: var(--accent);
}

.form-control {
    border-radius: var(--border-radius) !important;
}

.rounded {
    border-radius: var(--border-radius) !important;
}

.form-control:focus,
.form-select:focus {
    box-shadow: unset !important;
    border-color: var(--accent) !important;
}

/* OWL Slider */

.owl-carousel {
    position: relative;
}

.owl-carousel .owl-item {
    opacity: 1;
}

.owl-carousel .owl-item.active {
    opacity: 1;
}

.owl-carousel .owl-dots {
    text-align: center;
}

.owl-carousel .owl-dots .owl-dot {
    width: 10px;
    height: 10px;
    margin: 5px;
    border-radius: 50%;
    background: #e6e6e6;
    position: relative;
}

.owl-carousel .owl-dots .owl-dot:after {
    position: absolute;
    top: -2px;
    left: -2px;
    right: 0;
    bottom: 0;
    width: 14px;
    height: 14px;
    content: '';
    border: 1px solid #4d4d4d;
    border-radius: 50%;
}

.owl-carousel .owl-dots .owl-dot:hover,
.owl-carousel .owl-dots .owl-dot:focus {
    outline: none !important;
}

.owl-carousel .owl-dots .owl-dot.active {
    background: #b3b3b3;
}

.owl-carousel .owl-dots .owl-dot.active:after {
    border-color: #fff;
}

.owl-carousel.home-slider {
    position: relative;
    height: 650px;
    z-index: 0;
}

.owl-carousel.home-slider .slider-item {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    height: 650px;
    position: relative;
    z-index: 0;
}

@media (max-width: 1199.98px) {
    .owl-carousel.home-slider .slider-item {
        background-position: center center !important;
    }
}

.owl-carousel.home-slider .slider-item .overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: #000;
    opacity: .3;
}

.owl-carousel.home-slider .slider-item .slider-text {
    height: 650px;
    position: relative;
}

.owl-carousel.home-slider .slider-item .slider-text .text {
    z-index: 0;
    color: rgba(255, 255, 255, 0.9);
}

.owl-carousel.home-slider .slider-item .slider-text h1 {
    font-size: 9vw;
    font-weight: 800;
    text-transform: uppercase;
    color: #fff;
    line-height: 1;
}

@media (max-width: 991.98px) {
    .owl-carousel.home-slider .slider-item .slider-text h1 {
        font-size: 50px;
    }
}

.owl-carousel.home-slider .slider-item .slider-text h2 {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: "Poppins", Arial, sans-serif;
    font-weight: 700;
    color: white;
    color: #f5e4c3;
    display: inline-block;
    position: relative;
    letter-spacing: 4px;
}

.owl-carousel.home-slider .owl-nav {
    position: absolute;
    top: 50%;
    width: 100%;
}

.owl-carousel.home-slider .owl-nav .owl-prev,
.owl-carousel.home-slider .owl-nav .owl-next {
    position: absolute;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    outline: none !important;
    -webkit-transition: 0.3s;
    -o-transition: 0.3s;
    transition: 0.3s;
    opacity: 0;
}

@media (prefers-reduced-motion: reduce) {

    .owl-carousel.home-slider .owl-nav .owl-prev,
    .owl-carousel.home-slider .owl-nav .owl-next {
        -webkit-transition: none;
        -o-transition: none;
        transition: none;
    }
}

.owl-carousel.home-slider .owl-nav .owl-prev span:before,
.owl-carousel.home-slider .owl-nav .owl-next span:before {
    font-size: 30px;
    color: rgba(255, 255, 255, 0.5);
    -webkit-transition: 0.3s;
    -o-transition: 0.3s;
    transition: 0.3s;
}

@media (prefers-reduced-motion: reduce) {

    .owl-carousel.home-slider .owl-nav .owl-prev span:before,
    .owl-carousel.home-slider .owl-nav .owl-next span:before {
        -webkit-transition: none;
        -o-transition: none;
        transition: none;
    }
}

.owl-carousel.home-slider .owl-nav .owl-prev:hover span:before,
.owl-carousel.home-slider .owl-nav .owl-prev:focus span:before,
.owl-carousel.home-slider .owl-nav .owl-next:hover span:before,
.owl-carousel.home-slider .owl-nav .owl-next:focus span:before {
    color: #fff;
}

.owl-carousel.home-slider .owl-nav .owl-prev {
    left: 0;
    margin-left: 0;
}

.owl-carousel.home-slider .owl-nav .owl-next {
    right: 0;
    margin-right: 0;
}

.owl-carousel.home-slider:hover .owl-nav .owl-prev,
.owl-carousel.home-slider:hover .owl-nav .owl-next {
    opacity: 1;
}

.owl-carousel.home-slider:hover .owl-nav .owl-prev {
    margin-left: 50px;
}

.owl-carousel.home-slider:hover .owl-nav .owl-next {
    margin-right: 50px;
}

.owl-carousel.home-slider .owl-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 40px;
    width: 100%;
    text-align: center;
}

@media (max-width: 767.98px) {
    .owl-carousel.home-slider .owl-dots {
        bottom: 5px;
    }
}

.owl-carousel.home-slider .owl-dots .owl-dot {
    width: 10px;
    height: 10px;
    margin: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
}

.owl-carousel.home-slider .owl-dots .owl-dot.active {
    background: #fff;
}

.owl-carousel.owl-drag .owl-item {
    -ms-touch-action: pan-y;
    touch-action: pan-y;
}

/* OWL Slider END*/

footer a {
    color: var(--accent);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.s72-ps {
    .item {
        img {
            border-radius: var(--border-radius);
        }
    }
}

i {
    line-height: 0.5em;
    vertical-align: -0.15em;
}

/* welcome */
@keyframes confetti-slow {
    0% {
        transform: translate3d(0, 0, 0) rotateX(0) rotateY(0);
    }

    100% {
        transform: translate3d(25px, 105vh, 0) rotateX(360deg) rotateY(180deg);
    }
}

@keyframes confetti-medium {
    0% {
        transform: translate3d(0, 0, 0) rotateX(0) rotateY(0);
    }

    100% {
        transform: translate3d(100px, 105vh, 0) rotateX(100deg) rotateY(360deg);
    }
}

@keyframes confetti-fast {
    0% {
        transform: translate3d(0, 0, 0) rotateX(0) rotateY(0);
    }

    100% {
        transform: translate3d(-50px, 105vh, 0) rotateX(10deg) rotateY(250deg);
    }
}

/* Unique container for confetti */
.unique-container {
    width: 100%;
    height: 100vh;
    position: fixed !important;
    z-index: -1 !important;
}

/* Confetti container */
.js-confetti-container {
    perspective: 700px;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: hidden;
    z-index: 10000;
    /* Ensure this is above everything else */
}

/* Confetti Styles */
.confetti {
    position: absolute;
    z-index: 12041;
    /* Higher than the confetti container */
    top: -10px;
    border-radius: 0%;
}

.confetti--animation-slow {
    /* Increase the duration to make it slower */
    animation: confetti-slow 4.5s linear 1 forwards;
    /* Slower */
}

.confetti--animation-medium {
    /* Increase the duration to make it slower */
    animation: confetti-medium 3.5s linear 1 forwards;
    /* Slower */
}

.confetti--animation-fast {
    /* Increase the duration to make it slower */
    animation: confetti-fast 3s linear 1 forwards;
    /* Slower */
}

/* vote */

.c-sm {
    max-width: 650px !important;
}

.question-item {
    background-color: var(--light);
    border-radius: calc(var(--border-radius) + 12px);
    margin: 12px 0;
    padding: 12px;
}

.question-item a {
    text-decoration: none;
    color: var(--dark);
}

.question-archive,
.single-question-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.question-footer {
    display: flex;
    gap: 12px;
}

.vote-section,
.comment-section,
.share-section {
    display: flex;
    align-items: center;

    max-width: fit-content;
    border: 1px solid var(--dark);
    border-radius: var(--border-radius);
}

.comment-section,
.share-section {
    padding: 6px 12px;
}

.vote-section button {
    background: none;
    border: none;
    cursor: pointer;
}

.votes-count {
    font-size: 18px;
    margin: 5px 0;
}

.question-content {
    flex: 1;
}

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

.meta {
    font-size: 14px;
    display: flex;
    align-items: center;
}

.vote-up:hover {
    color: rgb(48, 213, 89) !important;
}

.vote-down:hover {
    color: rgb(255, 64, 64) !important;
}

.author-info img {
    border-radius: 100%;
}

.single-question-header {
    margin-top: -20px;

    img {
        margin-right: 6px;
    }
}

.single-question-content {
    background-color: var(--light);
    border-radius: calc(var(--border-radius) + 12px);
    padding: 12px;

    a {
        text-decoration: none;
        color: var(--bs-body-color);
    }
}