
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

* {
    box-sizing: border-box; /*if we add border or padding, it doesn't affect the width of it. */
}

:root {
    --primary-color: #b4b4b4;
    --secondary-color: #f1f1f1;
    --placeholder-color: #7378c5;
}

body {
    font-family: 'Roboto', sans-serif;
    min-height: 100vh;
    margin: 0px;
    overflow-x: hidden;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--secondary-color);
    padding: 0.7rem 0.4rem;
}

.title {
    margin: 10px 0px 0px;
    text-align: center;
    
}

.title #random {
    color: rgb(255, 133, 133);
}

.title #image {
    color: rgb(133, 255, 133);
}

.title #feed {
    color: rgb(133, 133, 255);
}

#search {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--placeholder-color);
}


#search::placeholder {
    color: var(--placeholder-color);
}

#search:focus {
    outline: none;
}

.container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    /* max-width: 1000px; */
}

.container img {
    object-fit: cover;
    margin: 10px;
    height: 300px;
    width: 300px;
    max-width: 100%;
}

@media screen and (max-width:960px) {
    header {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    #search {
        margin: 0.8rem 0;
        width: 70%;
    }
}
