@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');

:root {

    --primary-color: #e20914;
    --secondary-color: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    background: #212121;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-x: hidden;
}

@media (max-width: 400px) {

    body {
        padding: 0;
    }
}

a {
    text-decoration: none;
}

.container {
    width: 1300px;
    border-radius: 20px;
    background:
        linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.7)),
        url("../assets/home-bg.jpg") center/cover no-repeat;
    display: flex;
    flex-direction: column;
}

@media (max-width: 400px) {
    .container {
        width: 100vw;
        border-radius: 0;
        padding: 10px 5px 40px 5px;
    }
}

.navbar {
    width: 100%;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    /* box-shadow: 0 0px 6px -2px rgba(255, 255, 255, 0.9); */
    box-shadow: 0 4px 5px -6px rgba(255, 255, 255, 0.9);
}

.navbar h1 {
    font-weight: 800;
    color: var(--primary-color);

}


.input_group {
    display: flex;
    align-items: center;
    width: 100%;

    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    overflow: hidden;

    backdrop-filter: blur(10px);

    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);

    transition: 0.3s ease;
    overflow: visible;
}

.input_group:focus-within {
    border-color: rgba(255, 0, 0, 0.35);
    box-shadow:
        0 0 20px rgba(255, 0, 0, 0.12),
        0 8px 24px rgba(0, 0, 0, 0.35);
}

.input_group select {
    height: 50px;
    min-width: 130px;

    padding: 0 16px;

    border: none;
    outline: none;

    background: rgba(255, 255, 255, 0.03);
    color: white;

    font-size: 0.95rem;
    cursor: pointer;

    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.input_group select option {
    color: black;
}

.input_secondary_group {
    display: flex;
    width: 100%;
}

.input_secondary_group .search_wrapper {
    flex: 1;
    display: flex;
    position: relative;
}

.search_wrapper input {
    flex: 1;
    height: 50px;

    padding: 0 18px;

    border: none;
    outline: none;

    background: transparent;
    color: white;

    font-size: 1rem;
}


.suggestion_box_error {
    position: absolute;
    z-index: 3;
    top: 100%;
    right: 0;
    left: 0;
    background: #fff;
    color: #000;
    font-weight: 300;
    font-size: 15px;
}

.error-msg {
    color: red !important;
}

.suggestion_box {
    display: none;
    position: absolute;
    z-index: 2;
    top: 100%;
    right: 0;
    left: 0;
    text-decoration: none;
    list-style: none;
    background: #fff;
    color: #000;
    border-radius: 3px;
    /* padding: 1px 11px; */
    border: 1px solid rgb(73, 73, 73);
    font-weight: 300;
    font-size: 15px;
}

.active {
    display: block;
}

.suggestion_box li {
    display: flex;
    border-bottom: 1px solid rgba(0, 0, 0, 0.35);
}

.suggestion_box li div {
    flex: 1;
    text-decoration: none;
    color: inherit;
    padding: 4px 11px;
    cursor: pointer;
}

.suggestion_box li div i {
    margin-right: 5px;
}

.search_wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.search_button {
    width: 60px;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--primary-color);
    color: white;

    cursor: pointer;
    transition: 0.25s ease;
}

.search_button:hover {
    background: #e00000e9;
    box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.08);
}

.mobile_navbar {
    display: none;
}

@media (max-width: 400px) {

    .navbar {
        flex-direction: column;
    }

    .input_group {
        flex-direction: column;
    }

    .input_group select {
        width: 100%;
        padding: 0 10px;
    }

    .input_secondary_group {
        border: 1px solid rgba(255, 255, 255, 0.12);
    }

    .search_wrapper {
        flex: 1;
        min-width: 0;
    }

    .search_wrapper input {
        width: 100%;
        min-width: 0;
    }

    .search_button {
        flex-shrink: 0;
    }

}


/* laoder */

.loader_container {
    display: none;
    min-height: 700px;
    min-width: 1300px;
    align-items: center;
    justify-content: center;
}

.loader {
    border-radius: 50%;
    height: 40px;
    width: 40px;
    border: 4px solid white;
    border-top: 4px solid red;
    animation: spin 1.5s linear infinite;
}

@media (max-width: 400px) {
    .loader_container {
        width: 100vw;
        height: 60vh;
        min-width: 0;
        min-height: 0;
    }
}

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

    100% {
        transform: rotate(360deg)
    }
}