@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

* {
    font-family: "Roboto", sans-serif;
}

:root {
    --primary-color: #4A90E2;
    --secondary-color: #F5A623;
    --background-color: #FFFFFF;
    --accent-color: #7ED321;
    --text-color: #333333;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    text-align: center;
}

#mainContent {
    /* background-color: coral;     */
    
    display: flex;
    flex-direction: row;

    height: 70vh;
    width: 70vw;
}

#prestadores {
    width: 30%;
    background-color: var(--primary-color);
    margin-right: 10px;

    border-radius: 6px;

    padding: 15px;

    display: flex;
    flex-direction: column;
    gap: 20px;

    overflow-y: scroll;
    /* box-sizing: border-box; */
}

.prestadorCard {
    background-color: var(--secondary-color);
    color: var(--text-color);
    border-radius: 6px;

    min-height: 40%;
    overflow: hidden;   
    flex-shrink: 0;
    padding: 10px;

    border: rgba(0, 0, 0, 0.2) solid 2px;
    transition: background-color 0.4s ease-out;

    cursor: pointer;
}

.prestadorCard.highlight {
    background-color: #ffd53f;
    border-color: var(--accent-color);
    transition: background-color 0.4s ease-in;
}

.prestadorDetails {
    margin-left: 12px;
    gap: 30px;
}

.prestadorDetails p {
    display: flex;
    align-items: center;
    gap: 5px;
    /* max-height: 100%; */
    /* overflow: auto; */
    /* margin-left: 100px; */
    margin: 0;
    padding: 5px;
    border:0;
}

.prestadorDetails i {
    font-size: 1.2em;
}

.prestadorTitle {
    font-size: 1.5rem;
    text-align: center;
}

#map {
    width: 70%;
    flex: 1;

    border-radius: 16px;
    border: solid 2px var(--text-color);
}

footer {
    display: flex;
    flex-direction: column;
    text-align: center;
}


@media (max-width: 768px) {
    #mainContent {
        flex-direction: column-reverse;
        align-items: center;
        width: 90vw;

        gap: 10px;
    }

    #map {
        height: 10vh; 
        /* flex: 1; */
    
        /* border-radius: 16px; */
        /* border: solid 2px var(--text-color); */
    }

    #prestadores {
        height: 35%;
        width: 70%;
    }
}