@import "global.css";


main {
    display: flex;
}


label {
    text-align: center;
    min-width: 20vw;
    font-size: 1.1em;
    background-color: var(--md-sys-color-primary-container);
    border-radius: 0.4em;
    margin-bottom: 1em;
}

.allResult {
    margin-right: 5vw;
    margin-left: 5vw;
    min-width: 70vw;
    float: right;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

aside {
    padding: 2em 2vw;
    margin-top: 15vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    float: left;
    color: var(--md-sys-color-on-surface-variant);
    background-color: var(--md-sys-color-surface-variant);
    border-radius: 0.5em;
    min-height: 100%;
    height: 100%;
    margin-right: 1vw;
    margin-left: 2vw;
    min-width: 14vw;
    max-width: 14vw;
    box-shadow: rgba(0, 0, 0, 0.25) 0 1vmax 2vmax, rgba(0, 0, 0, 0.22) 0 0.8vmax 0.8vmax;
}

img.svgLogo {
    max-width: 1.5em;
    object-fit: scale-down;
    filter: invert(35%) sepia(95%) saturate(1200%) hue-rotate(88deg) brightness(90%) contrast(88%);
}

h1 {
    color: var(--md-sys-color-on-background);
    font-size: 1.4em;
}

h2 {
    color: var(--md-sys-color-on-background);
    font-size: 1.1em;
}

.result {
    display: flex;
    flex-direction: row;
    margin: 2vw;
    min-width: 72vw;
    max-width: 72vw;
    min-height: 20em;
    max-height: 20em;
    border-radius: 0.4em;
    box-shadow: rgba(0, 0, 0, 0.25) 0 1vmax 2vmax, rgba(0, 0, 0, 0.22) 0 0.8vmax 0.8vmax;
}

div.resultImageDiv {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-left: 2%;
    padding-right: 2%;
    min-width: 30%;
    max-width: 30%;
    margin-right: 5%;
    min-height: inherit;
    overflow: hidden;
    background-color: var(--md-sys-color-surface-variant);
}

img.resultImage {
    object-fit: scale-down;
    max-width: 95%;
    max-height: 95%;
    border-radius: 0.5em;
    height: auto;
    mix-blend-mode: multiply;
}

@media screen and (prefers-color-scheme: dark) {
    img.resultImage {
        mix-blend-mode: normal;
    }
}

.restaurantInfo {
    display: flex;
    flex-direction: row;
}

.allResult button {
    font-size: 1.2em;
    margin-top: 0.1em;
    margin-bottom: 0.1em;
}

.filter {
    padding: 4%;
    min-width: 95%;
    text-align: center;
    margin-top: 1em;
    border-width: max(0.2em, 0.5vmin);
    border-style: solid;
    background-color: var(--md-sys-color-secondary-container);
    box-shadow: rgba(0, 0, 0, 0.25) 0 0.1vmin 0.5vmin, rgba(0, 0, 0, 0.22) 0 0.2vmin 0.2vmin;
    border-radius: 0.4em;
}

.mobileSelector {
    display: none;
}

aside h1 {
    text-align: center;
    font-size: 1.2em;
}

aside form {
    text-align: center;
    margin-top: 1em;
    display: block;
    color: var(--md-sys-color-on-background);
    max-width: 95%;
}

search {
    background-color: var(--md-sys-color-on-surface-variant);
    color: var(--md-sys-color-on-background);
    min-width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding-top: 2em;
    padding-bottom: 2em;
}

search form {
    min-width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

search input[type="search"] {
    text-align: center;
    background-color: var(--md-sys-color-background);
    color: var(--md-sys-color-on-background);
    border-radius: 0.4em;
    font-size: 1.2em;
    line-height: 1.5;
    min-height: 3em;
    min-width: 50vw;
}

search input[type="search"]::placeholder {
    color: var(--md-sys-color-on-background);
}

search input[type="search"]:focus::placeholder {
    color: transparent;
}

button.searchLogo {
    position: absolute;
    right: 26vw;
    border-style: none;
    background-color: transparent;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    min-width: 5%;
    height: 3em;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

button.searchLogo img {
    fill: var(--md-sys-color-primary);
    object-fit: scale-down;
    width: 100%;
    height: 100%;
    filter: invert(86%) sepia(6%) saturate(3643%) hue-rotate(346deg) brightness(102%) contrast(89%);
}

button.searchLogo img:hover {
    filter: invert(35%) sepia(95%) saturate(1200%) hue-rotate(88deg) brightness(90%) contrast(88%);
}

button.searchLogo:active {
    transform: scale(0.9); /* Scale down the button when clicked */
}


.filter {
    cursor: pointer;
}

aside form label {
    all: revert;
    font-weight: bold;
    display: block;
    min-width: 100%;
    text-align: center;
    padding-top: 1.1em;
    padding-bottom: 1.2em;
    font-size: 1em;
}

aside form select {
    background-color: var(--md-sys-color-secondary-container);
    color: var(--md-sys-color-on-background);
    text-align: center;
    margin: auto;
    max-width: 100%;
    font-size: 1em;
    border-radius: 0.5em;
    overflow: hidden;
    display: block;
    padding-top: 0.5em;
    padding-bottom: 0.5em;
}

button.showMoreButton {
    padding: 1rem;
    margin-top: 2rem;
    margin-left: 46.5vw;
    background-color: var(--md-sys-color-secondary-container);
    color: var(--md-sys-color-on-secondary-container);
    margin-right: auto;
    font-size: 1.2rem;
}

button.showMoreButton:active {
    background-color: var(--md-sys-color-on-primary-container);
}

h2.price {
    font-size: 0.8em;
}

@media screen and (max-width: 600px) {

    .result {
        max-width: 80vw;
        min-width: 80vw;
    }

    button.showMoreButton {
        margin-left: 25vw;
        margin-right: 25vw;
        min-width: 50vw;
    }

    aside {
        display: none;
    }

    .filter {
        display: none;
    }


    div.resultImageDiv {
        margin-right: 5vw;
        min-width: 40%;
        max-width: 40%;
        max-height: 100%;
    }

    .mobileSelector {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .mobileSelector select {
        all: revert;
        background-color: var(--md-sys-color-background);
        border: thin solid var(--md-sys-color-primary);
        color: var(--md-sys-color-on-background);
        border-radius: 0.3em;
        display: inline-block;
        font: inherit;
        line-height: 1.5em;
        padding: 0.5em 15vw 1em 2vw;
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
        -webkit-appearance: none;
        -moz-appearance: none;
        margin: 0 0 2em;
    }

    .showMoreButton {
        font-size: 1rem;
    }


    .mobileSelector select.classic {
        background-image: linear-gradient(45deg, transparent 50%, var(--md-sys-color-tertiary-fixed-dim) 50%),
        linear-gradient(135deg, var(--md-sys-color-tertiary-fixed-dim) 50%, transparent 50%),
        linear-gradient(to right, var(--md-sys-color-on-tertiary-fixed-variant), var(--md-sys-color-on-tertiary-fixed-variant));
        background-position: calc(100% - 2vw) calc(1em + 0.2vw),
        calc(100% - 1.5vw) calc(1em + 0.2vw), 100% 0;
        background-size: 0.8vw 0.8vw, 0.8vw 0.8vw, 2.5em 2.5em;
        background-repeat: no-repeat;
    }

    .mobileSelector select.classic:focus {
        background-image: linear-gradient(45deg, var(--md-sys-color-primary-container) 50%, transparent 50%),
        linear-gradient(135deg, transparent 50%, var(--md-sys-color-primary-container) 50%),
        linear-gradient(to right, var(--md-sys-color-on-primary-container), var(--md-sys-color-on-primary-container));
        background-position: calc(100% - 1.5vw) 1em,
        calc(100% - 2vw) 1em, 100% 0;
        background-size: 0.8vw 0.8vw, 0.8vw 0.8vw, 2.5em 2.5em;
        background-repeat: no-repeat;
        border-color: grey;
        outline: 0;
    }


    search input[type="search"]::placeholder {
        font-size: 0.8em;
    }


    main {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    div.allResult {
        margin-left: 10vw;
        margin-right: 10vw;
        min-width: 80vw;
    }

    label {
        all: revert;
        margin-top: 2em;
        font-size: 1.5em;
        margin-bottom: 1em;
        display: block;
        color: var(--md-sys-color-on-background);
        text-align: center;
    }


    .mobileSelector select {
        display: flex;
        margin-left: 15vw;
        margin-right: 15vw;
    }


    search input[type="search"] {
        min-width: 75vw;
    }

    button.searchLogo {
        right: 15vw;
    }

    img.svgLogo {
        max-width: 1em;
    }
}


