@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&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');

:root{
    --primary-color: #ffff;
    --secondary-color: #000;
    --search-box-input-background: rgba(255, 255, 255, 0.785);
    --placeholder-color:  rgba(0, 0, 0, 0.637);
    --select-box-color: rgba(0, 0, 0, 0.637);
}

body{
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.dark-mode{
    --primary-color: #1d2126;
    --secondary-color: #fff;
    --search-box-input-background: rgba(0, 0, 0, 0.637);
    --placeholder-color:  rgba(255, 255, 255, 0.785);
    --select-box-color: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Ubuntu", sans-serif;
}

.navbar{
    position: absolute;
    top: 11px;
    right: 11px;
}

#darkModeIcon{
    margin-right: 4px;
}

.searchBox {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: 0 auto;
    min-height: 57vh;
    background: url(bg.jpg) center no-repeat;
    background-size: cover;
    position: relative;

}

.searchBox::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.29);
    z-index: 1;
}

.searchBox>* {
    z-index: 2;
}


.query {
    max-width: 45vw;
}


.main-heading {
    font-size: 1.5rem;
    margin: 30px auto;
    color: #fff;
    width: 90%;
    text-align: center;

}

.main-heading h2 {
    line-height: 1.5em;
}

.searchBar {
    width: 90%;
    margin: auto;
    height: 60px;
    background: transparent;
    display: flex;
    align-items: center;
    border-radius: 8px;
}


.searchBar input {
    border: 0;
    outline: 0;
    flex: 1;
    height: 100%;
    /* background: rgba(128, 128, 128, 0.139); */
    background: var(--search-box-input-background);
    font-size: 18px;
    color: #000000;
    padding: 0 30px;
    border-top-left-radius: 30px;
    border-bottom-left-radius: 30px;
}


::placeholder {
    font-size: 16px;
    /* color: rgba(255, 255, 255, 0.637); */
    color: var(--placeholder-color);
}

.random {
    display: flex;
    align-items: center;
    justify-content: center;


}


.searchbtn {
    border: 0;
    outline: 0;
    padding: 14px 23px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-radius: 30px;
    font-size: 14px;
    cursor: pointer;
}


#btn {
    margin: -30px;
    height: 100%;
    padding: 20px 30px !important;
    font-size: 16px !important;
}

#btn i {
    margin-left: 10px;
}



#filters {
    margin-top: 2%;
}

.hidden {
    display: none;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}

.show {
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: auto;
    transition: opacity 0.3s ease-in-out;
}

#filterButton {
    display: none;
}

#filterButton i {
    margin-right: 10px;

    transition: transform 0.2s ease-in-out;
}

.rotate {
    transform: rotate(180deg);
}

#clearFilter i {
    margin-right: 10px;
}


.container {
    width: 80vw;
    margin: auto;
    text-align: center;
    margin-top: 2rem;
}

.content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 5%;
}



.btn {
    border: 0;
    outline: 0;
    padding: 14px 29px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-radius: 8px;
    font-size: 17px;
    cursor: pointer;
}


.imageContainer {
    position: relative;
    display: inline-block;
    margin: 10px;
}


.info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--placeholder-color);
    color: var(--primary-color);
    padding: 10px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.hide {
    opacity: 0;
}

.imageContainer:hover span {
    opacity: 1;
}

#showMore {
    display: none;
    text-align: center;
    margin: 0 auto;
    margin-bottom: 3%;
}

.category {
    border-bottom: 2px solid var(--secondary-color);
    cursor: pointer;
    display: inline-block;
}

#allOutputs {

    margin: 40px auto 50px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: 20px;
}

#allOutputs img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    border-radius: 5px;
}

.categories {
    display: flex;
    align-items: center;
    justify-self: center;
    gap: 20px;
}

#total {
    margin: 0 auto;
    display: inline-block;
    padding: 10px;
    font-size: 23px;
    font-weight: 500;

}

#showMoreRandom {
    text-align: center;
    display: none;
    margin: 0 auto;
    margin-bottom: 3%;
}

.filters {
    gap: 20px;
    margin-top: 3%;
}

label {
    color: var(--primary-color);
}

.errors {
    display: none;
    font-size: 25px;
    font-weight: 500;
    margin: 20px auto;
    text-align: center;
}


select {
    width: 26%;
    padding: 14px 29px;
    border: 2px solid var(--select-box-color);
    border-radius: 8px;
    background-color: var(--primary-color);
    font-size: 17px;
    color: var(--secondary-color);
    cursor: pointer;
    margin: 10px;
    outline: none;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Arrow customization */
select::after {
    content: '▼';
    font-size: 12px;
    color: var(--secondary-color);
    position: absolute;
    right: 15px;
    pointer-events: none;
}

select:hover {
    border-color: var(--select-box-color);
    color: var();
    background-color: transparent;
    color: var(--secondary-color);
    background-color: var(--primary-color);
}


option {
    padding: 8px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
}


select option:hover {
    background-color: var(--secondary-color) !important;
    color: var(--primary-color) !important;
}

option:disabled {
    color: var(--select-box-color);
    background-color: var(--select-box-color);
}

#loading{
    display: none;
    margin-top: 2%;
    width: 70px;
    height: 70px;
    margin: 0 auto;
}
