@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');

@font-face {
    font-family: 'akira';
    src: url(fonts/Akira\ Expanded\ Demo.otf);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "nunito", sans-serif;
}

body {
    --background-color: white;
    --text-color: black;
    --elements-color: white;
    margin: 0;
    font-family: Nunito, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
}

body.dark {
    --background-color: hsl(210, 25%, 13%); 
    --text-color: white;
    --elements-color: hsl(209, 23%, 22%);
}

main {
    padding: 3vh;
}

.headTxt {
    font-family: "akira";
    font-size: 1.5vw;

}

a {
    text-decoration: none;
    color: inherit;
}

.txt2 {
    font-size: 1vw;
    font-weight: 500;
}

header {
    box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, 0.25);
    height: 10vh;
    padding-inline: 24px;

    background-color: var(--elements-color);
}

.headerCont {

    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin-inline: auto;
    position: relative;
    top: 2vh;

}

.container {
    max-width: 1200px;
    margin-inline: auto;
    margin-top: 10px;
    display: flex;
    gap: 2vw;
    flex-wrap: wrap;
    justify-content: space-between;

}

.cards {

    
    display: inline-block;
    width: 200px;
    border-radius: 4px;
    overflow: hidden;
    padding-bottom: 24px;
    box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, 0.3);
    transition: all 0.1s ease-in-out;

    background-color: var(--elements-color);


}

.cards:hover {
    transform: scale(1.03);
    box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.3);

}

.cards img {
    width: 100%;
}

.card-txt {
    height: 24vh;
    position: relative;
    top: 5vh;
    padding-inline: 16px;
}

.card-txt>h3 {
    font-size: 22px;
    position: relative;
    bottom: 3vh;
    font-weight: 800;
}

.search-container {
    box-shadow: 0 0 8px 0px rgba(0, 0, 0, 0.15);
    max-width: 350px;
    width: 100%;
    border-radius: 4px;
    padding-left: 24px;
    color: #999;
    overflow: hidden;
    background-color: var(--elements-color);
    color: var(--text-color);
}

.search-filter-container {
    max-width: 1200px;
    margin-inline: auto;
    margin-top: 16px;
    margin-bottom: 48px;
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.moon{
    cursor: pointer;
}

.search-container input {
    border: none;
    outline: none;
    padding: 16px;
    width: 90%;
    background-color: inherit;
    color: inherit;
}

.search-container input::placeholder {
    color: #999;
}

.filter-by-region {
    width: 250px;
    padding: 16px;
    border: none;
    outline: none;
    box-shadow: 0 0 8px 0px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    background-color: var(--elements-color);
    color: var(--text-color);
}

@media(max-width: 768px) {
    .container {
        justify-content: center;
        gap: 3vh;
    }

    .headTxt {
        font-size: 26px;
    }

    .txt2{
        font-size: 16px;
    }

    .moon{
        font-size: 16px;
    }

    .search-filter-container {
        flex-direction: column;
    }

    .cards{
        width: 310px;
    }
    
}
