/* RESETTING CSS */
* {
    margin: 0;
    padding: 0;
    font-family: 'Work Sans', sans-serif;
    box-sizing: border-box;
}

/* HEADER SECTION*/
header {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 80px;
    margin-top: 4px;
}

header img {
    height: 80px;
    width: 100px;
}

header h1 {
    font-weight: 500;
    font-size: 40px;
}

header b {
    color: #0d4aad;
}

/* HEADING 2 */
#heading-2 {

    background-color: #0d4aad;
    color: white;
    text-align: center;
    padding: 8px 4px;
    border-radius: 20px;
    margin: 12px;
    font-weight: 400;
}


/* MAIN CONTENT -> SEARCHING SECTION */
#searching {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin: 12px;
}

#search-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #d6d6d6;
    border-radius: 20px;
    overflow: hidden;
    border: none;

}

#input-bar {
    text-align: center;
    padding: 12px 0px;
    width: 400px;
    background-color: #d6d6d6;
    border: none;
    outline: none;
    color: black;
    font-family: 'Roboto Mono', monospace;
}


#search-icon {
    font-size: 30px;
    margin-right: 16px;
}

#all-buttons {
    display: flex;
    gap: 32px;
}

.button {
    height: 40px;
    width: 108px;
    font-size: 20px;
    border-radius: 20px;
    background-color: #0d4aad;
    color: white;
    border: none;
    font-weight: 600;
    cursor: pointer;

}

.button:hover{
    border: 2px solid black;
}

.selected-button {
    background-color: rgb(58, 182, 255);
    border: 2px solid black ;
}


/* CENTER DETAILS SECTION */
.centers-details {
    margin: 16px;
}

/* BY DEFAULT BLOCKS */
.seprate-blocks {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr;
    background-color: #0d4aad;
    color: white;
    border-radius: 28px;
    padding: 16px 0px;
    padding-left: 32px;
    margin-bottom: 12px;
}


@media (max-width: 450px) {
    #main-header {
        gap: 4px;
        height: 60px;
        margin-top: 4px;
    }

    header img {
        height: 60px;
        width: 80px;
    }

    header h1 {
        font-weight: 500;
        font-size: 24px;
        text-align: center;
    }

    #heading-2 {
        padding: 6px 4px;
        border-radius: 20px;
        margin: 25px 10px;
        font-weight: 400;
        font-size: 20px;
        text-align: center;
    }

    #searching {
        flex-direction: column;
        margin: 12px;
    }

    #all-buttons .button {
        height: 40px;
        width: 90px;
        font-size: 18px;
        font-weight: 500;

    }

    #search-bar {
        width: 100%;
    }

    #search-bar #input-bar {
        width: 100%;
        padding: 12px 0px;
        font-size: 20px;
    }

    #search-bar #search-icon {
        font-size: 20px;
    }

    #display-centers {
        margin: 20px 14px;
    }

    #display-centers .seprate-blocks {
        text-align: center;
        grid-template-columns: 1fr;
        row-gap: 16px;
        padding: 8px;
    }


}

@media (min-width: 450px) and (max-width: 870px) {
    #main-header {
        gap: 8px;
        height: 60px;
        margin-top: 4px;
    }

    header img {
        height: 60px;
        width: 80px;
    }

    header h1 {
        font-size: 30px;
        text-align: center;
    }

    #heading-2 {
        padding: 6px 4px;
        border-radius: 20px;
        margin: 25px 10px;
        font-weight: 400;
        font-size: 26px;
        text-align: center;
    }

    #searching {
        flex-direction: column;
        margin: 12px;
    }

    #all-buttons .button {
        height: 40px;
        width: 90px;
        font-size: 18px;
        font-weight: 500;

    }

    #search-bar {
        width: 100%;
    }

    #search-bar #input-bar {
        width: 100%;
        padding: 12px 0px;
        font-size: 20px;
    }

    #search-bar #search-icon {
        font-size: 20px;
    }

    #display-centers {
        margin: 20px 14px;
    }

    #display-centers .seprate-blocks {
        text-align: center;
        grid-template-columns: 1fr;
        row-gap: 16px;
        
    }

}